Page 1 of 1
nginx fails to start with error nginx: [emerg] unknown log format "bytes"
Posted: Tue Jun 08, 2021 8:20 pm
by zergling3000
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.
Re: nginx fails to start with error nginx: [emerg] unknown log format "bytes"
Posted: Tue Jun 08, 2021 9:03 pm
by grayfolk
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.
Re: nginx fails to start with error nginx: [emerg] unknown log format "bytes"
Posted: Tue Jun 08, 2021 9:56 pm
by zergling3000
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!
Re: nginx fails to start with error nginx: [emerg] unknown log format "bytes"
Posted: Wed Jun 09, 2021 2:36 pm
by zergling3000
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
Re: nginx fails to start with error nginx: [emerg] unknown log format "bytes"
Posted: Wed Jun 09, 2021 6:31 pm
by grayfolk
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.
Re: nginx fails to start with error nginx: [emerg] unknown log format "bytes"
Posted: Tue Jun 15, 2021 3:48 pm
by zergling3000
I could not fix this issue. I moved everything to a new server.
Hestiacp is nice.