nginx fails to start with error nginx: [emerg] unknown log format "bytes"
-
- 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"
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:
Thank you in advance to anyone willing to help.
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
-
- Support team
- Posts: 1111
- Joined: Tue Jul 30, 2013 10:18 pm
- Contact:
- Os: CentOS 6x
- Web: nginx + php-fpm
Re: nginx fails to start with error nginx: [emerg] unknown log format "bytes"
Update your nginx templates and rebuild web.zergling3000 wrote: ↑Tue Jun 08, 2021 8:20 pmHi,
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:
Thank you in advance to anyone willing to help.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
-
- Posts: 4
- Joined: Tue Jun 08, 2021 8:13 pm
- Os: Ubuntu 15x
- Web: apache + nginx
-
- 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"
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
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
-
- Support team
- Posts: 1111
- Joined: Tue Jul 30, 2013 10:18 pm
- Contact:
- Os: CentOS 6x
- Web: nginx + php-fpm
Re: nginx fails to start with error nginx: [emerg] unknown log format "bytes"
You should update your nginx templates in /usr/local/vesta/data/templates/web/nginx folder.zergling3000 wrote: ↑Tue Jun 08, 2021 9:56 pmHi,
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!
Use nginx -t for found exists problems.
-
- 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"
I could not fix this issue. I moved everything to a new server.
Hestiacp is nice.
Hestiacp is nice.