By Tarrioin
I just found an error in the state of nginx. This error does not prevent anything. It does not give me problems. Everything is started correctly. Nginx -t It did not return any syntax errors.
I only see it in the nginx status sale. Service nginx status. Or Systemctl status nginx
Error:
systemctl status nginx
Feb 11 20:55:04 Singapore-ap-southeast systemd[1]: Starting A high performance web server and a reverse proxy server… Feb 11 20:55:04 Singapore-ap-southeast systemd[1]: nginx.service: PID 25363 read from file /run/nginx.pid does not exist or is a zombie. Feb 11 20:55:04 Singapore-ap-southeast systemd[1]: Started A high performance web server and a reverse proxy server.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
i am tuck on blow error please help me out.
root@phpmyadmin-s-1vcpu-1gb-nyc3-01:~/digial-estate# systemctl daemon-reload root@phpmyadmin-s-1vcpu-1gb-nyc3-01:~/digial-estate# sudo systemctl start digital-state root@phpmyadmin-s-1vcpu-1gb-nyc3-01:~/digial-estate# sudo systemctl enable digital-state root@phpmyadmin-s-1vcpu-1gb-nyc3-01:~/digial-estate# sudo systemctl status digital-state ● digital-state.service - Gunicorn instance to serve myproject Loaded: loaded (/etc/systemd/system/digital-state.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Tue 2019-09-24 12:10:39 UTC; 10s ago Main PID: 29859 (code=exited, status=200/CHDIR)
Sep 24 12:10:39 phpmyadmin-s-1vcpu-1gb-nyc3-01 systemd[1]: Started Gunicorn instance to serve myproject. Sep 24 12:10:39 phpmyadmin-s-1vcpu-1gb-nyc3-01 systemd[29859]: digital-state.service: Changing to the requested working directory failed: No such file or directory Sep 24 12:10:39 phpmyadmin-s-1vcpu-1gb-nyc3-01 systemd[29859]: digital-state.service: Failed at step CHDIR spawning /root/digial-estate/myprojectenv/bin/gunicorn: No such file or directory Sep 24 12:10:39 phpmyadmin-s-1vcpu-1gb-nyc3-01 systemd[1]: digital-state.service: Main process exited, code=exited, status=200/CHDIR Sep 24 12:10:39 phpmyadmin-s-1vcpu-1gb-nyc3-01 systemd[1]: digital-state.service: Failed with result ‘exit-code’.
For whoever has the problem. Fix it by uninstalling all Nginx and adding the new version directly from the Nginx url. That has no error and is a more up to date version of the digitalocean
[Unit] Description=The nginx HTTP and reverse proxy server After=network.target remote-fs.target nss-lookup.target
[Service] Type=forking PIDFile=/run/nginx.pid
nginx -t from the cmdline.ExecStartPre=/usr/bin/rm -f /run/nginx.pid ExecStartPre=/usr/sbin/nginx -t ExecStart=/usr/sbin/nginx ExecReload=/bin/kill -s HUP $MAINPID KillSignal=SIGQUIT TimeoutStopSec=5 KillMode=process PrivateTmp=true
[Install] WantedBy=multi-user.target
is this nginx service file is ok or not? when i checked the nginx service status then that was showing there.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.