[GH-ISSUE #4496] [BUG]: anythingllm pg docker images fails to start when run with podman on Fedora #2860

Closed
opened 2026-02-22 18:31:34 -05:00 by yindo · 1 comment
Owner

Originally created by @Bodanel on GitHub (Oct 5, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4496

How are you running AnythingLLM?

Docker (local)

What happened?

Hi

I would like to run AnythingLLM as acontainer with podman.
I'm not sure if this is related to podman or it is a bug.
I am trying to run it on Fedora anythingllm:pg docker image and the containter throws the following error

No pending migrations to apply.
[backend] info: [EncryptionManager] Self-assigning key & salt for encrypting arbitrary data.
node:internal/fs/utils:356
    throw err;
    ^

Error: EACCES: permission denied, open '/app/server/.env'
    at Object.openSync (node:fs:596:3)
    at Object.writeFileSync (node:fs:2322:35)
    at dumpENV (/app/server/utils/helpers/updateENV.js:1178:6)
    at #loadOrCreateKeySalt (/app/server/utils/EncryptionManager/index.js:42:50)
    at new EncryptionManager (/app/server/utils/EncryptionManager/index.js:13:30)
    at Object.<anonymous> (/app/server/utils/middleware/validatedRequest.js:5:23)
    at Module._compile (node:internal/modules/cjs/loader:1364:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
    at Module.load (node:internal/modules/cjs/loader:1203:32)
    at Module._load (node:internal/modules/cjs/loader:1019:12) {
  errno: -13,
  syscall: 'open',
  code: 'EACCES',
  path: '/app/server/.env'
}

Node.js v18.20.8

The permissions on the folder are the default ones.

ls -lan anythingllm/
total 16
drwxr-xr-x. 1 1000 1000    14 oct  5 15:14 .
drwx------. 1 1000 1000   774 oct  5 15:09 ..
drwxr-xr-x. 1 1000 1000    12 oct  5 15:14 app
-rw-r--r--. 1 1000 1000 13490 oct  5 15:09 .env

The command use to run the container is below, just a short modification

podman run -d --cap-add SYS_ADMIN -p 3001:3001 --name anythingllm --network=slirp4netns:allow_host_loopback=true -v ${STORAGE_LOCATION}:/app/server/storage -v ${STORAGE_LOCATION}/.env:/app/server/.env -e STORAGE_DIR="/app/server/storage" -e DATABASE_URL="postgresql://admin:admin@10.0.2.2:5432/initiala" mintplexlabs/anythingllm:p

The .env file used is the sample one from the git repo.

Are there known steps to reproduce?

Follow the steps from here and use my command to start the container

Originally created by @Bodanel on GitHub (Oct 5, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4496 ### How are you running AnythingLLM? Docker (local) ### What happened? Hi I would like to run AnythingLLM as acontainer with podman. I'm not sure if this is related to podman or it is a bug. I am trying to run it on Fedora anythingllm:pg docker image and the containter throws the following error ``` No pending migrations to apply. [backend] info: [EncryptionManager] Self-assigning key & salt for encrypting arbitrary data. node:internal/fs/utils:356 throw err; ^ Error: EACCES: permission denied, open '/app/server/.env' at Object.openSync (node:fs:596:3) at Object.writeFileSync (node:fs:2322:35) at dumpENV (/app/server/utils/helpers/updateENV.js:1178:6) at #loadOrCreateKeySalt (/app/server/utils/EncryptionManager/index.js:42:50) at new EncryptionManager (/app/server/utils/EncryptionManager/index.js:13:30) at Object.<anonymous> (/app/server/utils/middleware/validatedRequest.js:5:23) at Module._compile (node:internal/modules/cjs/loader:1364:14) at Module._extensions..js (node:internal/modules/cjs/loader:1422:10) at Module.load (node:internal/modules/cjs/loader:1203:32) at Module._load (node:internal/modules/cjs/loader:1019:12) { errno: -13, syscall: 'open', code: 'EACCES', path: '/app/server/.env' } Node.js v18.20.8 ``` The permissions on the folder are the default ones. ``` ls -lan anythingllm/ total 16 drwxr-xr-x. 1 1000 1000 14 oct 5 15:14 . drwx------. 1 1000 1000 774 oct 5 15:09 .. drwxr-xr-x. 1 1000 1000 12 oct 5 15:14 app -rw-r--r--. 1 1000 1000 13490 oct 5 15:09 .env ``` The command use to run the container is below, just a short modification ``` podman run -d --cap-add SYS_ADMIN -p 3001:3001 --name anythingllm --network=slirp4netns:allow_host_loopback=true -v ${STORAGE_LOCATION}:/app/server/storage -v ${STORAGE_LOCATION}/.env:/app/server/.env -e STORAGE_DIR="/app/server/storage" -e DATABASE_URL="postgresql://admin:admin@10.0.2.2:5432/initiala" mintplexlabs/anythingllm:p ``` The .env file used is the sample one from the git repo. ### Are there known steps to reproduce? Follow the steps from [here](https://docs.anythingllm.com/installation-docker/quickstart#pg-image-startup-command) and use my command to start the container
yindo added the possible bug label 2026-02-22 18:31:34 -05:00
yindo closed this issue 2026-02-22 18:31:34 -05:00
Author
Owner

@timothycarambat commented on GitHub (Oct 6, 2025):

permission denied, open '/app/server/.env'

Since -v ${STORAGE_LOCATION}/.env:/app/server/.env would be that bind you need to ensure STORAGE_LOCATION is readable/writable by the podman user and process.

chmod -r 777 $STORAGE_LOCATION

@timothycarambat commented on GitHub (Oct 6, 2025): > permission denied, open '/app/server/.env' Since `-v ${STORAGE_LOCATION}/.env:/app/server/.env` would be that bind you need to ensure `STORAGE_LOCATION` is readable/writable by the podman user and process. `chmod -r 777 $STORAGE_LOCATION`
yindo changed title from [BUG]: anythingllm pg docker images fails to start when run with podman on Fedora to [GH-ISSUE #4496] [BUG]: anythingllm pg docker images fails to start when run with podman on Fedora 2026-06-05 14:48:57 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#2860