Fullaxx / biglybt

An Ubuntu docker image running BiglyBT with openvpn
MIT License
9 stars 6 forks source link

UID/GID does not work #4

Closed b-chu closed 3 years ago

b-chu commented 3 years ago

non-root user with custom group Does not work - biglybt unable to connect to any trackers

b-chu commented 3 years ago

Fixable from #2

diff Dockerfile
+ENV BIGLYBT_USER biglybt

+RUN groupadd -g 1000 ${BIGLYBT_USER} && \
+    useradd -rm -d /home/${BIGLYBT_USER} -s /bin/bash -u 1000 -g 1000 ${BIGLYBT_USER}

+    USER="${BIGLYBT_USER}" app_java_home="/usr/lib/jvm/java-11-openjdk-amd64/" /app/BiglyBT_Installer.sh -q && \

Originally posted by @CWempe in https://github.com/Fullaxx/biglybt/issues/2#issuecomment-478773742

Fullaxx commented 3 years ago

You are correct, and I believe the issue to be fixed now. There was a typo in the bash script that was preventing permission changing. Please let me know if you still experience issues using the new image.

b-chu commented 3 years ago

Wasn't fixed, same error. I think it's something with how you install biglybt USER="${BIGLYBT_USER}" app_java_home="/usr/lib/jvm/java-11-openjdk-amd64/" /app/BiglyBT_Installer.sh

Fullaxx commented 3 years ago

can you post your docker run line?

Fullaxx commented 3 years ago

This is what I use and I can connect to trackers and download torrents: docker run -d -p 127.0.0.1:5901:5901 -e VNCRES='1280x960' -e VNCUSER='guest' -e VNCUID='1000' fullaxx/biglybt

b-chu commented 3 years ago

VNCPASS="somestuff" VNCUSER="box" VNCUID="1000" VNCGROUP="users" VNCGID="1000"

Fullaxx commented 3 years ago

Thank you, I see the issue now. The users group already exists with GID of 100. Try VNCGID="100"

I will look into patching it to read the GID from an existing group

Fullaxx commented 3 years ago

ok, thanks for the help. This appears to be fixed in the base image now. If the VNCGROUP exists, Instead of bailing out it will use the existing GID number from the group file ignoring your VNCGID variable. I have also updated the readme to be more specific.

Testing with docker run -d -p 127.0.0.1:5901:5901 -e VNCUSER="box" -e VNCUID="1000" -e VNCGROUP="users" -e VNCGID="1000" fullaxx/biglybt

Fix #4 with https://github.com/Fullaxx/ubuntu-desktop/commit/098189c8bd3c1d59d991219b10eb75357e0f1404

b-chu commented 3 years ago

VNCPASS="somestuff" VNCUSER="biglybt" VNCUID="1000" VNCGROUP="biglybt" VNCGID="1000"

still doesn't work

Fullaxx commented 3 years ago

Can you describe the error or post a screenshot? This is what I see when I run the command below.

tested with docker run -d -p 127.0.0.1:5901:5901 -e VNCPASS='stuff' -e VNCUSER='biglybt' -e VNCUID='1000' -e VNCGROUP='biglybt' -e VNCGID='1000' fullaxx/biglybt

biglybt

b-chu commented 3 years ago

Mine looks the same except under Status it says "Waiting"

Fullaxx commented 3 years ago

and everything works correctly, when you run it without user modification variables? docker run -d -p 127.0.0.1:5901:5901 -e VNCPASS='stuff' fullaxx/biglybt

b-chu commented 3 years ago

Yep

On Mon, Nov 16, 2020 at 10:38 AM Brett Kuskie notifications@github.com wrote:

and everything works correctly, when you run it without user modification variables? docker run -d -p 127.0.0.1:5901:5901 -e VNCPASS='stuff' fullaxx/biglybt

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Fullaxx/biglybt/issues/4#issuecomment-728140159, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFRJVCKTHZABHREU25IXHU3SQFBPBANCNFSM4TVZO43Q .

Fullaxx commented 3 years ago

can you post a screenshot of an xterm window, like the one in the picture with the following commands: id cd /usr/local/biglybt ls -l

I don't know how to solve a problem that I can't reproduce

b-chu commented 3 years ago

the output from mine looks exactly the same as the one you posted

It's fine I'll just use the workaround in #2

On Mon, Nov 16, 2020 at 10:45 AM Brett Kuskie notifications@github.com wrote:

can you post a screenshot of an xterm window, like the one in the picture with the following commands: id cd /usr/local/biglybt ls -l

I don't know how to solve a problem that I can't reproduce

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Fullaxx/biglybt/issues/4#issuecomment-728144880, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFRJVCOCJPB6MF7OGTPSQHDSQFCKVANCNFSM4TVZO43Q .

Fullaxx commented 3 years ago

sorry I couldn't be more help

Fullaxx commented 3 years ago

While I was never able to reproduce the specific "Waiting" issue described, I am interested in creating an image that is usable by everyone equally. I've been doing some testing into what might be causing that issue.

If anyone is still monitoring this thread, I would be interested to know if the latest published image solves the "Waiting" issue. I did make some changes into how the software is installed that mimic the other fix described.

Tested with: docker run -d -p 127.0.0.1:5901:5901 -e VNCUSER="biglybt" -e VNCUID="1000" -e VNCGROUP="users" fullaxx/biglybt