0 votes
104 views
by Rookie
edited by

Hi All,

I got this issue two times in Digital Ocean server, please check my logs as follows:

root@ubuntu-s-1vcpu-1gb-sfo2-01:/etc/nginx/common# service nginx restart

Job for nginx.service failed because a timeout was exceeded.

See "systemctl status nginx.service" and "journalctl -xe" for details.

root@ubuntu-s-1vcpu-1gb-sfo2-01:/etc/nginx/common# systemctl status nginx.service

â nginx.service - A high performance web server and a reverse proxy server

   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)

  Drop-In: /etc/systemd/system/nginx.service.d

           âânofile_limit.conf

   Active: failed (Result: timeout) since Fri 2019-03-22 01:00:15 +07; 4min 28s ago

     Docs: man:nginx(8)

  Process: 40855 ExecStop=/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /run/nginx.pid (code=exited, status=0/SUCCESS)

  Process: 40813 ExecReload=/usr/sbin/nginx -g daemon on; master_process on; -s reload (code=exited, status=0/SUCCESS)

  Process: 44399 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)

  Process: 44391 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)

 Main PID: 38480 (code=exited, status=0/SUCCESS)

Mar 22 00:58:44 ubuntu-s-1vcpu-1gb-sfo2-01 systemd[1]: Starting A high performance web server and a reverse proxy server...

Mar 22 00:58:44 ubuntu-s-1vcpu-1gb-sfo2-01 systemd[1]: nginx.service: Failed to parse PID from file /run/nginx.pid: Invalid argument

Mar 22 00:58:44 ubuntu-s-1vcpu-1gb-sfo2-01 nginx[44399]: nginx: [crit] pwrite() "/run/nginx.pid" failed (28: No space left on device)

Mar 22 01:00:15 ubuntu-s-1vcpu-1gb-sfo2-01 systemd[1]: nginx.service: Start operation timed out. Terminating.

Mar 22 01:00:15 ubuntu-s-1vcpu-1gb-sfo2-01 systemd[1]: nginx.service: Failed with result 'timeout'.

Mar 22 01:00:15 ubuntu-s-1vcpu-1gb-sfo2-01 systemd[1]: Failed to start A high performance web server and a reverse proxy server.

root@ubuntu-s-1vcpu-1gb-sfo2-01:/etc/nginx/common# Job for nginx.service failed because a timeout was exceeded.

root@ubuntu-s-1vcpu-1gb-sfo2-01:/etc/nginx/common# journalctl -xe

Mar 22 01:06:12 ubuntu-s-1vcpu-1gb-sfo2-01 sshd[44441]: Failed password for root from 112.85.42.88 port 48706 ssh2

Mar 22 01:06:12 ubuntu-s-1vcpu-1gb-sfo2-01 sshd[44441]: Received disconnect from 112.85.42.88 port 48706:11:  [preauth]

Mar 22 01:06:12 ubuntu-s-1vcpu-1gb-sfo2-01 sshd[44441]: Disconnected from authenticating user root 112.85.42.88 port 48706 [preauth]

Mar 22 01:06:12 ubuntu-s-1vcpu-1gb-sfo2-01 sshd[44441]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=112.85.42.88  user=root

Mar 22 01:07:17 ubuntu-s-1vcpu-1gb-sfo2-01 sshd[44443]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=112.85.42.88  user=root

Mar 22 01:07:20 ubuntu-s-1vcpu-1gb-sfo2-01 sshd[44443]: Failed password for root from 112.85.42.88 port 11754 ssh2

Mar 22 01:07:22 ubuntu-s-1vcpu-1gb-sfo2-01 sshd[44443]: Failed password for root from 112.85.42.88 port 11754 ssh2

Mar 22 01:07:24 ubuntu-s-1vcpu-1gb-sfo2-01 sshd[44443]: Failed password for root from 112.85.42.88 port 11754 ssh2

Mar 22 01:07:24 ubuntu-s-1vcpu-1gb-sfo2-01 sshd[44443]: Received disconnect from 112.85.42.88 port 11754:11:  [preauth]

Mar 22 01:07:24 ubuntu-s-1vcpu-1gb-sfo2-01 sshd[44443]: Disconnected from authenticating user root 112.85.42.88 port 11754 [preauth]

Mar 22 01:07:24 ubuntu-s-1vcpu-1gb-sfo2-01 sshd[44443]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=112.85.42.88  user=root

Mar 22 01:08:27 ubuntu-s-1vcpu-1gb-sfo2-01 sshd[44446]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=112.85.42.88  user=root

Mar 22 01:08:28 ubuntu-s-1vcpu-1gb-sfo2-01 sshd[44446]: Failed password for root from 112.85.42.88 port 34041 ssh2

Mar 22 01:08:30 ubuntu-s-1vcpu-1gb-sfo2-01 sshd[44446]: Failed password for root from 112.85.42.88 port 34041 ssh2

