Skip to content

All internal shares are broken after a domain change #4170

Backlog

Description

@DosKobold

Describe the bug

All internal shares of the server are not working anymore after a domain change (OC_URL).
They are not recognized anymore (users cannot access their shares) and cannot be deleted anymore.

Steps to reproduce

  1. Setup OpenCloud with a podman container
  2. Create an internal share
  3. Change the domain name of the network and change the env var (OC_URL)
  4. Try to use or delete this same share

Expected behavior

I expected the shares to still work as expected or some tool to fix them or delete them.

Actual behavior

They are seen by the owner but the server does not recognize them anymore (404 on DELETE, does not serve the users shared with).

Setup

I installed OpenCloud via a really basic setup on a new Debian VM via a podman container as a systemd service. The service description:

Details

[Unit]
Description=OpenCloud Server
After=network-online.target
 
[Container]
ContainerName=opencloud
Image=docker.io/opencloudeu/opencloud:4.0.9
PodmanArgs=--runtime=/usr/bin/runc
PublishPort=9200:9200
 
Volume=/mnt/opencloud/opencloud-config:/etc/opencloud
Volume=/mnt/opencloud/opencloud-data:/var/lib/opencloud
 
Environment=OC_INSECURE=true
Environment=PROXY_TLS=true
Environment=PROXY_HTTP_ADDR=0.0.0.0:9200
Environment=OC_URL=https://my.new.domain.com
Environment=START_ADDITIONAL_SERVICES=auth-app
Environment=PROXY_ENABLE_APP_AUTH=true
Environment=OC_LOG_LEVEL=info
 
[Service]
Restart=always
TimeoutStartSec=900
 
[Install]
WantedBy=default.target

Additional context

The setup works. I made no mistakes with the new domain setup.

I really would appreciate ANY solution for this problem. How do I remove this broken shares so the users can create them again?

Thank you very much!

Activity

  1. butonic commented on Nov 30, 2026

    @butonic
    Member

    The shares store the OIDC issuer, which defaults to OC_URL, as part of the user ids. After the domain change your users have a different id, so the share manager no longer considers them the creator or the grantee of their shares. Tracked in #4173

    Congrats @DosKobold, you found the wound I have been poking at since 2019 and twisted the knife. 😅

    Right now there is no workaround without a code change, other than switching OC_URL back to the old domain.

  2. DosKobold commented on Nov 30, 2026

    @DosKobold
    Author

    @butonic Oohhhhh my good old luck... Am I the first to switch OpenCloud to another subdomain? :D

    I kindly ask you the answer for these three questions:

    1. When will this feature be available?
    2. Will this new feature fix my current setup or do I HAVE TO reverse my network refactoring?
    3. Would it be possible to get rid of all OpenCloud data to migrate the old data to a new instance?

    I would love to help you, but I do not know the code and it seems complex.
    Please contact me if I can support you with providing more information or test some test version.

    Thank you for help!
    Viele Grüße aus dem Süden

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions