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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Nextcloud
  3. Nextcloud update throws Redis error

Nextcloud update throws Redis error

Scheduled Pinned Locked Moved Solved Nextcloud
4 Posts 3 Posters 736 Views 3 Watching
  • 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 Offline
    V Offline
    vansens
    wrote on last edited by
    #1

    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!

    nebulonN 1 Reply Last reply
    0
    • V vansens

      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!

      nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

      @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
      0
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #3

        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
        0
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by girish
          #4

          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
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Bookmarks
          • Search