varnishd gives 'Cannot create working directory' error

Damien Wetzel dwetzel at nerim.net
Mon Oct 22 09:53:09 CEST 2007


bennett,
i had the same issue a week ago.
Did you check that you have not many instances of varnishd ?
I was using a varnishd from a compile without the --prefix option,
when i thought i was using the other compiled with --prefix
/opt/varnish
try removing all varnish* and recompile all the package.
Damien,


Bennett Haselton writes:
 > Re-sending this to the whole list...
 > 
 > At 03:15 AM 10/21/2007 -0700, =?utf-8?Q?Denis_Br=C3=A6khus?= wrote:
 > >At 11:14 AM 10/21/2007 +0200, =?utf-8?Q?Denis_Br=C3=A6khus?= wrote:
 > >>----- "Bennett Haselton" <bennett at peacefire.org> wrote:
 > >> > Denis, thanks.  How do I determine which user varnish is run under?
 > >> > >"chown varnish:varnish /var/varnish"
 > >> > I tried that command but I got the error "chown: `varnish:varnish':
 > >> > invalid
 > >> > user".
 > >>
 > >>Did you try starting varnish again? If it throws the same error, try :
 > >
 > >Yes, I still get the error:
 > >Starting varnishd: Cannot create working directory 
 > >'NONE/var/varnish/sls-ce3p12'
 > >: No such file or directory
 > >
 > >>"chmod 777 /var/varnish"
 > >>and then start varnish.
 > >
 > >Here I run into the same problem -- I did
 > >chmod 777 /var/varnish
 > >but then when I try to run
 > >/etc/rc.d/init.d/varnishd start
 > >I still get the error:
 > >
 > >Starting varnishd: Cannot create working directory 
 > >'NONE/var/varnish/sls-ce3p12': No such file or directory
 > >
 > >I think that what's obviously happening, is that somewhere in the code is 
 > >some option where you can specify something to go in front of the root 
 > >directory /var/varnish , and some configuration setting somewhere is 
 > >saying "NONE", and the program is taking that literally and putting "NONE" 
 > >in front, so it can't find the directory.  But I have no idea where that's 
 > >happening.
 > >
 > >Thanks for your help so far though!
 > >
 > >>Then :
 > >>
 > >>"ps axf | grep varnish" and see which user it runs as. Then :
 > >>
 > >>"chmod 640 /var/varnish ; chown USER:USER /var/varnish" (substitute USER 
 > >>with the user you got when checking ps).
 > >>
 > >>Regards
 > >>--
 > >>Denis
 > 
 > _______________________________________________
 > varnish-misc mailing list
 > varnish-misc at projects.linpro.no
 > http://projects.linpro.no/mailman/listinfo/varnish-misc



More information about the varnish-misc mailing list