Skip to content
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

[BUG] libtorrent is missing #10

Closed
1 task done
erichlf opened this issue Jun 24, 2024 · 10 comments
Closed
1 task done

[BUG] libtorrent is missing #10

erichlf opened this issue Jun 24, 2024 · 10 comments

Comments

@erichlf
Copy link

erichlf commented Jun 24, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

libtorrent appears to me missing

Expected Behavior

No error message relating to libtorrent

Steps To Reproduce

  1. Using a container newer than v3.11.37-ls101
  2. Run the container
  3. Using a config that requires torrent interaction

Environment

- OS: QNAP
- How docker service was installed: qpkg

CPU architecture

x86-64

Docker creation

I used portainer and docker compose to create the container.

Container logs

"CRITICAL task          TV              libtorrent package required"
Copy link

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@thespad
Copy link
Member

thespad commented Jun 24, 2024

I suspect you're running into a variant of https://info.linuxserver.io/issues/2023-05-22-portainer/ as I can't replicate this, certainly not without the actual config elements that you're using to generate the error.

@erichlf
Copy link
Author

erichlf commented Jun 24, 2024

I'm not on Synology, but this container was broken when i first created it. I had to change the image version until I found one that worked. In the container itself running

pip install libtorrent

gives the error

ERROR: Could not find a version that satisfies the requirement libtorrent (from versions: none)
ERROR: No matching distribution found for libtorrent

To replicate it seems that all you need is to attempt to connect to qbitorrent. Don't actually need to connect to it. You can see my config here: https://github.com/erichlf/flexget

@thespad
Copy link
Member

thespad commented Jun 24, 2024

It will, there's no compatible libtorrent package available on pypi. And that issue is not specific to Synology.

I still can't replicate the issue, however, whatever I try I can't get it to throw that libtorrent error.

Please run docker exec flexget ls -la /lsiopy/lib/python3.12/site-packages/libtorrent.cpython-312-x86_64-linux-musl.so from the host and provide the output.

@erichlf
Copy link
Author

erichlf commented Jun 24, 2024

That is interesting:

-rwxr-xr-x 1 root root 5080568 May 23 04:38 /lsiopy/lib/python3.12/site-packages/libtorrent.cpython-312-x86_64-linux-musl.so

@thespad
Copy link
Member

thespad commented Jun 24, 2024

OK, what's the output from docker exec flexget cat /run/s6/container_environment/PATH ?

@erichlf
Copy link
Author

erichlf commented Jun 24, 2024

/command:/lsiopy/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

@thespad
Copy link
Member

thespad commented Jun 24, 2024

OK so your path is correct and the lib is in the right place, so I'm not sure why it can't find it.

@erichlf
Copy link
Author

erichlf commented Jun 24, 2024

I rebuilt not using protainer and it works, so it does appear to be caused by portainer.

@j0nnymoe
Copy link
Member

Glad you've got it working but also just to note, the article spad linked earlier clearly shows it's a synology and portainer bug.

@LinuxServer-CI LinuxServer-CI moved this from Issues to Done in Issue & PR Tracker Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants