danb35 / freenas-iocage-nextcloud

Script to create an iocage jail on FreeNAS for the latest Nextcloud 28 release, including Caddy, MariaDB or PostgreSQL, and Let's Encrypt
GNU General Public License v3.0
258 stars 70 forks source link

Redis issue on reinstall #198

Closed tschettervictor closed 1 year ago

tschettervictor commented 1 year ago

Lines 482-484 don’t run on a reinstall of this script. The commands are below. When doing a reinstall there is a persistent 500 error.

When running these two commands manually from the jail, and restarting it, Nextcloud starts working.

# Add the www user to the redis group to allow it to access the socket

iocage exec "${JAIL_NAME}" pw usermod www -G redis

iocage exec "${JAIL_NAME}" chmod 777 /var/run/redis/redis.sock

danb35 commented 1 year ago

Fixed in #199