Nextcloud version: 20.0.10.1
Operating system and version: Debian 10 buster
Apache or nginx version: 2.4.38
PHP version: 7.3.27-1
I’m using NCP. I don’t have access to the ncp web console atm and I’m not sure how to get its version form the cli, but I can supply this info later.
The issue you are facing:
Nextcloud is unable to show folders and files. Mail, notes and other apps are working fine.
Others on the ncp telegram chat have the same issue.
Is this the first time you’ve seen this error? Y
Steps to replicate it:
- Not really sure I just opened up nc today and it couldn’t load any file. Perhaps it automatically updated ncp.
The output of your Nextcloud log in Admin > Logging:
[remote] Error: ParseError: syntax error, unexpected 'LoggerInterface' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) at <<closure>>
0. /data/nextcloud/lib/composer/composer/ClassLoader.php line 322
Composer\Autoload\includeFile("/data/nextcloud ... p")
1. <<closure>>
Composer\Autoload\ClassLoader->loadClass("OCA\\CustomProp ... r")
2. <<closure>>
spl_autoload_call("OCA\\CustomProp ... r")
3. /data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 107
ReflectionClass->__construct("OCA\\CustomProp ... r")
4. /data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 126
OC\AppFramework\Utility\SimpleContainer->resolve("OCA\\CustomProp ... r")
5. /data/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 455
OC\AppFramework\Utility\SimpleContainer->query("OCA\\CustomProp ... r")
6. /data/nextcloud/lib/private/ServerContainer.php line 140
OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback("OCA\\CustomProp ... r")
7. /data/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php line 66
OC\ServerContainer->query("OCA\\CustomProp ... r")
8. /data/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 251
OC\EventDispatcher\ServiceEventListener->__invoke(OCP\SabrePluginEvent {}, "OCA\\DAV\\Connector\\Sabre::addPlugin", Symfony\Componen ... {})
9. /data/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 73
Symfony\Component\EventDispatcher\EventDispatcher->callListeners([Closure {},Closure {}], "OCA\\DAV\\Connector\\Sabre::addPlugin", OCP\SabrePluginEvent {})
10. /data/nextcloud/lib/private/EventDispatcher/EventDispatcher.php line 86
Symfony\Component\EventDispatcher\EventDispatcher->dispatch(OCP\SabrePluginEvent {}, "OCA\\DAV\\Connector\\Sabre::addPlugin")
11. /data/nextcloud/lib/private/EventDispatcher/SymfonyAdapter.php line 72
OC\EventDispatcher\EventDispatcher->dispatch("OCA\\DAV\\Connector\\Sabre::addPlugin", OCP\SabrePluginEvent {})
12. /data/nextcloud/apps/dav/lib/Server.php line 209
OC\EventDispatcher\SymfonyAdapter->dispatch("OCA\\DAV\\Connector\\Sabre::addPlugin", OCP\SabrePluginEvent {})
13. /data/nextcloud/apps/dav/appinfo/v2/remote.php line 34
OCA\DAV\Server->__construct(OC\AppFramework\Http\Request {}, "/remote.php/dav/")
14. /data/nextcloud/remote.php line 167
require_once("/data/nextcloud ... p")
OPTIONS /remote.php/dav/files/s
from 172.18.0.12 at 2021-06-09T07:37:18+00:00
and also
[no app in context] Error: Exception: syntax error, unexpected 'IL10N' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) at <<closure>>
0. /data/nextcloud/lib/private/AppFramework/App.php line 152
OC\AppFramework\Http\Dispatcher->dispatch(OC\Core\Controll ... {}, "getProviders")
1. /data/nextcloud/lib/private/Route/Router.php line 309
OC\AppFramework\App::main("OC\\Core\\Contr ... r", "getProviders", OC\AppFramework\ ... {}, {_route: "ocs.co ... "})
2. /data/nextcloud/ocs/v1.php line 88
OC\Route\Router->match("/ocsapp/search/providers")
3. /data/nextcloud/ocs/v2.php line 24
require_once("/data/nextcloud/ocs/v1.php")
GET /ocs/v2.php/search/providers?from=%2Fsettings%2Fadmin%2Foverview
from 172.18.0.12 by s at 2021-06-09T07:36:29+00:00
It happens with WebDav as well:
[webdav] Fatal: Sabre\DAV\Exception\ServiceUnavailable: ParseError: syntax error, unexpected 'LoggerInterface' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) at <<closure>>
0. /data/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
{closure}("*** sensitive parameters replaced ***")
1. /data/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 458
Sabre\DAV\Server->emit("beforeMethod:PROPFIND", ["*** sensitive ... "])
2. /data/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 251
Sabre\DAV\Server->invokeMethod("*** sensitive parameter replaced ***", "*** sensitive parameter replaced ***")
3. /data/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 319
Sabre\DAV\Server->start()
4. /data/nextcloud/remote.php line 76
Sabre\DAV\Server->exec()
5. /data/nextcloud/remote.php line 171
handleException(ParseError {})
PROPFIND /remote.php/dav/files/s
from 172.18.0.12 at 2021-06-09T07:37:01+00:00
And this error with the passwords app which might not be related:
[PHP] Error: Error: idn_to_ascii(): INTL_IDNA_VARIANT_2003 is deprecated at /data/nextcloud/apps/passwords/lib/Services/FaviconService.php#137 at <<closure>>
0. <<closure>>
OC\Log\ErrorHandler::onError(8192, "idn_to_ascii(): ... d", "/data/nextcloud ... p", 137, {domain: "help.nextcloud.com",size: 16})
1. /data/nextcloud/apps/passwords/lib/Services/FaviconService.php line 137
idn_to_ascii("help.nextcloud.com")
2. /data/nextcloud/apps/passwords/lib/Services/FaviconService.php line 72
OCA\Passwords\Services\FaviconService->validateInput("help.nextcloud.com", 16)
3. /data/nextcloud/apps/passwords/lib/Controller/Api/ServiceApiController.php line 187
OCA\Passwords\Services\FaviconService->getFavicon("help.nextcloud.com", 16)
4. /data/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 169
OCA\Passwords\Controller\Api\ServiceApiController->getFavicon("help.nextcloud.com", 16)
5. /data/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 100
OC\AppFramework\Http\Dispatcher->executeController(OCA\Passwords\Co ... {}, "getFavicon")
6. /data/nextcloud/lib/private/AppFramework/App.php line 152
OC\AppFramework\Http\Dispatcher->dispatch(OCA\Passwords\Co ... {}, "getFavicon")
7. /data/nextcloud/lib/private/Route/Router.php line 309
OC\AppFramework\App::main("ServiceApiController", "getFavicon", OC\AppFramework\ ... {}, {domain: "help.n ... "})
8. /data/nextcloud/lib/base.php line 1008
OC\Route\Router->match("/apps/passwords ... 6")
9. /data/nextcloud/index.php line 37
OC::handleRequest()
GET /index.php/apps/passwords/api/1.0/service/favicon/help.nextcloud.com/16
from 172.18.0.12 by s at 2021-06-09T07:38:17+00:00
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'passwordsalt' => '*',
'secret' => '*',
'trusted_domains' =>
array (
0 => 'localhost',
1 => '172.20.0.2',
2 => '192.168.1.99',
5 => 'nextcloudpi.local',
7 => 'nextcloudpi',
8 => 'nextcloudpi.lan',
),
'trusted_proxies' =>
array (
0 => 'traefik',
),
'datadirectory' => '/ncdata',
'dbtype' => 'mysql',
'version' => '20.0.10.1',
'overwrite.cli.url' => '*',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'ncadmin',
'dbpassword' => '*',
'installed' => true,
'instanceid' => '*',
'memcache.local' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/var/run/redis/redis.sock',
'port' => 0,
'timeout' => 0.0,
'password' => '*',
),
'tempdirectory' => '/data/nextcloud/data/tmp',
'mail_smtpmode' => 'sendmail',
'mail_smtpauthtype' => 'LOGIN',
'mail_from_address' => 'nextcloud',
'mail_domain' => '*.com',
'preview_max_x' => '2048',
'preview_max_y' => '2048',
'jpeg_quality' => '60',
'overwriteprotocol' => 'https',
'maintenance' => false,
'loglevel' => 0,
'theme' => '',
'htaccess.RewriteBase' => '/',
'data-fingerprint' => '*',
'trashbin_retention_obligation' => 'auto, 30',
'mail_sendmailmode' => 'smtp',
'twofactor_enforced' => 'true',
'twofactor_enforced_groups' =>
array (
),
'twofactor_enforced_excluded_groups' =>
array (
),
'updater.release.channel' => 'stable',
'allow_local_remote_servers' => 'true',
'app_install_overwrite' =>
array (
0 => 'files_external_dropbox',
1 => 'telephoneprovider',
2 => 'drawio',
),
'has_rebuilt_cache' => true,
);
The output of your Apache/nginx/system log in /var/log/____
:
/var/log/apache2/error.log
/var/log/apache2/nc-access.log
/var/log/apache2/nc-error.log
don’t show any error.