Author Topic: Site down, can't start Nginx Reverse Proxy, FTP Server & Varnish Cache Server  (Read 1231 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Hi,

Distro Name: CentOS Linux release 7.7.1908 (Core)
Kernel Version: 2.6.32-042stab127.2

I'm having issues accessing my site,
I logged into CWP and see Nginx Reverse Proxy, FTP Server & Varnish Cache Server are down.

Just noticed some of the mail services failed to start too after server reboot.

Dovecot IMAP/POP3 Server      
ClamAV      
AMaViS (A Mail Virus Scanner)
SpamAssassin

Not sure how to fix all issues.

Here's some status info for Nginx Reverse Proxy..

● nginx.service - nginx - high performance web server
   Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
   Active: failed (Result: timeout) since Thu 2020-01-09 01:21:38 UTC; 2min 56s ago
     Docs: http://nginx.org/en/docs/
  Process: 28857 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS)

Jan 09 01:20:08 clients systemd[1]: Starting nginx - high performance web server...
Jan 09 01:20:08 clients systemd[1]: Can't open PID file /var/run/nginx.pid (yet?) after start: Too many levels of symbolic links
Jan 09 01:21:38 clients systemd[1]: nginx.service start operation timed out. Terminating.
Jan 09 01:21:38 clients systemd[1]: Failed to start nginx - high performance web server.
Jan 09 01:21:38 clients systemd[1]: Unit nginx.service entered failed state.
Jan 09 01:21:38 clients systemd[1]: nginx.service failed.

-- Unit session-7789535.scope has finished starting up.
--
-- The start-up result is done.
Jan 09 01:00:01 clients CROND[25275]: (root) CMD (/usr/local/bin/php -q /home/dsm1/public_html/index.php cron > /dev/null 2>&1)
Jan 09 01:00:32 clients systemd[1]: nginx.service start operation timed out. Terminating.
Jan 09 01:00:32 clients systemd[1]: Failed to start nginx - high performance web server.
-- Subject: Unit nginx.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nginx.service has failed.
--
-- The result is failed.
Jan 09 01:00:32 clients systemd[1]: Unit nginx.service entered failed state.
Jan 09 01:00:32 clients systemd[1]: nginx.service failed.
Jan 09 01:05:01 clients systemd[1]: Started Session 7789811 of user root.
-- Subject: Unit session-7789811.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-7789811.scope has finished starting up.


I posted this the other night, I was attempting to update the kernel, don't think it worked.
http://forum.centos-webpanel.com/index.php?topic=8068.msg27597#msg27597
« Last Edit: January 09, 2020, 02:37:08 AM by emar »

Offline
*****
You can try to check the nginx config with the command: nginx -t and then fix all found errors.
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Thanks Igor,

I went to the SSL Certificates section and restarted the web server, then nginx was online.

I got this when I ran nginx -t

$ nginx -t
nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /etc/nginx/conf.d/vhosts/clients.dreamstream.it.ssl.conf:8
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

I am unable to restart the ftp server and Vanish Cache Server.

Also some of the mail services are down.

I'll start another thread for those.
« Last Edit: January 10, 2020, 12:45:21 AM by emar »

Offline
**
I guess you can't access your websites in this case.
remove all ssl certificates if you don't have too many websites...
restart server
will probably work on nginx
then add ssl certificates again
check each added ssl certificate website and then add another

or check which website has a problem with the error codes. simply delete their ssl certificates and reinstall them.
  • Spamassassin: config and scan per mailbox
  • Clustering manager
  • Mail Space Usage
  • All Space Usage + = Disk Space Usage
  • Mail Scanner
    hopeful fourth year

Offline
*
I am able to access the website again, after I did the reload web server in ssl section,

I just did a google about:

nginx: [warn] the ssl directive is deprecated, use the listen ... ssl directive instead

I went to /etc/nginx/conf.d/vhosts/clients.dreamstream.it.ssl.conf:8
And deleted the line for: ssl                  on;
And added: listen 443 ssl;

Then did nginx -t and got:

user@ $ nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

I guess that fixed it?
« Last Edit: January 10, 2020, 01:40:34 AM by emar »

Offline
*****
I guess you had issue with the hostname SSL. Probably you could fix it with the command:
Code: [Select]
sh /scripts/generate_hostname_ssl
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services