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

Reinstall failed #154

Closed PeterBucherCH closed 3 years ago

PeterBucherCH commented 3 years ago

Hi all, First thank Dan and his team for this detailed shell script! I used it before for installing nextcloud version 18. Since I messed up PHP, I deleted the jail and re-installed nextcloud with this latest script, using former config file. The script detected the re-install, created the new jail and run without errors. When starting the browser to log in, it shows the nextcloud page (with valid certificate) with the message of an internal technical server error; check the logs. The caddy log (FQDN log) shows no error. But the nextcloud.log got: {"reqId":"ksBiUuMuxVgXrxPdtgdZ","level":3,"time":"2020-11-24T08:50:22+01:00","remoteAddr":"192.168.1.248","user":"--","app":"no app in context","method":"GET","url":"/js/core/merged-template-prepend.js?v=be86166f-0","message":{"Exception":"OCP\AppFramework\QueryException","Message":"Could not resolve OCA\Files_Versions\Versions\IVersionManager! Class can not be instantiated","Code":0,"Trace":[{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":126,"function":"resolve","class":"OC\AppFramework\Utility\SimpleContainer","type":"->","args":["OCA\Files_Versions\Versions\IVersionManager"]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":455,"function":"query","class":"OC\AppFramework\Utility\SimpleContainer","type":"->","args":["OCA\Files_Versions\Versions\IVersionManager"]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":427,"function":"queryNoFallback","class":"OC\AppFramework\DependencyInjection\DIContainer","type":"->","args":["OCA\Files_Versions\Versions\IVersionManager"]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":56,"function":"query","class":"OC\AppFramework\DependencyInjection\DIContainer","type":"->","args":["OCA\Files_Versions\Versions\IVersionManager"]},{"file":"/usr/local/www/nextcloud/apps/files_versions/lib/AppInfo/Application.php","line":119,"function":"get","class":"OC\AppFramework\Utility\SimpleContainer","type":"->","args":["OCA\Files_Versions\Versions\IVersionManager"]},{"file":"/usr/local/www/nextcloud/apps/files_versions/lib/AppInfo/Application.php","line":106,"function":"loadBackend","class":"OCA\Files_Versions\AppInfo\Application","type":"->","args":[{"@attributes":{"for":"OCP\Files\Storage\IStorage"},"@value":"OCA\Files_Versions\Versions\LegacyVersionsBackend"},{"class":"OC\AppFramework\DependencyInjection\DIContainer"},{"class":"OC\AppFramework\Logger"}]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Bootstrap/FunctionInjector.php","line":68,"function":"registerVersionBackends","class":"OCA\Files_Versions\AppInfo\Application","type":"->","args":[{"class":"OC\AppFramework\DependencyInjection\DIContainer"},{"class":"OC\App\AppManager"},{"class":"OC\AppFramework\Logger"}]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Bootstrap/BootContext.php","line":52,"function":"injectFn","class":"OC\AppFramework\Bootstrap\FunctionInjector","type":"->","args":[{"class":"Closure"}]},{"file":"/usr/local/www/nextcloud/apps/files_versions/lib/AppInfo/Application.php","line":91,"function":"injectFn","class":"OC\AppFramework\Bootstrap\BootContext","type":"->","args":[{"class":"Closure"}]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":168,"function":"boot","class":"OCA\Files_Versions\AppInfo\Application","type":"->","args":[{"class":"OC\AppFramework\Bootstrap\BootContext"}]},{"file":"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php","line":191,"function":"bootApp","class":"OC\AppFramework\Bootstrap\Coordinator","type":"->","args":["files_versions"]},{"file":"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php","line":131,"function":"loadApp","class":"OC_App","type":"::","args":["files_versions"]},{"file":"/usr/local/www/nextcloud/apps/dav/lib/AppInfo/Application.php","line":113,"function":"loadApps","class":"OC_App","type":"::","args":[["dav"]]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":168,"function":"boot","class":"OCA\DAV\AppInfo\Application","type":"->","args":[{"class":"OC\AppFramework\Bootstrap\BootContext"}]},{"file":"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php","line":191,"function":"bootApp","class":"OC\AppFramework\Bootstrap\Coordinator","type":"->","args":["dav"]},{"file":"/usr/local/www/nextcloud/lib/private/legacy/OC_App.php","line":131,"function":"loadApp","class":"OC_App","type":"::","args":["dav"]},{"file":"/usr/local/www/nextcloud/lib/private/legacy/OC_Util.php","line":201,"function":"loadApps","class":"OC_App","type":"::","args":[["filesystem"]]},{"file":"/usr/local/www/nextcloud/lib/private/Files/Filesystem.php","line":267,"function":"setupFS","class":"OC_Util","type":"::","args":[""]},{"file":"/usr/local/www/nextcloud/lib/private/Server.php","line":376,"function":"getMountManager","class":"OC\Files\Filesystem","type":"::","args":[null]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":155,"function":"OC\{closure}","class":"OC\Server","type":"->","args":[" sensitive parameters replaced "]},{"file":"/usr/local/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php","line":118,"function":"OC\AppFramework\Utility\{closure}","class":"OC\AppFramework\Utility\SimpleContainer","type":"->","args":[" sensitive parameters replaced "]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":122,"function":"offsetGet","class":"Pimple\Container","type":"->","args":["RootFolder"]},{"file":"/usr/local/www/nextcloud/lib/private/ServerContainer.php","line":156,"function":"query","class":"OC\AppFramework\Utility\SimpleContainer","type":"->","args":["RootFolder",true]},{"file":"/usr/local/www/nextcloud/lib/private/Server.php","line":406,"function":"query","class":"OC\ServerContainer","type":"->","args":["RootFolder"]},{"function":"OC\{closure}","class":"OC\Server","type":"->","args":[" sensitive parameters replaced "]},{"file":"/usr/local/www/nextcloud/lib/private/Files/Node/LazyFolder.php","line":63,"function":"call_user_func","args":[{"class":"Closure"}]},{"file":"/usr/local/www/nextcloud/lib/private/Files/Node/LazyFolder.php","line":143,"function":"call","class":"OC\Files\Node\LazyFolder","type":"->","args":["get",["appdata_ocfb3s4urfy2/js/core"]]},{"file":"/usr/local/www/nextcloud/lib/private/Files/AppData/AppData.php","line":142,"function":"get","class":"OC\Files\Node\LazyFolder","type":"->","args":["appdata_ocfb3s4urfy2/js/core"]},{"file":"/usr/local/www/nextcloud/lib/private/Template/JSCombiner.php","line":97,"function":"getFolder","class":"OC\Files\AppData\AppData","type":"->","args":["core"]},{"file":"/usr/local/www/nextcloud/lib/private/Template/JSResourceLocator.php","line":116,"function":"process","class":"OC\Template\JSCombiner","type":"->","args":["/usr/local/www/nextcloud","core/js/merged-template-prepend.json","core"]},{"file":"/usr/local/www/nextcloud/lib/private/Template/JSResourceLocator.php","line":72,"function":"cacheAndAppendCombineJsonIfExist","class":"OC\Template\JSResourceLocator","type":"->","args":["/usr/local/www/nextcloud","core/js/merged-template-prepend.json"]},{"file":"/usr/local/www/nextcloud/lib/private/Template/ResourceLocator.php","line":79,"function":"doFind","class":"OC\Template\JSResourceLocator","type":"->","args":["js/merged-template-prepend"]},{"file":"/usr/local/www/nextcloud/lib/private/TemplateLayout.php","line":364,"function":"find","class":"OC\Template\ResourceLocator","type":"->","args":[["core/js/dist/main","js/dist/files_fileinfo","js/dist/files_client","js/merged-template-prepend","core/l10n/de"]]},{"file":"/usr/local/www/nextcloud/lib/private/TemplateLayout.php","line":194,"function":"findJavascriptFiles","class":"OC\TemplateLayout","type":"::","args":[["core/js/dist/main","js/dist/files_fileinfo","js/dist/files_client","js/merged-template-prepend","core/l10n/de"]]},{"file":"/usr/local/www/nextcloud/lib/private/legacy/OC_Template.php","line":183,"function":"__construct","class":"OC\TemplateLayout","type":"->","args":["error",""]},{"file":"/usr/local/www/nextcloud/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->","args":[]},{"file":"/usr/local/www/nextcloud/lib/private/legacy/OC_Template.php","line":332,"function":"printPage","class":"OC\Template\Base","type":"->","args":[]},{"file":"/usr/local/www/nextcloud/index.php","line":63,"function":"printExceptionErrorPage","class":"OC_Template","type":"::","args":[{"class__":"RedisException"},500]}],"File":"/usr/local/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","Line":111,"CustomMessage":"Could not boot files_versionsCould not resolve OCA\Files_Versions\Versions\IVersionManager! Class can not be instantiated"},

I run freenas version 11.3U5. I saw no bugs in the install.log.

Has somebody a hint what went wrong?

Have a nice day! Peter

PeterBucherCH commented 3 years ago

Back again. I found the problem. Redis was not reinstalled correctly. In the nextcloud.config there was still the old socket path /tmp/redis.sock, while redis socket was installed at /var/run/redis/redis.sock. After adapting nextcloud.config, there was still a permission denined. The access for nextcloud to redis must also be added in /etc/group. For me correct line is: redis::535www

Now Nextcloud is running well.