*DEPRECATED* Deluge BitTorrent Server & Client for unRAID 6.1


Recommended Posts

*DEPRECATED* Deluge BitTorrent Server & Client for unRAID 6.1

 

Given that there are dockers that are a better alternative and 6.2 would be require too much work. I am marking this as depreciated.

 

 

Based on Deluge 1.3.11

Default Password: deluge

Default Port: 8112

Deluge Web Page: http://deluge-torrent.org/

Plugins for Deluge: http://dev.deluge-torrent.org/wiki/Plugins

unRAID 6.0 Plugin ver 2015.08.15: https://raw.githubusercontent.com/dmacias72/deluged/master/deluged.plg

 

This plugin installs Deluge BitTorrent daemon and Deluge web client that connects to the daemon.  Follow the steps below to install it.  Once it is installed and running, you can connect to the web client on port 8112 (or the port you picked) of your unRAID server.  Also you can click on the green "RUNNING" link from the unRAID webUI Deluge settings page.  The default password is deluge. After you enter the password for the first time you will be asked to change the password.  Click No, then select the daemon and click on connect.  You can change the password from preferences/interface in the web client.

 

If you clicked yes to change the password the first time, you will have to select the daemon and connect. You can then change the password but all the other perferences will be blank. Just close preferences and reopen and they will be filled in with the defaults.

 

1. Copyt the plugin url:

https://raw.githubusercontent.com/dmacias72/deluged/master/deluged.plg
 

 

2. Paste url into install plugin text input and click install

 

3. Change the port and data directory via the unRAID webUI.

 

All comments and sugestions are welcome.

 

Thanks to Inflencer for the plugin templates based on Benni-Chan's plugin structure, bobbintb, and all those on this site that I might have borrowed from to make this plugin.

 

Only included plugins work so far

 

Thanks to archedraft for helping debug the plugin and modifying and testing for unRaid  5

unRAID 5 support is depreciated.

And thanks to piotrasd for compiling and updating packages.

 

Change Log:

###2015.09.13

- fix start, stop, install and remove scripts

###2015.09.06

- update code for markdown and inherent dynamix functions

###2015.09.03

- update for 6.1

- remove log view since it was always 0kB

###2015.08.15

- updates for unRAID 6.1-rc* only

###2015.07.17

- update to deluge 1.3.11

- fix log file link

- add change log

###2015.05.23

- fix data directory bug

###2015.05.22

- version, changes and scripts update

###2015.01.05

- updated events to deluged

- rename deluged

- move and rename

###2015.01.04

- typo and version

- add tarball and version

- fix md5s

- initial commit

 

Edited by dmacias
Link to comment
  • 3 weeks later...
  • Replies 203
  • Created
  • Last Reply

Top Posters In This Topic

Deluge BitTorrent Server & Client for unRAID 5

 

Based on Deluge: 1.3.6

Default Password: deluge

Default Port: 8112

unRAID Plugin ver: 1.0 https://github.com/archedraft/unRAID_5.0/raw/master/deluge.plg

 

This plugin is no longer being maintained as I am using unRAID 6.0. You will need to find the updated dependency packages for this to install properly.

 

Use at Your Own Risk (This plugin is using Slackware 14.0 packages and unRAID 5.0 is based on Slackware 13.1) there could be issues. For what it is worth, I recommend upgrading your server to unRAID 6 and use a linux VM with Deluge installed on the VM (That is what I am currently doing).  This plugin for unRAID 5 installs a lot of dependencies and there is a good chance it will have conflicts with other plugins.

 

1. Download the plugin:

https://github.com/archedraft/unRAID_5.0

 

2. Install Instructions:

Follow the same instructions in post #1

 

NOTE: This plugin is using Python version 2.7. If you are using other plugins that use Python 2.6 there may be issues. I suggest updating any other plugins to Python 2.7.

Link to comment

 

I thought they both crashed but if you got the daemon running in unRAID 5 you could connect to it using another computer.

 

When I was just downloading each txz file and starting deluged and deluge-web manually without the .plg installed, I was able to connect to deluge-web. Once I entered in those files into the plugin and tried to start deluge through the web GUI I couldn't get it to start. I tried loading my .plg on a fresh test system and for some reason the plg fails to download the images into the plugins/images folder but if CP and SB are installed first then the images are already in the folder, then on my test machine I download unRAID 6 and tried your plugin and if SB and CP were not installed first I got the same error. So I installed SB and CP on my test server and then tried your plg again and it failed to start on unRAID 6... I'm guessing there is something wrong with both of our plg files? But then how did you get yours to start is the question? Maybe you have another plg installed that adds required decencies?

Link to comment

I'm using 6b4 (6b3 is no longer available to download).

I'm not running any plugins other than apcupsd.  I just now installed it from the webui from scratch and it worked. All I did is change the install directory hit apply the hit start and F5 on the plugin's webpage.  It was running and I connected to it.  I didn't really use couchpotato but I do I have sabnzbd and sickbeard on my git that I used.  Only thing I noticed was sab used a different version of pyopenssl.

 

Did you see that error piotrasd pointed out? Do you know if you installed boost manually? It wouldn't download with the extra slash in there.  I updated the plg file.

