Trouble installing Deluge on Truenas 12.2

General support for problems installing or using Deluge
Post Reply
jandcam1
New User
New User
Posts: 2
Joined: Fri Mar 19, 2021 9:28 pm

Trouble installing Deluge on Truenas 12.2

Post by jandcam1 »

So here is the rub. I used to run Deluge as my main downloader but my jail drive died and i've been trying to install it again.

Im running TrueNAS-12.0-U2.1 deluge is trying to install on jail version 12.2 but i have tried manually installing on 11.3 but i get the same errors.

these are the errors im getting on install

Code: Select all

Patching file /usr/local/lib/python3.7/site-packages/deluge/argparserbase.py using Plan A...
Hunk #1 succeeded at 325.
done
deluged_enable:  -> YES
deluged_user:  -> deluge
deluge_web_enable:  -> YES
deluge_web_user:  -> deluge
Starting deluged.
Starting deluge_web.
Starting deluge_web.
Traceback (most recent call last):
 File "/usr/local/lib/python3.7/site-packages/deluge/_libtorrent.py", line 23, in 
   import deluge.libtorrent as lt
ModuleNotFoundError: No module named 'deluge.libtorrent'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
 File "/usr/local/bin/deluged", line 8, in 
   sys.exit(start_daemon())
 File "/usr/local/lib/python3.7/site-packages/deluge/core/daemon_entry.py", line 90, in start_daemon
   from deluge.core.daemon import is_daemon_running
 File "/usr/local/lib/python3.7/site-packages/deluge/core/daemon.py", line 22, in 
   from deluge.core.core import Core
 File "/usr/local/lib/python3.7/site-packages/deluge/core/core.py", line 28, in 
   from deluge._libtorrent import LT_VERSION, lt
 File "/usr/local/lib/python3.7/site-packages/deluge/_libtorrent.py", line 25, in 
 import libtorrent as lt
ImportError: Shared object "libtorrent-rasterbar.so.2.0" not found, required by "libtorrent.so"
Admin Portal:
http://192.168.1.51:8112
Now i can access the web application just fine but it says the server is offline. in my research i have found this issue report on bsd and ubuntu servers

https://bugs.freebsd.org/bugzilla/show_ ... ?id=213739

viewtopic.php?t=35669

But for the life of me i cannot figure out how to make the changes they are asking for on a freenas jail.

I was wondering if anyone had any clarity for this problem or a fix.

hope you all are well
Yaguznal
New User
New User
Posts: 2
Joined: Sun Mar 21, 2021 8:17 pm

Re: Trouble installing Deluge on Truenas 12.2

Post by Yaguznal »

I'm having the same problem. I'm not technically skilled enough to change anything about the program itself so I'm as stuck as you.
shamael
Compulsive Poster
Compulsive Poster
Posts: 667
Joined: Sat Oct 08, 2016 9:28 am

Re: Trouble installing Deluge on Truenas 12.2

Post by shamael »

Hi

No experience with this system but your error and lonks point to libtorrent issue. Have you checked this part?
Deluge 1.3.X needs libtorrent <= 1.1.14
Starting Deluge 2.X you can use libtorrent >= 1.2.x
Yaguznal
New User
New User
Posts: 2
Joined: Sun Mar 21, 2021 8:17 pm

Re: Trouble installing Deluge on Truenas 12.2

Post by Yaguznal »

libtorrent-0.13.8, libtorrent-rasterbar-2.0.2 and py37-libtorrent-rasterbar-2.0.2_1 are installed.

When I manually start deluged it spits out this error and then hangs:

Code: Select all

*****@deluge5:~ # servUnhandled error in Deferred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/twisted/internet/base.py", line 1423, in run
    self.mainLoop()
  File "/usr/local/lib/python3.7/site-packages/twisted/internet/base.py", line 1433, in mainLoop
    reactorBaseSelf.runUntilCurrent()
  File "/usr/local/lib/python3.7/site-packages/twisted/internet/base.py", line 999, in runUntilCurrent
    call.func(*call.args, **call.kw)
  File "/usr/local/lib/python3.7/site-packages/twisted/internet/task.py", line 232, in __call__
    d = defer.maybeDeferred(self.f, *self.a, **self.kw)
--- <exception caught here> ---
  File "/usr/local/lib/python3.7/site-packages/twisted/internet/defer.py", line 167, in maybeDeferred
    result = f(*args, **kw)
  File "/usr/local/lib/python3.7/site-packages/deluge/core/alertmanager.py", line 70, in update
    self.handle_alerts()
  File "/usr/local/lib/python3.7/site-packages/deluge/core/alertmanager.py", line 140, in handle_alerts
    for attr in dir(alert)
  File "/usr/local/lib/python3.7/site-packages/deluge/core/alertmanager.py", line 141, in <dictcomp>
    if not attr.startswith('__')
builtins.TypeError: No to_python (by-value) converter found for C++ type: libtorrent::event_t
jandcam1
New User
New User
Posts: 2
Joined: Fri Mar 19, 2021 9:28 pm

Re: Trouble installing Deluge on Truenas 12.2

Post by jandcam1 »

To update i have had some success. I ran

pkg install libtorrent, and pkg install libtorrent-rasterbar.

I was able to turn on deluge and connect to the server. but the new problem is when i add a torrent i loose the connection with the server. i then cannot reconnect to the server. when i check the status of the server in freenas shell it says it is up and running with no issue
Im not sure how or where to find any logs that will tell me what failed.

so yeah cheers
shamael
Compulsive Poster
Compulsive Poster
Posts: 667
Joined: Sat Oct 08, 2016 9:28 am

Re: Trouble installing Deluge on Truenas 12.2

Post by shamael »

With which version of Deluge and Libtorrent have you landed to now?

None of the possible access?
deluge-console (cli access to install)
deluge-web (webgui to install)
deluge GTK (fat client)
Post Reply