Skip to content

Upgrade from 4.0.8 to 7.2.3 causes missing spaces #3264

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status
    Qualification

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions