varnish daemon as non root - vmods libraries directory
Remo Furlanetto
remofurlanetto at gmail.com
Fri Jun 9 22:10:31 CEST 2017
Hi,
Is there one way to configure varnish to read the vmods libraries in a
different directory?
I am asking this because of the permissions I have compiled and installed
the varnish in a different path using other user (non-root).
Everything works when I don't use any import in my VCL file.
but when I try to use for example "import std;", I receive an error
because the process is trying to read a system directory.
[docker at localhost varnish]$ /home/docker/varnish/sbin/varnishd -a :29800 -f
/home/docker/varnish/etc/default.vcl -T 127.0.0.1:6082 -p
thread_pool_min=50 -p thread_pool_max=1000 -S /home/docker/varnish/etc/secret
-s malloc,256M -n /home/docker/varnish/tmp -P /home/docker/varnish/run/
varnish.pid
Error:
Message from VCC-compiler:
Could not load VMOD std
* File name: libvmod_std.so*
* dlerror: /usr/local/lib/varnish/vmods/libvmod_std.so: cannot open
shared object file: No such file or directory*
('/home/docker/varnish/etc/default.vcl' Line 3 Pos 8)
import std;
-------###-
Running VCC-compiler failed, exited with 2
VCL compilation failed
I am not sure, but I believe that could be possible to configure other
folder because when the installation has finished, I saw that the libraries
is under a folder "lib"
[docker at localhost varnish]$ ls -ltr /home/docker/varnish
total 40
drwxrwxr-x 3 docker docker 4096 Jun 9 11:24 include
drwxrwxr-x 2 docker docker 4096 Jun 9 11:24 bin
drwxr-xr-x 3 docker docker 4096 Jun 9 11:24 var
drwxrwxr-x 6 docker docker 4096 Jun 9 11:24 share
drwxrwxr-x 4 docker docker 4096 Jun 9 11:24 lib
drwxrwxr-x 2 docker docker 4096 Jun 9 11:56 sysconfig
drwxrwxr-x 2 docker docker 4096 Jun 9 12:29 etc
drwxrwxr-x 2 docker docker 4096 Jun 9 12:29 run
drwxrwxr-x 2 docker docker 4096 Jun 9 12:33 sbin
drwxrwxr-x 4 docker docker 4096 Jun 9 12:37 tmp
[docker at localhost lib]$ find /home/docker/varnish/lib/
/home/docker/varnish/lib/
/home/docker/varnish/lib/pkgconfig
/home/docker/varnish/lib/pkgconfig/varnishapi.pc
/home/docker/varnish/lib/libvarnishapi.so
/home/docker/varnish/lib/libvarnishapi.la
/home/docker/varnish/lib/libvarnishapi.so.1.0.6
/home/docker/varnish/lib/varnish
/home/docker/varnish/lib/varnish/vmods
/home/docker/varnish/lib/varnish/vmods/libvmod_directors.so
*/home/docker/varnish/lib/varnish/vmods/libvmod_std.so*
/home/docker/varnish/lib/varnish/vmods/libvmod_directors.la
/home/docker/varnish/lib/varnish/vmods/libvmod_std.la
/home/docker/varnish/lib/libvarnishapi.so.1
I appreciate if someone could help me.
Thank you very much.
--
*Remo M. Furlanetto*
*E-mail:* *remofurlanetto at gmail.com <remofurlanetto at gmail.com>*
*Telefone:* (11) 99910-0565
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20170609/a6c33f1a/attachment.html>
More information about the varnish-misc
mailing list