Error running deluge after building

General support for problems installing or using Deluge
Post Reply
ThaMagicBoy
New User
New User
Posts: 2
Joined: Sat Apr 06, 2013 11:38 am

Error running deluge after building

Post by ThaMagicBoy »

Hi there,

Before i begin first my setup and installed packages:
Nas: Synology DS412+ on DSM 4.2 http://www.synology.nl/products/spec.ph ... #p_submenu
CPU: Intel Atom Dual Core 2.13GHz

Nas is bootstrapped and has optware installed and running (chroot).
uname -a:
Linux DS412p 3.2.30 #3202 SMP Fri Mar 1 01:04:10 CST 2013 x86_64 GNU/Linux

Packages installed:

Code: Select all

apr - 1.4.6-1
apr-util - 1.4.1-1
autoconf - 2.69-1
automake - 1.12-1
bash - 3.2.49-1
binutils - 2.19.1-1
bison - 2.5.1-1
boost-date-time - 1_45_0-1
boost-dev - 1_45_0-1
boost-filesystem - 1_45_0-1
boost-graph - 1_45_0-1
boost-iostreams - 1_45_0-1
boost-program-options - 1_45_0-1
boost-python - 1_45_0-1
boost-random - 1_45_0-1
boost-regex - 1_45_0-1
boost-serialization - 1_45_0-1
boost-signals - 1_45_0-1
boost-system - 1_45_0-1
boost-test - 1_45_0-1
boost-thread - 1_45_0-1
boost-wave - 1_45_0-1
bzip2 - 1.0.6-1
coreutils - 8.4-1
cyrus-sasl-libs - 2.1.23-2
diffutils - 3.1-1
e2fslibs - 1.40.3-5
expat - 2.0.1-1
file - 5.12-1
findutils - 4.2.32-1
flex - 2.5.35-1
gawk - 4.0.1-1
gcc - 4.2.1-5
gdbm - 1.8.3-4
geoip - 1.4.5-1
gettext - 0.14.5-2
grep - 2.12-1
groff - 1.19.2-2
gzip - 1.5-1
libc-dev - 2.3.6-5
libdb - 4.2.52-3
libidn - 1.25-1
libnsl - 2.3.6-4
libstdc++ - 6.0.9-6
libtool - 1.5.26-1
libxml2 - 2.7.8-1
m4 - 1.4.16-1
make - 3.82-1
ncurses - 5.7-3
ncursesw - 5.7-2
neon - 0.29.6-1
openldap-libs - 2.3.43-2
openssl - 0.9.8v-2
openssl-dev - 0.9.8v-2
optware-devel - 6.8-10
patch - 2.6.1-1
pcre - 8.31-1
perl - 5.10.0-6
pkgconfig - 0.15.0-2
psmisc - 22.17-1
py26-beaker - 1.5.4-1
py26-mako - 0.4.1-1
py26-openssl - 0.10-1
py26-setuptools - 0.6c11-2
py26-simplejson - 2.1.2-1
py26-twisted - 9.0.0-1
py26-zope-interface - 3.5.0-1
python - 2.5-1
python25 - 2.5.6-2
python26 - 2.6.8-1
readline - 6.1-2
rsync - 3.0.9-1
screen - 4.0.3-2
sed - 4.2.2-1
sqlite - 3.7.14.1-1
svn - 1.7.7-1
tar - 1.26-1
tcl - 8.4.19-2
termcap - 1.3.1-2
wget-ssl - 1.12-2
zlib - 1.2.5-1
Also builded and installed:
chardet-2.1.1
pyxdg-0.25

Maked the following patches:

Code: Select all

 nano or vi /opt/include/boost/config/user.hpp
add "#define BOOST_NO_INCLASS_MEMBER_INITIALIZATION" 
And

Code: Select all

If you're using 2.6 the ipkg provided python 2.6 distutils config (/opt/lib/python2.6/distutils/distutils.cfg)
appears to point at the python 2.5 site packages directory after installation so that needs correcting first.
I build and installed deluge 1.3.5 without problems (with included libtorrent).
But when I want to start deluge deamon i get the following runtime error:

