[Bug]: File permission issue when using other users than 1000 or root #2939
Replies: 2 comments
-
I've run into this same exact problem just now... had a user data-node, images, logs, meili_data_v1.7. I had this set in my .env file, fwiw: UID=1002 |
Beta Was this translation helpful? Give feedback.
-
Try following this: #1441 (reply in thread) You will need to build your own image, for which you will need to make use of the docker-compose.override.yml file: https://www.librechat.ai/docs/configuration/docker_override There are examples in You'll basically want it setup like this if you're using the default services:
api:
image: librechat
build:
context: .
target: node
args:
UID: ${UID}
GID: ${GID} |
Beta Was this translation helpful? Give feedback.
-
What happened?
Issue:
I wanted to switch from root deployment to user deployment. During that I ran into several pitfalls.
My current user has gid/uid 1004. This is what I entered in the .env.
Many things did not work out well, but I think now I got it.
Suggestions:
Make the node:1000 user work consistently:
chown -R 1000:1000
for ./data-node ./images ./logs ./meilidata_v1.7`Alternative: Enable other users than 1000 to own the container:
chown -R $UID:GID
for ./data-node ./images ./logs ./meilidata_v1.7`Steps to Reproduce
docker compose up
with user 1000What browsers are you seeing the problem on?
No response
Relevant log output
No response
Screenshots
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions