WordPress / meta-environment

A collection of scripts that provision the official WordPress.org websites into a Varying Vagrant Vagrants installation.
190 stars 69 forks source link

Error: Nginx Log Not Created Halts Provisioning #115

Closed tomjn closed 6 years ago

tomjn commented 6 years ago

The meta environments specify custom nginx log locations, but don't always create the files.

This causes Nginx to fail tests and halt provisioning prematurely

    default: nginx: [emerg] open() "/srv/www/wordpress-meta-environment/jobs.wordpressnet.test/logs/nginx-access.log" failed (2: No such file or directory)
    default: nginx: configuration file /etc/nginx/nginx.conf test failed
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
tomjn commented 6 years ago

on further testing it appears this is not resolved, setting the jobs site to false in the config file and provisioning, the error still occurs

tomjn commented 6 years ago

If any of the provison settings are false nginx fails to load the configs

However, setting them all to true, and reprovisioning fixes this