[GH-ISSUE #3595] volume uid/gid is same as listening port #1286

Closed
opened 2026-03-07 21:02:05 +03:00 by kerem · 4 comments
Owner

Originally created by @roughnecks on GitHub (Jul 19, 2025).
Original GitHub issue: https://github.com/dbeaver/cloudbeaver/issues/3595

Originally assigned to: @ggxed on GitHub.

Description

hello, this is my docker compose file:

services:
    cloudbeaver:
        container_name: cloudbeaver
        tty: true
        stdin_open: true
        restart: unless-stopped
        ports:
            - 192.168.1.125:8978:8978
        volumes:
            - /opt/cloudbeaver/workspace:/opt/cloudbeaver/workspace
        image: dbeaver/cloudbeaver:24.3.5
$ ls -l /opt/cloudbeaver/workspace
total 4
drwxrwxr-x 3 8978 8978 4096 Jun  4 16:03 GlobalConfiguration

As you can see, files in the volume are owned by uid/gid equal to listening port number: 8978
Even setting environment for:

environment:
  - USER_UID=${USER_UID}
  - USER_GID=${USER_GID}

nothing changes; the app restores "8978" at compose up.

Steps to reproduce

No response

Expected/Desired Behavior

User should be configurable or at least be set to default "1000:1000"

CloudBeaver Version

Cloudbeaver Community 24.3.5

Additional context

No response

Originally created by @roughnecks on GitHub (Jul 19, 2025). Original GitHub issue: https://github.com/dbeaver/cloudbeaver/issues/3595 Originally assigned to: @ggxed on GitHub. ### Description hello, this is my docker compose file: ``` services: cloudbeaver: container_name: cloudbeaver tty: true stdin_open: true restart: unless-stopped ports: - 192.168.1.125:8978:8978 volumes: - /opt/cloudbeaver/workspace:/opt/cloudbeaver/workspace image: dbeaver/cloudbeaver:24.3.5 ``` ``` $ ls -l /opt/cloudbeaver/workspace total 4 drwxrwxr-x 3 8978 8978 4096 Jun 4 16:03 GlobalConfiguration ``` As you can see, files in the volume are owned by uid/gid equal to listening port number: 8978 Even setting environment for: ``` environment: - USER_UID=${USER_UID} - USER_GID=${USER_GID} ``` nothing changes; the app restores "8978" at compose up. ### Steps to reproduce _No response_ ### Expected/Desired Behavior User should be configurable or at least be set to default "1000:1000" ### CloudBeaver Version Cloudbeaver Community 24.3.5 ### Additional context _No response_
kerem 2026-03-07 21:02:05 +03:00
Author
Owner

@LonwoLonwo commented on GitHub (Jul 21, 2025):

Hello @roughnecks

Thanks for the report. We will take a look at this.

<!-- gh-comment-id:3095843971 --> @LonwoLonwo commented on GitHub (Jul 21, 2025): Hello @roughnecks Thanks for the report. We will take a look at this.
Author
Owner

@ggxed commented on GitHub (Jul 21, 2025):

First, the user must run chown UID:GID /opt/cloudbeaver/workspace to change the ownership of the directory.
Then, just add the user: UID:GID parameter in their Docker Compose configuration.

services:
    cloudbeaver:
        container_name: cloudbeaver
        tty: true
        stdin_open: true
        restart: unless-stopped
        user: 1000:1000
        ports:
            - 192.168.1.125:8978:8978
        volumes:
            - /opt/cloudbeaver/workspace:/opt/cloudbeaver/workspace
        image: dbeaver/cloudbeaver:24.3.5
<!-- gh-comment-id:3097655337 --> @ggxed commented on GitHub (Jul 21, 2025): First, the user must run `chown UID:GID /opt/cloudbeaver/workspace` to change the ownership of the directory. Then, just add the `user: UID:GID` parameter in their Docker Compose configuration. ``` services: cloudbeaver: container_name: cloudbeaver tty: true stdin_open: true restart: unless-stopped user: 1000:1000 ports: - 192.168.1.125:8978:8978 volumes: - /opt/cloudbeaver/workspace:/opt/cloudbeaver/workspace image: dbeaver/cloudbeaver:24.3.5 ```
Author
Owner

@roughnecks commented on GitHub (Jul 21, 2025):

Alright, with user: 1000:1000 permissions are correctly retained, but what about the other weird fact? cloudbeaver setting the UID/GID equal to the listening port, when IDs are not directly specified?

Feel free to close this anyway. Thanks

<!-- gh-comment-id:3097700320 --> @roughnecks commented on GitHub (Jul 21, 2025): Alright, with `user: 1000:1000` permissions are correctly retained, but what about the other weird fact? cloudbeaver setting the UID/GID equal to the listening port, when IDs are not directly specified? Feel free to close this anyway. Thanks
Author
Owner

@ggxed commented on GitHub (Jul 24, 2025):

This is just a magic number, there is no dependency in this, these values are configured separately

<!-- gh-comment-id:3113450284 --> @ggxed commented on GitHub (Jul 24, 2025): This is just a magic number, there is no dependency in this, these values are configured separately
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cloudbeaver#1286
No description provided.