Nextcloud version 19.0.1:
Operating system and version Raspbian GNU/Linux 10 (buster):
Apache or nginx version nginx/1.14.2:
PHP version PHP 7.3.19-1~deb10u1:
The issue you are facing:
When logging in to web gui as any user, I get This Directory is Unavailable messages. The logs are FULL of identical messages as shown below.
[no app in context] Error: ParseError: syntax error, unexpected 'qrivate' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) at <<closure>>
0. /var/www/nextcloud/lib/composer/composer/ClassLoader.php line 322
Composer\Autoload\includeFile("/var/www/nextcl ... p")
1. <<closure>>
Composer\Autoload\ClassLoader->loadClass("OCA\\ShareByMai ... r")
2. <<closure>>
spl_autoload_call("OCA\\ShareByMai ... r")
3. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 99
ReflectionClass->__construct("OCA\\ShareByMai ... r")
4. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 116
OC\AppFramework\Utility\SimpleContainer->resolve("OCA\\ShareByMai ... r")
5. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 414
OC\AppFramework\Utility\SimpleContainer->query("OCA\\ShareByMai ... r")
6. /var/www/nextcloud/lib/private/ServerContainer.php line 133
OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback("OCA\\ShareByMai ... r")
7. /var/www/nextcloud/apps/sharebymail/lib/AppInfo/Application.php line 38
OC\ServerContainer->query("OCA\\ShareByMai ... r")
8. /var/www/nextcloud/lib/private/ServerContainer.php line 106
OCA\ShareByMail\AppInfo\Application->__construct()
9. /var/www/nextcloud/lib/private/ServerContainer.php line 132
OC\ServerContainer->getAppContainer("sharebymail", "ShareByMail")
10. /var/www/nextcloud/apps/sharebymail/appinfo/app.php line 27
OC\ServerContainer->query("OCA\\ShareByMail\\AppInfo\\Application")
11. /var/www/nextcloud/lib/private/legacy/OC_App.php line 266
require_once("/var/www/nextcl ... p")
12. /var/www/nextcloud/lib/private/legacy/OC_App.php line 155
OC_App::requireAppFile("sharebymail")
13. /var/www/nextcloud/lib/private/legacy/OC_App.php line 128
OC_App::loadApp("sharebymail")
14. /var/www/nextcloud/lib/base.php line 992
OC_App::loadApps()
15. /var/www/nextcloud/index.php line 37
OC::handleRequest()
GET /nextcloud/apps/logreader/poll?lastReqId=HcC0N8JT4MaQJlIgvhul
from 192.168.100.51 by mike at 2020-08-06T16:45:23+00:00
I am able to get nextcloud MOSTLY working again by disabling the Sharebymail app, but this appears to break file sharing with other users. I say mostly because often my desktop sync clients error out while syncing a change the first time, then complete the sync on the second try, even with sharebymail diabled. When this happens, I notice this in the logs:
[webdav] Fatal: ParseError: syntax error, unexpected 'p' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) at <<closure>>
0. /var/www/nextcloud/lib/composer/composer/ClassLoader.php line 322
Composer\Autoload\includeFile("/var/www/nextcl ... p")
1. <<closure>>
Composer\Autoload\ClassLoader->loadClass("OCA\\SystemTags\\Activity\\Setting")
2. <<closure>>
spl_autoload_call("OCA\\SystemTags\\Activity\\Setting")
3. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 99
ReflectionClass->__construct("OCA\\SystemTags\\Activity\\Setting")
4. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 116
OC\AppFramework\Utility\SimpleContainer->resolve("OCA\\SystemTags\\Activity\\Setting")
5. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 414
OC\AppFramework\Utility\SimpleContainer->query("OCA\\SystemTags\\Activity\\Setting")
6. /var/www/nextcloud/lib/private/ServerContainer.php line 133
OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback("OCA\\SystemTags\\Activity\\Setting")
7. /var/www/nextcloud/lib/private/Activity/Manager.php line 271
OC\ServerContainer->query("OCA\\SystemTags\\Activity\\Setting")
8. /var/www/nextcloud/lib/private/Activity/Manager.php line 291
OC\Activity\Manager->getSettings()
9. /var/www/nextcloud/apps/activity/lib/UserSettings.php line 137
OC\Activity\Manager->getSettingById("file_deleted")
10. /var/www/nextcloud/apps/activity/lib/UserSettings.php line 205
OCA\Activity\UserSettings->getDefaultFromSetting("stream", "file_deleted")
11. /var/www/nextcloud/apps/activity/lib/FilesHooks.php line 210
OCA\Activity\UserSettings->filterUsersBySetting(["mike"], "stream", "file_deleted")
12. /var/www/nextcloud/apps/activity/lib/FilesHooks.php line 162
OCA\Activity\FilesHooks->addNotificationsForFileAction("/test.txt", "file_deleted", "deleted_self", "deleted_by")
13. /var/www/nextcloud/apps/activity/lib/FilesHooksStatic.php line 63
OCA\Activity\FilesHooks->fileDelete("/test.txt")
14. /var/www/nextcloud/lib/private/legacy/OC_Hook.php line 110
OCA\Activity\FilesHooksStatic::fileDelete({run: true,path: "/test.txt"})
15. /var/www/nextcloud/lib/private/Files/View.php line 1274
OC_Hook::emit("OC_Filesystem", "delete", {run: true,path: "/test.txt"})
16. /var/www/nextcloud/lib/private/Files/View.php line 1144
OC\Files\View->runHooks(["delete"], "/test.txt")
17. /var/www/nextcloud/lib/private/Files/View.php line 718
OC\Files\View->basicOperation("unlink", "/test.txt", ["delete"])
18. /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php line 455
OC\Files\View->unlink("/test.txt")
19. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php line 183
OCA\DAV\Connector\Sabre\File->delete()
20. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 295
Sabre\DAV\Tree->delete("files/mike/test.txt")
21. /var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
Sabre\DAV\CorePlugin->httpDelete(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
22. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 474
Sabre\DAV\Server->emit("method:DELETE", [Sabre\HTTP\Requ ... }])
23. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 251
Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
24. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 319
Sabre\DAV\Server->start()
25. /var/www/nextcloud/apps/dav/lib/Server.php line 320
Sabre\DAV\Server->exec()
26. /var/www/nextcloud/apps/dav/appinfo/v2/remote.php line 35
OCA\DAV\Server->exec()
27. /var/www/nextcloud/remote.php line 167
require_once("/var/www/nextcl ... p")
DELETE /nextcloud/remote.php/dav/files/mike/test.txt
from 192.168.100.51 by mike at 2020-08-06T17:33:00+00:00
I recently installed the tasks app, but enabling or disabling this app appears to not affect the errors I am noticing. I have not added any other apps that I can recall, and this instance of nexcloud had been working well for over a month.
I ran console.php app:check-code sharebymail and got an interesting result:
In Lexer.php line 113:
Unexpected character "
" (ASCII 11) on line 41
I was surprised to find 3 copies of Lexer.php in my nextcloud directories
/var/www/nextcloud/3rdparty/mtdowling/jmespath.php/src/Lexer.php
/var/www/nextcloud/3rdparty/nikic/php-parser/lib/PhpParser/Lexer.php
/var/www/nextcloud/3rdparty/doctrine/common/lib/Doctrine/Common/Lexer.php
I’m not sure which one to take a closer look at, or if I am even on the right path here.
Any ideas?
Thanks!
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'xxxxxxxxxxxx',
'passwordsalt' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
'secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
'trusted_domains' =>
array (
0 => '192.168.100.26',
1 => 'xxxx.xxxx.xxx',
),
'datadirectory' => '/storage/owncloud/data',
'dbtype' => 'sqlite3',
'version' => '19.0.1.1',
'overwrite.cli.url' => 'https://192.168.100.26/nextcloud',
'installed' => true,
'maintenance' => false,
);
The output of your Apache/nginx/system log in /var/log/nginx/error.log
:
2020/08/06 17:54:48 [error] 6400#6400: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.100.51, server: 192.168.100.26, request: "PROPFIND /nextcloud/remote.php/dav/files/mike/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.100.26"
2020/08/06 17:55:18 [error] 6400#6400: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.100.51, server: 192.168.100.26, request: "PROPFIND /nextcloud/remote.php/dav/files/mike/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.100.26"
2020/08/06 17:55:45 [error] 6400#6400: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.100.51, server: 192.168.100.26, request: "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.100.26"
2020/08/06 17:56:20 [error] 6400#6400: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.100.51, server: 192.168.100.26, request: "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.100.26"
2020/08/06 17:56:51 [error] 6400#6400: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.100.51, server: 192.168.100.26, request: "PROPFIND /nextcloud/remote.php/dav/files/mike/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.100.26"
2020/08/06 17:57:23 [error] 6400#6400: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.100.51, server: 192.168.100.26, request: "PROPFIND /nextcloud/remote.php/dav/files/mike/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.100.26"
2020/08/06 17:57:55 [error] 6400#6400: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.100.51, server: 192.168.100.26, request: "PROPFIND /nextcloud/remote.php/dav/files/mike/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.100.26"
2020/08/06 17:58:27 [error] 6400#6400: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.100.51, server: 192.168.100.26, request: "PROPFIND /nextcloud/remote.php/dav/files/mike/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.100.26"
2020/08/06 17:58:59 [error] 6400#6400: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.100.51, server: 192.168.100.26, request: "PROPFIND /nextcloud/remote.php/dav/files/mike/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.100.26"
2020/08/06 17:59:21 [error] 6400#6400: *6 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.100.51, server: 192.168.100.26, request: "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications?format=json HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.100.26"