Issues after uprading to 25.0.1

Hi there,
after upgrading to 25.0.1 on my NC instance running on TrueNas (FreeBSD 13), I get some weird problems:

Klicking for example in Admin->Overview leads to an internal error

Watching the logfile (occ log:watch) shows, NC has problems with LocalAddressChecker.php
Error index Exception: strpos() expects parameter 1 to be string, bool 2022-11-04T14:04:41+00:00
given in file
‘/usr/local/www/nextcloud/lib/private/Http/Client/LocalAddressChecker.php’

                          line 82 at lib/private/AppFramework/Http/Dispatcher.php line
                          165

                          0. .../App.php line 172
                             OC\AppFramework\Http\Dispatcher->dispatch(

                             )
                          1. .../Route/Router.php line 298
                             OC\AppFramework\App::main(

                             )
                          2. lib/base.php line 1047
                             OC\Route\Router->match(

                             )
                          3. index.php line 36
                             OC::handleRequest(

                             )

                          Caused by TypeError: strpos() expects parameter 1 to be string, bool

                          given at lib/private/Http/Client/LocalAddressChecker.php line
                          82

                           0. .../Http/Client/LocalAddressChecker.php line 82
                              strpos(

                              )
                           1. .../Client.php line 184
                              OC\Http\Client\LocalAddressChecker->ThrowIfLocalAddress(

                              )
                           2. .../Client.php line 217
                              OC\Http\Client\Client->preventLocalAddress(

                              )
                           3. .../VersionCheck.php line 131
                              OC\Http\Client\Client->get(

                              )
                           4. .../VersionCheck.php line 92
                              OC\Updater\VersionCheck->getUrlContent(

                              )
                           5. .../UpdateChecker.php line 52
                              OC\Updater\VersionCheck->check(

                              )
                           6. .../Admin.php line 95
                              OCA\UpdateNotification\UpdateChecker->getUpdateState(

                              )
                           7. .../CommonSettingsTrait.php line 129
                              OCA\UpdateNotification\Settings\Admin->getForm(

                              )
                           8. .../AdminSettingsController.php line 83
                              OCA\Settings\Controller\AdminSettingsController->formatSettings(


                              )
                           9. .../CommonSettingsTrait.php line 149
                              OCA\Settings\Controller\AdminSettingsController->getSettings(


                              )
                          10. .../AdminSettingsController.php line 68
                              OCA\Settings\Controller\AdminSettingsController->getIndexResponse(


                              )
                          11. .../Dispatcher.php line 225
                              OCA\Settings\Controller\AdminSettingsController->index(

                              )
                          12. .../Dispatcher.php line 133
                              OC\AppFramework\Http\Dispatcher->executeController(

                              )
                          13. .../App.php line 172
                              OC\AppFramework\Http\Dispatcher->dispatch(

                              )
                          14. .../Route/Router.php line 298
                              OC\AppFramework\App::main(

                              )
                          15. lib/base.php line 1047
                              OC\Route\Router->match(

                              )
                          16. index.php line 36
                              OC::handleRequest(

                              )

In file lib/private/Http/Client/LocalAddressChecker.php I found, that $host = idn_to_utf8(strtolower(urldecode($host))); returns false and not a string.

Any idea whats wrong here?

Regards and kudos for the great release
Markus

1 Like

I found a solution bymyself.

I downloaded a fresh source zip (latest.zip) and switched my installation to this fresh set of files.

No more errors from now.

I do not understand why this helped but it did so far.

Thanks for reading
Markus

1 Like

Did you use the updater app in the first place? And then just using the code of the zip-archive solved the issue?

I had the same issue updateing to 24.0.9, not sure if they are linked. I’m also running on a FreeBSD system (version 12). On 24.0.7 I didn’t have the problem.

I’m running a test setup on the same server with NC 25.0.4RC1.

I created a bug report