Open miquelbonastredreivip opened 4 years ago
Thanks for this report, @miquelbonastredreivip.
There is fix proposed for this at #215. However, that itself is linked back to #214. And that is dependent on https://github.com/saltstack-formulas/openvpn-formula/pull/132! So the solution is in the pipeline but may take a little time to achieve.
Thanks for the feedback. In my case, I'm not in a hurry to migrate from 18.04/php7.2 to 20.04/php7.4.
Miquel
I'm having the same issue with both fpm & cli on Ubuntu 20.04 using PHP 7.4. Everything above v1.0 was broken. I tried walking through the code, but couldn't find the error in any of the sls files, how it pulled the version number to use from the pillar seemed obvious and correct, but I'm no jinja expert.
I was able to workaround it by manually specifying the paths:
version: '7.4'
lookup:
fpm:
service: php7.4-fpm
pools: /etc/php/7.4/fpm/pool.d/
ini: /etc/php/7.4/fpm/php.ini
conf: /etc/php/7.4/fpm/php-fpm.conf
defaults:
include: /etc/php/7.4/fpm/pool.d/*.conf
global:
pid: /var/run/php7.4-fpm.pid
error_log: /var/log/php7.4-fpm.log
cli:
ini: /etc/php/7.4/cli/php.ini
I have the same issue with php-fpm. I don't have any idea where it get's the 7.2 from. Any idea when this is going to bubble to the front? I'm glad to see the workaround above.
Your setup
Formula commit hash / release tag
I'm using tag v1.3.1 (80f9c94a320757b1e5003276ac4f5f480ab6efd1)
Also fails in master (efcd71f14bd55de977f4b3aafad84af1c023e88e)
Versions reports (master & minion)
(I'm using marterless deployment in Vagrant)
Pillar / config used
You can find example configuration here:
https://github.com/miquelbonastredreivip/php-formula-bugreport-20201026
Pillar info here:
https://raw.githubusercontent.com/miquelbonastredreivip/php-formula-bugreport-20201026/master/salt/pillar/php.sls
Bug details
Describe the bug
In Ubuntu 20.04 LTS, php.cli.ini fails when trying to modify php.ini file, with the following error:
Steps to reproduce the bug
Expected behaviour
salt and php-formula should have modified file "/etc/php/7.4/cli/php.ini"
Attempts to fix the bug
It works in Ubuntu 18.04 LTS, so I'm still using this version.
Additional context