Nextcloud version (eg, 20.0.5): 23.0.12
Operating system and version (eg, Ubuntu 20.04): Debian 10 x86_64 Kernel 4.19.0-23-amd64
Apache or nginx version (eg, Apache 2.4.25):
Server version: Apache/2.4.38 (Debian)
Server built: 2023-03-02T14:26:27
PHP version (eg, 7.4):
PHP 7.3.31-1~deb10u3 (cli) (built: Feb 26 2023 13:00:55) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.31, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.31-1~deb10u3, Copyright (c) 1999-2018, by Zend Technologies
The issue you are facing:
Navigating to the front page of my installation produces the following error:
Internal Server Error
The server was unable to complete your request.
If this happens again, please send the technical details below to the server administrator.
More details can be found in the server log.
Technical details
Remote Address: 172.71.178.157
Request ID: H5H36M63KJZ4jQkm1E0l
Is this the first time you’ve seen this error? (Y/N): Yes
Steps to replicate it:
The output of your Nextcloud log in Admin > Logging: Unable to log into web interface, however, tail -f data/nextcloud.log:
{
"reqId": "bNkKmOOC25Pw2eoJzspZ",
"level": 3,
"time": "2023-03-03T11:31:54+00:00",
"remoteAddr": "172.70.86.55",
"user": "skippy",
"app": "index",
"method": "GET",
"url": "/index.php/apps/dashboard/",
"message": "syntax error, unexpected 'IInitialState' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in file '/var/www/notquitehere/data/www/nextcloud.squashedfly.eu/apps/files_reader/lib/Listeners/LoadViewerListener.php' line 26",
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/109.0",
"version": "23.0.12.2",
"exception": {
"Exception": "Exception",
"Message": "syntax error, unexpected 'IInitialState' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in file '/var/www/notquitehere/data/www/nextcloud.squashedfly.eu/apps/files_reader/lib/Listeners/LoadViewerListener.php' line 26",
"Code": 0,
"Trace": [
{
"file": "/var/www/notquitehere/data/www/nextcloud.squashedfly.eu/lib/private/AppFramework/App.php",
"line": 157,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->",
"args": [
{
"__class__": "OCA\\Dashboard\\Controller\\DashboardController"
},
"index"
]
},
{
"file": "/var/www/notquitehere/data/www/nextcloud.squashedfly.eu/lib/private/Route/Router.php",
"line": 302,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::",
"args": [
"OCA\\Dashboard\\Controller\\DashboardController",
"index",
{
"__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
},
[
"dashboard.dashboard.index"
]
]
},
{
"file": "/var/www/notquitehere/data/www/nextcloud.squashedfly.eu/lib/base.php",
"line": 1015,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->",
"args": [
"/apps/dashboard/"
]
},
{
"file": "/var/www/notquitehere/data/www/nextcloud.squashedfly.eu/index.php",
"line": 36,
"function": "handleRequest",
"class": "OC",
"type": "::",
"args": []
}
],
"File": "/var/www/notquitehere/data/www/nextcloud.squashedfly.eu/lib/private/AppFramework/Http/Dispatcher.php",
"Line": 158,
"Previous": {
"Exception": "ParseError",
"Message": "syntax error, unexpected 'IInitialState' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)",
"Code": 0,
"Trace": [
{
"file": "/var/www/notquitehere/data/www/nextcloud.squashedfly.eu/lib/composer/composer/ClassLoader.php",
"line": 428,
"function": "Composer\\Autoload\\includeFile",
"args": [
"/var/www/notquitehere/data/www/nextcloud.squashedfly.eu/apps/files_reader/lib//Listeners/LoadViewerListener.php"
]
},
{
"function": "loadClass",
"class": "Composer\\Autoload\\ClassLoader",
"type": "->",
"args": [
"OCA\\Files_Reader\\Listeners\\LoadViewerListener"
]
},
{
"function": "spl_autoload_call",
"args": [
"OCA\\Files_Reader\\Listeners\\LoadViewerListener"
]
},
{
"file": "/var/www/notquitehere/data/www/nextcloud.squashedfly.eu/lib/private/AppFramework/Utility/SimpleContainer.php",
"line": 112,
"function": "__construct",
"class": "ReflectionClass",
"type": "->",
"args": [
"OCA\\Files_Reader\\Listeners\\LoadViewerListener"
]
},
{
"file": "/var/www/notquitehere/data/www/nextcloud.squashedfly.eu/lib/private/AppFramework/Utility/SimpleContainer.php",
"line": 131,
"function": "resolve",
"class": "OC\\AppFramework\\Utility\\SimpleContainer",
"type": "->",
"args": [
"OCA\\Files_Reader\\Listeners\\LoadViewerListener"
]
},
{
"file": "/var/www/notquitehere/data/www/nextcloud.squashedfly.eu/lib/private/AppFramework/DependencyInjection/DIContainer.php",
"line": 463,
"function": "query",
"class": "OC\\AppFramework\\Utility\\SimpleContainer",
"type": "->",
"args": [
"OCA\\Files_Reader\\Listeners\\LoadViewerListener"
]
},
{
"file": "/var/www/notquitehere/data/www/nextcloud.squashedfly.eu/lib/private/ServerContainer.php",
"line": 145,
"function": "queryNoFallback",
"class": "OC\\AppFramework\\DependencyInjection\\DIContainer",
"type": "->",
"args": [
"OCA\\Files_Reader\\Listeners\\LoadViewerListener"
]
},
{
"file": "/var/www/notquitehere/data/www/nextcloud.squashedfly.eu/lib/private/EventDispatcher/ServiceEventListener.php",
"line": 71,
"function": "query",
"class": "OC\\ServerContainer",
"type": "->",
"args": [
"OCA\\Files_Reader\\Listeners\\LoadViewerListener"
]
},
{
"file": "/var/www/notquitehere/data/www/nextcloud.squashedfly.eu/3rdparty/symfony/event-dispatcher/EventDispatcher.php",
"line": 251,
"function": "__invoke",
"class": "OC\\EventDispatcher\\ServiceEventListener",
"type": "->",
"args": [
{
"__class__": "OCA\\Viewer\\Event\\LoadViewer"
},
"OCA\\Viewer\\Event\\LoadViewer",
{
"__class__": "Symfony\\Component\\EventDispatcher\\EventDispatcher"
}
]
},
{
"file": "/var/www/notquitehere/data/www/nextcloud.squashedfly.eu/3rdparty/symfony/event-dispatcher/EventDispatcher.php",
"line": 73,
"function": "callListeners",
"class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
"type": "->",
"args": [
[
{
"__class__": "Closure"
},
{
"__class__": "Closure"
},
{
"__class__": "Closure"
},
{
"__class__": "Closure"
},
{
"__class__": "Closure"
}
],
"OCA\\Viewer\\Event\\LoadViewer",
{
"__class__": "OCA\\Viewer\\Event\\LoadViewer"
}
]
},
{
"file": "/var/www/notquitehere/data/www/nextcloud.squashedfly.eu/lib/private/EventDispatcher/EventDispatcher.php",
"line": 88,
"function": "dispatch",
"class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
"type": "->",
"args": [
{
"__class__": "OCA\\Viewer\\Event\\LoadViewer"
},
"OCA\\Viewer\\Event\\LoadViewer"
]
},
{
"file": "/var/www/notquitehere/data/www/nextcloud.squashedfly.eu/lib/private/EventDispatcher/EventDispatcher.php",
"line": 100,
"function": "dispatch",
"class": "OC\\EventDispatcher\\EventDispatcher",
"type": "->",
"args": [
"OCA\\Viewer\\Event\\LoadViewer",
{
"__class__": "OCA\\Viewer\\Event\\LoadViewer"
}
]
},
{
"file": "/var/www/notquitehere/data/www/nextcloud.squashedfly.eu/apps/dashboard/lib/Controller/DashboardController.php",
"line": 99,
"function": "dispatchTyped",
"class": "OC\\EventDispatcher\\EventDispatcher",
"type": "->",
"args": [
{
"__class__": "OCA\\Viewer\\Event\\LoadViewer"
}
]
},
{
"file": "/var/www/notquitehere/data/www/nextcloud.squashedfly.eu/lib/private/AppFramework/Http/Dispatcher.php",
"line": 217,
"function": "index",
"class": "OCA\\Dashboard\\Controller\\DashboardController",
"type": "->",
"args": []
},
{
"file": "/var/www/notquitehere/data/www/nextcloud.squashedfly.eu/lib/private/AppFramework/Http/Dispatcher.php",
"line": 126,
"function": "executeController",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->",
"args": [
{
"__class__": "OCA\\Dashboard\\Controller\\DashboardController"
},
"index"
]
},
{
"file": "/var/www/notquitehere/data/www/nextcloud.squashedfly.eu/lib/private/AppFramework/App.php",
"line": 157,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->",
"args": [
{
"__class__": "OCA\\Dashboard\\Controller\\DashboardController"
},
"index"
]
},
{
"file": "/var/www/notquitehere/data/www/nextcloud.squashedfly.eu/lib/private/Route/Router.php",
"line": 302,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::",
"args": [
"OCA\\Dashboard\\Controller\\DashboardController",
"index",
{
"__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
},
[
"dashboard.dashboard.index"
]
]
},
{
"file": "/var/www/notquitehere/data/www/nextcloud.squashedfly.eu/lib/base.php",
"line": 1015,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->",
"args": [
"/apps/dashboard/"
]
},
{
"file": "/var/www/notquitehere/data/www/nextcloud.squashedfly.eu/index.php",
"line": 36,
"function": "handleRequest",
"class": "OC",
"type": "::",
"args": []
}
],
"File": "/var/www/notquitehere/data/www/nextcloud.squashedfly.eu/apps/files_reader/lib/Listeners/LoadViewerListener.php",
"Line": 26
},
"CustomMessage": "--"
}
}
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 => 'nextcloud.squashedfly.eu',
),
'datadirectory' => '/var/www/notquitehere/data/www/nextcloud.squashedfly.eu/data',
'overwrite.cli.url' => 'https://nextcloud.squashedfly.eu',
'dbtype' => 'mysql',
'version' => '23.0.12.2',
'dbname' => 'redacted',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'redacted',
'dbpassword' => 'redacted',
'installed' => true,
'maintenance' => false,
'theme' => '',
'loglevel' => 0,
'mail_from_address' => 'hello',
'mail_smtpmode' => 'smtp',
'mail_domain' => 'squashedfly.eu',
'filelocking.enabled' => 'true',
'mail_smtphost' => 'localhost',
'mail_smtpauth' => 1,
'mail_smtpname' => 'redacted',
'mail_smtppassword' => 'redacted',
'updater.release.channel' => 'stable',
'memcache.local' => '\\OC\\Memcache\\APCu',
'memcache.distributed' => '\\OC\\Memcache\\Memcached',
'memcached_servers' =>
array (
0 =>
array (
0 => 'localhost',
1 => 11211,
),
),
'mysql.utf8mb4' => true,
'mail_sendmailmode' => 'smtp',
);
Preceding this, it was working until I attempted to install the memories plugin (GitHub - pulsejet/memories: Fast, modern and advanced photo management suite. Runs as a Nextcloud app.) through the app store, however, it failed, and I thought nothing more of it.
Things I have tried:
- Updating Debian, and installed packages
- Restarting Apache
- Restarting the server
- Running the updater
php updater/updater.phar
- removing the plugin folder
rm -r apps/memories/
./occ update:check
./occ maintenance:repair
/.occ db:add-missing-columns
./occ db:add-missing-indices
./occ maintenance:update:htaccess
./occ maintenance:mode --off
If any one has any ideas that would be apprecated.