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

No nginx error log

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
Pinakas
Posts: 8
Joined: Mon Aug 12, 2019 1:51 pm

Os: Ubuntu 15x
Web: apache + nginx
No nginx error log
  • Quote

Post by Pinakas » Mon Aug 12, 2019 1:57 pm

Hello,
I run our server on Ubuntu 16.04.

Lets assume that the service nginx Stoped working for whatever reason.

BY going to /var/log/nginx error log there is nothing written.. So I assume that for a reason the log is disabled.
I went to /etc/nginx/nginx.conf but there is no option to enable nginx error reporting.
So how can we enable nginx error log? And as web admin in case of nginx failure how we identify the problem? If there are no nginx logs

On apache everything can be found on error logs
Thanks

Eleftherios
Top

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: No nginx error log
  • Quote

Post by grayfolk » Mon Aug 12, 2019 2:35 pm

Pinakas wrote: ↑
Mon Aug 12, 2019 1:57 pm
Hello,
I run our server on Ubuntu 16.04.

Lets assume that the service nginx Stoped working for whatever reason.

BY going to /var/log/nginx error log there is nothing written.. So I assume that for a reason the log is disabled.
I went to /etc/nginx/nginx.conf but there is no option to enable nginx error reporting.
So how can we enable nginx error log? And as web admin in case of nginx failure how we identify the problem? If there are no nginx logs

On apache everything can be found on error logs
Thanks

Eleftherios
If you use Apache as backend, nginx logs will be placed in the same logs with Apache:
https://github.com/serghey-rodin/vesta/ ... ult.tpl#L4
https://github.com/serghey-rodin/vesta/ ... lt.tpl#L13
Top

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

Os: Ubuntu 15x
Web: apache + nginx
Re: No nginx error log
  • Quote

Post by Pinakas » Mon Aug 12, 2019 3:39 pm

Thanks...

I have nginx as proxy server.

Even if the nginx.conf file states the location in apache same logs
"error_log /var/log/%web_system%/domains/%domain%.error.log error;"

I stop the nginx service (for educational purposes)
the site goes down but even with tail -f the /var/log/apache2/domain/file.error.log does not show any indication that nginx is down


How would you inspect the the site's problem caused by a stopped nginx service?






If you use Apache as backend, nginx logs will be placed in the same logs with Apache:
https://github.com/serghey-rodin/vesta/ ... ult.tpl#L4
https://github.com/serghey-rodin/vesta/ ... lt.tpl#L13
[/quote]
Top

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: No nginx error log
  • Quote

Post by grayfolk » Mon Aug 12, 2019 7:32 pm

Pinakas wrote: ↑
Mon Aug 12, 2019 3:39 pm

I stop the nginx service (for educational purposes)
the site goes down but even with tail -f the /var/log/apache2/domain/file.error.log does not show any indication that nginx is down
Sure, no logs, because no errors - you just stop nginx - why this should be an error?
You will see errors if nginx was crashed, or return 5xx response.
Top

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

Os: Ubuntu 15x
Web: apache + nginx
Re: No nginx error log
  • Quote

Post by Pinakas » Mon Aug 12, 2019 7:47 pm

I think you are correct grayfolk
I thought that nginx would give error details.. But is not error

But same procedure (closing apache or mysql) gives error log on error.log

Eleftherios
Top

plutocrat
Posts: 232
Joined: Fri Jan 27, 2017 9:16 am

Os: Ubuntu 17x
Web: apache + nginx
Re: No nginx error log
  • Quote

Post by plutocrat » Tue Aug 13, 2019 6:42 am

Did you try looking in the systemctl logs? That's where I'd start for a service.

Code: Select all

systemctl status nginx.service 
journalctl -xe 
and maybe test the nginx config with

Code: Select all

nginx -t
Top


Post Reply
  • Print view

6 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
 

 

cron

Login  •  Register

I forgot my password