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

Getting 502 error / nginx won't start as config file does not exists #3820

Closed
1 task done
jsiobj opened this issue Feb 18, 2024 · 8 comments
Closed
1 task done

Getting 502 error / nginx won't start as config file does not exists #3820

jsiobj opened this issue Feb 18, 2024 · 8 comments
Labels
bug bw-unified-deploy An Issue related to Bitwarden unified deployment

Comments

@jsiobj
Copy link

jsiobj commented Feb 18, 2024

Steps To Reproduce

Deploy a brand new instance.

Expected Result

I am not sure nginx is required if I disabled SSL as I use another proxy providing SSL communications.

If not required, nginx should not even try to start.
If required, config file should be generated I guess.

Actual Result

I can't login onto the server. I get a 502 error.

Digging a bit, I noticed nginx is not starting.

Container log shows :
2024-02-18 18:39:18,994 WARN exited: nginx (exit status 1; not expected) 2024-02-18 18:39:22,203 INFO spawned: 'nginx' with pid 149 2024-02-18 18:39:22,214 WARN exited: nginx (exit status 1; not expected) 2024-02-18 18:39:23,150 INFO gave up: nginx entered FATAL state, too many start retries too quickly

nginx logs shows :
2024/02/18 18:39:22 [emerg] 149#149: open() "/etc/nginx/http.d/bitwarden.conf" failed (2: No such file or directory) in /etc/nginx/nginx.conf:37

File is not present withing the container

Screenshots or Videos

No response

Additional Context

I followed the steps in the documentation.

It used to work up until recently. Unfortunately, I can't say when it stopped to work. It seems one of the latest upgrade caused the issue.

I tried to deploy a brand new environment but I get the same error : that is 502 error and nginx not starting (I guess both are linked).

Also, in the unified deployment doc, BW_ENABLE_SSL should default to false, but the .env example file on github seems to indicated it is true. Doc states : "SSL is required for Bitwarden to function properly. If you are not using SSL configured in the Bitwarden container you should front Bitwarden with a SSL proxy." As I understand it, I can use my own proxy to provided SSL. Am I correct ?

Is nginx required if I disable SSL ?

Githash Version

can't access it

Environment Details

Synology NAS with Portainer (not using built in manager)

Database Image

postgres:16

Issue-Link

#2480

Issue Tracking Info

  • I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.
@mikensan
Copy link

Just in case others aren't reading the several other reports of the exact same thing (different thread titles) - the fix is to roll back to January's release: 2024.1.2-beta.

@jsiobj
Copy link
Author

jsiobj commented Feb 21, 2024

Hello, I did this for now. And that worked. Thanks for the tip.

@kannasama
Copy link

Latest dev build appears to address it.

@holow29
Copy link
Contributor

holow29 commented Feb 22, 2024

Unfortunately, the latest beta tag (shared with 2024.2.1-beta) still has this issue. (This issue is the same as bitwarden/self-host#210)
There have now been two subsequent versioned unified beta releases since the first issue was reported that simply do not function - and no communication that I can see from anyone at Bitwarden about this.

@GitTimeraider
Copy link

Switched to dev version to test, 0 issues there.
Hopefully it will soon be classified as stable enough and be ported over to the beta version :P

@holow29
Copy link
Contributor

holow29 commented Feb 26, 2024

Latest beta tag now working, presumably will be in 2024.2.2-beta release.

@shofutex
Copy link

Latest beta tag works for me too.

@djsmith85
Copy link
Contributor

Thanks everyone for your patience and the reports of this being fixed.

Closing this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bw-unified-deploy An Issue related to Bitwarden unified deployment
Projects
None yet
Development

No branches or pull requests

7 participants