Could not load VMOD cookie

varnish-4.1.2 revision 0d7404e에서 테스트하였습니다.
File name: libvmod_cookie.so

1 문제상황[편집]

[root@zetawiki ~]# varnishd -C -f /etc/varnish/sticky.vcl 
Error:
Message from VCC-compiler:
Could not load VMOD cookie
	File name: libvmod_cookie.so
	dlerror: /usr/lib64/varnish/vmods/libvmod_cookie.so: cannot open shared object file: No such file or directory
('/etc/varnish/20160527-sticky.vcl' Line 17 Pos 8)
import cookie;

-------######--

Running VCC-compiler failed, exited with 2
VCL compilation failed
→ VMOD cookie 모듈이 없어서 import cookie; 수행불가

2 확인[편집]

[root@zetawiki ~]# ll /usr/lib64/varnish/vmods
total 52
-rwxr-xr-x 1 root root 27552 Mar  5 00:22 libvmod_directors.so
-rwxr-xr-x 1 root root 24472 Mar  5 00:22 libvmod_std.so
libvmod_cookie.so 파일이 없다...
[root@zetawiki ~]# find / -name libvmod*
/usr/lib64/varnish/vmods/libvmod_directors.so
/usr/lib64/varnish/vmods/libvmod_std.so
libvmod_cookie.so 파일은 어디에도 없다...

3 조치[편집]

4 확인 2[편집]

[root@zetawiki ~]# ll /usr/lib64/varnish/vmods | grep cookie.so
-rwxr-xr-x 1 root root 46365 May 27 11:03 libvmod_cookie.so
[root@zetawiki ~]# varnishd -C -f /etc/varnish/sticky.vcl 
... (생략)
	.purge_func = VGC_function_vcl_purge,
	.recv_func = VGC_function_vcl_recv,
	.synth_func = VGC_function_vcl_synth,
};
→ 오류가 사라졌음

5 같이 보기[편집]

6 참고[편집]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}