Nextcloud version (eg, 29.0.4): 29.0.4
Operating system and version (eg, Ubuntu 24.04): Truenas Scale Dragonfish-24.04.2
Apache or nginx version (eg, Apache 2.4.25): redis:7.0.11
PHP version (eg, 8.3): 8.2.22
The issue you are facing:
I’ve just install a clean version of nextcloud from Truenas Apps. It shows status of “Running” and I can see nextcloud GUI when visiting my internal ip:9001. The issue is after I log into nextcloud with the right credentials, I receive an Internal Server Error
Is this the first time you’ve seen this error? (Y/N): N
I’ve reinstalled nextcloud multiple times and get the same error.
Steps to replicate it:
- Install Truenas Scale
- Go to Apps page and look for Nextcloud, install nextcloud app based on truenas instructions
- After status says “Running” go to the web portal and login as user
The output of your Nextcloud log in Admin > Logging:
I get this error after successful login to nextcloud
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.
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'htaccess.RewriteBase' => '/',
'memcache.local' => '\\OC\\Memcache\\APCu',
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/custom_apps',
'url' => '/custom_apps',
'writable' => true,
),
),
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'nextcloud-redis',
'password' => '****',
'port' => 6379,
),
'upgrade.disable-web' => true,
'passwordsalt' => '****',
'secret' => '****',
'trusted_domains' =>
array (
0 => 'localhost',
1 => '10.0.10.22',
2 => '127.0.0.1',
3 => 'localhost',
4 => 'nextcloud-init-sync.lock',
5 => 'nextcloud',
),
'datadirectory' => '/var/www/html/data',
'dbtype' => 'pgsql',
'version' => '29.0.4.1',
'overwrite.cli.url' => 'http://localhost',
'dbname' => 'nextcloud',
'dbhost' => 'nextcloud-postgres:5432',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => '****',
'dbpassword' => '****',
'installed' => true,
'instanceid' => 'ockm5rdsj3l6',
);
The output of your Apache/nginx/system log in /var/log/____
:
2024-08-13 10:43:49.936918-07:00e[38;5;6mredis e[38;5;5m17:43:49.93 e[0m
2024-08-13 10:43:49.940003-07:00e[38;5;6mredis e[38;5;5m17:43:49.93 e[0me[1mWelcome to the Bitnami redis containere[0m
2024-08-13 10:43:49.943257-07:00e[38;5;6mredis e[38;5;5m17:43:49.94 e[0mSubscribe to project updates by watching e[1mhttps://github.com/bitnami/containerse[0m
2024-08-13 10:43:49.946863-07:00e[38;5;6mredis e[38;5;5m17:43:49.94 e[0mSubmit issues and feature requests at e[1mhttps://github.com/bitnami/containers/issuese[0m
2024-08-13 10:43:49.950353-07:00e[38;5;6mredis e[38;5;5m17:43:49.94 e[0m
2024-08-13 10:43:49.954431-07:00e[38;5;6mredis e[38;5;5m17:43:49.95 e[0me[38;5;2mINFO e[0m ==> ** Starting Redis setup **
2024-08-13 10:43:50.022961-07:00e[38;5;6mredis e[38;5;5m17:43:50.02 e[0me[38;5;2mINFO e[0m ==> Initializing Redis
2024-08-13 10:43:50.061056-07:00e[38;5;6mredis e[38;5;5m17:43:50.05 e[0me[38;5;2mINFO e[0m ==> Setting Redis config file
2024-08-13 10:43:50.758475-07:002024-08-13T10:43:50.758475763-07:00
2024-08-13 10:43:50.758671-07:00e[38;5;6mredis e[38;5;5m17:43:50.75 e[0me[38;5;2mINFO e[0m ==> ** Redis setup finished! **
2024-08-13 10:43:50.802397-07:00e[38;5;6mredis e[38;5;5m17:43:50.80 e[0me[38;5;2mINFO e[0m ==> ** Starting Redis **
2024-08-13 10:43:50.846840-07:001:C 13 Aug 2024 17:43:50.838 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
2024-08-13 10:43:50.846960-07:001:C 13 Aug 2024 17:43:50.838 # Redis version=7.0.11, bits=64, commit=00000000, modified=0, pid=1, just started
2024-08-13 10:43:50.847003-07:001:C 13 Aug 2024 17:43:50.838 # Configuration loaded
2024-08-13 10:43:50.847021-07:001:M 13 Aug 2024 17:43:50.839 * monotonic clock: POSIX clock_gettime
2024-08-13 10:43:50.847037-07:001:M 13 Aug 2024 17:43:50.840 * Running mode=standalone, port=6379.
2024-08-13 10:43:50.847053-07:001:M 13 Aug 2024 17:43:50.840 # Server initialized
2024-08-13 10:43:50.877347-07:001:M 13 Aug 2024 17:43:50.875 * Creating AOF base file appendonly.aof.1.base.rdb on server start
2024-08-13 10:43:50.909931-07:001:M 13 Aug 2024 17:43:50.909 * Creating AOF incr file appendonly.aof.1.incr.aof on server start
2024-08-13 10:43:50.910018-07:001:M 13 Aug 2024 17:43:50.909 * Ready to accept connections
Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.
{"reqId":"eC1NKNCEfrhaHnJdCqZB","level":3,"time":"2024-08-13T18:03:17+00:00","remoteAddr":"10.0.13.68","user":"admin@email.com","app":"core","method":"GET","url":"/apps/dashboard/","message":"Exception thrown: RuntimeException","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","version":"29.0.4.1","exception":{"Exception":"RuntimeException","Message":"Could not get appdata folder for js","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Files/AppData/AppData.php","line":147,"function":"getAppDataFolder","class":"OC\\Files\\AppData\\AppData","type":"->","args":[]},{"file":"/var/www/html/lib/private/Template/JSCombiner.php","line":90,"function":"newFolder","class":"OC\\Files\\AppData\\AppData","type":"->","args":["core"]},{"file":"/var/www/html/lib/private/Template/JSResourceLocator.php","line":132,"function":"process","class":"OC\\Template\\JSCombiner","type":"->","args":["/var/www/html","core/js/merged-template-prepend.json","core"]},{"file":"/var/www/html/lib/private/Template/JSResourceLocator.php","line":91,"function":"cacheAndAppendCombineJsonIfExist","class":"OC\\Template\\JSResourceLocator","type":"->","args":["/var/www/html","core/js/merged-template-prepend.json"]},{"file":"/var/www/html/lib/private/Template/ResourceLocator.php","line":73,"function":"doFind","class":"OC\\Template\\JSResourceLocator","type":"->","args":["core/js/merged-template-prepend"]},{"file":"/var/www/html/lib/private/TemplateLayout.php","line":403,"function":"find","class":"OC\\Template\\ResourceLocator","type":"->","args":[["core/js/common","core/js/main","updatenotification/l10n/en","updatenotification/js/init","dashboard/l10n/en","And 22 more entries, set log level to debug to see all entries"]]},{"file":"/var/www/html/lib/private/TemplateLayout.php","line":247,"function":"findJavascriptFiles","class":"OC\\TemplateLayout","type":"::","args":[["core/js/common","core/js/main","updatenotification/l10n/en","updatenotification/js/init","dashboard/l10n/en","And 22 more entries, set log level to debug to see all entries"]]},{"file":"/var/www/html/lib/private/legacy/OC_Template.php","line":145,"function":"__construct","class":"OC\\TemplateLayout","type":"->","args":["error",""]},{"file":"/var/www/html/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->","args":[]},{"file":"/var/www/html/lib/private/legacy/OC_Template.php","line":320,"function":"printPage","class":"OC\\Template\\Base","type":"->","args":[]},{"file":"/var/www/html/index.php","line":114,"function":"printExceptionErrorPage","class":"OC_Template","type":"::","args":[["RuntimeException"],500]}],"File":"/var/www/html/lib/private/Files/AppData/AppData.php","Line":108,"CustomMessage":"Exception thrown: RuntimeException"}}
{"reqId":"O16l4RlIqYaq9wAYFbjp","level":3,"time":"2024-08-13T18:30:05+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":"Error while running background job OC\\Preview\\BackgroundCleanupJob (id: 39, arguments: null)","userAgent":"--","version":"29.0.4.1","exception":{"Exception":"RuntimeException","Message":"Could not get appdata folder for preview","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Files/AppData/AppData.php","line":170,"function":"getAppDataFolder","class":"OC\\Files\\AppData\\AppData","type":"->","args":[]},{"file":"/var/www/html/lib/private/Preview/BackgroundCleanupJob.php","line":93,"function":"getId","class":"OC\\Files\\AppData\\AppData","type":"->","args":[]},{"file":"/var/www/html/lib/private/Preview/BackgroundCleanupJob.php","line":79,"function":"getOldPreviewLocations","class":"OC\\Preview\\BackgroundCleanupJob","type":"->","args":[]},{"file":"/var/www/html/lib/private/Preview/BackgroundCleanupJob.php","line":66,"function":"getDeletedFiles","class":"OC\\Preview\\BackgroundCleanupJob","type":"->","args":[]},{"file":"/var/www/html/lib/public/BackgroundJob/Job.php","line":80,"function":"run","class":"OC\\Preview\\BackgroundCleanupJob","type":"->","args":[null]},{"file":"/var/www/html/lib/public/BackgroundJob/TimedJob.php","line":102,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->","args":[["OC\\BackgroundJob\\JobList"]]},{"file":"/var/www/html/lib/public/BackgroundJob/TimedJob.php","line":92,"function":"start","class":"OCP\\BackgroundJob\\TimedJob","type":"->","args":[["OC\\BackgroundJob\\JobList"]]},{"file":"/var/www/html/cron.php","line":177,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->","args":[["OC\\BackgroundJob\\JobList"]]}],"File":"/var/www/html/lib/private/Files/AppData/AppData.php","Line":108,"message":"Error while running background job OC\\Preview\\BackgroundCleanupJob (id: 39, arguments: null)","exception":{},"CustomMessage":"Error while running background job OC\\Preview\\BackgroundCleanupJob (id: 39, arguments: null)"}}