linuxserver / docker-flexget

GNU General Public License v3.0
4 stars 2 forks source link

[BUG] libtorrent is missing #10

Closed erichlf closed 3 months ago

erichlf commented 3 months ago

Is there an existing issue for this?

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"
github-actions[bot] commented 3 months ago

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

thespad commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

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

erichlf commented 3 months ago

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

thespad commented 3 months ago

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 commented 3 months ago

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

j0nnymoe commented 3 months ago

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.