Nextcloud "Internal Server Error" -> Exception thrown: OCP\\Files\\GenericFileException

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.1.22
What app is this about: Nextcloud

Describe your issue

1.) I tried the upgrade from Nextcloud 31.0.8~ynh2 to 31.0.9~ynh1- Failed with an error.
2.) I removed the Nextcloud App and restored it from the “pre upgrade” backup file.
3.) That worked technically, but the Nextcloud webapp doesn’t open. It shows an “Internal Server Error”
4.) in the log files /var/log/nextcloud/nextcloud.log there is a GenericFileException.
5.) I tried chmod -R nextcloud:nextcloud on that /home/yunohost.app/nextcloud files and /var/www/nextcloud as well. no success.

Share relevant logs or error messages

{
“reqId”: “jTX7NotIDX3gDiflPFfg”,
“level”: 3,
“time”: “2025-09-13T10:15:18+00:00”,
“remoteAddr”: “87.189.252.210”,
“user”: “xxx”,
“app”: “core”,
“method”: “GET”,
“url”: “/nextcloud/apps/dashboard/”,
“message”: “Exception thrown: OCP\Files\GenericFileException”,
“userAgent”: “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36”,
“version”: “31.0.8.1”,
“exception”: {
“Exception”: “OCP\Files\GenericFileException”,
“Message”: “”,
“Code”: 0,
“Trace”: [
{
“file”: “/var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php”,
“line”: 55,
“function”: “getContent”,
“class”: “OC\Files\Node\File”,
“type”: “->”
},
{
“file”: “/var/www/nextcloud/lib/private/Template/JSCombiner.php”,
“line”: 97,
“function”: “getContent”,
“class”: “OC\Files\SimpleFS\SimpleFile”,
“type”: “->”
},
{
“file”: “/var/www/nextcloud/lib/private/Template/JSCombiner.php”,
“line”: 72,
“function”: “isCached”,
“class”: “OC\Template\JSCombiner”,
“type”: “->”
},
{
“file”: “/var/www/nextcloud/lib/private/Template/JSResourceLocator.php”,
“line”: 112,
“function”: “process”,
“class”: “OC\Template\JSCombiner”,
“type”: “->”
},
{
“file”: “/var/www/nextcloud/lib/private/Template/JSResourceLocator.php”,
“line”: 71,
“function”: “cacheAndAppendCombineJsonIfExist”,
“class”: “OC\Template\JSResourceLocator”,
“type”: “->”
},
{
“file”: “/var/www/nextcloud/lib/private/Template/ResourceLocator.php”,
“line”: 51,
“function”: “doFind”,
“class”: “OC\Template\JSResourceLocator”,
“type”: “->”
},
{
“file”: “/var/www/nextcloud/lib/private/TemplateLayout.php”,
“line”: 397,
“function”: “find”,
“class”: “OC\Template\ResourceLocator”,
“type”: “->”
},
{
“file”: “/var/www/nextcloud/lib/private/TemplateLayout.php”,
“line”: 212,
“function”: “findJavascriptFiles”,
“class”: “OC\TemplateLayout”,
“type”: “::”
},
{
“file”: “/var/www/nextcloud/lib/private/legacy/OC_Template.php”,
“line”: 120,
“function”: “__construct”,
“class”: “OC\TemplateLayout”,
“type”: “->”
},
{
“file”: “/var/www/nextcloud/lib/private/Template/Base.php”,
“line”: 113,
“function”: “fetchPage”,
“class”: “OC_Template”,
“type”: “->”
},
{
“file”: “/var/www/nextcloud/lib/private/legacy/OC_Template.php”,
“line”: 297,
“function”: “printPage”,
“class”: “OC\Template\Base”,
“type”: “->”
},
{
“file”: “/var/www/nextcloud/index.php”,
“line”: 89,
“function”: “printExceptionErrorPage”,
“class”: “OC_Template”,
“type”: “::”
}
],
“File”: “/var/www/nextcloud/lib/private/Files/Node/File.php”,
“Line”: 35,
“message”: “”,
“exception”: {},
“CustomMessage”: “Exception thrown: OCP\Files\GenericFileException”
}
}

In my case the update worked well.

Probably you have installed a Nextcloud app which ist not (yet) compatible with Nextcloud 31.0.9?

Maybe, but I doubt it. I have not installed may apps.

Is something of interest in the admin area of Nextcloud?

It shows whether everything is ready for the update.

The admin area of Nextcloud shows no error. It allows upgrading.
the “reset permission” doesn’t help.
The Nextcloud desktop app works as well - sync of files.

This command solved the problem:
occ files:scan-app-data

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.