TASK [php/build-from-source : Remove older PHPs] ************************************************************************************************************
skipping: [localhost] => (item=Removing php-8.2.35) => {"ansible_loop_var": "item", "changed": false, "item": {"atime": 1792598776.2525148, "ctime": 1792731835.1734939, "dev": 64513, "gid": 65534, "gr_name": "nobody", "inode": 23833533, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mode": "0755", "mtime": 1792731835.1734939, "nlink": 20, "path": "/var/cache/httpd/php-8.2.35", "pw_name": "nobody", "rgrp": true, "roth": true, "rusr": true, "size": 4096, "uid": 65534, "wgrp": false, "woth": false, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item=Removing php-8.3.36) => {"ansible_loop_var": "item", "changed": false, "item": {"atime": 1792599205.7092488, "ctime": 1792645699.5983834, "dev": 64513, "gid": 65534, "gr_name": "nobody", "inode": 28660909, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mode": "0775", "mtime": 1792645699.5983834, "nlink": 21, "path": "/var/cache/httpd/php-8.3.36", "pw_name": "nobody", "rgrp": true, "roth": true, "rusr": true, "size": 4096, "uid": 65534, "wgrp": true, "woth": false, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}, "skip_reason": "Conditional result was False"}
skipping: [localhost] => (item=Removing php-8.5.12) => {"ansible_loop_var": "item", "changed": false, "item": {"atime": 1792599635.2179682, "ctime": 1792646079.5901532, "dev": 64513, "gid": 65534, "gr_name": "nobody", "inode": 28790509, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mode": "0775", "mtime": 1792646079.5901532, "nlink": 19, "path": "/var/cache/httpd/php-8.5.12", "pw_name": "nobody", "rgrp": true, "roth": true, "rusr": true, "size": 4096, "uid": 65534, "wgrp": true, "woth": false, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}, "skip_reason": "Conditional result was False"}
TASK [php/build-from-source : Remove PHP configuration directory] *******************************************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}
TASK [php/build-from-source : Include apxs] *****************************************************************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}
TASK [php/build-from-source : Reduce max concurrent jobs] ***************************************************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}
TASK [Attach temporary swap] ********************************************************************************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}
TASK [php/build-from-source : Flag swap handler] ************************************************************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}
TASK [php/build-from-source : set_fact] *********************************************************************************************************************
ok: [localhost] => {"ansible_facts": {"force_module_rebuild": true}, "changed": false}
TASK [php/build-from-source : include_tasks] ****************************************************************************************************************
included: /usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/build-php.yml for localhost
TASK [php/build-from-source : stat] *************************************************************************************************************************
ok: [localhost] => {"changed": false, "stat": {"atime": 1792598190.5522385, "attr_flags": "e", "attributes": ["extents"], "block_size": 4096, "blocks": 8, "charset": "binary", "ctime": 1792690438.5120149, "dev": 64513, "device_type": 0, "executable": true, "exists": true, "gid": 65534, "gr_name": "nobody", "inode": 16875716, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/directory", "mode": "0755", "mtime": 1792690438.5120149, "nlink": 19, "path": "/var/cache/httpd/php-8.4.27", "pw_name": "nobody", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 4096, "uid": 65534, "version": "1615392291", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": true, "xoth": true, "xusr": true}}
TASK [php/build-from-source : Download PHP 8.4.27] **********************************************************************************************************
skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}
TASK [php/build-from-source : Apply per-version patches] ****************************************************************************************************
included: /usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/apply-patches.yml for localhost
TASK [php/build-from-source : Enumerate all patches] ********************************************************************************************************
fatal: [localhost]: FAILED! => {"msg": "Unexpected templating type error occurred on ({{ php_patch_candidates | selectattr('when', 'defined') | selectattr('when') | list | map(attribute='name') + php_patch_candidates | rejectattr('when', 'defined') | list | map(attribute='name') + (query('fileglob', __php_patch_dir ~ '/[0-9]*-PHP-' ~ __php_minor ~ '-*') + query('fileglob', __php_patch_dir ~ '/[0-9]*-PHP-' ~ version ~ '-*')) | map('basename') | list }}): unsupported operand type(s) for +: 'generator' and 'generator'"}
PLAY RECAP **************************************************************************************************************************************************
localhost : ok=262 changed=16 unreachable=0 failed=1 skipped=149 rescued=0 ignored=0
Thanks. I’ll look into this once time permits.
I’m still unable to reproduce on EL8 and EL10. PHP 8.4 is a system build (cpcmd scope:get php.version).
Here’s my readout from ansible --version:
ansible [core 2.16.16]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.12/site-packages/ansible
ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible
python version = 3.12.15 (main, Oct 1 2026, 00:00:00) [GCC 14.3.1 20251022 (Red Hat 14.3.1-4)] (/usr/bin/python3)
jinja version = 3.1.6
libyaml = True
Edit: let me check another machine that’s more pristine. Dev is EL8 but Ansible 2.12. EL8 distro default is 2.9. Might be a type coercion oddity in 2.9…
Edit 2x: yep, best reference I can find is ansible/ansible#78209 that coercion is discretion of maintainers. I’ve added a separate explicit cast that resolves this going forward.
Run upcp -b php/install; ought to be fixed now.
PHP = 8.4
Ansible = 2.9.27
It made it much farther this time. It applied patches to 8.1 and then died on 8.2
Still just running a upcp -sbf, there was a failure the other day on 8.5 and by the time I had a chance to run it again you released the update that does patches and its failed ever since.
TASK [php/install-pecl-module : Build and install imagick library.] *****************************************************************************************
changed: [localhost]
included: /usr/local/apnscp/resources/playbooks/roles/php/install-extensions/tasks/populate-module-ini.yml for localhost
included: /usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/build-php.yml for localhost
included: /usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/apply-patches.yml for localhost
TASK [php/build-from-source : Apply PHP 8.2.35 patches] *****************************************************************************************************
failed: [localhost] (item=Apply [) => {"ansible_loop_var": "patch", "changed": false, "msg": "Could not find or access '['\nSearched in:\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/files/[\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/[\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/files/[\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/[\n\t/usr/local/apnscp/resources/playbooks/roles/php/multiphp/files/[\n\t/usr/local/apnscp/resources/playbooks/roles/php/multiphp/[\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/files/[\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/[\n\t/usr/local/apnscp/resources/playbooks/files/[\n\t/usr/local/apnscp/resources/playbooks/[ on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option", "patch": "["}
failed: [localhost] (item=Apply ]) => {"ansible_loop_var": "patch", "changed": false, "msg": "Could not find or access ']'\nSearched in:\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/files/]\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/]\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/files/]\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/]\n\t/usr/local/apnscp/resources/playbooks/roles/php/multiphp/files/]\n\t/usr/local/apnscp/resources/playbooks/roles/php/multiphp/]\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/files/]\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/]\n\t/usr/local/apnscp/resources/playbooks/files/]\n\t/usr/local/apnscp/resources/playbooks/] on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option", "patch": "]"}
failed: [localhost] (item=Apply A) => {"ansible_loop_var": "patch", "changed": false, "msg": "Could not find or access 'A'\nSearched in:\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/files/A\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/A\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/files/A\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/A\n\t/usr/local/apnscp/resources/playbooks/roles/php/multiphp/files/A\n\t/usr/local/apnscp/resources/playbooks/roles/php/multiphp/A\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/files/A\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/A\n\t/usr/local/apnscp/resources/playbooks/files/A\n\t/usr/local/apnscp/resources/playbooks/A on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option", "patch": "A"}
failed: [localhost] (item=Apply b) => {"ansible_loop_var": "patch", "changed": false, "msg": "Could not find or access 'b'\nSearched in:\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/files/b\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/b\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/files/b\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/b\n\t/usr/local/apnscp/resources/playbooks/roles/php/multiphp/files/b\n\t/usr/local/apnscp/resources/playbooks/roles/php/multiphp/b\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/files/b\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/b\n\t/usr/local/apnscp/resources/playbooks/files/b\n\t/usr/local/apnscp/resources/playbooks/b on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option", "patch": "b"}
failed: [localhost] (item=Apply d) => {"ansible_loop_var": "patch", "changed": false, "msg": "Could not find or access 'd'\nSearched in:\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/files/d\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/d\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/files/d\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/d\n\t/usr/local/apnscp/resources/playbooks/roles/php/multiphp/files/d\n\t/usr/local/apnscp/resources/playbooks/roles/php/multiphp/d\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/files/d\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/d\n\t/usr/local/apnscp/resources/playbooks/files/d\n\t/usr/local/apnscp/resources/playbooks/d on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option", "patch": "d"}
failed: [localhost] (item=Apply e) => {"ansible_loop_var": "patch", "changed": false, "msg": "Could not find or access 'e'\nSearched in:\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/files/e\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/e\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/files/e\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/e\n\t/usr/local/apnscp/resources/playbooks/roles/php/multiphp/files/e\n\t/usr/local/apnscp/resources/playbooks/roles/php/multiphp/e\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/files/e\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/e\n\t/usr/local/apnscp/resources/playbooks/files/e\n\t/usr/local/apnscp/resources/playbooks/e on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option", "patch": "e"}
failed: [localhost] (item=Apply f) => {"ansible_loop_var": "patch", "changed": false, "msg": "Could not find or access 'f'\nSearched in:\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/files/f\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/f\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/files/f\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/f\n\t/usr/local/apnscp/resources/playbooks/roles/php/multiphp/files/f\n\t/usr/local/apnscp/resources/playbooks/roles/php/multiphp/f\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/files/f\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/f\n\t/usr/local/apnscp/resources/playbooks/files/f\n\t/usr/local/apnscp/resources/playbooks/f on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option", "patch": "f"}
failed: [localhost] (item=Apply i) => {"ansible_loop_var": "patch", "changed": false, "msg": "Could not find or access 'i'\nSearched in:\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/files/i\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/i\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/files/i\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/i\n\t/usr/local/apnscp/resources/playbooks/roles/php/multiphp/files/i\n\t/usr/local/apnscp/resources/playbooks/roles/php/multiphp/i\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/files/i\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/i\n\t/usr/local/apnscp/resources/playbooks/files/i\n\t/usr/local/apnscp/resources/playbooks/i on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option", "patch": "i"}
failed: [localhost] (item=Apply l) => {"ansible_loop_var": "patch", "changed": false, "msg": "Could not find or access 'l'\nSearched in:\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/files/l\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/l\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/files/l\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/l\n\t/usr/local/apnscp/resources/playbooks/roles/php/multiphp/files/l\n\t/usr/local/apnscp/resources/playbooks/roles/php/multiphp/l\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/files/l\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/l\n\t/usr/local/apnscp/resources/playbooks/files/l\n\t/usr/local/apnscp/resources/playbooks/l on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option", "patch": "l"}
failed: [localhost] (item=Apply n) => {"ansible_loop_var": "patch", "changed": false, "msg": "Could not find or access 'n'\nSearched in:\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/files/n\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/n\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/files/n\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/n\n\t/usr/local/apnscp/resources/playbooks/roles/php/multiphp/files/n\n\t/usr/local/apnscp/resources/playbooks/roles/php/multiphp/n\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/files/n\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/n\n\t/usr/local/apnscp/resources/playbooks/files/n\n\t/usr/local/apnscp/resources/playbooks/n on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option", "patch": "n"}
failed: [localhost] (item=Apply s) => {"ansible_loop_var": "patch", "changed": false, "msg": "Could not find or access 's'\nSearched in:\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/files/s\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/s\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/files/s\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/s\n\t/usr/local/apnscp/resources/playbooks/roles/php/multiphp/files/s\n\t/usr/local/apnscp/resources/playbooks/roles/php/multiphp/s\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/files/s\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/s\n\t/usr/local/apnscp/resources/playbooks/files/s\n\t/usr/local/apnscp/resources/playbooks/s on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option", "patch": "s"}
failed: [localhost] (item=Apply U) => {"ansible_loop_var": "patch", "changed": false, "msg": "Could not find or access 'U'\nSearched in:\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/files/U\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/U\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/files/U\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/U\n\t/usr/local/apnscp/resources/playbooks/roles/php/multiphp/files/U\n\t/usr/local/apnscp/resources/playbooks/roles/php/multiphp/U\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/files/U\n\t/usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/U\n\t/usr/local/apnscp/resources/playbooks/files/U\n\t/usr/local/apnscp/resources/playbooks/U on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option", "patch": "U"}
PLAY RECAP **************************************************************************************************************************************************
localhost : ok=1041 changed=70 unreachable=0 failed=1 skipped=552 rescued=0 ignored=0
I can open a new issue, but was just replying to this one since it’s where you listed the new patches functionality.
Fixed. ![]()
Confirmed, although the run failed because it tried to create an admin at the end, but all the PHP tasks completed which is what my concern was.
Thanks for being so attentive to this matter.
Trying to run this update on a headless server:
TASK [common/migrate : Locate migration files] *********************************
included: /usr/local/apnscp/resources/playbooks/migrations/2026_10_20_205611_php-cve-2026-10961x.yml for localhost
TASK [common/migrate : shell] **************************************************
fatal: [localhost]: FAILED! => changed=true
cmd: for i in /etc/php[5-8]*.d ; do echo -e '[session]\nsession.upload_progress.enabled=0' > $i/cve-2026-109618.ini ; done ; systemctl restart php-fpm
delta: '0:00:00.084720'
end: '2026-11-14 18:20:07.580876'
msg: non-zero return code
rc: 5
start: '2026-11-14 18:20:07.496156'
stderr: 'Failed to restart php-fpm.service: Unit php-fpm.service not found.'
stderr_lines: <omitted>
stdout: ''
stdout_lines: <omitted>
PLAY RECAP *********************************************************************
localhost : ok=6 changed=0 unreachable=0 failed=1 skipped=3 rescued=0 ignored=0
STDERR:
[/usr/local/apnscp/lib/Lararia/Database/Migrations/PlatformMigrator.php:212]
0. Lararia\Database\Migrations\PlatformMigrator->runMigration("2026_10_20_205611_php-cve-2026-10961x", "up", [step:true])
[/usr/local/apnscp/lib/Lararia/Database/Migrations/PlatformMigrator.php:129]
1. Lararia\Database\Migrations\PlatformMigrator->runUp("/usr/local/apnscp/resources/playbooks/migrations/2026_10_20_205611_php-cve-2026-10961x.yml", 59, false)
[/usr/local/apnscp/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php:165]
2. Illuminate\Database\Migrations\Migrator->runPending(["/usr/local/apnscp/resources/playbooks/migrations/2026_10_20_205611_php-cve-2026-10961x.yml", "/usr/local/apnscp/resources/playbooks/migrations/2026_10_22_082138_eol-php-update.yml"], [pretend:false, step:0, rollback:false, ff:false])
[/usr/local/apnscp/lib/Lararia/Database/Migrations/PlatformMigrator.php:93]
Give it a go on edge…
env UPDATE_POLICY=edge upcp
That will perform a one-off update on edge while successfully completing the necessary migration from 3.2.49.