Nextcloud version: 20.0.7
Operating system and version: Ubuntu 18.04.1
Apache version: 2.4.46
PHP version: 7.4.14
The issue you are facing:
The Nextcloud sync client shows the error:
Server replied "503 Service Unavailable" to "GET https://my-domain.tld/remote.php/dav/files/daniel/folder-name-of-mount-point"
folder-name-of mount-point: Server replied "503 Service unavailable" to "GET https://my-domain.tld/remote.php/dav/files/daniel/folder-name-of-mount-point"
The folder folder-name-of-mount-point
was once set up as a external FTP storage. When it was no longer needed, I deleted it in the web interface.
Right now there are no more external storage mounts (user and system wide).
I looked into the oc_share_external
, oc_external_mounts
, oc_storages
mysql table and there are still rows that corresponds to that external storage. Would it be safe to delete those or what would you recommend to fix this error?
Nextcloud is installed with snap
. The storage backend is set to AWS S3 (see config.php)
Is this the first time you’ve seen this error?: Y
Steps to replicate it:
- Mount FTP share
- Delete FTP share
- Nextcloud still tries to access the mount point
The output of your Nextcloud log in Admin > Logging:
[webdav] Fatal: Sabre\DAV\Exception\ServiceUnavailable: at <<closure>>
0. /snap/nextcloud/26119/htdocs/3rdparty/sabre/dav/lib/DAV/Tree.php line 80
OCA\DAV\Connector\Sabre\Directory->getChild("folder-name-of-mount-point")
1. /snap/nextcloud/26119/htdocs/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 81
Sabre\DAV\Tree->getNodeForPath("files/daniel/folder-name-of-mount-point")
2. /snap/nextcloud/26119/htdocs/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
Sabre\DAV\CorePlugin->httpGet(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
3. /snap/nextcloud/26119/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php line 474
Sabre\DAV\Server->emit("method:GET", [Sabre\HTTP\Requ ... }])
4. /snap/nextcloud/26119/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php line 251
Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
5. /snap/nextcloud/26119/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php line 319
Sabre\DAV\Server->start()
6. /snap/nextcloud/26119/htdocs/apps/dav/lib/Server.php line 332
Sabre\DAV\Server->exec()
7. /snap/nextcloud/26119/htdocs/apps/dav/appinfo/v2/remote.php line 35
OCA\DAV\Server->exec()
8. /snap/nextcloud/26119/htdocs/remote.php line 167
require_once("/snap/nextcloud ... p")
GET /remote.php/dav/files/daniel/folder-name-of-mount-point
from <my-ip> by daniel at 2021-02-20T14:43:03+00:00
The output of your config.php
:
<?php
$CONFIG = array (
'onlyoffice' =>
array (
'verify_peer_off' => true,
),
'apps_paths' =>
array (
0 =>
array (
'path' => '/snap/nextcloud/current/htdocs/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/snap/nextcloud/current/nextcloud/extra-apps',
'url' => '/extra-apps',
'writable' => true,
),
),
'supportedDatabases' =>
array (
0 => 'mysql',
),
'memcache.locking' => '\\OC\\Memcache\\Redis',
'memcache.local' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/tmp/sockets/redis.sock',
'port' => 0,
),
'objectstore' =>
array (
'class' => 'OC\\Files\\ObjectStore\\S3',
'arguments' =>
array (
'bucket' => 'my-bucket',
'region' => 'my-region',
'autocreate' => true,
'key' => 'my-key',
'secret' => 'my-secret',
'use_ssl' => true,
),
),
'passwordsalt' => 'my-passwordsalt',
'secret' => 'my-secret',
'trusted_domains' =>
array (
0 => 'localhost',
1 => 'my-trusted-domain.tld',
),
'datadirectory' => '/var/snap/nextcloud/common/nextcloud/data',
'dbtype' => 'mysql',
'version' => '20.0.7.1',
'overwrite.cli.url' => 'http://localhost',
'dbname' => 'nextcloud',
'dbhost' => 'localhost:/tmp/sockets/mysql.sock',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => 'my-db-password',
'installed' => true,
'instanceid' => 'instanceid',
'maintenance' => false,
'loglevel' => 0,
'theme' => '',
'mail_from_address' => 'my-from-address',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_domain' => 'mydomain.tld',
'mail_smtpauth' => 1,
'mail_smtpsecure' => 'ssl',
'mail_smtphost' => 'smtp.mydomain.tld',
'mail_smtpport' => '465',
'mail_smtpname' => 'my-mail-address',
'mail_smtppassword' => 'my-supersecret-password',
'mail_smtpauthtype' => 'PLAIN',
'app_install_overwrite' =>
array (
0 => 'files_external_onedrive',
),
'encryption.legacy_format_support' => true,
'encryption.key_storage_migrated' => false,
);
The output of your apache_errors.log
:
[Mon Feb 15 00:00:08.904633 2021] [ssl:warn] [pid 17312:tid 140062828156800] AH01909: redacted.eu-central-1.compute.internal:443:0 server certificate does NOT include an ID which matches the server name
[Mon Feb 15 00:00:08.906068 2021] [lbmethod_heartbeat:notice] [pid 17312:tid 140062828156800] AH02282: No slotmem from mod_heartmonitor
[Mon Feb 15 00:00:08.906698 2021] [mpm_event:notice] [pid 17312:tid 140062828156800] AH00489: Apache/2.4.46 (Unix) OpenSSL/1.1.1 configured -- resuming normal operations
[Mon Feb 15 00:00:08.906710 2021] [core:notice] [pid 17312:tid 140062828156800] AH00094: Command line: 'httpd -d /snap/nextcloud/26119 -D EnableHTTPS -D EnableHSTS -D FOREGROUND'
[Mon Feb 15 00:00:08.909642 2021] [unixd:alert] [pid 29468:tid 140062828156800] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Mon Feb 15 00:00:08.910582 2021] [unixd:alert] [pid 29466:tid 140062828156800] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Mon Feb 15 00:00:08.913976 2021] [unixd:alert] [pid 29467:tid 140062828156800] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Mon Feb 15 00:00:09.908801 2021] [unixd:alert] [pid 29563:tid 140062828156800] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Tue Feb 16 04:39:50.391840 2021] [unixd:alert] [pid 12552:tid 140062828156800] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Tue Feb 16 14:33:09.284634 2021] [unixd:alert] [pid 4197:tid 140062828156800] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Tue Feb 16 22:10:54.176900 2021] [proxy_fcgi:error] [pid 29563:tid 140062730413824] [<ip>:59962] AH01071: Got error 'Primary script unknown', referer: http://<ip>:80/wp-login.php
[Wed Feb 17 17:01:47.183582 2021] [proxy_fcgi:error] [pid 4197:tid 140062641616640] [client <ip>:41686] AH01071: Got error 'Primary script unknown', referer: http://my-domain/wp-login.php
[Wed Feb 17 19:49:23.589505 2021] [proxy_fcgi:error] [pid 29466:tid 140062515726080] [client <ip>:54576] AH01071: Got error 'Primary script unknown'
[Thu Feb 18 06:58:15.408790 2021] [proxy_fcgi:error] [pid 12552:tid 140062763984640] [client <ip>:56880] AH01071: Got error 'Primary script unknown'
[Thu Feb 18 06:58:15.512918 2021] [proxy_fcgi:error] [pid 29467:tid 140062549296896] [client <ip>:56946] AH01071: Got error 'Primary script unknown'
[Thu Feb 18 06:58:15.622425 2021] [proxy_fcgi:error] [pid 29468:tid 140062540904192] [client <ip>:57002] AH01071: Got error 'Primary script unknown'
[Thu Feb 18 06:58:15.718643 2021] [proxy_fcgi:error] [pid 29467:tid 140062515726080] [client <ip>:57066] AH01071: Got error 'Primary script unknown'
[Thu Feb 18 20:18:30.245847 2021] [mpm_event:notice] [pid 17312:tid 140062828156800] AH00491: caught SIGTERM, shutting down
[Thu Feb 18 20:58:17.682352 2021] [ssl:warn] [pid 3429:tid 140433897805696] AH01909: redacted.eu-central-1.compute.internal:443:0 server certificate does NOT include an ID which matches the server name
[Thu Feb 18 20:58:17.686354 2021] [ssl:warn] [pid 3429:tid 140433897805696] AH01909: redacted.eu-central-1.compute.internal:443:0 server certificate does NOT include an ID which matches the server name
[Thu Feb 18 20:58:17.688386 2021] [lbmethod_heartbeat:notice] [pid 3429:tid 140433897805696] AH02282: No slotmem from mod_heartmonitor
[Thu Feb 18 20:58:17.692717 2021] [mpm_event:notice] [pid 3429:tid 140433897805696] AH00489: Apache/2.4.46 (Unix) OpenSSL/1.1.1 configured -- resuming normal operations
[Thu Feb 18 20:58:17.692747 2021] [core:notice] [pid 3429:tid 140433897805696] AH00094: Command line: 'httpd -d /snap/nextcloud/26119 -D EnableHTTPS -D EnableHSTS -D FOREGROUND'
[Thu Feb 18 20:58:17.699898 2021] [unixd:alert] [pid 3435:tid 140433897805696] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Thu Feb 18 20:58:17.700331 2021] [unixd:alert] [pid 3433:tid 140433897805696] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Thu Feb 18 20:58:17.700593 2021] [unixd:alert] [pid 3434:tid 140433897805696] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Thu Feb 18 20:58:38.718478 2021] [unixd:alert] [pid 3758:tid 140433897805696] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Fri Feb 19 09:05:17.991454 2021] [proxy_fcgi:error] [pid 3435:tid 140433736849152] [client <ip>:36636] AH01071: Got error 'Primary script unknown', referer: http://<ip>:80/wp-login.php
[Fri Feb 19 13:21:00.421700 2021] [core:warn] [pid 3429:tid 140433897805696] AH00045: child process 3433 still did not exit, sending a SIGTERM
[Fri Feb 19 13:21:02.425073 2021] [core:warn] [pid 3429:tid 140433897805696] AH00045: child process 3433 still did not exit, sending a SIGTERM
[Fri Feb 19 13:21:04.427388 2021] [core:warn] [pid 3429:tid 140433897805696] AH00045: child process 3433 still did not exit, sending a SIGTERM
[Fri Feb 19 13:21:06.429322 2021] [core:error] [pid 3429:tid 140433897805696] AH00046: child process 3433 still did not exit, sending a SIGKILL
[Fri Feb 19 13:21:07.431213 2021] [mpm_event:notice] [pid 3429:tid 140433897805696] AH00491: caught SIGTERM, shutting down
[Fri Feb 19 13:22:11.010426 2021] [ssl:warn] [pid 2376:tid 140356282939264] AH01909: redacted.eu-central-1.compute.internal:443:0 server certificate does NOT include an ID which matches the server name
[Fri Feb 19 13:22:11.013502 2021] [ssl:warn] [pid 2376:tid 140356282939264] AH01909: redacted.eu-central-1.compute.internal:443:0 server certificate does NOT include an ID which matches the server name
[Fri Feb 19 13:22:11.013664 2021] [lbmethod_heartbeat:notice] [pid 2376:tid 140356282939264] AH02282: No slotmem from mod_heartmonitor
[Fri Feb 19 13:22:11.014366 2021] [mpm_event:notice] [pid 2376:tid 140356282939264] AH00489: Apache/2.4.46 (Unix) OpenSSL/1.1.1 configured -- resuming normal operations
[Fri Feb 19 13:22:11.014386 2021] [core:notice] [pid 2376:tid 140356282939264] AH00094: Command line: 'httpd -d /snap/nextcloud/26119 -D EnableHTTPS -D EnableHSTS -D FOREGROUND'
[Fri Feb 19 13:22:11.020530 2021] [unixd:alert] [pid 2381:tid 140356282939264] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Fri Feb 19 13:22:11.020825 2021] [unixd:alert] [pid 2379:tid 140356282939264] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Fri Feb 19 13:22:11.021054 2021] [unixd:alert] [pid 2380:tid 140356282939264] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Fri Feb 19 13:22:12.016595 2021] [unixd:alert] [pid 2532:tid 140356282939264] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Fri Feb 19 13:22:18.122107 2021] [unixd:alert] [pid 2727:tid 140356282939264] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Fri Feb 19 14:43:12.194393 2021] [mpm_event:notice] [pid 2376:tid 140356282939264] AH00491: caught SIGTERM, shutting down
[Fri Feb 19 14:44:18.458077 2021] [ssl:warn] [pid 2368:tid 140457344120704] AH01909: redacted.eu-central-1.compute.internal:443:0 server certificate does NOT include an ID which matches the server name
[Fri Feb 19 14:44:18.461232 2021] [ssl:warn] [pid 2368:tid 140457344120704] AH01909: redacted.eu-central-1.compute.internal:443:0 server certificate does NOT include an ID which matches the server name
[Fri Feb 19 14:44:18.461397 2021] [lbmethod_heartbeat:notice] [pid 2368:tid 140457344120704] AH02282: No slotmem from mod_heartmonitor
[Fri Feb 19 14:44:18.462125 2021] [mpm_event:notice] [pid 2368:tid 140457344120704] AH00489: Apache/2.4.46 (Unix) OpenSSL/1.1.1 configured -- resuming normal operations
[Fri Feb 19 14:44:18.462143 2021] [core:notice] [pid 2368:tid 140457344120704] AH00094: Command line: 'httpd -d /snap/nextcloud/26119 -D EnableHTTPS -D EnableHSTS -D FOREGROUND'
[Fri Feb 19 14:44:18.467110 2021] [unixd:alert] [pid 2372:tid 140457344120704] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Fri Feb 19 14:44:18.467397 2021] [unixd:alert] [pid 2371:tid 140457344120704] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Fri Feb 19 14:44:18.467634 2021] [unixd:alert] [pid 2373:tid 140457344120704] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Fri Feb 19 14:44:23.467918 2021] [unixd:alert] [pid 2792:tid 140457344120704] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Fri Feb 19 14:44:29.822463 2021] [unixd:alert] [pid 3001:tid 140457344120704] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Sat Feb 20 06:31:18.106787 2021] [proxy_fcgi:error] [pid 2372:tid 140457124271872] [client <ip>:34408] AH01071: Got error 'Primary script unknown'
[Sat Feb 20 14:21:50.693095 2021] [mpm_event:notice] [pid 2368:tid 140457344120704] AH00491: caught SIGTERM, shutting down
[Sat Feb 20 14:22:07.391831 2021] [ssl:warn] [pid 31902:tid 140021285324672] AH01909: <ip>.eu-central-1.compute.internal:443:0 server certificate does NOT include an ID which matches the server name
[Sat Feb 20 14:22:07.396041 2021] [ssl:warn] [pid 31902:tid 140021285324672] AH01909: <ip>.eu-central-1.compute.internal:443:0 server certificate does NOT include an ID which matches the server name
[Sat Feb 20 14:22:07.396201 2021] [lbmethod_heartbeat:notice] [pid 31902:tid 140021285324672] AH02282: No slotmem from mod_heartmonitor
[Sat Feb 20 14:22:07.396978 2021] [mpm_event:notice] [pid 31902:tid 140021285324672] AH00489: Apache/2.4.46 (Unix) OpenSSL/1.1.1 configured -- resuming normal operations
[Sat Feb 20 14:22:07.397005 2021] [core:notice] [pid 31902:tid 140021285324672] AH00094: Command line: 'httpd -d /snap/nextcloud/26119 -D EnableHTTPS -D EnableHSTS -D FOREGROUND'
[Sat Feb 20 14:22:07.399154 2021] [unixd:alert] [pid 31908:tid 140021285324672] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Sat Feb 20 14:22:07.399423 2021] [unixd:alert] [pid 31909:tid 140021285324672] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Sat Feb 20 14:22:07.400236 2021] [unixd:alert] [pid 31907:tid 140021285324672] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Sat Feb 20 14:22:09.400187 2021] [unixd:alert] [pid 32181:tid 140021285324672] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive