Specifically, from the shell in the jail, what happens if you runmysql
? And what's the output ofcat ~/.my.cnf
?
What kind of error do you get when you try directly logging into mysql, rather than via nextcloud, with the password?
What about the output (from the FreeNAS shell, not inside the jail) ofiocage fstab -l nextcloud
?
iocage fstab -a ${JAIL_NAME} ${PORTS_PATH}/ports /usr/ports nullfs rw 0 0 iocage fstab -a ${JAIL_NAME} ${FILES_PATH} /mnt/files nullfs rw 0 0 iocage fstab -a ${JAIL_NAME} ${DB_PATH} /var/db/mysql nullfs rw 0 0
$PORTS_PATH defaults to $POOL_PATH/portsnap if you haven't set it otherwise.
iocage fstab -l nextcloud
reports /portsnap/db I have no such dataset under 'storage' in freenas (GUI), but it does exist (checked in shell). I guess this is ok and there is no need to change it now? It seems to be working fine now.Yeah, I didn't see any particular reason people would want to change that path, but still left it configurable if someone did want to.But on github you only mention /db and /files datasets so I created only those.
Perfectly normal./portsnap/db I have no such dataset under 'storage' in freenas (GUI), but it does exist (checked in shell).
It would probably be a relevant detail in the bug report.PS. BTW, portsnap entry was not removed from fstab during upgrade while /db and /files were, could this help why this happened at all?
What's the output ofDoes anyone have some advice?
iocage fstab -l nextcloud
?root@freenas:~ # iocage fstab -l nextcloud +-------+-------------------------------------------------------------------------------------------------------+ | INDEX | FSTAB ENTRY | +=======+=======================================================================================================+ | 0 | /mnt/DataMirror/portsnap/db /mnt/DataMirror/iocage/jails/nextcloud/root/var/db/portsnap nullfs rw 0 0 | +-------+-------------------------------------------------------------------------------------------------------+
Nextcloud was successfully installed Your data directory is readable by other users Please change the permissions to 0770 so that the directory cannot be listed by other users. An unhandled exception has been thrown: Exception: Environment not properly prepared. in /usr/local/www/apache24/data/nextcloud/lib/private/Console/Application.php:166 Stack trace: #0 /usr/local/www/apache24/data/nextcloud/console.php(95): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #1 /usr/local/www/apache24/data/nextcloud/occ(11): require_once('/usr/local/www/...') #2 {main} Your data directory is readable by other users Please change the permissions to 0770 so that the directory cannot be listed by other users. An unhandled exception has been thrown: Exception: Environment not properly prepared. in /usr/local/www/apache24/data/nextcloud/lib/private/Console/Application.php:166 Stack trace: #0 /usr/local/www/apache24/data/nextcloud/console.php(95): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #1 /usr/local/www/apache24/data/nextcloud/occ(11): require_once('/usr/local/www/...') #2 {main} Your data directory is readable by other users Please change the permissions to 0770 so that the directory cannot be listed by other users. An unhandled exception has been thrown: Exception: Environment not properly prepared. in /usr/local/www/apache24/data/nextcloud/lib/private/Console/Application.php:166 Stack trace: #0 /usr/local/www/apache24/data/nextcloud/console.php(95): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #1 /usr/local/www/apache24/data/nextcloud/occ(11): require_once('/usr/local/www/...') #2 {main} Your data directory is readable by other users Please change the permissions to 0770 so that the directory cannot be listed by other users. An unhandled exception has been thrown: Exception: Environment not properly prepared. in /usr/local/www/apache24/data/nextcloud/lib/private/Console/Application.php:166 Stack trace: #0 /usr/local/www/apache24/data/nextcloud/console.php(95): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #1 /usr/local/www/apache24/data/nextcloud/occ(11): require_once('/usr/local/www/...') #2 {main} Your data directory is readable by other users Please change the permissions to 0770 so that the directory cannot be listed by other users. An unhandled exception has been thrown: Exception: Environment not properly prepared. in /usr/local/www/apache24/data/nextcloud/lib/private/Console/Application.php:166 Stack trace: #0 /usr/local/www/apache24/data/nextcloud/console.php(95): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #1 /usr/local/www/apache24/data/nextcloud/occ(11): require_once('/usr/local/www/...') #2 {main} Your data directory is readable by other users Please change the permissions to 0770 so that the directory cannot be listed by other users. An unhandled exception has been thrown: Exception: Environment not properly prepared. in /usr/local/www/apache24/data/nextcloud/lib/private/Console/Application.php:166 Stack trace: #0 /usr/local/www/apache24/data/nextcloud/console.php(95): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #1 /usr/local/www/apache24/data/nextcloud/occ(11): require_once('/usr/local/www/...') #2 {main} Your data directory is readable by other users Please change the permissions to 0770 so that the directory cannot be listed by other users. An unhandled exception has been thrown: Exception: Environment not properly prepared. in /usr/local/www/apache24/data/nextcloud/lib/private/Console/Application.php:166 Stack trace: #0 /usr/local/www/apache24/data/nextcloud/console.php(95): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #1 /usr/local/www/apache24/data/nextcloud/occ(11): require_once('/usr/local/www/...') #2 {main} Your data directory is readable by other users Please change the permissions to 0770 so that the directory cannot be listed by other users. An unhandled exception has been thrown: Exception: Environment not properly prepared. in /usr/local/www/apache24/data/nextcloud/lib/private/Console/Application.php:166 Stack trace: #0 /usr/local/www/apache24/data/nextcloud/console.php(95): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #1 /usr/local/www/apache24/data/nextcloud/occ(11): require_once('/usr/local/www/...') #2 {main} Your data directory is readable by other users Please change the permissions to 0770 so that the directory cannot be listed by other users. An unhandled exception has been thrown: Exception: Environment not properly prepared. in /usr/local/www/apache24/data/nextcloud/lib/private/Console/Application.php:166 Stack trace: #0 /usr/local/www/apache24/data/nextcloud/console.php(95): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #1 /usr/local/www/apache24/data/nextcloud/occ(11): require_once('/usr/local/www/...') #2 {main} Your data directory is readable by other users Please change the permissions to 0770 so that the directory cannot be listed by other users. An unhandled exception has been thrown: Exception: Environment not properly prepared. in /usr/local/www/apache24/data/nextcloud/lib/private/Console/Application.php:166 Stack trace: #0 /usr/local/www/apache24/data/nextcloud/console.php(95): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #1 /usr/local/www/apache24/data/nextcloud/occ(11): require_once('/usr/local/www/...') #2 {main} Your data directory is readable by other users Please change the permissions to 0770 so that the directory cannot be listed by other users. An unhandled exception has been thrown: Exception: Environment not properly prepared. in /usr/local/www/apache24/data/nextcloud/lib/private/Console/Application.php:166 Stack trace: #0 /usr/local/www/apache24/data/nextcloud/console.php(95): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #1 /usr/local/www/apache24/data/nextcloud/occ(11): require_once('/usr/local/www/...') #2 {main} Your data directory is readable by other users Please change the permissions to 0770 so that the directory cannot be listed by other users. An unhandled exception has been thrown: Exception: Environment not properly prepared. in /usr/local/www/apache24/data/nextcloud/lib/private/Console/Application.php:166 Stack trace: #0 /usr/local/www/apache24/data/nextcloud/console.php(95): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #1 /usr/local/www/apache24/data/nextcloud/occ(11): require_once('/usr/local/www/...') #2 {main} Your data directory is readable by other users Please change the permissions to 0770 so that the directory cannot be listed by other users. An unhandled exception has been thrown: Exception: Environment not properly prepared. in /usr/local/www/apache24/data/nextcloud/lib/private/Console/Application.php:166 Stack trace: #0 /usr/local/www/apache24/data/nextcloud/console.php(95): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #1 /usr/local/www/apache24/data/nextcloud/occ(11): require_once('/usr/local/www/...') #2 {main} Your data directory is readable by other users Please change the permissions to 0770 so that the directory cannot be listed by other users. An unhandled exception has been thrown: Exception: Environment not properly prepared. in /usr/local/www/apache24/data/nextcloud/lib/private/Console/Application.php:166 Stack trace: #0 /usr/local/www/apache24/data/nextcloud/console.php(95): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #1 /usr/local/www/apache24/data/nextcloud/occ(11): require_once('/usr/local/www/...') #2 {main} Your data directory is readable by other users Please change the permissions to 0770 so that the directory cannot be listed by other users. An unhandled exception has been thrown: Exception: Environment not properly prepared. in /usr/local/www/apache24/data/nextcloud/lib/private/Console/Application.php:166 Stack trace: #0 /usr/local/www/apache24/data/nextcloud/console.php(95): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #1 /usr/local/www/apache24/data/nextcloud/occ(11): require_once('/usr/local/www/...') #2 {main} Your data directory is readable by other users Please change the permissions to 0770 so that the directory cannot be listed by other users. An unhandled exception has been thrown: Exception: Environment not properly prepared. in /usr/local/www/apache24/data/nextcloud/lib/private/Console/Application.php:166 Stack trace: #0 /usr/local/www/apache24/data/nextcloud/console.php(95): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #1 /usr/local/www/apache24/data/nextcloud/occ(11): require_once('/usr/local/www/...') #2 {main} Your data directory is readable by other users Please change the permissions to 0770 so that the directory cannot be listed by other users. An unhandled exception has been thrown: Exception: Environment not properly prepared. in /usr/local/www/apache24/data/nextcloud/lib/private/Console/Application.php:166 Stack trace: #0 /usr/local/www/apache24/data/nextcloud/console.php(95): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #1 /usr/local/www/apache24/data/nextcloud/occ(11): require_once('/usr/local/www/...') #2 {main} Your data directory is readable by other users Please change the permissions to 0770 so that the directory cannot be listed by other users. An unhandled exception has been thrown: Exception: Environment not properly prepared. in /usr/local/www/apache24/data/nextcloud/lib/private/Console/Application.php:166 Stack trace: #0 /usr/local/www/apache24/data/nextcloud/console.php(95): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #1 /usr/local/www/apache24/data/nextcloud/occ(11): require_once('/usr/local/www/...') #2 {main} Successfully removed mount from nextcloud's fstab Installation complete!
another complete reinstall fixed my issue.
<code>How do you completely reinstall the script