Link to comment

I tired re-installing deulge_64.plg on unRAID 6b4 and below are my notes:

1. boost-1.54.0 would not download on my computer - I changed the URL to

and that fixed that issue.

2. When it is done getting all the dependencies it finishes with this error

Warning: copy(/boot/config/plugins/images/device_status.png): failed to open stream: No such file or directory in /usr/local/emhttp/plugins/plgMan/plugin on line 175

plugin: unable to copy LOCAL file: /usr/local/emhttp/plugins/deluge/device_status.png

I can see the Deluge plugin icon in the webGUI but there are not options once I open the app.

0f14db318685695.jpg

a622cd318685696.jpg

Link to comment

fresh compiled for unraid 6 x64 ;)

 

libtorrent-rasterbar-0.16.15

 

https://copy.com/38xpQsCajc28OZ4O

 

you can update in your plugin ;) please let me know if works

 

<FILE Name="/boot/packages/libtorrent-rasterbar-0.16.15-x86_64-1PTr.txz" Run="upgradepkg --install-new">
<URL>--no-check-certificate https://copy.com/38xpQsCajc28OZ4O/libtorrent-rasterbar-0.16.15-x86_64-1PTr.txz</URL>
<MD5>9b98e84f552ffd994642f1fb6dd5b05c</MD5>
</FILE>

Link to comment

I got your plugin working on unRAID 6v4. I should note that the plugin would not start as user "nobody" but once I changed the user to "root" it started.

User nobody works for me. You might check permissions on your data directory. Maybe I missed something if you changed users it should update owner to that user.

Link to comment

fresh compiled for unraid 6 x64 ;)

 

libtorrent-rasterbar-0.16.15

 

https://copy.com/38xpQsCajc28OZ4O

 

you can update in your plugin ;) please let me know if works

 

<FILE Name="/boot/packages/libtorrent-rasterbar-0.16.15-x86_64-1PTr.txz" Run="upgradepkg --install-new">
<URL>--no-check-certificate https://copy.com/38xpQsCajc28OZ4O/libtorrent-rasterbar-0.16.15-x86_64-1PTr.txz</URL>
<MD5>9b98e84f552ffd994642f1fb6dd5b05c</MD5>
</FILE>

Thanks, I tested and it worked. I merged it in.

Link to comment

User nobody works for me. You might check permissions on your data directory. Maybe I missed something if you changed users it should update owner to that user.

 

With Influencers Plug-ins (SB & CP) I have always set "Run as User" as other and picked my created admin account. Is there a reason why I would want to run as "nobody"? Also how do I check permissions on my data directory?

 

I can confirm that with your Deluge plugin, only when I set the user to root will the plugin start. If I set it to nobody or other it fails to start deluge.pid. Do you know why it is doing that?

 

Finally, I believe I figured out how to run Deluge on unRAID 5. Once we figure out what is going on with the "Run as User" permissions, I will put the correct pkg's into a plg and hopefully it works out!

Link to comment

No reason to run as nobody, just thought better than root. I just now created a user deluge with useradd deluge and ran it with Run As User: Other deluge and it worked. Its got to be a permissions thing.  I would rename your data directory and then start the plugin under nobody or other user  and let it create the folder again with the correct permissions. Maybe even start from scratch rename your data directory and /boot/config/plugins/deluge then reinstall the plugin. I just tried switching between users from the webui by changing the user then hittin apply and checked the data directory.  It's permissions changed accordingly and deluge was able to start each time.

Link to comment

You could try the command line thing again a see what errors its giving when run under a different user.

First you would need to run this to and change $RUNAS to the username you want and $DATADIR to the path of your data directory

chown -R $RUNAS:users "$DATADIR"

 

Then run this and change $RUNAS to username you want and $DATADIR to the path of your data directory.

su - $RUNAS -c "export PYTHON_EGG_CACHE=$DATADIR/tmp && /usr/bin/deluged --config=$DATADIR --logfile=$DATADIR/deluged.log  --pidfile=/var/run/deluged/deluged.pid"

 

and see what errors you get.

 

Link to comment

I changed the Data Directory and selected "Run as user" as "admin", but .pid still failed.

 

The I typed this:

chown -R admin:users "/mnt/disk1/cache_only/deluge2"

 

Then:

su - admin -c "export PYTHON_EGG_CACHE=/mnt/disk1/cache_only/deluge2/tmp && /usr/bin/deluged --config=/mnt/disk1/cache_only/deluge2 --logfile=/mnt/disk1/cache_only/deluge2/deluged.log  --pidfile=/var/run/deluged/deluged.pid"

 

and I didn't get any errors; however, Deluge will not start as "admin"

 

I should note that I have now installed: SB, CP, and Transmission on this test server and selected "admin" as the user for each and they all started just fine?

 

 

Link to comment

Ok I was able to re-create your problem with user "admin".  When I created admin through the unRAID webgui I was not able to start deluge. but when I created the user from the command line with "useradd" I could.  I'll have to check later the differences between those user creation methods also as it relates to deluge. It maybe the way I implemented the start command.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.