Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Nextcloud update throws Redis error

    Nextcloud
    3
    4
    159
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      vansens last edited by

      Hello,
      I am on Nextcloud 22.0.0 package version v4.10.0
      Whenever I try to upgrade to 22.1.0 via the Cloudron update mechanism, the app will restart over and over with this error:

      Redis cluster config is missing the "seeds" attribute in /app/code/lib/private/RedisFactory.php:86

      I found this:
      https://help.nextcloud.com/t/redis-cluster-error-without-having-a-cluster/121589
      but I have no luck editing the file
      lib/private/RedisFactory.php
      because the container does not stay up/restarts over and over.

      It was also suggested by Cloudron support to go to the file editor in Cloudron and edit the file config/config/php and remove all redis references, but the error still pops up the next time I am trying the upgrade.

      Any suggestions would be helpful. Maybe I can somehow export all data from Nextcloud, remove it completely and then install the latest 22.2.23 instead?

      Thank you!

      nebulon 1 Reply Last reply Reply Quote 0
      • nebulon
        nebulon Staff @vansens last edited by

        @vansens have you made any further tweaks to the config.php at some point?

        For reference, the redis related configs should look something like https://git.cloudron.io/cloudron/nextcloud-app/-/blob/master/start.sh#L100

        1 Reply Last reply Reply Quote 0
        • girish
          girish Staff last edited by

          It seems https://github.com/nextcloud/server/issues/28609 is the related bug report. This $isCluster = in_array('redis.cluster', $this->config->getKeys()); seems to have some funny behavior when dot is used.

          i.e the array itself has no redis.cluster but there is a redis. It seems the function looks for some subkey or something and decides to return true even if there is no redis: { cluster: xx }. crazy php functions.

          1 Reply Last reply Reply Quote 0
          • girish
            girish Staff last edited by girish

            OK, found the root cause. The config.php contained a spurious 0 => 'NANphp',. When checking the presence of the redis.cluster property in the config, the in_array function can return true when the config contains a 0 property as (int)'redis.cluster' === 0.

            https://github.com/nextcloud/server/pull/29906 is the upstream PR.

            Solution: remove the spurious 0 => 'NANphp', in config.php using the file manager .

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB