Infinite redirect to /apps/files/

Hi,

I’m trying to setup Nextcloud on openSUSE. I’m using package from openSUSE repository (version 24.0.8).
But after installing and logging in it enters infinite redirect to /apps/files/.
I’m serving with PHP-FPM on server A and using Nginx on server B.

I have narrowed it down to lib/base.php handleRequest() line 1054
There:

header('Location: ' . \OC::$server->getURLGenerator()->linkToDefaultPageUrl());

linkToDefaultPageUrl() is always "/apps/files/" even when current URL already isd "/apps/files/"

I don’t understand how this is supposted to work at all… Any ideas? There are no errors/warnings in logs at all.

Also I see some people had similar issue in past Infinite loop on /index.php/apps/files/ -- 302 · Issue #11203 · nextcloud/server · GitHub but this is something different.

Weird how so old version comes with openSUSE Leap.

Now I did

zypper addrepo https://download.opensuse.org/repositories/server:php:applications/15.6/server:php:applications.repo
zypper refresh

And reinstalled with newer v29.0.4 and error is bit different, says “Page not found”

When installing I saw this error message:

That error "Could not fetch list of apps from the App Store." is because https://nextcloud/settings/apps/list returns HTTP 404.

I figured it out, in /srv/www/htdocs/nextcloud/config/config.php I had

'apps_paths' =>
  array (
    0 =>
    array (
     'path' => '/var/lib/nextcloud/apps',
      'url' => '/apps',
      'writable' => true,
    ),
  ),

but it needed to be

'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/srv/www/htdocs/nextcloud/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>
    array (
      'path' => '/var/lib/nextcloud/apps',
      'url' => '/wapps',
      'writable' => true,
    ),
  ),

And now it works :slight_smile:

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