GID and UID not working as [I] expected #4735
Replies: 7 comments 2 replies
-
Discussion on this: |
Beta Was this translation helpful? Give feedback.
-
So from what I gather:
To avoid confusion, I propose to hardcode the UID and GID to 1000 in the |
Beta Was this translation helpful? Give feedback.
-
@ineiti Same problem, how did you solve it? |
Beta Was this translation helpful? Give feedback.
-
I use UID=GID=1000 and have a wrong user-name in my directory now... Warnings are worse than a wrong user to me. |
Beta Was this translation helpful? Give feedback.
-
I've searched and tried multiple times and still have the problem “error: There was an uncaught error: EACCES: permission denied, open ‘/app/api/logs/meiliSync-2025-01-09.log’” Can you tell me what to do now? Thanks! @ineiti @danny-avila My background info: OS: Ubuntu 22.04 kevin$ id -u
1001
kevin$ id -g
1002 Already executed:
Current information:
Start server by
|
Beta Was this translation helpful? Give feedback.
-
I have the following. My user is:
The directories are:
And my UID/GID settings are:
Which is not ideal, as the data directories do not have the same ID as the user. But because my backup runs as the root user, this is not a problem. And like this I don't get a warning when starting librechat. |
Beta Was this translation helpful? Give feedback.
-
I never managed to make it work. I was excited to tryout librechat but with all solution from different issues with this permission issues I tried nothing worked so I gave up. this is so frustrating and isn't really as simple as what mentioned in this docs |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What happened?
I want to set the UID and GID values in the
.env
to the user which is running thedocker compose
command. But if these values are != 1000, then starting librechat fails with various permission errors.TBH, I'm not sure I'm doing the right thing here, but I searched on internet and tried various things. I ended up setting
UID
andGID
to1000
, which works. But this is not the user which runs librechat.Steps to Reproduce
GID
andUID
in the.env
to the uid and gid of the usersudo chmod $UID:$GID data-node images meili_data_v1.7
docker compose up
What browsers are you seeing the problem on?
No response
Relevant log output
But the
~/logs
directory in the user running the docker file has the ownership of the uid and gid set in the.env
directory.Beta Was this translation helpful? Give feedback.
All reactions