Page MenuHomePhabricator

Why doesn't profile::mediawiki::nutcracker create /var/run/nutcracker/ ?
Closed, ResolvedPublic

Description

@Andrew ran into this in https://gerrit.wikimedia.org/r/#/c/operations/puppet/+/413490/ and I just ran into it on deployment-deploy02.deployment-prep.eqiad.wmflabs.
I found that the nutcracker binary would give up shortly after this:
bind(11, {sa_family=AF_UNIX, sun_path="/var/run/nutcracker/nutcracker.sock"}, 110) = -1 ENOENT (No such file or directory)
(another thing nutcracker appears to care about without erroring for, even with --verbose=11, is the file permissions)

Event Timeline

The .sock file is created via systemd-tmpfiles, which is only read during boot, the socket will be created with the next restart

FWIW this is also a shortcoming of our tmpfiles abstraction in puppet I think, namely we should be notifying in puppet systemd-tmpfiles --create when puppet changes/creates tmpfiles

herron triaged this task as Medium priority.Oct 2 2018, 5:30 PM

Change 527430 had a related patch set uploaded (by Giuseppe Lavagetto; owner: Giuseppe Lavagetto):
[operations/puppet@production] systemd::tmpfile: apply changes when we change the files.

https://gerrit.wikimedia.org/r/527430

Change 527430 merged by Giuseppe Lavagetto:
[operations/puppet@production] systemd::tmpfile: apply changes when we change the files.

https://gerrit.wikimedia.org/r/527430

jbond claimed this task.
jbond subscribed.

we no longer have this profile