matomo-org / matomo-dev-environment

Matomo Development Environment (Vagrant)
http://developer.matomo.org
GNU General Public License v3.0
33 stars 21 forks source link

Socket location not allowed with ubuntu cloud image #10

Open everflux opened 9 years ago

everflux commented 9 years ago

The socket for nginx/php5-fpm is currently targeted at

leads to a permission denied problem from dmesg

[12519.666697] init: php5-fpm main process (12528) terminated with status 78
[12519.666706] init: php5-fpm main process ended, respawning
[12519.749501] init: php5-fpm main process (12536) terminated with status 78
[12519.749509] init: php5-fpm respawning too fast, stopped

When starting manually

[14-Jun-2015 14:24:26] ERROR: unable to bind listening socket for address '/home/vagrant/www/piwik/tmp/fpm.socket': Operation not permitted (1)
[14-Jun-2015 14:24:26] ERROR: FPM initialization failed

This is caused by restrictions where the socket can be created on ubuntu.

Suggested fix is to use /var/run for the socket As a quick workaround: In nginx.pp change

$socket_path = "${docroot}/tmp/fpm.socket"

to

$socket_path = "/var/run/piwik-fpm.socket"