Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

storage file default dir is not created, service start fails #11

Open
cybacolt opened this issue Jan 30, 2014 · 2 comments
Open

storage file default dir is not created, service start fails #11

cybacolt opened this issue Jan 30, 2014 · 2 comments

Comments

@cybacolt
Copy link

$storage_file = '/var/lib/varnish/$INSTANCE/varnish_storage.bin' resolves to:
/var/lib/varnish/default/varnish_storage.bin

when 'puppet agent' runs, it cant restart the service because the 'default' directory does not exist.

creating and chown'ing the 'default' directory to varnish:varnish allows the service to start properly.

i'm running Puppet 2.7, current puppet-varnish, and Ubuntu 12.04 on the host in question.

shouldnt this directory should be created by your module, if it doesnt exist?

@javierbertoli
Copy link
Member

Hi @cybacolt,

Varnish can run with many different types of storages (even with storages in RAM partitions) and AFAIK Debian and Ubuntu, by default, don't provide this directory and use a RAM storage instead.

Currently this module is not checking the existence of the $storage_file's directory (which would be a nice thing to add :) ).

I'll keep this issue opened as a reminder to add this feature.

Please, feel free to send a patch if you want to.

Regards, Javier

@ghost ghost assigned javierbertoli Jan 30, 2014
@cybacolt
Copy link
Author

yup, i think the default varnish install was using malloc until i used the modules varnish template, which is sets it to file and breaks.
.
i'll give patching it a go and submit if i get it going.

thanks!

@javierbertoli javierbertoli removed their assignment Feb 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants