We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Issue: Nginx.service failed to start (CentOS 7)
-
- Posts: 43
- Joined: Tue Apr 18, 2017 10:54 pm
- Os: Ubuntu 15x
- Web: apache + nginx
Issue: Nginx.service failed to start (CentOS 7)
Code: Select all
root@oipnetwork ~# systemctl status nginx -l
nginx.service - nginx - high performance web server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2017-07-15 13:19:31 UTC; 43s ago
Docs: http://nginx.org/en/docs/
Process: 11599 ExecStop=/bin/kill -s TERM $MAINPID (code=exited, status=0/SUCCESS)
Process: 11277 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS)
Process: 11961 ExecStartPre=/usr/sbin/nginx -t -c /etc/nginx/nginx.conf (code=exited, status=1/FAILURE)
Main PID: 11278 (code=exited, status=0/SUCCESS)
Jul 15 13:19:30 oipnetwork.ml systemd[1]: Starting nginx - high performance web server...
Jul 15 13:19:31 oipnetwork.ml nginx[11961]: nginx: [emerg] the same path name "/var/cache/nginx/oipnetwork.ml" used in /etc/nginx/conf.d/01_caching_pool.conf:1 and in /etc/nginx/conf.d/01_caching_pool.conf:2
Jul 15 13:19:31 oipnetwork.ml nginx[11961]: nginx: configuration file /etc/nginx/nginx.conf test failed
Jul 15 13:19:31 oipnetwork.ml systemd[1]: nginx.service: control process exited, code=exited status=1
Jul 15 13:19:31 oipnetwork.ml systemd[1]: Failed to start nginx - high performance web server.
Jul 15 13:19:31 oipnetwork.ml systemd[1]: Unit nginx.service entered failed state.
Jul 15 13:19:31 oipnetwork.ml systemd[1]: nginx.service failed.
I am running CentOS 7, 64Bit on a VPServer that is virtualized using OVZ. I get this error whenever I attempt to change the cache type from "default" to anything else in the VestaCP Gui for the website listed above in the log. Unknown if this is just for the domain or not.
Stuff included in installer:
Code: Select all
bash vst-install.sh --nginx yes --apache yes --phpfpm no --named no --remi no --vsftpd yes --proftpd no --iptables yes --fail2ban yes --quota no --exim yes --dovecot yes --spamassassin yes --clamav no --mysql yes --postgresql no --hostname oipnetwork.ml --email *****@****.co.uk --password ********
+Upgraded from PHP version 5.4 to 7.0 following the tutorial here: http://www.servermom.org/upgrade-vestac ... -7-centos/ (added php70-php-pecl-zip to the list and instead of simply typing php I removed all packages with the yum remove php* command)
+Added Gdrive for Linux
Other things worth note:
I have been able to repeat this issue multiple times on this one server, however this has never been an issue until four days ago. Sadly time is of the essence since this should be a production server with real clients and real issues. My apologies for rushing you or getting snippy in any replies. I am very sysadmin-illiterate so please give me instructions so I can simply copy/paste anything. If you need a logfile, please ask me for the logfile including how to get to the logfile because most likely I will not be able to provide this info on my own.
To speed up the process I am willing to offer sudo access to team members from Vesta should that be requested. Thank you again for any and all support.
Thanks,
Joseph
-
- Posts: 2
- Joined: Tue Nov 19, 2019 11:38 am
- Os: CentOS 6x
- Web: apache + nginx
Re: Issue: Nginx.service failed to start (CentOS 7)
Good
I have the same problem, could you please solve it please.
Thank you!
I have the same problem, could you please solve it please.
Thank you!
Re: Issue: Nginx.service failed to start (CentOS 7)
For me the problem is probably here
Jul 15 13:19:31 oipnetwork.ml nginx[11961]: nginx: [emerg] the same path name "/var/cache/nginx/oipnetwork.ml" used in /etc/nginx/conf.d/01_caching_pool.conf:1 and in /etc/nginx/conf.d/01_caching_pool.conf:2
this is the reason it is nginx does not start... can you fix the issue?
Jul 15 13:19:31 oipnetwork.ml nginx[11961]: nginx: [emerg] the same path name "/var/cache/nginx/oipnetwork.ml" used in /etc/nginx/conf.d/01_caching_pool.conf:1 and in /etc/nginx/conf.d/01_caching_pool.conf:2
this is the reason it is nginx does not start... can you fix the issue?