-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
gave up: nginx entered FATAL state, too many start retries too quickly #3258
Comments
Hi @nexcode Thank you for your report. There should be no issue setting up the port to 80 & 443, even though the default is 8080 & 8443. There must be something else causing the error. The usual culprit is usually the SSL certs. You can find out the exact cause by entering the container and check the nginx error logs in /var/log/nginx/error.log. Please get in touch with our support team for further assistance. |
The container is built in such a way that nginx does not have the rights to work on ports below 1024. This has nothing to do with ssl or anything like that. You just need to fix this by adding root rights for nginx because that’s how it should be run: #3097 |
@sso-bitwarden say something? This is a very important note for many users. |
Hi @nexcode Since my colleague Troy in the other issue and I couldn't reproduce this, I'll leave the issue open for the engineering team to take a look. In my installation, I had no issue setting the port to 80 443. By the way, any reason why you want the Nginx port on 80 & 443? These are just the Nginx listening ports inside the container. Externally, you could always map 80 -> 8080 & 443 -> 8443. |
In the environment in which I want to use this, a host network is used, therefore, for convenience, in order not to configure forwarding within the operating system itself, I need to use ports 80 and 443 in the container. |
I specified latest version of the image: docker compose logs:
/var/log/nginx/error.log:
|
To fix this you need open exec setpriv --reuid=0 --regid=$PGID --init-groups /usr/bin/supervisord Now, if you still want to run other services from the user Example: [program:admin]
user=bitwarden |
@sso-bitwarden, I hope I have described in as much detail as possible how to fix this :) |
nginx is designed to run as root, and when started it starts listening on certain ports and then lowers its privileges. Therefore, it must be run as root user. |
@sso-bitwarden, is there any news? |
I have the same problem, even after changed entrypoint.sh 2023-11-11 10:16:21,492 INFO exited: nginx (exit status 1; not expected) |
@kamilos956, you need to look at the file |
Yeah, right, I had to setup SMTP and it started working properly. Thank you :) |
Steps To Reproduce
Make a config in which nginx starts on 80 and 443 ports:
Expected Result
Normal nginx startup!
Actual Result
Screenshots or Videos
No response
Additional Context
No response
Githash Version
doesn't work because nginx didn't start
Environment Details
No response
Database Image
No response
Issue-Link
#2480
Issue Tracking Info
The text was updated successfully, but these errors were encountered: