RPohl
February 17, 2025, 1:48am
1
When I go to my admin settings page in nextcloud I Get an error that says
An exception occured while running the setup check: InvalidArgumentException: URL is missing scheme or host in /var/www/html/apps/settings/lib/SetupChecks/CheckServerResponseTrait.php:97 Stack trace: #0 /var/www/html/apps/settings/lib/SetupChecks/CheckServerResponseTrait.php(61): OCA\Settings\SetupChecks\WellKnownUrls->normalizeUrl(‘nextcloud.pohlc…’, true) #1 /var/www/html/apps/settings/lib/SetupChecks/CheckServerResponseTrait.php(130): OCA\Settings\SetupChecks\WellKnownUrls->getTestUrls(‘/.well-known/we…’, true) #2 /var/www/html/apps/settings/lib/SetupChecks/WellKnownUrls.php(56): OCA\Settings\SetupChecks\WellKnownUrls->runRequest(‘get’, ‘/.well-known/we…’, Array, true) #3 /var/www/html/lib/private/SetupCheck/SetupCheckManager.php(34): OCA\Settings\SetupChecks\WellKnownUrls->run() #4 /var/www/html/apps/settings/lib/Controller/CheckSetupController.php(147): OC\SetupCheck\SetupCheckManager->runAll() #5 /var/www/html/lib/private/AppFramework/Http/Dispatcher.php(208): OCA\Settings\Controller\CheckSetupController->check() #6 /var/www/html/lib/private/AppFramework/Http/Dispatcher.php(114): OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\Settings\Controller\CheckSetupController), ‘check’) #7 /var/www/html/lib/private/AppFramework/App.php(161): OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Settings\Controller\CheckSetupController), ‘check’) #8 /var/www/html/lib/private/Route/Router.php(302): OC\AppFramework\App::main(‘OCA\Settings\Co…’, ‘check’, Object(OC\AppFramework\DependencyInjection\DIContainer), Array) #9 /var/www/html/lib/base.php(1003): OC\Route\Router->match(‘/settings/ajax/…’) #10 /var/www/html/index.php(24): OC::handleRequest() #11 {main}
Can someone help me with this. Thank you
1 Like
I have same error and i think this might cause the autoupdate function to not work. anything else works as expected.
1 Like
Hello there, today I updated my NextCloud app, and it seems fine, but when going to the Administration Settings->Overview, it shows the same error reported here:
An exception occured while running the setup check: InvalidArgumentException: URL is missing scheme or host in /var/www/html/lib/public/SetupCheck/CheckServerResponseTrait.php:154 Stack trace: #0 /var/www/html/lib/public/SetupCheck/CheckServerResponseTrait.php(64): OCA\Settings\SetupChecks\WellKnownUrls->normalizeUrl(‘cloud.ferbox.ne…’, true) #1 /var/www/html/lib/public/SetupCheck/CheckServerResponseTrait.php(116): OCA\Settings\SetupChecks\WellKnownUrls->getTestUrls(‘/.well-known/we…’, true) #2 /var/www/html/apps/settings/lib/SetupChecks/WellKnownUrls.php(57): OCA\Settings\SetupChecks\WellKnownUrls->runRequest(‘get’, ‘/.well-known/we…’, Array, true) #3 /var/www/html/lib/private/SetupCheck/SetupCheckManager.php(34): OCA\Settings\SetupChecks\WellKnownUrls->run() #4 /var/www/html/apps/settings/lib/Controller/CheckSetupController.php(134): OC\SetupCheck\SetupCheckManager->runAll() #5 /var/www/html/lib/private/AppFramework/Http/Dispatcher.php(200): OCA\Settings\Controller\CheckSetupController->check() #6 /var/www/html/lib/private/AppFramework/Http/Dispatcher.php(114): OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\Settings\Controller\CheckSetupController), ‘check’) #7 /var/www/html/lib/private/AppFramework/App.php(161): OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Settings\Controller\CheckSetupController), ‘check’) #8 /var/www/html/lib/private/Route/Router.php(307): OC\AppFramework\App::main(‘OCA\Settings\Co…’, ‘check’, Object(OC\AppFramework\DependencyInjection\DIContainer), Array) #9 /var/www/html/lib/base.php(1018): OC\Route\Router->match(‘/settings/ajax/…’) #10 /var/www/html/index.php(24): OC::handleRequest() #11 {main}
Any pointers on how to address this?
Same issue here also on Nextcloud version 31.0.0
Just installed also Nextcloud ( 31.0.2) in Truenas and I have a similar error in logs:
InvalidArgumentException
URL is missing scheme or host
Exception running check OCA\Settings\SetupChecks\WellKnownUrls: URL is missing scheme or host
Hi there,
i just noticed the same issue in my installation. After some digging i found the culprit.
Something borked the trusted_domains part of config/config.php.
I checked this via the application shell and the following commands.
su
su -m www-data -c 'php $(pwd)/occ config:system:get trusted_domains'
Surprisingly the normaly configured values (ip of localhost and the ip of my server) were still in the array together with a lot of bullshit…
So i took note of them and made a backup copy - just in case.
Afterwards i deleted the config and added just the two needed ips.
su -m www-data -c 'php $(pwd)/occ config:system:delete trusted_domains'
su -m www-data -c 'php $(pwd)/occ config:system:set trusted_domains 0 --value=172.0.0.1'
[repeat for the rest of the entries]
su -m www-data -c 'php $(pwd)/occ config:system:get trusted_domains'
Please have a look at the OCC Command manual of Nextcloud (which i cant link here ) to check my commands before executing.
This fixed my errors.
Hope this helps you all.