Hi danb35, thanks for the great script. I fiddled around with it for the past few days and i really like it.
I am using FreeNAS 11.1U6 and unfortunately I ran into the same problem as ilkor.
When opening the link to nextcloud in the browser, I can create an admin account and enter some information regarding the db and data location.
After pressing 'Finish setup' the following message shows up
After successfully issuing the LE certificate, it seems the whole occ part isn't working properly and generates error messages.
Maybe you have an idea what I could have done wrong ? Any help would be appreciated.
I am using FreeNAS 11.1U6 and unfortunately I ran into the same problem as ilkor.
When opening the link to nextcloud in the browser, I can create an admin account and enter some information regarding the db and data location.
After pressing 'Finish setup' the following message shows up
Code:
Service Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
After successfully issuing the LE certificate, it seems the whole occ part isn't working properly and generates error messages.
Code:
echo "Installation and configuration of Nextcloud" # CLI installation and configuration of Nextcloud echo "1" iocage exec ${JAIL_NAME} touch /var/log/nextcloud.log echo "2" iocage exec ${JAIL_NAME} chown www /var/log/nextcloud.log echo "3" iocage exec ${JAIL_NAME} su -m www -c "php /usr/local/www/apache24/data/nextcloud/occ maintenance:install --database=\"mysql\" --database-name=\"nextcloud\" --database-user=\"nextcloud\" --database-pass=\"${DB_PASSWORD}\" --database-host=\"localhost:/tmp/mysql.sock\" --admin-user=\"admin\" --admin-pass=\"${ADMIN_PASSWORD}\" --data-dir=\"/mnt/files\"" echo "4" iocage exec ${JAIL_NAME} su -m www -c "php /usr/local/www/apache24/data/nextcloud/occ config:system:set logtimezone --value=\"${TIME_ZONE}\"" echo "5" iocage exec ${JAIL_NAME} su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set log_type --value="file"' echo "6" iocage exec ${JAIL_NAME} su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set logfile --value="/var/log/nextcloud.log"' echo "7" iocage exec ${JAIL_NAME} su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set loglevel --value="2"' echo "8" iocage exec ${JAIL_NAME} su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set logrotate_size --value="104847600"' echo "9" iocage exec ${JAIL_NAME} su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set memcache.local --value="\OC\Memcache\APCu"' echo "10" iocage exec ${JAIL_NAME} su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set redis host --value="/tmp/redis.sock"' echo "11" iocage exec ${JAIL_NAME} su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set redis port --value=0 --type=integer' echo "12" iocage exec ${JAIL_NAME} su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set memcache.locking --value="\OC\Memcache\Redis"' echo "13" iocage exec ${JAIL_NAME} su -m www -c "php /usr/local/www/apache24/data/nextcloud/occ config:system:set overwrite.cli.url --value=\"https://${HOST_NAME}/\"" echo "14" iocage exec ${JAIL_NAME} su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ config:system:set htaccess.RewriteBase --value="/"' echo "15" iocage exec ${JAIL_NAME} su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ maintenance:update:htaccess' echo "16" iocage exec ${JAIL_NAME} su -m www -c "php /usr/local/www/apache24/data/nextcloud/occ config:system:set trusted_domains 1 --value=\"${HOST_NAME}\"" echo "17" iocage exec ${JAIL_NAME} su -m www -c "php /usr/local/www/apache24/data/nextcloud/occ config:system:set trusted_domains 2 --value=\"${JAIL_IP}\"" echo "18" iocage exec ${JAIL_NAME} su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ app:enable encryption' echo "19" iocage exec ${JAIL_NAME} su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ encryption:enable' echo "20" iocage exec ${JAIL_NAME} su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ encryption:disable' echo "21" iocage exec ${JAIL_NAME} su -m www -c 'php /usr/local/www/apache24/data/nextcloud/occ background:cron' echo "22" iocage exec ${JAIL_NAME} crontab -u www /mnt/configs/www-crontab
Code:
Installation and configuration of Nextcloud 1 2 3 4 Nextcloud is not installed - only a limited number of commands are available There are no commands defined in the "config:system" namespace. True 5 Nextcloud is not installed - only a limited number of commands are available There are no commands defined in the "config:system" namespace. True 6 Nextcloud is not installed - only a limited number of commands are available There are no commands defined in the "config:system" namespace. True 7 Nextcloud is not installed - only a limited number of commands are available There are no commands defined in the "config:system" namespace. True 8 Nextcloud is not installed - only a limited number of commands are available There are no commands defined in the "config:system" namespace. True 9 Nextcloud is not installed - only a limited number of commands are available There are no commands defined in the "config:system" namespace. True 10 Nextcloud is not installed - only a limited number of commands are available There are no commands defined in the "config:system" namespace. True 11 Nextcloud is not installed - only a limited number of commands are available There are no commands defined in the "config:system" namespace. True 12 Nextcloud is not installed - only a limited number of commands are available There are no commands defined in the "config:system" namespace. True 13 Nextcloud is not installed - only a limited number of commands are available There are no commands defined in the "config:system" namespace. True 14 Nextcloud is not installed - only a limited number of commands are available There are no commands defined in the "config:system" namespace. True 15 Nextcloud is not installed - only a limited number of commands are available There are no commands defined in the "maintenance:update" namespace. Did you mean this? maintenance True 16 Nextcloud is not installed - only a limited number of commands are available There are no commands defined in the "config:system" namespace. True 17 Nextcloud is not installed - only a limited number of commands are available There are no commands defined in the "config:system" namespace. True 18 Nextcloud is not installed - only a limited number of commands are available Command "app:enable" is not defined. Did you mean this? app:check-code True 19 Nextcloud is not installed - only a limited number of commands are available There are no commands defined in the "encryption" namespace. True 20 Nextcloud is not installed - only a limited number of commands are available There are no commands defined in the "encryption" namespace. True 21 Nextcloud is not installed - only a limited number of commands are available There are no commands defined in the "background" namespace. True 22
Maybe you have an idea what I could have done wrong ? Any help would be appreciated.