Skip to content

Files disappear from OpenCloud v5.0.0 #2220

Closed

Description

Describe the bug

After updating to v5.0.0, I encountered an issue twice where all files and folders suddenly disappeared from the OpenCloud web UI. The system seemingly marks them as deleted, which then triggers the OpenCloud desktop client to delete those files/folders locally. However, the files are not actually deleted on the server, and restarting the OpenCloud container causes them to reappear in the UI and sync correctly again (until this issue happens again).

Steps to reproduce

I did not interact with OpenCloud at all, and there were also no pending file changes, so as far as I am concerned:

  1. Update to 5.0.0
  2. Wait (less than an hour in my case)

Expected behavior

Files that are present on the server's file system should be present in OpenCloud.

Actual behavior

Files that are present on the server's file system suddenly disappear from OpenCloud.

Setup

I'm running OpenCloud on Unraid, through docker compose. I've enabled mail notifications, Radicale, Tika (full), OIDC and installed the unzip, progress-bars and json-viewer extensions.

docker-compose.yml

Details

services:
  opencloud:
    image: ${OC_DOCKER_IMAGE:-opencloudeu/opencloud-rolling}:${OC_DOCKER_TAG:-latest}
    user: ${OC_CONTAINER_UID_GID:-1000:1000}
    networks:
      opencloud-net: null
    entrypoint:
      - /bin/sh
    command:
      - -c
      - opencloud init || true; opencloud server
    environment:
      # enable services that are not started automatically
      OC_ADD_RUN_SERVICES: ${START_ADDITIONAL_SERVICES}
      OC_URL: https://${OC_DOMAIN:-cloud.opencloud.test}${TRAEFIK_PORT_HTTPS:+:}${TRAEFIK_PORT_HTTPS:-}
      OC_LOG_LEVEL: ${LOG_LEVEL:-info}
      OC_LOG_COLOR: ${LOG_PRETTY:-false}
      OC_LOG_PRETTY: ${LOG_PRETTY:-false}
      # do not use SSL between the reverse proxy and OpenCloud
      PROXY_TLS: "false"
      # INSECURE: needed if OpenCloud / reverse proxy is using self generated certificates
      OC_INSECURE: ${INSECURE:-false}
      # basic auth (not recommended, but needed for eg. WebDav clients that do not support OpenID Connect)
      PROXY_ENABLE_BASIC_AUTH: ${PROXY_ENABLE_BASIC_AUTH:-false}
      # demo users
      IDM_CREATE_DEMO_USERS: ${DEMO_USERS:-false}
      # admin password
      IDM_ADMIN_PASSWORD: ${INITIAL_ADMIN_PASSWORD}
      # email server (if configured)
      NOTIFICATIONS_SMTP_HOST: ${SMTP_HOST}
      NOTIFICATIONS_SMTP_PORT: ${SMTP_PORT}
      NOTIFICATIONS_SMTP_SENDER: ${SMTP_SENDER:-OpenCloud Notifications
        <[email protected]>}
      NOTIFICATIONS_SMTP_USERNAME: ${SMTP_USERNAME}
      NOTIFICATIONS_SMTP_PASSWORD: ${SMTP_PASSWORD}
      NOTIFICATIONS_SMTP_INSECURE: ${SMTP_INSECURE:-false}
      NOTIFICATIONS_SMTP_AUTHENTICATION: ${SMTP_AUTHENTICATION}
      NOTIFICATIONS_SMTP_ENCRYPTION: ${SMTP_TRANSPORT_ENCRYPTION:-none}
      FRONTEND_ARCHIVER_MAX_SIZE: "10000000000"
      FRONTEND_CHECK_FOR_UPDATES: ${CHECK_FOR_UPDATES:-true}
      PROXY_CSP_CONFIG_FILE_LOCATION: /etc/opencloud/csp.yaml
      # enable to allow using the banned passwords list
      OC_PASSWORD_POLICY_BANNED_PASSWORDS_LIST: banned-password-list.txt
      # control the password enforcement and policy for public shares
      OC_SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD: ${OC_SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD:-true}
      OC_SHARING_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD: ${OC_SHARING_PUBLIC_WRITEABLE_SHARE_MUST_HAVE_PASSWORD:-false}
      OC_PASSWORD_POLICY_DISABLED: ${OC_PASSWORD_POLICY_DISABLED:-false}
      OC_PASSWORD_POLICY_MIN_CHARACTERS: ${OC_PASSWORD_POLICY_MIN_CHARACTERS:-8}
      OC_PASSWORD_POLICY_MIN_LOWERCASE_CHARACTERS: ${OC_PASSWORD_POLICY_MIN_LOWERCASE_CHARACTERS:-1}
      OC_PASSWORD_POLICY_MIN_UPPERCASE_CHARACTERS: ${OC_PASSWORD_POLICY_MIN_UPPERCASE_CHARACTERS:-1}
      OC_PASSWORD_POLICY_MIN_DIGITS: ${OC_PASSWORD_POLICY_MIN_DIGITS:-1}
      OC_PASSWORD_POLICY_MIN_SPECIAL_CHARACTERS: ${OC_PASSWORD_POLICY_MIN_SPECIAL_CHARACTERS:-1}
      # default language for services/WebUI; defaults to English, language code (ISO 639-1, e.g. de, en, fr)
      OC_DEFAULT_LANGUAGE: ${DEFAULT_LANGUAGE}
      # bind to all interfaces
      PROXY_HTTP_ADDR: 0.0.0.0:9201
      # oidc
      OC_OIDC_ISSUER: ${OC_OIDC_ISSUER}
      WEB_OIDC_CLIENT_ID: ${WEB_OIDC_CLIENT_ID}
      PROXY_OIDC_REWRITE_WELLKNOWN: ${PROXY_OIDC_REWRITE_WELLKNOWN}
      PROXY_AUTOPROVISION_ACCOUNTS: ${PROXY_AUTOPROVISION_ACCOUNTS}
      PROXY_ROLE_ASSIGNMENT_DRIVER: ${PROXY_ROLE_ASSIGNMENT_DRIVER}
      PROXY_USER_OIDC_CLAIM: ${PROXY_USER_OIDC_CLAIM}
      OC_EXCLUDE_RUN_SERVICES: ${OC_EXCLUDE_RUN_SERVICES}
      GRAPH_ASSIGN_DEFAULT_USER_ROLE: ${GRAPH_ASSIGN_DEFAULT_USER_ROLE}
      GRAPH_USERNAME_MATCH: ${GRAPH_USERNAME_MATCH}
      # fulltext search
      SEARCH_EXTRACTOR_TYPE: tika
      SEARCH_EXTRACTOR_TIKA_TIKA_URL: http://tika:9998
      FRONTEND_FULL_TEXT_SEARCH_ENABLED: "true"
    volumes:
      # configure the .env file to use own paths instead of docker internal volumes
      - ${OC_CONFIG_DIR:-opencloud-config}:/etc/opencloud
      - ${OC_DATA_DIR:-opencloud-data}:/var/lib/opencloud
      - ${OC_APPS_DIR:-./config/opencloud/apps}:/var/lib/opencloud/web/assets/apps
    logging:
      driver: ${LOG_DRIVER:-local}
    ports:
      # expose the opencloud server on localhost
      - 9201:9201
    restart: always
  radicale:
    image: ${RADICALE_DOCKER_IMAGE:-opencloudeu/radicale}:${RADICALE_DOCKER_TAG:-latest}
    user: ${OC_CONTAINER_UID_GID:-1000:1000}
    networks:
      opencloud-net: null
    logging:
      driver: ${LOG_DRIVER:-local}
    restart: always
    volumes:
      - ${RADICALE_CONFIG_FILE}:/etc/radicale/config
      - ${RADICALE_DATA_DIR:-radicale-data}:/var/lib/radicale
  tika:
    image: ${TIKA_IMAGE:-apache/tika:latest}
    networks:
      opencloud-net: null
    restart: always
    logging:
      driver: ${LOG_DRIVER:-local}
