Skip to content

Upgrade from 4.0.8 to 7.2.3 causes missing spaces #3264

Closed

Description

@xImMoRtALitY99

Describe the bug

After upgrading from version 4.0.8 to 7.2.3 the users space doesn't load anymore nor can I create new ones.

Steps to reproduce

  1. Have a running instance with version 4.0.8
  2. Upgrade to version 7.2.3 as it is mentioned on https://docs.opencloud.eu/docs/admin/maintenance/upgrade/upgrade-7.x.x
  3. Start the instance and wait for the migration to finish, all spaces are gone from the WebUI.

Expected behavior

All spaces and data being shown after the upgrade.

Actual behavior

The space of the logged in user doesn't show up and new spaces can't be created.

Setup

Please describe how you started the server and provide a list of relevant environment variables or configuration files.
docker-compose.yml:

services:
  office:
    container_name: office
    image: ghcr.io/euro-office/documentserver:latest
    restart: unless-stopped
    ports:
      - 127.0.0.1:8080:80/tcp
    env_file:
      - .env.office
    networks:
      opencloud:
  opencloud:
    container_name: opencloud
    image: opencloudeu/opencloud:7.2.3
    restart: unless-stopped
    ports:
      - 127.0.0.1:9200:9200/tcp
    volumes:
      - ./opencloud/config:/etc/opencloud
      - ./opencloud/data:/var/lib/opencloud
    depends_on:
      valkey-sentinel:
        condition: service_started
      office:
        condition: service_started
    env_file:
      - .env.opencloud
    entrypoint:
      - /bin/sh
    command: [ "-c", "opencloud init || true; opencloud server" ]
    networks:
      opencloud:
  valkey:
    container_name: valkey
    image: valkey/valkey:9-alpine
    restart: unless-stopped
    volumes:
      - ./valkey/valkey.conf:/usr/local/etc/valkey/valkey.conf:ro
      - ./valkey/data:/data
    command: valkey-server /usr/local/etc/valkey/valkey.conf
    networks:
      opencloud:
  valkey-sentinel:
    container_name: valkey-sentinel
    image: valkey/valkey:9-alpine
    restart: unless-stopped
    volumes:
      - ./valkey/valkey-sentinel.conf:/usr/local/etc/valkey/valkey-sentinel.conf
    depends_on:
      valkey:
        condition: service_started
    command: valkey-sentinel /usr/local/etc/valkey/valkey-sentinel.conf
    networks:
      opencloud:

networks:
  opencloud:
    external: true

.env.office:

JWT_SECRET=xxx
WOPI_ENABLED=true

.env.opencloud:

COLLABORATION_APP_ADDR=https://office-cloud.example.com
COLLABORATION_APP_ICON=https://office-cloud.example.com/web-apps/apps/documenteditor/main/resources/img/favicon.ico
COLLABORATION_APP_NAME=Euro-Office
COLLABORATION_APP_PRODUCT=OnlyOffice
COLLABORATION_JWT_SECRET=
COLLABORATION_WOPI_SECRET=
COLLABORATION_WOPI_SRC=https://office-cloud.example.com
EURO_OFFICE_DOMAIN=office-cloud.example.com
IDM_ADMIN_PASSWORD=xxx
NOTIFICATIONS_SMTP_AUTHENTICATION=auto
NOTIFICATIONS_SMTP_ENCRYPTION=ssltls
NOTIFICATIONS_SMTP_HOST=cloud.example.com
NOTIFICATIONS_SMTP_PASSWORD=xxx
NOTIFICATIONS_SMTP_PORT=465
NOTIFICATIONS_SMTP_SENDER='OPENCLOUD <cloud.example.com>'
NOTIFICATIONS_SMTP_USERNAME=
NOTIFICATIONS_WEB_UI_URL=https://cloud.example.com
OC_ADD_RUN_SERVICES=collaboration
OC_BASE_DATA_PATH=/var/lib/opencloud
OC_CACHE_STORE_NODES=valkey-sentinel:26379/myprimary
OC_CACHE_STORE=redis-sentinel
OC_CACHE_TTL=6h
OC_CONFIG_DIR=/etc/opencloud
OC_INSECURE=false
OC_JWT_SECRET=xxx
OC_LOG_LEVEL=error
OC_MAX_CONCURRENCY=10
OC_SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD=false
OC_URL=https://cloud.example.com
PROXY_CSP_CONFIG_FILE_LOCATION=/etc/opencloud/csp.yaml
PROXY_ENABLE_BASIC_AUTH=true
PROXY_HTTP_ADDR=0.0.0.0:9200
PROXY_TLS=false
SHARING_LOG_LEVEL=info
STORAGE_USERS_POSIX_WATCH_FS=true
THUMBNAILS_MAX_INPUT_HEIGHT=16384
THUMBNAILS_MAX_INPUT_WIDTH=16384

Additional context

I already found out that it seems related to the following environment variables:

OC_CACHE_STORE_NODES=valkey-sentinel:26379/myprimary
OC_CACHE_STORE=redis-sentinel
OC_CACHE_TTL=6h

The issue with the upgrade doesn't occur if the default cache store "nats-js-kv" is used.

Activity

  1. micbar commented on Aug 14, 2026

    @micbar
    Member

    @rhafer @aduffeck @tbsbdr
    This problem occurs when people do not use nats as store.

    I thought we do not support redis anymore?

  2. rhafer commented on Oct 28, 2026

    @rhafer
    Member

    @rhafer @aduffeck @tbsbdr
    This problem occurs when people do not use nats as store.
    I thought we do not support redis anymore?

    Yes, I thought that as well. IMO we should make it pretty cleare that valkey/redis is unsupported.

    The issue with the upgrade doesn't occur if the default cache store "nats-js-kv" is used.

    @xImMoRtALitY99 Is there a specific reason why you switched to valkey? Of was it just for testing.

  3. moved this from Qualification to Prio 2 in OpenCloud Team Boardon Oct 28, 2026
  4. xImMoRtALitY99 commented on Oct 29, 2026

    @xImMoRtALitY99
    Author

    I think I used Redis/Valkey for OC_CACHE_STORE_NODES back when running a separate collaboration service/container was still required, possibly some leftover configuration from when I was using OCIS before migrating to OC. Once I noticed that the collaboration service had been integrated into the main binary, I removed most of the additional settings and environment variables.

    I noticed the issue with Redis/Valkey before migrating my data to OC. I used Valkey instead of Redis(even though it wasn’t mentioned in the documentation) because I hated Redis’s license change and what it meant for the open-source community.

  5. rhafer commented on Nov 9, 2026

    @rhafer
    Member

    @tbsbdr I think we should add a note to the release notes for 9.0.x about "redis being deprecated as a backend for all caches and stores."

  6. micbar commented on Nov 11, 2026

    @micbar
    Member

    @tbsbdr This is just a release notes topic.

    If that sentence above is added, we could remove the blocker here.

  7. tbsbdr commented on Nov 12, 2026

    @tbsbdr
    Member

    Like this? @micbar, please refine the note. You’re best placed to put yourself in the shoes of an affected admin. #3815 (comment)

  8. micbar commented on Nov 13, 2026

    @micbar
    Member

    Correct. That closes the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions