[GH-ISSUE #319] Permission Issue When Updating to 0.4.1 #120

Closed
opened 2026-02-27 08:15:21 +03:00 by kerem · 2 comments
Owner

Originally created by @mark-monteiro on GitHub (Oct 10, 2022).
Original GitHub issue: https://github.com/lldap/lldap/issues/319

I get the following errors in the log output when updating from 0.4.0 to v0.4.1. This is as far as the log gets and then the image shuts down.

lldap_1  | > Setup permissions..
lldap_1  | chown: /app: Operation not permitted
lldap_1  | chown: /app/lldap_config.docker_template.toml: Operation not permitted
lldap_1  | chown: /app/lldap: Operation not permitted
lldap_1  | chown: /app/app: Operation not permitted
lldap_1  | chown: /app/app/static: Operation not permitted
lldap_1  | chown: /app/app/static/bootstrap-icons.css: Operation not permitted
lldap_1  | chown: /app/app/static/spinner.gif: Operation not permitted
lldap_1  | chown: /app/app/static/fonts: Operation not permitted
lldap_1  | chown: /app/app/static/fonts/bootstrap-icons.woff2: Operation not permitted
lldap_1  | chown: /app/app/static/fonts/JTUSjIg69CK48gW7PXoo9Wlhyw.woff2: Operation not permitted
lldap_1  | chown: /app/app/static/fonts/JTUSjIg69CK48gW7PXoo9Wdhyzbi.woff2: Operation not permitted
lldap_1  | chown: /app/app/static/fonts/fonts.txt: Operation not permitted
lldap_1  | chown: /app/app/static/bootstrap.bundle.min.js: Operation not permitted
lldap_1  | chown: /app/app/static/libraries.txt: Operation not permitted
lldap_1  | chown: /app/app/static/fonts.css: Operation not permitted
lldap_1  | chown: /app/app/static/style.css: Operation not permitted
lldap_1  | chown: /app/app/static/bootstrap.min.css: Operation not permitted
lldap_1  | chown: /app/app/static/font-awesome.min.css: Operation not permitted
lldap_1  | chown: /app/app/index.html: Operation not permitted
lldap_1  | chown: /app/app/pkg: Operation not permitted
lldap_1  | chown: /app/app/pkg/lldap_app_bg.wasm.d.ts: Operation not permitted
lldap_1  | chown: /app/app/pkg/.gitignore: Operation not permitted
lldap_1  | chown: /app/app/pkg/bundle.js: Operation not permitted
lldap_1  | chown: /app/app/pkg/lldap_app_bg.wasm: Operation not permitted
lldap_1  | chown: /app/app/pkg/lldap_app.d.ts: Operation not permitted
lldap_1  | chown: /app/app/pkg/lldap_app.js: Operation not permitted
lldap_1  | chown: /app/app/pkg/package.json: Operation not permitted
lldap_1  | chown: /app/migration-tool: Operation not permitted

I'm running with a custom user option in my docker compose file which is likely the problem here. Is that a supported scenario, or should I just be running as root?. Here is part of my compose file (I can provide more details if needed, but I don't think the rest of the compose file is relevant):

version: "3"

services:
  lldap:
    image: nitnelave/lldap:v0.4.0
    user: "1099:1099"
  volumes:
      - path/to/ldap/data:/data
Originally created by @mark-monteiro on GitHub (Oct 10, 2022). Original GitHub issue: https://github.com/lldap/lldap/issues/319 I get the following errors in the log output when updating from 0.4.0 to v0.4.1. This is as far as the log gets and then the image shuts down. ```txt lldap_1 | > Setup permissions.. lldap_1 | chown: /app: Operation not permitted lldap_1 | chown: /app/lldap_config.docker_template.toml: Operation not permitted lldap_1 | chown: /app/lldap: Operation not permitted lldap_1 | chown: /app/app: Operation not permitted lldap_1 | chown: /app/app/static: Operation not permitted lldap_1 | chown: /app/app/static/bootstrap-icons.css: Operation not permitted lldap_1 | chown: /app/app/static/spinner.gif: Operation not permitted lldap_1 | chown: /app/app/static/fonts: Operation not permitted lldap_1 | chown: /app/app/static/fonts/bootstrap-icons.woff2: Operation not permitted lldap_1 | chown: /app/app/static/fonts/JTUSjIg69CK48gW7PXoo9Wlhyw.woff2: Operation not permitted lldap_1 | chown: /app/app/static/fonts/JTUSjIg69CK48gW7PXoo9Wdhyzbi.woff2: Operation not permitted lldap_1 | chown: /app/app/static/fonts/fonts.txt: Operation not permitted lldap_1 | chown: /app/app/static/bootstrap.bundle.min.js: Operation not permitted lldap_1 | chown: /app/app/static/libraries.txt: Operation not permitted lldap_1 | chown: /app/app/static/fonts.css: Operation not permitted lldap_1 | chown: /app/app/static/style.css: Operation not permitted lldap_1 | chown: /app/app/static/bootstrap.min.css: Operation not permitted lldap_1 | chown: /app/app/static/font-awesome.min.css: Operation not permitted lldap_1 | chown: /app/app/index.html: Operation not permitted lldap_1 | chown: /app/app/pkg: Operation not permitted lldap_1 | chown: /app/app/pkg/lldap_app_bg.wasm.d.ts: Operation not permitted lldap_1 | chown: /app/app/pkg/.gitignore: Operation not permitted lldap_1 | chown: /app/app/pkg/bundle.js: Operation not permitted lldap_1 | chown: /app/app/pkg/lldap_app_bg.wasm: Operation not permitted lldap_1 | chown: /app/app/pkg/lldap_app.d.ts: Operation not permitted lldap_1 | chown: /app/app/pkg/lldap_app.js: Operation not permitted lldap_1 | chown: /app/app/pkg/package.json: Operation not permitted lldap_1 | chown: /app/migration-tool: Operation not permitted ``` I'm running with a custom `user` option in my docker compose file which is likely the problem here. Is that a supported scenario, or should I just be running as root?. Here is part of my compose file (I can provide more details if needed, but I don't think the rest of the compose file is relevant): ```yml version: "3" services: lldap: image: nitnelave/lldap:v0.4.0 user: "1099:1099" volumes: - path/to/ldap/data:/data ```
kerem closed this issue 2026-02-27 08:15:21 +03:00
Author
Owner

@Timelapser commented on GitHub (Oct 10, 2022):

Hey!

Try to replace the user in the compose by these two environment variables:

- UID=1099
- GID=1099
<!-- gh-comment-id:1273816809 --> @Timelapser commented on GitHub (Oct 10, 2022): Hey! Try to replace the user in the compose by these two environment variables: ``` - UID=1099 - GID=1099 ```
Author
Owner

@mark-monteiro commented on GitHub (Oct 11, 2022):

Thanks! I must have missed that in the README when setting it up the first time 👍

<!-- gh-comment-id:1273928922 --> @mark-monteiro commented on GitHub (Oct 11, 2022): Thanks! I must have missed that in the README when setting it up the first time 👍
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/lldap-lldap#120
No description provided.