varnishd gives 'Cannot create working directory' error

Bennett Haselton bennett at peacefire.org
Mon Oct 22 05:07:45 CEST 2007


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




More information about the varnish-misc mailing list