Author Topic: Varnish and nginx cannot start permission denied  (Read 2922 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Varnish and nginx cannot start permission denied
« on: March 22, 2022, 05:05:54 AM »
I have error when Setup default Web Servers to -> Nginx & Varnish & Apache

Even with fresh vps instalation this error happen

Code: [Select]
Starting Varnish Cache, a high-performance HTTP accelerator...
Error: Could not get socket :82: Permission denied
varnish.service: control process exited, code=exited status=255
Failed to start Varnish Cache, a high-performance HTTP accelerator.
Unit varnish.service entered failed state.
varnish.service failed.

Code: [Select]
Starting nginx - high performance web server...
nginx: [emerg] chown("/var/cache/nginx", 99) failed (13: Permission denied)
nginx.service: control process exited, code=exited status=1
Failed to start nginx - high performance web server.
Unit nginx.service entered failed state.
nginx.service failed.

Offline
****
Re: Varnish and nginx cannot start permission denied
« Reply #1 on: March 22, 2022, 07:24:35 AM »
Please post the content of the following 2 commands


journalctl -xeu nginx
journalctl -xeu varnish
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: Varnish and nginx cannot start permission denied
« Reply #2 on: March 22, 2022, 07:33:34 AM »
Please post the content of the following 2 commands


journalctl -xeu nginx
journalctl -xeu varnish

Hi,

This is the results

journalctl -xeu nginx
Code: [Select]
-- Unit nginx.service has begun starting up.
nginx[22917]: nginx: [emerg] chown("/var/cache/nginx", 99) failed (13: Permission denied)
systemd[1]: nginx.service: control process exited, code=exited status=1
systemd[1]: Failed to start nginx - high performance web server.
-- Subject: Unit nginx.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit nginx.service has failed.
--
-- The result is failed.
systemd[1]: Unit nginx.service entered failed state.
systemd[1]: nginx.service failed.


journalctl -xeu varnish
Code: [Select]
-- Unit varnish.service has begun starting up.
varnishd[18196]: Error: Could not get socket :82: Permission denied
varnishd[18196]: (-? gives usage)
systemd[1]: varnish.service: control process exited, code=exited status=255
systemd[1]: Failed to start Varnish Cache, a high-performance HTTP accelerator.
-- Subject: Unit varnish.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit varnish.service has failed.
--
-- The result is failed.
systemd[1]: Unit varnish.service entered failed state.
systemd[1]: varnish.service failed.

Offline
****
Re: Varnish and nginx cannot start permission denied
« Reply #3 on: March 22, 2022, 02:19:55 PM »
Ok.  Nginx:

ls -al /var/cache


Varnish
netstat -L | grep 82
Google Hangouts:  rcschaff82@gmail.com

Offline
****
Re: Varnish and nginx cannot start permission denied
« Reply #4 on: March 22, 2022, 05:48:14 PM »
sorry.  It's 

netstat -ln | grep 82
Google Hangouts:  rcschaff82@gmail.com