在 default.vcl 中更改了一行,之后我无法重新启动。它没有给我任何错误或任何东西。我尝试将其设置回以前的配置,但没有帮助。
所以我决定重启。从头开始。没用。现在我尝试了几次重新安装,但还是卡在这里。什么都没发生。
我在使用 Ubuntu 14.04 LTS。
Unpacking varnish (3.0.7-1~trusty) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up libasan0:amd64 (4.8.4-2ubuntu1~14.04) ...
Setting up libatomic1:amd64 (4.8.4-2ubuntu1~14.04) ...
Setting up libitm1:amd64 (4.8.4-2ubuntu1~14.04) ...
Setting up libquadmath0:amd64 (4.8.4-2ubuntu1~14.04) ...
Setting up libtsan0:amd64 (4.8.4-2ubuntu1~14.04) ...
Setting up libgcc-4.8-dev:amd64 (4.8.4-2ubuntu1~14.04) ...
Setting up gcc-4.8 (4.8.4-2ubuntu1~14.04) ...
Setting up gcc (4:4.8.2-1ubuntu6) ...
Setting up libc-dev-bin (2.19-0ubuntu6.6) ...
Setting up linux-libc-dev:amd64 (3.13.0-68.111) ...
Setting up libc6-dev:amd64 (2.19-0ubuntu6.6) ...
Setting up libvarnishapi1 (3.0.7-1~trusty) ...
Setting up varnish (3.0.7-1~trusty) ...
答案1
由于安装了 Ruxit Agent,导致 Varnish Cache 无法使用。
(gdb) info threads
Id Target Id Frame
* 1 Thread 0x7f08e4b1b740 (LWP 2400) "varnishd" __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
(gdb) bt
#0 __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1 0x00007f08e348768d in _L_lock_1082 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2 0x00007f08e3487607 in __GI___pthread_mutex_lock (mutex=0x680240) at ../nptl/pthread_mutex_lock.c:134
#3 0x0000000000455b7c in ?? ()
#4 0x000000000045893d in malloc ()
#5 0x00007f08e464a516 in ?? () from /lib/x86_64-linux-gnu//libruxitagentproc.so
#6 0x00007f08e4645197 in ?? () from /lib/x86_64-linux-gnu//libruxitagentproc.so
#7 0x00007f08e4639d05 in ?? () from /lib/x86_64-linux-gnu//libruxitagentproc.so
#8 0x00007f08e46373e1 in open () from /lib/x86_64-linux-gnu//libruxitagentproc.so
#9 0x0000000000455b97 in ?? ()
#10 0x000000000045893d in malloc ()
#11 0x00007f08e44271a8 in VSB_new () from /usr/lib/varnish/libvarnish.so
#12 0x000000000040bd85 in main ()
删除 Ruxit 后它又可以正常工作了。