Code: Select all

libtorrent.so: undefined symbol: __sync_fetch_and_add_4
And I also tried to build and install the latest libtorrent-rasterbar with different configs, but also the same error.

How can I fix this one?
I'm out of options.
Please help me. If you need anything else let me know.
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Error running deluge after building

Post by Cas »

Firstly the latest version of Deluge is 1.3.6.

What version of libtorrent? how are you building it? have you tried building with "-march=atom" flag?
ThaMagicBoy
New User
New User
Posts: 2
Joined: Sat Apr 06, 2013 11:38 am

Re: Error running deluge after building

Post by ThaMagicBoy »

No need to worry, after a lot of searching the web, digging logfiles and trying different settings, I found the solution. :D

Deluge 1.3.5 and libtorrent-rasterbar 0.16.9 are builded/installed and running on my Synology NAS DS412+.
It's working lik a charm :lol: (running the deamon and the deluge-web atm)

The reason I need(ed) Deluge 1.3.5 was because requirements of the tracker I connected on.

Deluge 1.3.5 and libtorrent-rasterbar 0.16.9 are builded/installed and running on my Synology NAS DS412+(bootstrapped). I builded Delugen and libtorrent-rasterbar from source.

I'am running the deluge-deamon and the deluge-web atm and also tested the deluge-console.
All working right now. :D

Is there interest in a detailed manual? So others can use and build and install Deluge 1.3.5 and libtorrent-rasterbar 0.16.9 from source. You can also use a newer version of Deluge(also tested), for older versions you need different settings. But I don't think people need older versions of Deluge < 1.3.5.

If there's interest, I will make the manual in a week or two.
rhyscathym

Re: Error running deluge after building

Post by rhyscathym »

I'd be very interested in getting a walkthrough for installing Deluge on my Synology NAS. I've got the exact same model, the DS412+, I just purchased it, so I'm not too familiar with it, but I can tell that I'd love to get Deluge on there instead of the Download Station it comes with.

So far the only guide I've found is this one: http://systemsnotebook.blogspot.com/201 ... ology.html

I'd greatly appreciate if you could share the steps you took to get it up and running on your NAS. Thanks!
Aksumka

Re: Error running deluge after building

Post by Aksumka »

I'll second that request!

I'd love a guide to do this!

Late edit:

For anyone looking for an easy way out:
There is this: http://www.synocommunity.com/packages
One of the packages in this custom repo is a Debian Chroot.
After adding the custom repo to DSM, install the Debain Chroot.
Once that is set up, you'll be able to get deluge with a simple apt-get install.
Only thing I did differently is add the experimental branch so I could get 1.3.6.
This is about 100% less painless.
metal450
Member
Member
Posts: 13
Joined: Thu Sep 05, 2013 7:38 am

Re: Error running deluge after building

Post by metal450 »

For anyone looking for an easy way out:
There is this: http://www.synocommunity.com/packages
One of the packages in this custom repo is a Debian Chroot.
After adding the custom repo to DSM, install the Debain Chroot.
Once that is set up, you'll be able to get deluge with a simple apt-get install.
Only thing I did differently is add the experimental branch so I could get 1.3.6.
This is about 100% less painless.
EXCELLENT idea - thanks for that! I've got it 100% up and running...except...for the life of me, I can't get it to auto-start on boot. Were you able to? If so, I'd love it if you could tell me how...

What I did: I used the boot script here (http://dev.deluge-torrent.org/wiki/User ... ipt/Ubuntu), which works just fine if I start it manually (invoke-rc.d deluge-daemon start). If I "update-rc.d deluge-daemon defaults" and reboot though, deluge is not running (and hasn't logged anything). Likewise, if I add "/etc/init.d/deluge-daemon" to the Debian Chroot console's Services tab on DSM and reboot, it says the service is running, but it really isn't. Even more confusingly, If I then stop and restart it manually from that very same console, it works. So basically the script *must* be working - it just refuses to start by itself.

Any thoughts? I've been struggling with this for like half a day now - 5X longer than the entire rest of the setup took me :(

Thanks!
Post Reply