volumes:
  opencloud-config: null
  opencloud-data: null
networks:
  opencloud-net: null

.env

Details

## Basic Settings ##
DEFAULT_LANGUAGE=en

OC_CONTAINER_UID_GID="99:100"
OC_DOCKER_IMAGE=opencloudeu/opencloud-rolling
OC_DOCKER_TAG=latest
OC_DOMAIN=opencloud.example.com
INITIAL_ADMIN_PASSWORD=<admin_pw>

LOG_PRETTY=true

OC_CONFIG_DIR=/mnt/user/appdata/opencloud
OC_DATA_DIR=/mnt/user/files/opencloud

SMTP_TRANSPORT_ENCRYPTION=ssltls
SMTP_HOST=smtp.example.com
SMTP_PORT=465
SMTP_SENDER=openCloud <[email protected]>
[email protected]
SMTP_PASSWORD=<password>
SMTP_AUTHENTICATION=login
SMTP_INSECURE=false

START_ADDITIONAL_SERVICES="notifications"

# OIDC 
OC_OIDC_ISSUER=https://auth.example.com
WEB_OIDC_CLIENT_ID=xyz
PROXY_OIDC_REWRITE_WELLKNOWN=true
PROXY_AUTOPROVISION_ACCOUNTS=true
PROXY_ROLE_ASSIGNMENT_DRIVER=oidc
GRAPH_ASSIGN_DEFAULT_USER_ROLE=false
GRAPH_USERNAME_MATCH=none
PROXY_USER_OIDC_CLAIM=preferred_username
OC_EXCLUDE_RUN_SERVICES=idp

