Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

502 Bad Gateway when attempting to sign in #1644

Closed
danreale opened this issue Jan 27, 2022 · 17 comments
Closed

502 Bad Gateway when attempting to sign in #1644

danreale opened this issue Jan 27, 2022 · 17 comments
Labels

Comments

@danreale
Copy link

Describe the bug
I'm on macos and using the docker compose file to create a local environment. The docker build is successful. When I try to log in to report portal with either user, I am getting An error occurred while connecting to server: error. Upon further investigation, I am seeing a 502 Bad Gateway error on this endpoint http://localhost:8080/uat/sso/oauth/token. I've tried a few different versions of the docker compose file to rule out breaking changes.

Expected behavior
I am able to login

Screenshots
image

Versions:

  • MacOS Catalina, 10.15.6, Chrome
  • using latest version of dockerfile on master branch
@danreale danreale added the bug Bug in ReportPortal label Jan 27, 2022
@sreesankargm
Copy link

sreesankargm commented Jan 27, 2022

I don't know if this will help. But I used to get the same. I suspect some service takes time to load/boot up. If you wait for some time and then try login - is it working? That seems to do the trick for me.

Edit: Still some sort of a bug!

@danreale
Copy link
Author

@sreesankargm I waited a bit. Seems to be stuck on the db_scripts container. I am seeing:

error: pq: no pg_hba.conf entry for host "172.xx.x.xx", user "rpuser", database "reportportal", SSL off
wait-for-it.sh: waiting 15 seconds for postgres:5432

I wonder if this is related to the problem I am seeing with the login.

@VinGt22
Copy link

VinGt22 commented Feb 23, 2022

This really appears to be a bug and seems multiple organizations and folks are facing this issue. At times the services do not recover for almost half a day leading to loss of time. Is there any update to get a fix for this?

@gregorygold
Copy link

Do we have this running correctly with the older version of the application? Should we use it instead?

@steerpike100
Copy link

This is an issue for me also, exactly as the OP described. Any workaround?

@gregorygold
Copy link

So the way I have solved it was to follow the steps mentioned updating S3 access

@VinGt22
Copy link

VinGt22 commented Apr 28, 2022

@gregorygold Can you please provide some more insight into how you solved this.. can you share the steps or any link which you referred which you have mentioned--"updating S3 access"?

@gregorygold
Copy link

Please follow this thread chhatbarjignesh/reportportal-aws-cfn#3

I had a Cludformation deployment in AWS.

@steerpike100
Copy link

steerpike100 commented Apr 29, 2022

I've tried the suggested solutions on this page with no luck. This is a really bad first impression given my company is looking to potentially opt for a commercial licence for this tool.

@alizaidi96
Copy link

I'm actually fed up with this now. At our organisation nurture.farm, we thought we will use Reportportal for our build reports but the issues are just endless. Setup was okay but never works on restart.
Have tried all the approaches mentioned. Maxed out memory requirements to 10GB+.
Nothing works. Please fix your product if you don't want business impacts!

@irynakozak2
Copy link
Contributor

Hi @danreale !
If the issue is still valid for you, my suggestion is to wait about a minute after successful deployment and giving the services up and running. If the issue would occur, please check if are there no errors in the service-API logs.

@swtestacademy
Copy link

swtestacademy commented Nov 29, 2022

This problem still exists in 5.7.2 version on M1 machine, and I could not solve it.
Current version:Service UI: 5.7.2;

Error message on reportportal_db-scripts_1 container:

wait-for-it.sh: waiting 15 seconds for postgres:5432
wait-for-it.sh: postgres:5432 is available after 0 seconds
error: pq: no pg_hba.conf entry for host "172.19.0.14", user "rpuser", database "reportportal", SSL off

@irynakozak2
Copy link
Contributor

@swtestacademy thank you for your response! Unfortunately, we still have a common issue with deploying ReportPortal on Apple Silicon Chips. It's currently in our backlog and we keep you updated on resolving it. Thank you!

@DzmitryHumianiuk
Copy link
Member

not sure if this is really related to ARM (m1) specifics.
especially what is related to the topic-starter @danreale

@akashchaudhary
Copy link

@DzmitryHumianiuk @steerpike100 @swtestacademy @alizaidi96 @sreesankargm
I think there is an issue with the S3 bucket when we deploy ReportPortal in AWS Cloudformation. This bucket is used to store prj-ketstore/secretIntegrationSalt by minio etc. I would suggest to use the deployment technique mentioned here https://medium.com/@chhatbarjignesh/deploy-reportportal-in-aws-with-aws-cloudformation-cd6553e27f74 . One can skip all the extra details and just use the https://github.com/chhatbarjignesh/reportportal-aws-cfn to upload into cloudformation stack .
Do create a S3 bucket beforehand and pass its name in the param S3BucketName , Pass reportportal version as 5.2.2 and postgress version as 12.7(Other versions might not be available in AWS to install or Might not support db.t2.micro. To get the list of version try to install postgress as a ddb in AWS and you can the extensive list.) . Now just complete the stack creation with minimal or no extra details provided. Wait for sometime once the creation is complete . Then try to login.

@ramitd1995
Copy link

@swtestacademy thank you for your response! Unfortunately, we still have a common issue with deploying ReportPortal on Apple Silicon Chips. It's currently in our backlog and we keep you updated on resolving it. Thank you!

@irynakozak2 is there any update on this? We are still facing error 502 while logging into RP on macOS with M1 chip.
API : http://localhost:8080/uat/sso/oauth/token is failing.

@DzmitryHumianiuk
Copy link
Member

All ReportPortal images now support multiple platforms.: linux/amd64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests