Open ef72 opened 8 years ago
comparing the start parameters the only difference I could find is that
-p cc_command=exec cc -fpic -shared -Wl,-x -o %o %s -lcrypto -lssl
should be
-p 'cc_command=exec cc -fpic -shared -Wl,-x -o %o %s -lcrypto -lssl'
let me know if that helps
The quotes are set correctly in the service daemon start script. They just get filtered by the output. If the quotes are missing Varnish will complain like "unknown store engine hared" because of -shared.
getting same error
i have centos installed
it was mulitline issue, i put all on same line and it worked
@SiddiqueAhmad What exactly did you put on the same line? I've got the same problem and can't get it resolved. My whole ExecStart parameter is on one line.
OK, for anyone wondering, I set up my service file (or whatever it's called in systemd) like this: /etc/systemd/system/varnish.service.d/customexec.conf
[Service]
EnvironmentFile=/etc/default/varnish
ExecStart=
ExecStart=/usr/sbin/varnishd $DAEMON_OPTS
Seems you have some missing C library dependencies. Check if you have openssl-devel und glibc-devel installed.
What am I missing here? Thank you.
@lima /etc/systemd/system # service varnish start Job for varnish.service failed. See 'systemctl status varnish.service' and 'journalctl -xn' for details. @lima /etc/systemd/system # systemctl status -l varnish.service ● varnish.service - Varnish Cache, a high-performance HTTP accelerator Loaded: loaded (/etc/systemd/system/varnish.service; disabled) Active: failed (Result: exit-code) since Fri 2016-01-15 16:26:31 CET; 14s ago Process: 17994 ExecStart=/usr/sbin/varnishd -a :80 -T localhost:6082 -f /etc/varnish/magento.vcl -S /etc/varnish/secret -p feature=+esi_disable_xml_check,+esi_ignore_other_elements -p vsl_reclen=4084 -p vcc_allow_inline_c=on -p cc_command=exec cc -fpic -shared -Wl,-x -o %o %s -lcrypto -lssl -s malloc,1G (code=exited, status=2)
Jan 15 16:26:31 lima varnishd[17994]: /usr/bin/ld: warning: Cannot create .eh_frame_hdr section, --eh-frame-hdr ignored. Jan 15 16:26:31 lima varnishd[17994]: /usr/bin/ld: error in /bin/sh(.eh_frame); no .eh_frame_hdr table will be created. Jan 15 16:26:31 lima varnishd[17994]: Message from dlopen: Jan 15 16:26:31 lima varnishd[17994]: Could not load compiled VCL. Jan 15 16:26:31 lima varnishd[17994]: dlopen(vcl_boot/vgc.so) = vcl_boot/vgc.so: symbol lxstat, version GLIBC_2.2.5 not defined in file libc.so.6 with link time reference Jan 15 16:26:31 lima varnishd[17994]: Running dlopen failed, exited with 1 Jan 15 16:26:31 lima varnishd[17994]: VCL compilation failed Jan 15 16:26:31 lima systemd[1]: varnish.service: control process exited, code=exited status=2 Jan 15 16:26:31 lima systemd[1]: Failed to start Varnish Cache, a high-performance HTTP accelerator. Jan 15 16:26:31 lima systemd[1]: Unit varnish.service entered failed state.
@lima /etc/systemd/system # varnishd -V varnishd (varnish-4.1.0 revision 3041728) Copyright (c) 2006 Verdens Gang AS Copyright (c) 2006-2015 Varnish Software AS @lima /etc/systemd/system # uname -a Linux lima 3.16.0-4-amd64 # 1 SMP Debian 3.16.7-ckt20-1+deb8u2 (2016-01-02) x8664 GNU/Linux @lima /etc/systemd/system # dpkg -s libc6 | grep ^Version Version: 2.19-18+deb8u1 @lima /etc/systemd/system # dpkg -s openssl | grep ^Version Version: 1.0.1k-3+deb8u2 @lima /etc/systemd/system # dpkg -s libssl-dev | grep ^Version Version: 1.0.1k-3+deb8u2