### Radicale Setting ###
RADICALE_DOCKER_IMAGE=opencloudeu/radicale
RADICALE_DOCKER_TAG=latest
RADICALE_DATA_DIR=/mnt/user/appdata/radicale/data
RADICALE_CONFIG_FILE=/mnt/user/appdata/radicale/config/config

OC_APPS_DIR=/mnt/user/appdata/opencloud/apps

TIKA_IMAGE=apache/tika:latest-full


Additional context

I have since downgraded to OpenCloud 4.1.0 and it's working without any issues again.

Activity

  1. lukas-schier commented on Jan 27, 2026

    @lukas-schier

    Same for me. Logs:

    ERR still could not resolve node after assimilation | service=storage-users host.name=b5ed73c7fc7e pkg=rgrpc driver=posix error=error: not found: path not found in cache:/var/lib/opencloud/storage/users/users/65970648-39c5-42ea-9b88-4bc60d61f943/Fotos path=/var/lib/opencloud/storage/users/users/65970648-39c5-42ea-9b88-4bc60d61f943/Fotos

  2. aduffeck commented on Jan 27, 2026

    @aduffeck
    Member

    @itslewin When the system is in that state where your files have disappeared, do you still see any files anywhere, e.g. in other spaces or for other users, or are they all gone?

    The problem seems to be related to the NATS cache which claims it doesn't know about files it knew about before. Do you see anything suspicious regarding nats in your logs?

  3. RichardFevrier commented on Jan 28, 2026

    @RichardFevrier

    Same error here, just installed a fresh instance with podman, I can still see the folder and subfiles on the disk.

  4. aduffeck commented on Jan 28, 2026

    @aduffeck
    Member

    Thanks for those logs, looking into it.

    Could you maybe also provide debug logs of such a failing dir listing (LOG_LEVEL=debug in your .env)

  5. self-assigned this
    on Jan 28, 2026
  6. aduffeck commented on Jan 28, 2026

    @aduffeck
    Member

    Nevermind, I just managed to reproduce the issue.

  7. added theissue type on Jan 28, 2026
  8. aduffeck commented on Jan 28, 2026

    @aduffeck
    Member

    So the problem is that opencloud v5.0.0 sets a wrong TTL on the ids-storage-users nats bucket which causes important data to be dropped after 24 minutes. We'll release an update which removes that TTL again, but if someone wants to fix it right away this can be done using the nats cli:

    nats kv edit --ttl=0 ids-storage-users -s opencloud:9233
    

    In case of docker-compose you can add a nats-cli sidecar container like this to the docker-compose.yml:

    services:
      nats-cli:
        image: natsio/nats-box:latest
        container_name: nats-cli
        networks:
          - opencloud-net
        entrypoint: /bin/sh
        stdin_open: true
        tty: true
        command: ["-c", "while true; do sleep 30; done"]
        depends_on:
          - opencloud
      opencloud:
    <...>
    

    and then after starting the container using docker compose up -d run the nats command

    docker compose exec -it nats-cli nats kv edit --ttl=0 ids-storage-users -s opencloud:9233
    
  9. moved this from Qualification to Done in OpenCloud Team Boardon Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions