DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2013-08-26 19:34:22

jucca
Member
Registered: 2013-08-26
Posts: 9

DNS-320 transmission problem - freezing

Hi all.
First excuse me for my bad English.
I've installed Fun_plug and Transmission from this link but with newest versions. >> http://klseet.com/index.php/d-link-dns-320-nas?id=173
I did succefull install of both, got Transmission running on my DN320, but web managment freezes after while, I can download only one torrent, if I add new torrent, it freezes, ad it can't be accessible any more, have to restart NAS. Start/stop transmission don't work from terminal (using MAC). Second, is it normal that if NAS is rebooted that torrents starting again from 0%?
My error log is almost 200MB in just one hour, and it is full of these errors:
[19:22:38.972] tr_crypto error:24064064:lib(36):func(100):reason(100) (crypto.c:115)
[19:22:38.972] tr_crypto error:24064064:lib(36):func(100):reason(100) (crypto.c:115)
[19:22:38.973] tr_crypto error:24064064:lib(36):func(100):reason(100) (crypto.c:115)
[19:22:38.973] tr_crypto error:24064064:lib(36):func(100):reason(100) (crypto.c:115)
[19:22:38.973] tr_crypto error:24064064:lib(36):func(100):reason(100) (crypto.c:115)
[19:22:38.973] tr_crypto error:24064064:lib(36):func(100):reason(100) (crypto.c:115)
[19:22:38.973] tr_crypto error:24064064:lib(36):func(100):reason(100) (crypto.c:115)
.
.
.
.

Offline

 

#2 2013-08-26 22:28:24

Mijzelf
Member / Developer
Registered: 2008-07-05
Posts: 709

Re: DNS-320 transmission problem - freezing

That log result was also described and resolved here. Doesn't know if that also solves the freezing.

Offline

 

#3 2013-08-26 22:45:49

jucca
Member
Registered: 2013-08-26
Posts: 9

Re: DNS-320 transmission problem - freezing

Saw that, and tried before. Didn't helped, actually after some time, it completely freezes mine DNS320, had to power off it. Noticed then when funplug was running didn't able to enter NAS Recource Monitor, it was 404 or 505 HTML error. Now, I deleted plugin completely. Useless in this condition.

Offline

 

#4 2013-08-27 12:35:55

jucca
Member
Registered: 2013-08-26
Posts: 9

Re: DNS-320 transmission problem - freezing

Forgot to mention, I have B1 revision of DNS320 wit 1.03b FW.

Offline

 

#5 2013-08-28 12:32:20

jucca
Member
Registered: 2013-08-26
Posts: 9

Re: DNS-320 transmission problem - freezing

Please guys, any advice. I really hate built in torrent. I tried once more do the job, but got same problems. Transmission is starting to download, but after few minutes, its freezes.

Offline

 

#6 2013-09-01 09:25:05

baltzatu
Member
From: Bucharest, Romania
Registered: 2013-08-26
Posts: 38

Re: DNS-320 transmission problem - freezing

Hello, jucca.

Personally, I'd install Debian Squeeze (get it from here) and go with Deluge (get it from here). I've never tested Transmission, but I'm extremely happy with Deluge. It has web interface, magnet links support, individual upload/download speed limit and many more.

To get deluge up and running, you'll need deluge-common, deluged and deluge-web. After installing Debian Squeeze, login (as root, of course) and run the following commands:

Code:

apt-get update
apt-get dist-upgrade
apt-get upgrade
wget http://main.mepis-deb.org/mepiscr/testrepo/pool/test/d/deluge/deluge-common_1.3.6-0mcr110+1_all.deb
wget http://main.mepis-deb.org/mepiscr/testrepo/pool/test/d/deluge/deluged_1.3.6-0mcr110+1_all.deb
wget http://main.mepis-deb.org/mepiscr/testrepo/pool/test/d/deluge/deluge-web_1.3.6-0mcr110+1_all.deb
dpkg -i deluge-common_1.3.6-0mcr110+1_all.deb deluged_1.3.6-0mcr110+1_all.deb deluge-web_1.3.6-0mcr110+1_all.deb
apt-get -f install

Ignore dpkg's errors; the last line is there to fix them dependencies big_smile Don't be afraid to install all the suggested packages; they're all needed.

