Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Issue: Nginx.service failed to start (CentOS 7)

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
ohioiproject
Posts: 43
Joined: Tue Apr 18, 2017 10:54 pm

Os: Ubuntu 15x
Web: apache + nginx
Issue: Nginx.service failed to start (CentOS 7)
  • Quote

Post by ohioiproject » Sat Jul 15, 2017 1:40 pm

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.
Info:
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 ********
Modified from the install:
+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
Top

milciadesrecalde
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)
  • Quote

Post by milciadesrecalde » Wed Nov 27, 2019 1:59 pm

Good

I have the same problem, could you please solve it please.

Thank you!
Top

Pinakas
Posts: 8
Joined: Mon Aug 12, 2019 1:51 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: Issue: Nginx.service failed to start (CentOS 7)
  • Quote

Post by Pinakas » Wed Dec 25, 2019 8:30 am

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?
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password