Ubuntu

Varnish 3.0.7 突然停止工作

  • November 19, 2015

在 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) ...

是安裝了 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 後,它再次工作。

引用自:https://serverfault.com/questions/736191