-
-
Notifications
You must be signed in to change notification settings - Fork 874
Description
Affected Puppet, Ruby, OS and module versions/distributions
- Puppet: 6.12.0
- Ruby:
- Distribution: Ubuntu 18.04.4
- Module version: 1.1.0
What are you seeing
The latest upgrade to this module may have broken the nginx service startup process when rebooting server. After a server reboot the nginx status reads as
nginx.service - nginx - high performance web server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2020-02-05 15:17:34 AEDT; 7min ago Docs: http://nginx.org/en/docs/ Process: 664 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=1/FAILURE)
Feb 05 15:17:33 jamfp02 systemd[1]: Starting nginx - high performance web server... Feb 05 15:17:34 jamfp02 nginx[664]: nginx: [emerg] mkdir() "/run/nginx/client_body_temp" failed (2: No such file or directory) Feb 05 15:17:34 jamfp02 systemd[1]: nginx.service: Control process exited, code=exited status=1 Feb 05 15:17:34 jamfp02 systemd[1]: nginx.service: Failed with result 'exit-code'. Feb 05 15:17:34 jamfp02 systemd[1]: Failed to start nginx - high performance web server.
When puppet runs it fixes things and this is the output.
Info: Using configured environment 'production' Info: Retrieving pluginfacts Info: Retrieving plugin Info: Retrieving locales Info: Loading facts Info: Caching catalog for jamfp02.svi.edu.au Info: Applying configuration version '1580876853' Info: /Stage[main]/Ntp::Service/Service[ntp]: Unscheduling refresh on Service[ntp] Notice: /Stage[main]/Nginx::Config/File[/run/nginx]/ensure: created (corrective) Notice: /Stage[main]/Nginx::Config/File[/run/nginx/client_body_temp]/ensure: created (corrective) Notice: /Stage[main]/Nginx::Config/File[/run/nginx/proxy_temp]/ensure: created (corrective) Info: Class[Nginx::Config]: Scheduling refresh of Class[Nginx::Service] Info: Class[Nginx::Service]: Scheduling refresh of Service[nginx] Notice: /Stage[main]/Nginx::Service/Service[nginx]/ensure: ensure changed 'stopped' to 'running' (corrective) Info: /Stage[main]/Nginx::Service/Service[nginx]: Unscheduling refresh on Service[nginx]
What behaviour did you expect instead
I expected the nginx process to start at startup before a puppet run corrects things.