Tuurlijk / TYPO3.Homestead

One-stop Neos and TYPO3 development and review environment. Effortlessly test one site against multiple PHP versions and hhvm.
99 stars 17 forks source link

FPM initialization failed #18

Closed zoosky closed 9 years ago

zoosky commented 9 years ago
 `vagrant up` or `vagrant provision` fail on Mac 10.10.3 with Command Line Tools 6.3 installed.

    TASK: [php-fpm | Check php-fpm syntax of configuration files] ***************** 
    failed: [default] => {"changed": true, "cmd": "php5-fpm -t", "delta": "0:00:00.024240", "end": "2015-05-27 16:47:22.639066", "rc": 78, "start": "2015-05-27 16:47:22.614826", "stdout_lines": [], "warnings": []}
    stderr: [27-May-2015 16:47:22] ERROR: [/etc/php5/fpm/php-fpm.conf:4] unknown entry 'request_terminate_timeout'
    [27-May-2015 16:47:22] ERROR: failed to load configuration file '/etc/php5/fpm/php-fpm.conf'
    [27-May-2015 16:47:22] ERROR: FPM initialization failed

    FATAL: all hosts have already failed -- aborting

  PLAY RECAP ******************************************************************** 
             to retry, use: --limit @/Users/andreas/site.retry

  default                    : ok=42   changed=13   unreachable=0    failed=1   

  Ansible failed to complete successfully. Any error output should be
  visible above. Please fix these errors and try again.

The prequisite ansible plugins installed also

  ~/Documents/Artooa GmbH/Projekte/madeleinejaccard.com/gitrepo/TYPO3.Homestead (514) : sudo ansible-galaxy install -r requirements.yml --force
  - downloading role 'php-fpm', owned by nbz4live
  - downloading role from https://github.com/NBZ4live/ansible-php-fpm/archive/0.2.9.tar.gz
  - extracting php-fpm to roles/php-fpm
  - php-fpm was installed successfully
  - downloading role 'nginx', owned by jdauphant
  - downloading role from https://github.com/jdauphant/ansible-role-nginx/archive/v1.5.1.tar.gz
  - extracting nginx to roles/nginx
  - nginx was installed successfully
  - downloading role 'composer', owned by tersmitten
  - downloading role from https://github.com/Oefenweb/ansible-composer/archive/v1.2.0.tar.gz
  - extracting composer to roles/composer
  - composer was installed successfully
  - downloading role 'nodejs', owned by laggyluke
  - downloading role from https://github.com/laggyluke/ansible-role-nodejs/archive/v0.4.0.tar.gz
  - extracting nodejs to roles/nodejs
  - nodejs was installed successfully
  - downloading role 'memcached', owned by f500
  - downloading role from https://github.com/f500/ansible-memcached/archive/v0.9.2.tar.gz
  - extracting memcached to roles/memcached
  - memcached was installed successfully

Do you have an suggestion?

patrickbroens commented 9 years ago

Same error here

Tuurlijk commented 9 years ago

Should be fixed with

https://github.com/Tuurlijk/TYPO3.Homestead/commit/9ff1823e3670090c42e92a68676a0e7408ac7a76

I thought this was needed. Maybe it is needed by the php versions brewed using phpbrew? Maybe we need a separate config array for those versions?

zoosky commented 9 years ago

Thanks for the change. I pulled it and tried again. Unfortunately, while vagrant provision:

TASK: [php-fpm | Check php-fpm syntax of configuration files] ***************** 
failed: [default] => {"changed": true, "cmd": "php5-fpm -t", "delta": "0:00:00.026774", "end": "2015-05-29 10:28:29.089172", "rc": 78, "start": "2015-05-29 10:28:29.062398", "stdout_lines": [], "warnings": []}
stderr: [29-May-2015 10:28:29] ERROR: [/etc/php5/fpm/php-fpm.conf:4] unknown entry 'request_terminate_timeout'
[29-May-2015 10:28:29] ERROR: failed to load configuration file '/etc/php5/fpm/php-fpm.conf'
[29-May-2015 10:28:29] ERROR: FPM initialization failed

FATAL: all hosts have already failed -- aborting

PLAY RECAP ******************************************************************** 
           to retry, use: --limit @/Users/andreas/site.retry

default                    : ok=42   changed=13   unreachable=0    failed=1   

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
zoosky commented 9 years ago

After a vagrant destroy and a vagrant up the php-fpm error was gone. Provisioning alone seems not enough.