Mar 22 01:08:32 ubuntu-s-1vcpu-1gb-sfo2-01 sshd[44446]: Failed password for root from 112.85.42.88 port 34041 ssh2

Mar 22 01:08:33 ubuntu-s-1vcpu-1gb-sfo2-01 sshd[44446]: Received disconnect from 112.85.42.88 port 34041:11:  [preauth]

Mar 22 01:08:33 ubuntu-s-1vcpu-1gb-sfo2-01 sshd[44446]: Disconnected from authenticating user root 112.85.42.88 port 34041 [preauth]

Mar 22 01:08:33 ubuntu-s-1vcpu-1gb-sfo2-01 sshd[44446]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=112.85.42.88  user=root

Mar 22 01:09:01 ubuntu-s-1vcpu-1gb-sfo2-01 systemd[1]: Starting Clean php session files...

-- Subject: Unit phpsessionclean.service has begun start-up

-- Defined-By: systemd

-- Support: http://www.ubuntu.com/support

--

-- Unit phpsessionclean.service has begun starting up.

Mar 22 01:09:01 ubuntu-s-1vcpu-1gb-sfo2-01 CRON[44473]: pam_unix(cron:session): session opened for user root by (uid=0)

Mar 22 01:09:01 ubuntu-s-1vcpu-1gb-sfo2-01 CRON[44474]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclea

Mar 22 01:09:01 ubuntu-s-1vcpu-1gb-sfo2-01 CRON[44473]: pam_unix(cron:session): session closed for user root

Mar 22 01:09:01 ubuntu-s-1vcpu-1gb-sfo2-01 systemd[1]: Started Clean php session files.

-- Subject: Unit phpsessionclean.service has finished start-up

-- Defined-By: systemd

-- Support: http://www.ubuntu.com/support

--

-- Unit phpsessionclean.service has finished starting up.

--

-- The start-up result is RESULT.

Mar 22 01:09:45 ubuntu-s-1vcpu-1gb-sfo2-01 sshd[44662]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=112.85.42.88  user=root

Mar 22 01:09:47 ubuntu-s-1vcpu-1gb-sfo2-01 sshd[44662]: Failed password for root from 112.85.42.88 port 58173 ssh2

Mar 22 01:09:48 ubuntu-s-1vcpu-1gb-sfo2-01 sshd[44662]: Failed password for root from 112.85.42.88 port 58173 ssh2

Mar 22 01:09:51 ubuntu-s-1vcpu-1gb-sfo2-01 sshd[44662]: Failed password for root from 112.85.42.88 port 58173 ssh2

Mar 22 01:09:51 ubuntu-s-1vcpu-1gb-sfo2-01 sshd[44662]: Received disconnect from 112.85.42.88 port 58173:11:  [preauth]

Mar 22 01:09:51 ubuntu-s-1vcpu-1gb-sfo2-01 sshd[44662]: Disconnected from authenticating user root 112.85.42.88 port 58173 [preauth]

Mar 22 01:09:51 ubuntu-s-1vcpu-1gb-sfo2-01 sshd[44662]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=112.85.42.88  user=root

lines 1207-1248/1248 (END)

And 

root@ubuntu-s-1vcpu-1gb-sfo2-01:~# nginx -t

nginx: the configuration file /etc/nginx/nginx.conf syntax is ok

nginx: configuration file /etc/nginx/nginx.conf test is successful

 I hope you can resolve this issue soon.

If anyone has experienced with it before, please let me know.


Thank you so much!

by Expert
I don't understand, why did you paste all that info?

What do you suppose I have to see in that data?

And why do you think I should "resolve" your issues?
by Rookie

Hi Admin,
Sorry for the word "resolve" and unclear message!

I just want to ask to help since I got this issue after I installed your script and my web show the info "Web server is down". I think only this forum can help me.

I pasted the log info to give more information that may help you or someone can easy understand what's happening in my server. 

I tried nginx -t and found no problem with configuration
and I restart nginx and the server shows 

Job for nginx.service failed because a timeout was exceeded.

See "systemctl status nginx.service" and "journalctl -xe" for details.

And  saw the info that I pasted above.

Once again, Sorry for any inconvenience caused!

Thank you so much!

1 Answer

0 votes
by Expert

You can try updating and upgrading all the packages in your server.

sudo apt update && sudo apt upgrade -y

Just to be sure you are running the latest version of Nginx and all the other packages. Then restart your server and see if it happens again.

by Rookie
Thank you for your support!

I did restart my server and it works perfectly!

Thank you and have a great day!
Welcome to the Community site for Webinoly.

If you have a question about Webinoly, please ask in English or Spanish.

To report a bug, please ask a question here with the bug tag.

News: Webinoly now install PHP 7.3 by default.

Donations

Webinoly Support Paypal Donations Webinoly Support Bitcoin Donations

Your regular donations is what keep this project moving forward. If you like Webinoly, buy me a coffee or a beer to show support.

Affiliate Links

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.

...