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

nginx fails to start with error nginx: [emerg] unknown log format "bytes"

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
zergling3000
Posts: 4
Joined: Tue Jun 08, 2021 8:13 pm

Os: Ubuntu 15x
Web: apache + nginx
nginx fails to start with error nginx: [emerg] unknown log format "bytes"
  • Quote

Post by zergling3000 » Tue Jun 08, 2021 8:20 pm

Hi,

I updated and upgraded the server today. None of my websites are working. During the upgrade there was a prompt in the CLI that asked if I wanted to update the nginx configuration files or keep my current files. I told it to upgrade the nginx configuration files. None of my websites work. Please help me to get my websites working again! Here is what I have done to troubleshoot:

Code: Select all

sudo service nginx start
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.

someuser@server:~# nginx -t
nginx: [emerg] unknown log format "bytes" in /home/someuser/conf/web/domain.com.nginx.conf:20
nginx: configuration file /etc/nginx/nginx.conf test failed
Thank you in advance to anyone willing to help.
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: nginx fails to start with error nginx: [emerg] unknown log format "bytes"
  • Quote

Post by grayfolk » Tue Jun 08, 2021 9:03 pm

zergling3000 wrote: ↑
Tue Jun 08, 2021 8:20 pm
Hi,

I updated and upgraded the server today. None of my websites are working. During the upgrade there was a prompt in the CLI that asked if I wanted to update the nginx configuration files or keep my current files. I told it to upgrade the nginx configuration files. None of my websites work. Please help me to get my websites working again! Here is what I have done to troubleshoot:

Code: Select all

sudo service nginx start
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.

someuser@server:~# nginx -t
nginx: [emerg] unknown log format "bytes" in /home/someuser/conf/web/domain.com.nginx.conf:20
nginx: configuration file /etc/nginx/nginx.conf test failed
Thank you in advance to anyone willing to help.
Update your nginx templates and rebuild web.
Top

zergling3000
Posts: 4
Joined: Tue Jun 08, 2021 8:13 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: nginx fails to start with error nginx: [emerg] unknown log format "bytes"
  • Quote

Post by zergling3000 » Tue Jun 08, 2021 9:56 pm

grayfolk wrote: ↑
Tue Jun 08, 2021 9:03 pm

Update your nginx templates and rebuild web.
Hi,

Thank you for your reply. I am not sure what to update the templates to. Any help or guidance would be most appreciated.

Thank you!
Top

zergling3000
Posts: 4
Joined: Tue Jun 08, 2021 8:13 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: nginx fails to start with error nginx: [emerg] unknown log format "bytes"
  • Quote

Post by zergling3000 » Wed Jun 09, 2021 2:36 pm

I have tried to update the web templates using the command v-update-web-templates but nginx still does not start. I am unsure how to update nginx templates. Should I just delete the line that has "bytes?"

Thanks

Code: Select all

v-update-web-templates [RESTART]
cat: /usr/local/vesta/data/users/someuser/mail.conf: No such file or directory
cat: /usr/local/vesta/data/users/someuser/mail.conf: No such file or directory
Error: nginx restart failed
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: nginx fails to start with error nginx: [emerg] unknown log format "bytes"
  • Quote

Post by grayfolk » Wed Jun 09, 2021 6:31 pm

zergling3000 wrote: ↑
Tue Jun 08, 2021 9:56 pm
grayfolk wrote: ↑
Tue Jun 08, 2021 9:03 pm

Update your nginx templates and rebuild web.
Hi,

Thank you for your reply. I am not sure what to update the templates to. Any help or guidance would be most appreciated.

Thank you!
You should update your nginx templates in /usr/local/vesta/data/templates/web/nginx folder.
Use nginx -t for found exists problems.
Top

zergling3000
Posts: 4
Joined: Tue Jun 08, 2021 8:13 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: nginx fails to start with error nginx: [emerg] unknown log format "bytes"
  • Quote

Post by zergling3000 » Tue Jun 15, 2021 3:48 pm

I could not fix this issue. I moved everything to a new server.

Hestiacp is nice.
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
 

 

Login  •  Register

I forgot my password