cd /tmp git clone --recursive https://github.com/iocage/iocage cp -R iocage/iocage/lib/ /usr/local/lib/python3.6/site-packages/iocage/lib
System config value memcache.locking set to string \OC\Memcache\Redis
An unhandled exception has been thrown:
RedisException: Connection refused in /usr/local/www/apache24/data/nextcloud/lib/private/RedisFactory.php:84
Stack trace:
#0 /usr/local/www/apache24/data/nextcloud/lib/private/RedisFactory.php(84): Redis->connect('127.0.0.1', 6379, 0)
#1 /usr/local/www/apache24/data/nextcloud/lib/private/RedisFactory.php(100): OC\RedisFactory->create()
#2 /usr/local/www/apache24/data/nextcloud/lib/private/Memcache/Redis.php(42): OC\RedisFactory->getInstance()
#3 /usr/local/www/apache24/data/nextcloud/lib/private/Memcache/Factory.php(134): OC\Memcache\Redis->__construct('7034c4413b9c934...')
#4 /usr/local/www/apache24/data/nextcloud/lib/private/Server.php(854): OC\Memcache\Factory->createLocking('lock')
#5 /usr/local/www/apache24/data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#6 /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('OCP\\Lock\\ILocki...')
#7 /usr/local/www/apache24/data/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OCP\\Lock\\ILocki...')
#8 /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(164): OC\ServerContainer->query('OCP\\Lock\\ILocki...')
#9 /usr/local/www/apache24/data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(109): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#10 /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('LockingProvider')
#11 /usr/local/www/apache24/data/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('LockingProvider')
#12 /usr/local/www/apache24/data/nextcloud/lib/private/Server.php(1765): OC\ServerContainer->query('LockingProvider')
#13 /usr/local/www/apache24/data/nextcloud/lib/private/Files/View.php(114): OC\Server->getLockingProvider()
#14 /usr/local/www/apache24/data/nextcloud/lib/private/Server.php(193): OC\Files\View->__construct()
#15 /usr/local/www/apache24/data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#16 /usr/local/www/apache24/data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('EncryptionManag...')
#17 /usr/local/www/apache24/data/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('EncryptionManag...')
#18 /usr/local/www/apache24/data/nextcloud/lib/private/Server.php(1229): OC\ServerContainer->query('EncryptionManag...')
#19 /usr/local/www/apache24/data/nextcloud/lib/base.php(866): OC\Server->getEncryptionManager()
#20 /usr/local/www/apache24/data/nextcloud/lib/base.php(738): OC::registerEncryptionWrapper()
#21 /usr/local/www/apache24/data/nextcloud/lib/base.php(1081): OC::init()
#22 /usr/local/www/apache24/data/nextcloud/console.php(46): require_once('/usr/local/www/...')
#23 /usr/local/www/apache24/data/nextcloud/occ(11): require_once('/usr/local/www/...')
#24 {main}True
This looks like it's trying to connect to the IP/port rather than to the socket file. The next two commands change the configuration so it wouldn't do that, but I haven't seen it error out like this before. Does the script continue after this, or does it die at this point?#0 /usr/local/www/apache24/data/nextcloud/lib/private/RedisFactory.php(84): Redis->connect('127.0.0.1', 6379, 0)
I get multiple errors of this nature from the #CLI installation and Configuration of Nextcloud section after the first redis command and just posted the first one. The script runs to the end.This looks like it's trying to connect to the IP/port rather than to the socket file. The next two commands change the configuration so it wouldn't do that, but I haven't seen it error out like this before. Does the script continue after this, or does it die at this point?
When connecting from outside of my network (from internet) to my FQDN (OR my wan IP) first I get warning the certificate is not walid (at creation time I selected the –test variant) and then I get an error
Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
cp -R iocage/iocage/lib/ /usr/local/lib/python3.6/site-packages/iocage/lib
./nextcloud-jail.sh
/root/freenas-iocage-nextcloud/nextcloud-config: http://php.net/manual/en/timezones.php: not found
Configuration error: Either STANDALONE_CERT or DNS_CERT
must be set to 1.
2. Can be changed but then you have to change them in the script to match.Ok, I'm a bit of a noob when it comes to issuing command line statements and could use a little clarification on the installation process.
Sorry for the simple questions, but this is a bit new to me.
- When upgrading iocage, I get a response for the first two commands but not the last one.
Code:cp -R iocage/iocage/lib/ /usr/local/lib/python3.6/site-packages/iocage/lib- With regard to the prerequisites, do the names for the two new datasets need to be exactly as defined in the readme.md. Or can they be changed during the installation, if so, what lines?
- During the installation process, how do I DL the repository into a convenient directory? How do I create a new file for the config?
Thanks!
mkdir /git
cd /git
pkg install git
git clone https://github.com/danb35/freenas-iocage-nextcloud.git
Normal.When upgrading iocage, I get a response for the first two commands but not the last one.
You can change them; if you do, you'll need to specify DB_PATH and FILES_PATH in your config file to point to the respective paths.With regard to the prerequisites, do the names for the two new datasets need to be exactly as defined in the readme.md. Or can they be changed during the installation, if so, what lines?
Use theDuring the installation process, how do I DL the repository into a convenient directory?
cd
command to change to the desired directory. For example, if your pool is called tank, and you want to put the script right into the root of your pool, you'd do cd /mnt/tank
followed by git clone https://github.com/danb35/freenas-iocage-nextcloud
.Use any text editor you like; I prefer nano.How do I create a new file for the config?
nano nextcloud-config
.You have a line wrap in your config file, putting the URL to the PHP documentation on its own line. Delete that./root/freenas-iocage-nextcloud/nextcloud-config: http://php.net/manual/en/timezones.php: not found
Exactly what it says--one or the other of those must be set to 1.Configuration error: Either STANDALONE_CERT or DNS_CERT must be set to 1.
I hope you're just putting in MY_FQDN for the sake of posting here on the forum--in actual use, you must use a fully-qualified domain name that you own (or at least control).HOST_NAME="MY_FQDN"
Also, you'll want to pull a fresh copy of the script (change into the directory where you downloaded it and rungit pull
). I made a change that should fix the Redis errors some folks are reporting.
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"'
sudo -u www-data php occ maintenance:mode --on
Apparently because when you set memcache.locking to Redis, it tries to make that connection immediately. If it doesn't know where to connect (because you haven't set it yet), it gives fatal errors. What I don't know is why it used to work, but now doesn't. Maybe it was a change with Nextcloud 13.0.2.Can you explain why set redis host --value="/tmp/redis.sock"' and set redis port --value=0 --type=integer' need to be before the
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"'
The difference between www and www-data is a matter of the user that the Apache process is running as. The reason I don't use sudo in my script is because that would be just one more package I'd have to install in the jail.but in freenas we use su -m www -c php ....
You can change them; if you do, you'll need to specify DB_PATH and FILES_PATH in your config file to point to the respective paths.
There are no zvols involved. The paths will be the filesystem paths to wherever the respective things are. So, if your pool is Vol_1, and you have a dataset in Vol_1 called NCFiles, the path would be /mnt/Vol_1/NCFiles.With regard to the respective paths, would it be VOLUME/ZVOL/DATASET ? I.E. "Vol_1/Vol_1/NCFiles"
JAIL_IP="192.168.1.200" DEFAULT_GW_IP="192.168.1.1" INTERFACE="igb0" POOL_PATH="/mnt/Vol_1" DB_PATH= "/mnt/Vol_1/NCdb" FILES_PATH="/mnt/Vol_1/NCFiles" JAIL_NAME="nextcloud" TIME_ZONE="America/Los_Angeles" # See http://php.net/manual/en/timezones.php HOST_NAME="MY_FQDN" STANDALONE_CERT=1 DNS_CERT=0 TEST_CERT="--test"
/tmp/freenas-iocage-nextcloud/nextcloud-config: /mnt/Vol_1/NCdb: Permission denied ls: /mnt/Vol_1/db: No such file or directory jail 'nextcloud' not found!
/tmp/freenas-iocage-nextcloud/nextcloud-config: /mnt/Vol_1/NCdb: Permission denied /mnt/Vol_1/db is not empty! DB_PATH must be empty, otherwise this script will break your existing database.
You have a space here that shouldn't be there.DB_PATH= "/mnt/Vol_1/NCdb"
Yeah, error-checking could still stand to be improved.The script runs through and states that the installation is complete,
How can I help?Yeah, error-checking could still stand to be improved.