The Basics
- Nextcloud Server version = 30.0.4snap1 (45728)
- Operating system and version = Ubuntu Mate 24.04.1
- Web server and version (e.g, Apache 2.4.25): Whatever is in the Snap
- Reverse proxy and version (e.g. nginx 1.27.2): Whatever is in the Snap
- PHP version (e.g, 8.3): Whatever is in the Snap
- Is this the first time youâve seen this error? (Yes / No): Yes
- When did this problem seem to first start? First noticed it yesterday 02Jan25. Log screen errors go back as far as 30Dec24.
- Installation method = Snap
- Are you using Cloudflare, mod_security, or similar? = No
Summary of the issue you are facing:
I am no longer able to access the web interface for Nextcloud from other machines, or sync devices. My setup has not changed, other than updates, for a couple of years and has worked fine until now. Attempting to load the WebUI from other machines presents a âConnection has timed outâ error. Attempting to sync my calendars with various devices (via DavX5) fails silently. The only way to access the WebUI or sync with CalDAV is on the local machine (CalDAV syncing to local instance of Thunderbird).
Summary:
Local (server) Machine -
- WebGUI via 127.0.0.1 = works
- WebGUI via 192.168.1.233 = works
- WebGUI via nextcloud.local = broken
- CalDAV via Thunderbird = works
Syncing Devices-
- WebGUI via 192.168.1.233 = broken
- WebGUI via nextcloud.local = broken
- CalDAV via DavX5 = broken
- Nextcloud App = broken
Log entries
Nextcloud
I have a very long list of errors in my Administration settings->Logging screen. A large number appear to relate to mail server authentication issues and thinking it might have something to do with Microsoft changing the way Outlook mail works (and now causing my Live.com email to stop working), I deleted all mail settings with no change. Below I have picked out some more relevant entries, all of which appear several times each in the list.
|Error|richdocuments|ConnectException
cURL error 7: Failed to connect to 192.168.1.233 port 80: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://192.168.1.233/extra-apps/richdocumentscode/proxy.php?req=/hosting/discovery
Failed to fetch discovery: cURL error 7: Failed to connect to 192.168.1.233 port 80: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://192.168.1.233/extra-apps/richdocumentscode/proxy.php?req=/hosting/discovery
Raw:
{"reqId":"MtyFAeC9v7Qc0zbd6b1a","level":3,"time":"2025-01-03T01:44:39+00:00","remoteAddr":"","user":"--","app":"richdocuments","method":"","url":"--","message":"Failed to fetch discovery: cURL error 7: Failed to connect to 192.168.1.233 port 80: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://192.168.1.233/extra-apps/richdocumentscode/proxy.php?req=/hosting/discovery","userAgent":"--","version":"30.0.4.1","exception":{"Exception":"GuzzleHttp\\Exception\\ConnectException","Message":"cURL error 7: Failed to connect to 192.168.1.233 port 80: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://192.168.1.233/extra-apps/richdocumentscode/proxy.php?req=/hosting/discovery","Code":0,"Trace":[{"file":"/snap/nextcloud/45728/htdocs/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","line":158,"function":"createRejection","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/45728/htdocs/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","line":110,"function":"finishError","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::"},{"file":"/snap/nextcloud/45728/htdocs/3rdparty/guzzlehttp/guzzle/src/Handler/CurlHandler.php","line":47,"function":"finish","class":"GuzzleHttp\\Handler\\CurlFactory","type":"::"},{"file":"/snap/nextcloud/45728/htdocs/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":142,"function":"__invoke","class":"GuzzleHttp\\Handler\\CurlHandler","type":"->"},{"file":"/snap/nextcloud/45728/htdocs/lib/private/Http/Client/DnsPinMiddleware.php","line":109,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/45728/htdocs/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php","line":35,"function":"OC\\Http\\Client\\{closure}","class":"OC\\Http\\Client\\DnsPinMiddleware","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/45728/htdocs/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":31,"function":"__invoke","class":"GuzzleHttp\\PrepareBodyMiddleware","type":"->"},{"file":"/snap/nextcloud/45728/htdocs/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":71,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/45728/htdocs/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":66,"function":"__invoke","class":"GuzzleHttp\\RedirectMiddleware","type":"->"},{"file":"/snap/nextcloud/45728/htdocs/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php","line":75,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/45728/htdocs/3rdparty/guzzlehttp/guzzle/src/Client.php","line":333,"function":"__invoke","class":"GuzzleHttp\\HandlerStack","type":"->"},{"file":"/snap/nextcloud/45728/htdocs/3rdparty/guzzlehttp/guzzle/src/Client.php","line":169,"function":"transfer","class":"GuzzleHttp\\Client","type":"->"},{"file":"/snap/nextcloud/45728/htdocs/3rdparty/guzzlehttp/guzzle/src/Client.php","line":189,"function":"requestAsync","class":"GuzzleHttp\\Client","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/snap/nextcloud/45728/htdocs/lib/private/Http/Client/Client.php","line":205,"function":"request","class":"GuzzleHttp\\Client","type":"->"},{"file":"/var/snap/nextcloud/45728/nextcloud/extra-apps/richdocuments/lib/Service/DiscoveryService.php","line":59,"function":"get","class":"OC\\Http\\Client\\Client","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/snap/nextcloud/45728/nextcloud/extra-apps/richdocuments/lib/Service/CachedRequestService.php","line":74,"function":"sendRequest","class":"OCA\\Richdocuments\\Service\\DiscoveryService","type":"->"},{"file":"/var/snap/nextcloud/45728/nextcloud/extra-apps/richdocuments/lib/Backgroundjobs/ObtainCapabilities.php","line":41,"function":"fetch","class":"OCA\\Richdocuments\\Service\\CachedRequestService","type":"->"},{"file":"/snap/nextcloud/45728/htdocs/lib/public/BackgroundJob/Job.php","line":61,"function":"run","class":"OCA\\Richdocuments\\Backgroundjobs\\ObtainCapabilities","type":"->"},{"file":"/snap/nextcloud/45728/htdocs/lib/public/BackgroundJob/TimedJob.php","line":88,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->"},{"file":"/snap/nextcloud/45728/htdocs/lib/public/BackgroundJob/TimedJob.php","line":75,"function":"start","class":"OCP\\BackgroundJob\\TimedJob","type":"->"},{"file":"/snap/nextcloud/45728/htdocs/cron.php","line":162,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->"}],"File":"/snap/nextcloud/45728/htdocs/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","Line":210,"message":"Failed to fetch discovery: cURL error 7: Failed to connect to 192.168.1.233 port 80: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://192.168.1.233/extra-apps/richdocumentscode/proxy.php?req=/hosting/discovery","exception":[],"CustomMessage":"Failed to fetch discovery: cURL error 7: Failed to connect to 192.168.1.233 port 80: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://192.168.1.233/extra-apps/richdocumentscode/proxy.php?req=/hosting/discovery"},"id":"67774cf41234b"}
|Error|no app in context|InvalidArgumentException
URL is missing scheme or host
Exception running check OCA\Settings\SetupChecks\WellKnownUrls: URL is missing scheme or host
Raw:
{"reqId":"LpcuUpktryTPTnFcaY7q","level":3,"time":"2025-01-02T08:00:31+00:00","remoteAddr":"127.0.0.1","user":"nextcloudadmin","app":"no app in context","method":"GET","url":"/index.php/settings/ajax/checksetup","message":"Exception running check OCA\\Settings\\SetupChecks\\WellKnownUrls: URL is missing scheme or host","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0","version":"30.0.4.1","exception":{"Exception":"InvalidArgumentException","Message":"URL is missing scheme or host","Code":0,"Trace":[{"file":"/snap/nextcloud/45728/htdocs/apps/settings/lib/SetupChecks/CheckServerResponseTrait.php","line":61,"function":"normalizeUrl","class":"OCA\\Settings\\SetupChecks\\WellKnownUrls","type":"->"},{"file":"/snap/nextcloud/45728/htdocs/apps/settings/lib/SetupChecks/CheckServerResponseTrait.php","line":130,"function":"getTestUrls","class":"OCA\\Settings\\SetupChecks\\WellKnownUrls","type":"->"},{"file":"/snap/nextcloud/45728/htdocs/apps/settings/lib/SetupChecks/WellKnownUrls.php","line":56,"function":"runRequest","class":"OCA\\Settings\\SetupChecks\\WellKnownUrls","type":"->"},{"file":"/snap/nextcloud/45728/htdocs/lib/private/SetupCheck/SetupCheckManager.php","line":34,"function":"run","class":"OCA\\Settings\\SetupChecks\\WellKnownUrls","type":"->"},{"file":"/snap/nextcloud/45728/htdocs/apps/settings/lib/Controller/CheckSetupController.php","line":147,"function":"runAll","class":"OC\\SetupCheck\\SetupCheckManager","type":"->"},{"file":"/snap/nextcloud/45728/htdocs/lib/private/AppFramework/Http/Dispatcher.php","line":208,"function":"check","class":"OCA\\Settings\\Controller\\CheckSetupController","type":"->"},{"file":"/snap/nextcloud/45728/htdocs/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/snap/nextcloud/45728/htdocs/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/snap/nextcloud/45728/htdocs/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/snap/nextcloud/45728/htdocs/lib/base.php","line":1003,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/snap/nextcloud/45728/htdocs/index.php","line":24,"function":"handleRequest","class":"OC","type":"::"}],"File":"/snap/nextcloud/45728/htdocs/apps/settings/lib/SetupChecks/CheckServerResponseTrait.php","Line":97,"message":"Exception running check OCA\\Settings\\SetupChecks\\WellKnownUrls: URL is missing scheme or host","exception":[],"CustomMessage":"Exception running check OCA\\Settings\\SetupChecks\\WellKnownUrls: URL is missing scheme or host"},"id":"67774cf412b87"}
|Error|PHP
Trying to access array offset on value of type null at /var/snap/nextcloud/45728/nextcloud/extra-apps/richdocuments/lib/Service/CachedRequestService.php#146
Raw:
{"reqId":"QLblC4UnceljrPhdPYmh","level":3,"time":"2024-12-30T02:32:44+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Trying to access array offset on value of type null at /var/snap/nextcloud/45728/nextcloud/extra-apps/richdocuments/lib/Service/CachedRequestService.php#146","userAgent":"--","version":"30.0.4.1","data":{"app":"PHP"},"id":"67774cf4133d4"}
Configuration
Nextcloud
The contents of my config.php
file:
<?php
$CONFIG = array (
'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,
),
'log_type' => 'file',
'logfile' => '/var/snap/nextcloud/current/logs/nextcloud.log',
'logfilemode' => 416,
'instanceid' => 'oc2bh0h2dj0i',
'passwordsalt' => '***redacted***',
'secret' => '***redacted***',
'trusted_domains' =>
array (
0 => '192.168.1.233',
1 => 'nextcloud.local',
),
'datadirectory' => '/var/snap/nextcloud/common/nextcloud/data',
'dbtype' => 'mysql',
'version' => '30.0.4.1',
'overwrite.cli.url' => 'https://192.168.1.233',
'dbname' => 'nextcloud',
'dbhost' => 'localhost:/tmp/sockets/mysql.sock',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => '***redacted***',
'installed' => true,
'maintenance' => false,
'app.mail.transport' => 'php-mail',
'loglevel' => 2,
'theme' => '',
'maintenance_window_start' => 1,
);