Nginx & Varnish & Apache web servers. Varnish error, not start.


  • Hi @sandeep,

    I have installed and rebuilded the Web Servers with Nginx & Varnish & Apache.

    Varnish not start and i have this error:

    ● varnish.service - Varnish Cache, a high-performance HTTP accelerator
    Loaded: loaded (/usr/lib/systemd/system/varnish.service; enabled; vendor preset: disabled)
    Active: failed (Result: exit-code) since Mon 2020-06-29 17:00:15 CEST; 15min ago
    Process: 1247 ExecStart=/usr/sbin/varnishd -P /var/run/varnish.pid -f $VARNISH_VCL_CONF -a ${VARNISH_LISTEN_ADDRESS}:${VARNISH_LISTEN_PORT} -T ${VARNISH_ADMIN_LISTEN_ADDRESS}:${VARNISH_ADMIN_LISTEN_PORT} -S $VARNISH_SECRET_FILE -s $VARNISH_STORAGE $DAEMON_OPTS (code=exited, status=255)

    Jun 29 17:00:15 server.mywebserverexample.com varnishd[1247]: Error:
    Jun 29 17:00:15 server.mywebserverexample.com varnishd[1247]: Message from C-compiler:
    Jun 29 17:00:15 server.mywebserverexample.com varnishd[1247]: /bin/sh: /usr/bin/gcc: Permission denied
    Jun 29 17:00:15 server.mywebserverexample.com varnishd[1247]: /bin/sh: line 0: exec: /usr/bin/gcc: cannot execute: Permission denied
    Jun 29 17:00:15 server.mywebserverexample.com varnishd[1247]: Running C-compiler failed, exited with 126
    Jun 29 17:00:15 server.mywebserverexample.com varnishd[1247]: VCL compilation failed
    Jun 29 17:00:15 server.mywebserverexample.com systemd[1]: varnish.service: control process exited, code=exited status=255
    Jun 29 17:00:15 server.mywebserverexample.com systemd[1]: Failed to start Varnish Cache, a high-performance HTTP accelerator.
    Jun 29 17:00:15 server.mywebserverexample.com systemd[1]: Unit varnish.service entered failed state.
    Jun 29 17:00:15 server.mywebserverexample.com systemd[1]: varnish.service failed.

    Please help me to solve this problem and thanks in advance for the support !


  • hi completely remove the varnish and try to install again

Recent Topics