You'd also like to install nano to edit files (if it's not already installed: apt-get install nano)

To enable the daemon:

Code:

nano /etc/default/deluged

Change ENABLE_DELUGED from 0 to 1 and save the file (Ctrl+o and Enter, Ctrl+x).

To run Deluge:

Code:

/usr/bin/deluged
/usr/bin/deluge-web --fork #Don't forget "--fork"; otherwise, the web interface will not daemonize itself

If you want to run Deluge at startup, add the two lines at the bottom of your /boot/linuxrc (using nano, of course: nano /boot/linuxrc).

To login on the web interface, access http://<your_NAS_IP>:8112/ via your web browser (I recommend Google Chrome or FireFox - IE 10 fails miserably). The default password is deluge. Connect to the daemon, access "Preferences" and set the torrent client as your heart desires.

Personally, I've created a "Torrents" folder on "Volume_1" and pointed "Download to:" to it (/mnt/HD/HD_a2/Torrents).

Don't forget to alter the "Queue" values to fit your needs. Tweaking your bandwidth (FAQ, guide) is also a very good idea.

In order to move the downloaded files, you have to run a chmod -R 777 /mnt/HD/HD_a2/Torrents first (replace /mnt/HD/HD_a2/Torrents with the location you've chosen to store your torrents).

Hope it helps smile

Last edited by baltzatu (2013-10-27 09:57:39)


Moo... or something...

Offline

 

#7 2013-09-02 00:16:58

jucca
Member
Registered: 2013-08-26
Posts: 9

Re: DNS-320 transmission problem - freezing

Thank you!

I did all the steps, got ffplugin installed again, debian squezze and finally deluga, but after reboot I can't access my NAS anymore. Via WEB interface it shows me login page, I entered user/pass details, but it just hangs there. Can't SSH it or telnet it anymore. Can't even AFP it (using MAC). Please what I missing here? Actually can't do anything with it. Tried to factory reset the NAS, but, same problem happening, can't access it anymore. Please help

Last edited by jucca (2013-09-02 00:59:41)

Offline

 

#8 2013-09-02 14:03:15

jucca
Member
Registered: 2013-08-26
Posts: 9

Re: DNS-320 transmission problem - freezing

Uff, luckily, I managed to return it to factory settings. I phisicaly removed first disk (Volume_1), then after rebooting my NAS, I've hot-pluged it in, then managed to remove fun_plug.
Will try again, but maybe it is not compatible with B revision of my DNS-320.
What revision do you have?

Offline

 

#9 2013-09-02 14:31:35

baltzatu
Member
From: Bucharest, Romania
Registered: 2013-08-26
Posts: 38

Re: DNS-320 transmission problem - freezing

You didn't have to remove the hard disk. Simply replacing the current fun_plug with this one, editing it (to replace /mnt/HD_a2 with /mnt/HD/HD_a2) and rebooting the NAS via the web interface will do.

My NAS is rev. A.

Anyway... here's how I do it: install ffp (0.7 works fine after replacing /mnt/HD_a2 with /mnt/HD/HD_a2 inside fun_plug), extract squeeze.tar.gz on Volume_1, copy the current fun_plug file to fun_plug.ffp and follow the instructions inside the archive (connect via SSH/Telnet, unzip, untar, copy fun_plug.debian on Volume_1, replace the current fun_plug with it, reboot NAS). It always worked fine. Maybe it'll work for you too.


Moo... or something...

Offline

 

#10 2013-09-02 15:05:08

jucca
Member
Registered: 2013-08-26
Posts: 9

Re: DNS-320 transmission problem - freezing

As I said in post earlier, I had to remove HDD as with fun_plug loaded I could not access my NAS anymore, no metter in which way, even WEB managment didn't worked. i have that script from earlier and after hot-plug HDD1 in, I've put that script.
Thanks, will try now.

Offline

 

#11 2013-09-02 17:02:53

jucca
Member
Registered: 2013-08-26
Posts: 9

Re: DNS-320 transmission problem - freezing

Seems I managed now. It works everything. Got the Deluge running big_smile

Just a quick question, where Deluge stores it config file, it want save my settings after NAS is rebooted?

Thank you baltzatu, you know the job wink

Offline

 

#12 2013-09-03 07:32:52

baltzatu
Member
From: Bucharest, Romania
Registered: 2013-08-26
Posts: 38

Re: DNS-320 transmission problem - freezing

You're welcome. Glad I could help smile

The config files are in /root/.config/deluge/. But the installation is not volatile; as long as Squeeze is there and fun_plug points to it, it will start automatically.

If you want Deluge to start automatically, add the following lines at the bottom of your /boot/linuxrc file (using nano /boot/linuxrc):

Code:

/usr/bin/deluged
/usr/bin/deluge-web --fork

Last edited by baltzatu (2013-09-14 15:07:41)


Moo... or something...

Offline

 

#13 2013-09-27 00:43:28

cdpereira
New member
Registered: 2013-09-27
Posts: 4

Re: DNS-320 transmission problem - freezing

baltzatu i just want to say to you. Many thks dude, great help with this tutorial. I bought a DNS-320 2 months ago and i was really dissapointed, then i start googling, and found info about ffp and debian squeeze, but because i dont know a lot about linux or unix, i had a few bumps, then i found your this post and i have runnin deluge, and its incredibly good.

Really many thanks

PS. Sory for the english, i'm Portuguese

Offline

 

#14 2013-09-27 06:51:54

baltzatu
Member
From: Bucharest, Romania
Registered: 2013-08-26
Posts: 38

Re: DNS-320 transmission problem - freezing

You're welcome, man. Glad I could help smile


Moo... or something...

Offline

 

#15 2014-02-12 23:39:28

cdpereira
New member
Registered: 2013-09-27
Posts: 4

Re: DNS-320 transmission problem - freezing

baltzatu wrote:

You're welcome, man. Glad I could help smile

Hello

Sory to bother you. The deluge is been working great BTW thank you.

But for some reason i lost telnet and ssh acess to the device. I have acess to disks and data on pc but cant longer acess by telnet or ssh.

I dint change nothing, and i tried to restart allready but still no access. Alway get "Network error. Conection Refused."

I googled it and follow some tips on other sites but no luck,

Any Ideas

Thanks

Offline

 

#16 2014-02-15 08:39:19

baltzatu
Member
From: Bucharest, Romania
Registered: 2013-08-26
Posts: 38

Re: DNS-320 transmission problem - freezing

Hello, cdpereira.

First of all, check if Debian's fun_plug is present in the root of your "Volume_1" share. If it's not or it isn't the right one, then this is the reason your Debian doesn't start. If you need to check and/or restore it, here's the content:

Code:

#!/bin/sh

# Root DISK1
export DISK1=/mnt/HD/HD_a2
export DISTDIR=squeeze

cd $DISK1

mount --bind $DISK1 $DISTDIR$DISK1
mount --bind / $DISTDIR/mnt/root
mount --bind /dev $DISTDIR/dev
mount --bind /sys  $DISTDIR/sys
#mount --bind /sys/crfs $DISTDIR/sys/crfs
#mount --bind /web $DISTDIR/web
mount --bind /proc $DISTDIR/proc

cp -f /proc/mounts $DISTDIR/etc/mtab
rm -f $DISTDIR/etc/fstab
touch $DISTDIR/etc/fstab
cp -f /etc/resolv.conf $DISTDIR/etc
hostname >$DISTDIR/etc/hostname
cp -f /etc/hosts $DISTDIR/etc

$DISK1/$DISTDIR/boot/chroot $DISK1/$DISTDIR /boot/linuxrc

Restore it if necessary, reboot your NAS via its web administration interface and check if you can access it via SSH and that everything works.

If SSH still fails to connect, investigate the possible network connections issues. Does your NAS have a static IP address? DHCP may play tricks every now and then.

So... if fun_plug is OK and you can access your NAS via its web administration interface, but not via SSH, go to "Management" -> "Network Management" and check if everything is OK. Change the IP address to static if necessary, reboot the NAS (just in case) and try to connect again via SSH (PuTTY) using the newly assigned IP address.

If SSH still fails to connect (telnet wasn't supposed to, anyway, unless you use Fonz fun_plug), then probably your Debian is broken somehow sad

In this case, here's what I'd do (actually did a couple of times, since I've managed to broke Debian):

0. Download the Debian archive (it seems that D-Link's FTP sites where it was available don't exist anymore sad so use this link) and unpack it on your computer - don't use your NAS' "Volume_1" share just yet.
-------------------------------------------------------------------------------------
1. Use Fonz fun_plug to access your device. The instructions are here, but you don't have to go all the way; you just need a mean to access your NAS via telnet:
1.1 Put this file and this file in the root of your "Volume_1" share;
1.2 Reboot your NAS;
1.3 Wait a little (the archive has to be unpacked) and use telnet to log on.
-------------------------------------------------------------------------------------
2. If telnet is working, then you can start working on restoring Deluge:
2.1 Rename your old Debian folder:

Code:

mv /mnt/HD/HD_a2/squeeze /mnt/HD/HD_a2/squeeze_OLD

2.2 Follow the instructions found inside the archive you've downloaded and unpacked in step 0 in order to get a fresh Squeeze install;
2.3 Exit telnet and restart your NAS via the web administration interface;
2.4 Access your NAS via SSH.

If SSH works, then install Deluge, configure the daemon, start the service, then stop it:

Code:

service deluged start
service deluged stop

Restore your settings by copying them from your previous Squeeze installation:

Code:

mv /root/.config/deluge /root/.config/deluge_NEW
cp -rf /mnt/HD/HD_a2/squeeze_OLD/root/.config/ /root/

Now start the deluged service again with service deluged start, the web interface with deluge-web --fork and enjoy smile

If everything works fine, you can delete the old Squeeze by running the rm -rf /mnt/HD/HD_a2/squeeze_OLD command. Please keep in mind that the operation is irreversible and the files will be lost forever (sort of, since recovering them will take an eternity).

Good luck!

Last edited by baltzatu (2014-02-15 08:52:55)


Moo... or something...

Offline

 

#17 2014-02-24 17:17:10

cdpereira
New member
Registered: 2013-09-27
Posts: 4

Re: DNS-320 transmission problem - freezing

Hello again

Once again thank you so much for you help, and sory for taking so long to reply to you, but i had more serius issues meanhile.

I lost completly acess to my data and i couldn't even format the drives inside (2x 500GB) from the web interface, i had to take them out and format them on a pc, but i lost a couple a things and i was really upset with that.

With all this in mind i change my strategy i bought a Western Digital My Book live 2TB and is my mans backup disk now, and with the help of some packages i was able to install transmission with a few clicks and is working fine too.

So i aprecciate your help and thank you for your time baltzatu.
BTW i will probably use the DNS-320 for a second backup unit for the most sensitive files. Do i read that i can use rsync for that do you know any good tutorial for that? Or any other method to sync one folder from mybook live to dns-320, if it had web interface it would be great,

thanks again

Offline

 

#18 2014-02-24 22:30:33

baltzatu
Member
From: Bucharest, Romania
Registered: 2013-08-26
Posts: 38

Re: DNS-320 transmission problem - freezing

Hello.

You should've asked here before formatting... even when you're surrounded by Windows computers, there are ways to fix issues/recover data from Linux partitions. You can use one of the million flavors of Live Linux CDs, or something more Windows-y, like Ext2 Volume Manager, which works flawlessly on my Win 7 Pro x64 PC.

You might want to check BitTorrent Sync (BitTorrent based - how-to).

You're welcome smile

Last edited by baltzatu (2014-02-24 22:33:21)


Moo... or something...

Offline

 

#19 2014-02-25 00:25:49

cdpereira
New member
Registered: 2013-09-27
Posts: 4

Re: DNS-320 transmission problem - freezing

Yeah

but i enter in tilt mode you know smile but never mind the things i lost i can redownload from the internet it was nothing personal

i'll take a look at bit torrent sync

you're the man

once again thanks wink

Offline

 

#20 2014-02-25 09:55:49

baltzatu
Member
From: Bucharest, Romania
Registered: 2013-08-26
Posts: 38

Re: DNS-320 transmission problem - freezing

Well... it could've been avoided, but what's done is done. Let's just hope it won't be a second time.

You're welcome smile

Last edited by baltzatu (2014-02-25 09:56:21)


Moo... or something...

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB