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

EL7 / plain install: varnish fails on startup #136

Open
tobixen opened this issue Dec 24, 2016 · 1 comment
Open

EL7 / plain install: varnish fails on startup #136

tobixen opened this issue Dec 24, 2016 · 1 comment

Comments

@tobixen
Copy link
Contributor

tobixen commented Dec 24, 2016

On a relatively clean centos7-box, I tried to do an "include varnish". Varnish doesn't seem to like the tmpfs:

-- Unit varnish.service has begun starting up.
Dec 24 16:42:15 myhost varnishd[30052]: Cannot create working directory '/var/lib/varnish/myhost/': Permission denied
Dec 24 16:42:15 myhost systemd[1]: varnish.service: control process exited, code=exited status=1
Dec 24 16:42:15 myhost systemd[1]: Failed to start Varnish a high-perfomance HTTP accelerator.

I've tried:

  • to do a "chmod a+w" on /var/lib/varnish - no success
  • to mkdir the /var/lib/varnish/myhost. Still same error message.
  • unmounting the /var/lib/varnish tmpfs - success, varnish starts up.

Suggested workaround: make tmpfs false by default?

I'm not going to do more research on this, I'll just disable the tmpfs feature.

system information:

$ varnishd -V
varnishd (varnish-3.0.7 revision f544cd8)
$ sudo facter -p | grep version
(...)
kernelmajversion => 3.10
kernelversion => 3.10.0
puppetversion => 3.6.2
systemd_version => 219
varnish_version => 3.0.7

os => {"name"=>"CentOS", "family"=>"RedHat", "release"=>{"major"=>"7", "minor"=>"2", "full"=>"7.2.1511"}, "lsb"=>{"distcodename"=>"Core", "distid"=>"CentOS", "distdescription"=>"CentOS Linux release 7.2.1511 (Core) ", "release"=>":core-4.1-amd64:core-4.1-noarch", "distrelease"=>"7.2.1511", "majdistrelease"=>"7", "minordistrelease"=>"2"}}

Tried on the develop-branch of the varnish module, revision 39ca2f1

@tobixen
Copy link
Contributor Author

tobixen commented Dec 24, 2016

Perhaps version number 3.0 shouldn't be default anymore. I nudged it to 4.1, and then varnish started without problems, on tmpfs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant