Problems with Z-Push and Nextcloud, likely after package updates today

If you edit the php8.0-fpm unit file (thanks to @rowie & @shuttermonster for pointing out that you can just supply the ReadWritePaths directive and not the whole unit file):

sudo systemctl edit php8.0-fpm

and add ReadWritePaths=/usr/local/lib/owncloud to it:

### Editing /etc/systemd/system/php8.0-fpm.service.d/override.conf
### Anything between here and the comment below will become the new contents of the file

[Service]
ReadWritePaths=/usr/local/lib/owncloud

### Lines below this comment will be discarded

### /lib/systemd/system/php8.0-fpm.service
# [Unit]
# Description=The PHP 8.0 FastCGI Process Manager
# Documentation=man:php-fpm8.0(8)
# After=network.target
#
# [Service]
# Type=notify
# ExecStart=/usr/sbin/php-fpm8.0 --nodaemonize --fpm-config /etc/php/8.0/fpm/php-fpm.conf
# ExecStartPost=-/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/8.0/fpm/pool.d/www.conf 80
# ExecStopPost=-/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/php/8.0/fpm/pool.d/www.conf 80
# ExecReload=/bin/kill -USR2 $MAINPID
# Restart=on-failure
# ProtectSystem=full
# PrivateDevices=true
# ProtectKernelModules=true
# ProtectKernelTunables=true
# ProtectControlGroups=true

then

cat /etc/systemd/system/php8.0-fpm.service.d/override.conf should output

[Service]
ReadWritePaths=/usr/local/lib/owncloud

followed by

sudo systemctl daemon-reload
sudo systemctl restart php8.0-fpm

and you should be good to go.

3 Likes