New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v4.2.2: yarn using incorrect user for plugin installs #5302
Comments
I ran into this while trying to upgrade to 4.3 but ran into #5303 and then when I downgraded, this was still the case so I am quite confused as to why this is happening. Since the app invokes the install commands I wouldn't imagine anything in my volumes or app state would be interfeering with this... 🤔 |
Oh shiet, this made it work 😱 diff --git a/compose.yml b/compose.yml
index 1ba11d7..b0a56f9 100644
--- a/compose.yml
+++ b/compose.yml
@@ -48,6 +48,7 @@ services:
app:
image: chocobozzz/peertube:v4.2.2-bullseye
+ user: peertube
environment:
- PEERTUBE_ADMIN_EMAIL
- PEERTUBE_CONTACT_FORM_ENABLED
@@ -107,7 +108,7 @@ services:
retries: 10 But as I understand it, the image should be run under the
I suspect something happened with the way |
No, it's just to build the image. The container should be started using the |
@Chocobozzz thanks for looking into it. If I run:
Then I am confused. If it was just the build user then it should return Is this a bug in implementing https://docs.docker.com/build/building/multi-stage/ where the second If we're saying the container should be run with the Also what is also confusing is that this was not an issue for maintaining the instance without setting |
Perhaps something changes in the relationship between |
We use an entrypoint in the dockerfile: https://github.com/Chocobozzz/PeerTube/blob/develop/support/docker/production/Dockerfile.bullseye#L40 The goal of our entrypoint is to run the process using the peertube user when the container is started with the root user with a Try to run our entrypoint with |
Describe the current behavior
On a
chocobozzz/peertube:v4.2.2-bullseye
docker deployment, I don't understand why all of a sudden the plugin install command (called from the admin web UI) is trying to run commands in/root/.config/yarn
instead of/home/peertube/.config/yarn
? I haven't changed my config as far as I know.Config is here: https://git.coopcloud.tech/coop-cloud/peertube/src/branch/main/compose.yml
Steps to reproduce
chocobozzz/peertube:v4.2.2-bullseye
docker imageDescribe the expected behavior
Plugin is installed.
Additional information
chocobozzz/peertube:v4.2.2-bullseye
v16.17.0
4.3.4-0+deb11u1
The text was updated successfully, but these errors were encountered: