Nextcloud URL Rewrite Now An Issue Upon Upgrade?

Hello all,

I upgraded my Nexcloud instance today to 30.0.4 and now I am receiving a curious error regarding my Nextcloud domain URL. My URL for nextcloud is still fully functional and I can access from anywhere, but I now receive the below error message in red.

The formatted entry from the log is:

[no app in context] Error: Exception running check OCA\Settings\SetupChecks\WellKnownUrls: URL is missing scheme or host
GET /index.php/settings/ajax/checksetup
from 172.16.10.1 by ncadmin at 20 Dec 2024, 14:00:56

The Raw version of the log for this error is:

{“reqId”:“rSiyHYdF51tmIT0BzIL3”,“level”:3,“time”:“2024-12-20T14:00:56+00:00”,“remoteAddr”:“172.16.10.1”,“user”:“ncadmin”,“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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36”,“version”:“30.0.4.1”,“exception”:{“Exception”:“InvalidArgumentException”,“Message”:“URL is missing scheme or host”,“Code”:0,“Trace”:[{“file”:“/var/www/html/apps/settings/lib/SetupChecks/CheckServerResponseTrait.php”,“line”:61,“function”:“normalizeUrl”,“class”:“OCA\Settings\SetupChecks\WellKnownUrls”,“type”:“->”,“args”:[“nextcloud.mydomain.com”,true]},{“file”:“/var/www/html/apps/settings/lib/SetupChecks/CheckServerResponseTrait.php”,“line”:130,“function”:“getTestUrls”,“class”:“OCA\Settings\SetupChecks\WellKnownUrls”,“type”:“->”,“args”:[“/.well-known/webfinger”,true]},{“file”:“/var/www/html/apps/settings/lib/SetupChecks/WellKnownUrls.php”,“line”:56,“function”:“runRequest”,“class”:“OCA\Settings\SetupChecks\WellKnownUrls”,“type”:“->”,“args”:[“get”,“/.well-known/webfinger”,{“ignoreSSL”:true,“httpErrors”:false,“options”:{“allow_redirects”:{“track_redirects”:true}}},true]},{“file”:“/var/www/html/lib/private/SetupCheck/SetupCheckManager.php”,“line”:34,“function”:“run”,“class”:“OCA\Settings\SetupChecks\WellKnownUrls”,“type”:“->”,“args”:},{“file”:“/var/www/html/apps/settings/lib/Controller/CheckSetupController.php”,“line”:147,“function”:“runAll”,“class”:“OC\SetupCheck\SetupCheckManager”,“type”:“->”,“args”:},{“file”:“/var/www/html/lib/private/AppFramework/Http/Dispatcher.php”,“line”:208,“function”:“check”,“class”:“OCA\Settings\Controller\CheckSetupController”,“type”:“->”,“args”:},{“file”:“/var/www/html/lib/private/AppFramework/Http/Dispatcher.php”,“line”:114,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:“->”,“args”:[{“class”:“OCA\Settings\Controller\CheckSetupController”},“check”]},{“file”:“/var/www/html/lib/private/AppFramework/App.php”,“line”:161,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:“->”,“args”:[{“class”:“OCA\Settings\Controller\CheckSetupController”},“check”]},{“file”:“/var/www/html/lib/private/Route/Router.php”,“line”:302,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:“::”,“args”:[“OCA\Settings\Controller\CheckSetupController”,“check”,{“class”:“OC\AppFramework\DependencyInjection\DIContainer”},{“_route”:“settings.checksetup.check”}]},{“file”:“/var/www/html/lib/base.php”,“line”:1003,“function”:“match”,“class”:“OC\Route\Router”,“type”:“->”,“args”:[“/settings/ajax/checksetup”]},{“file”:“/var/www/html/index.php”,“line”:24,“function”:“handleRequest”,“class”:“OC”,“type”:“::”,“args”:}],“File”:“/var/www/html/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”:“676579ade3f00”}

I assume that the yellow warning regarding my “overwrite.cli.url” option is also related as this is now popping up for the first time as well as below:

Frankly, I am not really sure if this is a “real” issue or something arbritary. I have not made any configuration changes to Nextcloud. For reference my URL rewrite is as below in my config.php.

‘overwrite.cli.url’ => ‘nextcloud.redacted.com’,
‘overwriteprotocol’ => ‘https’,
‘overwritehost’ => ‘nextcloud.redacted.com’,

Any ideas on why Nextcloud is now showing this as an isue?

Thanks in advance.

1 Like

This is now resolved.

As my overwrite config has never been an issue, this threw me. However the new warning simply indicates that I should have “https://” as part of my overwrite.cli url.

So rather than this:

‘overwrite.cli.url’ => ‘nextcloud.redacted.com’,
‘overwriteprotocol’ => ‘https’,
‘overwritehost’ => ‘nextcloud.redacted.com’,

It should be this:

‘overwrite.cli.url’ => ‘https://nextcloud.redacted.com’,
‘overwriteprotocol’ => ‘https’,
‘overwritehost’ => ‘nextcloud.redacted.com’,

Hopefully that helps anyone wondering.

5 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.