Server stopped because of blackout, now Nextcloud has "Internal Server Error" >.<

Nextcloud version: 15.0.7.0
Operating system and version: OpenSUSE Tumbleweed
Apache or nginx version: Apache 2.4.25
PHP version: 7.3

The issue you are facing:
Had a blackout, now my cloud.mydomain.me outputs “Internal Server Error

Is this the first time you’ve seen this error? Yes

Steps to replicate it:

  1. Have a blackout

The output of your Nextcloud log in data/nextcloud.log:

{"reqId":"31MDarWLKQmvgLvdne9y","level":3,"time":"2019-04-19T21:41:47+00:00","remoteAddr":"127.0.0.1","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/","message":"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at \/srv\/www\/htdocs\/nextcloud\/3rdparty\/patchwork\/utf8\/src\/Patchwork\/Utf8\/Bootup\/intl.php#18","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:66.0) Gecko\/20100101 Firefox\/66.0","version":""}
{"reqId":"wt9nyVOq8Iovv6POklk8","level":3,"time":"2019-04-19T21:44:32+00:00","remoteAddr":"127.0.0.1","user":"--","app":"PHP","method":"POST","url":"\/nextcloud\/index.php","message":"mkdir(): Permission denied at \/srv\/www\/htdocs\/nextcloud\/lib\/private\/Setup.php#302","userAgent":"Mozilla\/5.0 (X11; Linux x86_64; rv:66.0) Gecko\/20100101 Firefox\/66.0","version":""}

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'redacted',
  'passwordsalt' => 'redacted',
  'secret' => 'redacted',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => '192.168.1.89',
    2 => 'cloud.mydomain.me',
  ),
  'datadirectory' => '/media/data/nc',
  'dbtype' => 'mysql',
  'version' => '15.0.7.0',
  'overwrite.cli.url' => 'https://cloud.mydomain.me',
  'htaccess.RewriteBase' => '/',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'logfile' => '/srv/www/htdocs/nextcloud/nextcloud.log',
  'dbuser' => 'redacted',
  'dbpassword' => 'redacted',
  'installed' => true,
  'maintenance' => false,
>

The output of your Apache/nginx/system log in /var/log/____:

PHP Warning:  Module 'intl' already loaded in Unknown on line 0
[Thu May 02 22:23:48.656983 2019] [ssl:warn] [pid 11582] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu May 02 22:23:48.668549 2019] [mpm_prefork:notice] [pid 11582] AH00163: Apache/2.4.39 (Linux/SUSE) PHP/7.3.4 OpenSSL/1.1.0h-fips configured -- resuming normal operations
[Thu May 02 22:23:48.668654 2019] [core:notice] [pid 11582] AH00094: Command line: '/usr/sbin/httpd-prefork -D SYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -D SYSTEMD -D FOREGROUND'

this last is being repeated.
I did tried to install intl by following this other issue answer(the command line, but except phpenmod intl didn’t work, I enabled it in php.ini manually).
But still this isn’t enough to make it work, it’s normal that PHP Warning?
And also I tried to(after changing password to wwwrun):
sudo -u wwwrun php occ maintenance:repair or sudo -u wwwrun php occ integrity:check-core but both go in exception with:

The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see http://php.net/manual/en/book.pcntl.php
An unhandled exception has been thrown:
OCP\Files\NotFoundException in /srv/www/htdocs/nextcloud/lib/private/Files/Node/Node.php:97
Stack trace:
#0 /srv/www/htdocs/nextcloud/lib/private/Files/Node/Node.php(216): OC\Files\Node\Node->getFileInfo()
#1 /srv/www/htdocs/nextcloud/lib/private/Files/Node/Node.php(117): OC\Files\Node\Node->getPermissions()
#2 /srv/www/htdocs/nextcloud/lib/private/Files/Node/Folder.php(156): OC\Files\Node\Node->checkPermissions(4)
#3 /srv/www/htdocs/nextcloud/lib/private/Files/AppData/AppData.php(94): OC\Files\Node\Folder->newFolder('css')
#4 /srv/www/htdocs/nextcloud/lib/private/Files/AppData/AppData.php(114): OC\Files\AppData\AppData->getAppDataFolder()
#5 /srv/www/htdocs/nextcloud/lib/private/Template/IconsCacher.php(80): OC\Files\AppData\AppData->newFolder('icons')
#6 [internal function]: OC\Template\IconsCacher->__construct(Object(OC\Log), Object(OC\Files\AppData\Factory), Object(OC\URLGenerator), Object(OC\AppFramework\Utility\TimeFactory))
#7 /srv/www/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(81): ReflectionClass->newInstanceArgs(Array)
#8 /srv/www/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(98): OC\AppFramework\Utility\SimpleContainer->buildClass(Object(ReflectionClass))
#9 /srv/www/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(119): OC\AppFramework\Utility\SimpleContainer->resolve('OC\\Template\\Ico...')
#10 /srv/www/htdocs/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OC\\Template\\Ico...')
#11 /srv/www/htdocs/nextcloud/lib/private/Server.php(980): OC\ServerContainer->query('OC\\Template\\Ico...')
#12 /srv/www/htdocs/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#13 /srv/www/htdocs/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(117): Pimple\Container->offsetGet('OC\\Template\\SCS...')
#14 /srv/www/htdocs/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OC\\Template\\SCS...')
#15 /srv/www/htdocs/nextcloud/lib/private/Repair.php(145): OC\ServerContainer->query('OC\\Template\\SCS...')
#16 /srv/www/htdocs/nextcloud/core/register_command.php(143): OC\Repair::getRepairSteps()
#17 /srv/www/htdocs/nextcloud/lib/private/Console/Application.php(118): require_once('/srv/www/htdocs...')
#18 /srv/www/htdocs/nextcloud/console.php(95): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 /srv/www/htdocs/nextcloud/occ(11): require_once('/srv/www/htdocs...')

Anyone has any clue what prevents Nextcloud from starting to run again?

ps: apache2/php still works fine with other virtual hosts like mydomain.me.

1 Like