Internal Server Error after upgrade to Nextcloud 13

Hello,

i have a Problem.
I have use the automatic Upgrade from the Nextcloud Website.
I have upgrade vom Version 12 to 13. I don’t now the exact version.
But i have now one Problem.

After a Login, i see this:

Website

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.

I can see this in the Logfile:

Logfile

Feb 26 17:44:48 hetzner-cloud ownCloud[23359]: {index} Exception: {“Exception”:“OCP\Files\NotPermittedException”,“Message”:"",“Code”:0,“Trace”:"#0 /var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php(104): OC\Files\Node\File->delete()\n#1 /var/www/nextcloud/lib/private/Template/SCSSCacher.php(260): OC\Files\SimpleFS\SimpleFile->delete()\n#2 /var/www/nextcloud/lib/private/Template/SCSSCacher.php(170): OC\Template\SCSSCacher->resetCache()\n#3 /var/www/nextcloud/lib/private/Template/SCSSCacher.php(115): OC\Template\SCSSCacher->variablesChanged()\n#4 /var/www/nextcloud/lib/private/Template/CSSResourceLocator.php(109): OC\Template\SCSSCacher->process(’/var/www/nextcl…’, ‘core/css/jquery…’, ‘core’)\n#5 /var/www/nextcloud/lib/private/Template/CSSResourceLocator.php(61): OC\Template\CSSResourceLocator->cacheAndAppendScssIfExist(’/var/www/nextcl…’, ‘core/css/jquery…’)\n#6 /var/www/nextcloud/lib/private/Template/ResourceLocator.php(78): OC\Template\CSSResourceLocator->doFind(‘css/jquery-ui-f…’)\n#7 /var/www/nextcloud/lib/private/TemplateLayout.php(266): OC\Template\ResourceLocator->find(Array)\n#8 /var/www/nextcloud/lib/private/TemplateLayout.php(182): OC\TemplateLayout::findStylesheetFiles(Array)\n#9 /var/www/nextcloud/lib/private/legacy/template.php(207): OC\TemplateLayout->__construct(‘user’, ‘files’)\n#10 /var/www/nextcloud/lib/public/AppFramework/Http/TemplateResponse.php(157): OC_Template->fetchPage()\n#11 /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php(114): OCP\AppFramework\Http\TemplateResponse->render()\n#12 /var/www/nextcloud/lib/private/AppFramework/App.php(115): OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Files\Controller\ViewController), ‘index’)\n#13 /var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php(47): OC\AppFramework\App::main(‘ViewController’, ‘index’, Object(OC\AppFramework\DependencyInjection\DIContainer), Array)\n#14 [internal function]: OC\AppFramework\Routing\RouteActionHandler->__invoke(Array)\n#15 /var/www/nextcloud/lib/private/Route/Router.php(297): call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array)\n#16 /var/www/nextcloud/lib/base.php(998): OC\Route\Router->match(’/apps/files/’)\n#17 /var/www/nextcloud/index.php(37): OC::handleRequest()\n#18 {main}",“File”:"/var/www/nextcloud/lib/private/Files/Node/File.php",“Line”:122}

Feb 26 17:44:48 hetzner-cloud ownCloud[23359]: {core} Exception: {“Exception”:“OCP\Files\NotPermittedException”,“Message”:"",“Code”:0,“Trace”:"#0 /var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php(104): OC\Files\Node\File->delete()\n#1 /var/www/nextcloud/lib/private/Template/SCSSCacher.php(260): OC\Files\SimpleFS\SimpleFile->delete()\n#2 /var/www/nextcloud/lib/private/Template/SCSSCacher.php(170): OC\Template\SCSSCacher->resetCache()\n#3 /var/www/nextcloud/lib/private/Template/SCSSCacher.php(115): OC\Template\SCSSCacher->variablesChanged()\n#4 /var/www/nextcloud/lib/private/Template/CSSResourceLocator.php(109): OC\Template\SCSSCacher->process(’/var/www/nextcl…’, ‘core/css/jquery…’, ‘core’)\n#5 /var/www/nextcloud/lib/private/Template/CSSResourceLocator.php(61): OC\Template\CSSResourceLocator->cacheAndAppendScssIfExist(’/var/www/nextcl…’, ‘core/css/jquery…’)\n#6 /var/www/nextcloud/lib/private/Template/ResourceLocator.php(78): OC\Template\CSSResourceLocator->doFind(‘css/jquery-ui-f…’)\n#7 /var/www/nextcloud/lib/private/TemplateLayout.php(266): OC\Template\ResourceLocator->find(Array)\n#8 /var/www/nextcloud/lib/private/TemplateLayout.php(182): OC\TemplateLayout::findStylesheetFiles(Array)\n#9 /var/www/nextcloud/lib/private/legacy/template.php(207): OC\TemplateLayout->__construct(‘user’, ‘files’)\n#10 /var/www/nextcloud/lib/public/AppFramework/Http/TemplateResponse.php(157): OC_Template->fetchPage()\n#11 /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php(114): OCP\AppFramework\Http\TemplateResponse->render()\n#12 /var/www/nextcloud/lib/private/AppFramework/App.php(115): OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Files\Controller\ViewController), ‘index’)\n#13 /var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php(47): OC\AppFramework\App::main(‘ViewController’, ‘index’, Object(OC\AppFramework\DependencyInjection\DIContainer), Array)\n#14 [internal function]: OC\AppFramework\Routing\RouteActionHandler->__invoke(Array)\n#15 /var/www/nextcloud/lib/private/Route/Router.php(297): call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array)\n#16 /var/www/nextcloud/lib/base.php(998): OC\Route\Router->match(’/apps/files/’)\n#17 /var/www/nextcloud/index.php(37): OC::handleRequest()\n#18 {main}",“File”:"/var/www/nextcloud/lib/private/Files/Node/File.php",“Line”:122}

Feb 26 17:44:48 hetzner-cloud ownCloud[23359]: {core} Exception: {“Exception”:“OCP\Files\NotPermittedException”,“Message”:"",“Code”:0,“Trace”:"#0 /var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php(104): OC\Files\Node\File->delete()\n#1 /var/www/nextcloud/lib/private/Template/SCSSCacher.php(260): OC\Files\SimpleFS\SimpleFile->delete()\n#2 /var/www/nextcloud/lib/private/Template/SCSSCacher.php(170): OC\Template\SCSSCacher->resetCache()\n#3 /var/www/nextcloud/lib/private/Template/SCSSCacher.php(115): OC\Template\SCSSCacher->variablesChanged()\n#4 /var/www/nextcloud/lib/private/Template/CSSResourceLocator.php(109): OC\Template\SCSSCacher->process(’/var/www/nextcl…’, ‘core/css/jquery…’, ‘core’)\n#5 /var/www/nextcloud/lib/private/Template/CSSResourceLocator.php(61): OC\Template\CSSResourceLocator->cacheAndAppendScssIfExist(’/var/www/nextcl…’, ‘core/css/jquery…’)\n#6 /var/www/nextcloud/lib/private/Template/ResourceLocator.php(78): OC\Template\CSSResourceLocator->doFind(‘css/jquery-ui-f…’)\n#7 /var/www/nextcloud/lib/private/TemplateLayout.php(266): OC\Template\ResourceLocator->find(Array)\n#8 /var/www/nextcloud/lib/private/TemplateLayout.php(182): OC\TemplateLayout::findStylesheetFiles(Array)\n#9 /var/www/nextcloud/lib/private/legacy/template.php(207): OC\TemplateLayout->__construct(‘error’, ‘’)\n#10 /var/www/nextcloud/lib/private/Template/Base.php(132): OC_Template->fetchPage()\n#11 /var/www/nextcloud/lib/private/legacy/template.php(351): OC\Template\Base->printPage()\n#12 /var/www/nextcloud/index.php(65): OC_Template::printExceptionErrorPage(Object(OCP\Files\NotPermittedException))\n#13 {main}",“File”:"/var/www/nextcloud/lib/private/Files/Node/File.php",“Line”:122}

I use:
Operating system and version : Debian 3.16.43-2 (2017-04-30) x86_64
Apache version : 2.4.10-10+deb8u11
PHP version: 5.6.33+dfsg-0+deb8u1

I have outsourced the Data-Folder and integrated this about nfs. I have this this Soloution in Nextcloud 12 no problem.

Thanks you for your Help

I’m curious: Did you use the web updater or occ upgrade for the last step?

It sure smells a lot like a permission problem.
Is the /var/www/nextcloud still owned by the user that executes the PHP stuff being served?

I use the web updater.

Yes, this is the same user, is it www-data.

I am not sure, but maybe this helps:

Thanks, this is it.
I can now use the Webinterface.

Thanks :joy:

1 Like


I am getting this error ,can anybody help me?

First add to config/config.php line ‘debug’ = true, After that you will see full log under Request ID. My problem was ONLYOFFICE connector. When I turned off and uninstalled application, everything came back to normal.

1 Like

Hi, did resolve the issue ?

Hi, did you resolve the issue ?

Same “Internal Server Error” message after upgrade from Nextcloud 13.0.6 to 14.0.1

My solution to fix this issue:
# put nextcloud in maintenance mode
sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --on

# upgrade via command line
sudo -u www-data php /var/www/nextcloud/occ upgrade

# as ‘Update successful’ -> disable maintenance mode
sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --off

5 Likes

@schmidchr thanks!
In my case it was

sudo -u www-data php /var/www/html/nextcloud/occ maintenance:mode --on
sudo -u www-data php /var/www/html/nextcloud/occ upgrade
sudo -u www-data php /var/www/html/nextcloud/occ maintenance:mode --off

and it solved “Internal Server Error”

2 Likes