Issue removing connection to unavailable other Nextcloud instance

I once had a Nextcloud running at xxxxxxx.dyndns.info
This instance is no longer available and I want to remove it’s connection definition, as it still causes errors.

In NC Admin Webfront, neither at personal “External Storage” = “Es ist kein externer Speicher eingerichtet oder du hast keine Berechtigung dies zu tun.” nor at global external storage, entries can be found.

How can I get rid of the following error messages:

Warnung no app in context
ConnectException cURL error 28: Failed to connect to xxxxxxx.dyndns.info port 4431 after 5202 ms: Connection timed out (see libcurl - Error Codes) for https://xxxxxx.dyndns.info:4431/ocm-provider/
error while discovering ocm provider

StorageNotAvailableException Sabre\HTTP\ClientException: Failed to connect to xxxxxxxxx.dyndns.info port 4431 after 130047 ms: Connection timed out
External storage not available: Sabre\HTTP\ClientException: Failed to connect to xxxxxxxxxx.dyndns.info port 4431 after 130047 ms: Connection timed out

Currently running Nextcloud Hub 7 (28.0.2), but it has been like this since NC20.

Bump - nobody any idea?

Here’s the detailed error message

{"reqId":"cZ2xxxxxxx7guiv","level":2,"time":"2024-02-21T18:14:02+01:00","remoteAddr":"172.18.0.2","user":"username","app":"no app in context","method":"POST","url":"/apps/onlyoffice/track?doc=eyJ0eXAiOiJKV1xxxx8MX-vddp8kY4VtX_PHr4","message":"error while discovering ocm provider","userAgent":"--","version":"28.0.2.5","exception":{"Exception":"GuzzleHttp\\Exception\\ConnectException","Message":"cURL error 28: Failed to connect to xxxxxxxxxx.dyndns.info port 4431 after 5202 ms: Connection timed out (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://xxxxxxxxxx.dyndns.info:4431/ocm-provider/","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","line":158,"function":"createRejection","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","line":110,"function":"finishError","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlHandler.php","line":47,"function":"finish","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":137,"function":"__invoke","class":"GuzzleHttp\\Handler\\CurlHandler","type":"->"},{"file":"/var/www/nextcloud/lib/private/Http/Client/DnsPinMiddleware.php","line":121,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php","line":35,"function":"OC\\Http\\Client\\{closure}","class":"OC\\Http\\Client\\DnsPinMiddleware","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":31,"function":"__invoke","class":"GuzzleHttp\\PrepareBodyMiddleware","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":71,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":63,"function":"__invoke","class":"GuzzleHttp\\RedirectMiddleware","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php","line":75,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":331,"function":"__invoke","class":"GuzzleHttp\\HandlerStack","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":168,"function":"transfer","class":"GuzzleHttp\\Client","type":"->"},{"file":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php","line":187,"function":"requestAsync","class":"GuzzleHttp\\Client","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/Http/Client/Client.php","line":230,"function":"request","class":"GuzzleHttp\\Client","type":"->"},{"file":"/var/www/nextcloud/lib/private/OCM/OCMDiscoveryService.php","line":91,"function":"get","class":"OC\\Http\\Client\\Client","type":"->"},{"file":"/var/www/nextcloud/apps/files_sharing/lib/External/Storage.php","line":87,"function":"discover","class":"OC\\OCM\\OCMDiscoveryService","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Mount/MountPoint.php","line":168,"function":"__construct","class":"OCA\\Files_Sharing\\External\\Storage","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Mount/MountPoint.php","line":193,"function":"createStorage","class":"OC\\Files\\Mount\\MountPoint","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/Files/Mount/MountPoint.php","line":294,"function":"getStorage","class":"OC\\Files\\Mount\\MountPoint","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Config/UserMountCache.php","line":83,"function":"getStorageRootId","class":"OC\\Files\\Mount\\MountPoint","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/SetupManager.php","line":297,"function":"registerMounts","class":"OC\\Files\\Config\\UserMountCache","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/SetupManager.php","line":221,"function":"afterUserFullySetup","class":"OC\\Files\\SetupManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Util.php","line":110,"function":"setupForUser","class":"OC\\Files\\SetupManager","type":"->"},{"file":"/var/www/nextcloud/apps/onlyoffice/lib/Controller/CallbackController.php","line":510,"function":"setupFS","class":"OC_Util","type":"::"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"track","class":"OCA\\Onlyoffice\\Controller\\CallbackController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1069,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":39,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","Line":210,"message":"error while discovering ocm provider","exception":[],"remote":"https://xxxxxxxxxx.dyndns.info:4431","CustomMessage":"error while discovering ocm provider"},"id":"65d630808e428"}

Same happens here. I have log full of

 LocalServerException No DNS record found for cloud.xxxxx.xxxxxx
error while discovering ocm provider

messages. I’ve removed the reference to inactive server in sharing settings

Which “sharing settings” do you mean?
Can you give me some more precise info?

My “External storage” has no config, and
grafik

“Sharing” is also empty.

I think i have the same problem.

Which reference did you remove where?

Thanks,
Tuffi

I found a solution for my problem:

1 Like

Big THANKS to Tuffiglig for this solution.

In case less experienced people need to delete a record:

At command line connect to DB using “mysql” or “mariadb”

MariaDB [(none)]> show databases;
±-------------------+
| Database |
±-------------------+
| information_schema |
| mysql |
| owncloud |
| performance_schema |
±-------------------+
4 rows in set (0,015 sec)

MariaDB [(none)]> use owncloud;

MariaDB [owncloud]> SELECT * FROM oc_share_external;
±—±--------------------------------------±----------------±---------±---------------------±-----------±---------±----------------------------±---------------------------------±----------±---------±-------±-----------+
| id | remote | share_token | password | name | owner | user | mountpoint | mountpoint_hash | remote_id | accepted | parent | share_type |
±—±--------------------------------------±----------------±---------±---------------------±-----------±---------±----------------------------±---------------------------------±----------±---------±-------±-----------+
| 6 | http://nonexistant any more | tndssssssssssse | | /test.ods | jaaaaaaar | jaaaaaar | /Shares/test (2).ods | 58absssssssssssssssssss4d | 5 | 1 | -1 | 0 |
| 9 | https://cloud.dddddd.de/ | clddddddds0 | | /CyyyyyyyyyyymbH | vsssskov | sddddddn | /ssssssssssss GmbH | b9e4sssssssssssssssssc19 | 17387 | 1 | -1 | 0 |
±—±--------------------------------------±----------------±---------±---------------------±-----------±---------±----------------------------±---------------------------------±----------±---------±-------±-----------+
2 rows in set (0,002 sec)

MariaDB [owncloud]> Delete FROM oc_share_external where owner=“jaaaaaaar”;
Query OK, 1 row affected (0,002 sec)

1 Like

Happy to Help. :slight_smile:

And thanks for the nice instruction.