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

#201 2007-12-04 15:02:41

index monkey
Member
From: UK
Registered: 2007-06-14
Posts: 112

Re: torrent clients for DNS-323


DNS-323, HW B1, 2 x 2TB WD green, fw 1.08, fun_plug 0.5, transmission, automatic, nzbget newsreader & rsync time machine backup.

Offline

 

#202 2007-12-17 16:32:05

Eol_durgul
New member
Registered: 2007-12-17
Posts: 4

Re: torrent clients for DNS-323

Been having the same problems with not being able to move/delete downloaded folders as a lot of others, (was able to delete em through the telnet connection, thanks for that Toni!) and found out about the different file permission settings.

http://unixhelp.ed.ac.uk//tasks/permissions_num.html

What i dont understand is why i can move and delete files, which are set at 664 by default i believe, but cant move and delete folders when i set those with the same settings or even with 777....

# correction, with 777 i was able to move, delete etc so that was a good fix for me#




any comments?

Last edited by Eol_durgul (2007-12-31 18:46:39)

Offline

 

#203 2008-01-07 21:21:39

cybrey
Member
Registered: 2007-11-08
Posts: 24

Re: torrent clients for DNS-323

Have been running mldonkey for a month without any real issues. However for some reason now my downloads won't complete. I've looked at ShadowAndys site and I'm using his new mlnet.sh / downloads.ini and the latest verion of mldonkey. The files get down to the last couple of mb .. and then just rise and fall ( ie get down to 2mb then go back up to 4mb etc  etc).

The DNS is also running 3 copies of mlnet for some reason as well, although I'm not sure this is related.

Code:

Mem: 60576K used, 1372K free, 0K shrd, 10768K buff, 29828K cached
Load average: 0.23 0.24 0.19
  PID USER     STATUS   VSZ  PPID %CPU %MEM COMMAND
 3295 root     SW     10440     1  3.8 16.8 mlnet
 3334 root     RW      1424  2970  2.8  2.2 top
 2921 nobody   RW      3044  1224  0.9  4.9 smbd
 3301 root     SWN    10440  3300  0.0 16.8 mlnet
 3300 root     SW     10440  3295  0.0 16.8 mlnet
<snip>

Can anyone point me at where I can start to look to debug this ? I have looked at the last few lines in the mlnet.log but I can't see anything useful like 'exception'.

EDIT : This problem seems to related to specific torrents. I've just downloaded successfully some very small torrents ( < 5mb) and they completed no problems.

Last edited by cybrey (2008-01-07 21:34:49)

Offline

 

#204 2008-01-08 00:36:02

toni
Member
Registered: 2007-08-26
Posts: 41

Re: torrent clients for DNS-323

Hi,

most likely your temp directory is full (check you mlnet.log file in your mldonkey directory, for exact error message). Could you check, weather you set the TEMPDIR to be pointed to your HDD (export TEMPDIR... in your mlnet.sh)? I had this also, after a few downloads in case of large torrents... You can look back in this thread for the solution...

Toni

cybrey wrote:

Have been running mldonkey for a month without any real issues. However for some reason now my downloads won't complete. I've looked at ShadowAndys site and I'm using his new mlnet.sh / downloads.ini and the latest verion of mldonkey. The files get down to the last couple of mb .. and then just rise and fall ( ie get down to 2mb then go back up to 4mb etc  etc).

The DNS is also running 3 copies of mlnet for some reason as well, although I'm not sure this is related.

Code:

Mem: 60576K used, 1372K free, 0K shrd, 10768K buff, 29828K cached
Load average: 0.23 0.24 0.19
  PID USER     STATUS   VSZ  PPID %CPU %MEM COMMAND
 3295 root     SW     10440     1  3.8 16.8 mlnet
 3334 root     RW      1424  2970  2.8  2.2 top
 2921 nobody   RW      3044  1224  0.9  4.9 smbd
 3301 root     SWN    10440  3300  0.0 16.8 mlnet
 3300 root     SW     10440  3295  0.0 16.8 mlnet
<snip>

Can anyone point me at where I can start to look to debug this ? I have looked at the last few lines in the mlnet.log but I can't see anything useful like 'exception'.

EDIT : This problem seems to related to specific torrents. I've just downloaded successfully some very small torrents ( < 5mb) and they completed no problems.

Offline

 

#205 2008-01-08 09:39:28

cybrey
Member
Registered: 2007-11-08
Posts: 24

Re: torrent clients for DNS-323

Thanks for the reply.

I had already read this thread in the hope of finding something useful, and it didn't help;

Code:

/ # df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/ram0                 9911      6864      2535  73% /
/dev/sda2            480197164  70728688 409468476  15% /mnt/HD_a2
/dev/sdb2            480197164  30063388 450133776   6% /mnt/HD_b2
/ #

I don't think thats full.

First few lines of mlnet.sh

Code:

###################################################################
# author:shadowandy.sg@************                                 #
# website: http://www.shadowandy.net                              #
#                                                                 #
# used environment variable to fix running directory instead      #
###################################################################

export MLDONKEY_DIR="/mnt/HD_a2/mldonkey"
export TMPDIR="/mnt/HD_a2/mldonkey/temp"

So I think its being set correctly. As I said in my 'edit' above it seems to be only on certain torrents. Last night I set 6 torrents going from the same series and one has completed, 3 are stuck 99% and the others haven't finished ( it may well be the first one to complete finishes and the others get stuck).

Offline

 

#206 2008-01-13 12:48:48

cybrey
Member
Registered: 2007-11-08
Posts: 24

Re: torrent clients for DNS-323

I 'think' I found out what the problem is, although I didn't think the torrents could be affected in this way due to it.

The NAS was getting its ip from the DHCP on the router, it had been reset around the time the problem had surfaced and consequently a new ip had been given. None of the port forwarding was now pointing at the NAS. I've now setup a static ip with the correct ports and have been downloading quite happily for a couple of days.

Offline

 

#207 2008-02-16 06:31:03

bfg100k
Member
Registered: 2007-09-15
Posts: 55

Re: torrent clients for DNS-323

Hi guys,

Has anyone seen the following errors before? This happens everytime I start mldonkey automatically from fun_plug

Starting mlnet...
2008/02/16 12:22:30 [cO] Starting MLDonkey 2.9.3 ...
2008/02/16 12:22:30 [cO] Language EN, locale UTF-8, ulimit for open files 1024
2008/02/16 12:22:30 [cO] MLDonkey is working in /mnt/HD_a2/mldonkey
2008/02/16 12:22:30 [Gettext] Loading language resource mlnet_strings.EN_UTF-8
2008/02/16 12:22:30 [cO] loaded language resource file
2008/02/16 12:22:30 [cO] PID file /mnt/HD_a2/mldonkey/mlnet.pid exists.
2008/02/16 12:22:30 [cO] Checking whether PID 2604 is still used...
2008/02/16 12:22:30 [cO] Removing stalled file mlnet.pid...
2008/02/16 12:22:30 [cO] Removing stalled file /mnt/HD_a2/mldonkey/config_files_space.tmp...
2008/02/16 12:22:30 [DNS] Resolving [NAS-DNS323] ...
Segmentation fault

Offline

 

#208 2008-02-18 15:41:50

bfg100k
Member
Registered: 2007-09-15
Posts: 55

Re: torrent clients for DNS-323

update. it seems like the segmentation fault issue doesn't happen all the time but most times it happens when started through fun_plug.

Another problem I'm having is related to permissions. I'm using the option -run_as_useruid to run mldonkey as a non-privileged user. I've made sure that I've chown all the files in the mldonkey directory to that user. I've also changed permissions to read/writable by the user and group. However, when mlnet starts, it seems to create new copies of all the ini files under the root:root user/group. [Opt] will then complain about permission problems when saving them. The core will then stop right after that.

Can anyone share some insights on this? Thanks.

Offline

 

#209 2008-02-18 16:01:35

WingedStone
Member
Registered: 2007-07-09
Posts: 5

Re: torrent clients for DNS-323

I had the same problem, but can't remember how I solved it. :-/
Maybe it was .ini files on the way or the TMP_DIR wasn't set properly (which caused mlnet to fill up /tmp)

my 0.02€.

Offline

 

#210 2008-02-20 18:43:36

miraelsol
New member
Registered: 2008-02-20
Posts: 1

Re: torrent clients for DNS-323

Last night I grabbed Shadowandy's compiled MLdonkey 2.9.2 and installed it following his instructions. I had to look up the MLdonkey documentation to configure it the way I want to, but once that was done it has been working perfectly.
It's great when everything works smoothly. So this is just to report success :-) and to give credit to Shadowandy for the binaries and the (very clear) instructions.

Offline

 

#211 2008-03-14 01:32:31

pof
Member
From: Barcelona
Registered: 2008-03-07
Posts: 28
Website

Re: torrent clients for DNS-323

@shadowandy:

Sorry if this has been previously covered, I haven't read the full thread.

I have made an startup script to start/stop mlnet in fonz fun_plug, feel free to include it with your next mlnet releases:

Code:

#!/bin/sh

export MLDONKEY_DIR="/mnt/HD_a2/mldonkey"
export TMPDIR="/mnt/HD_a2/mldonkey/temp"

mlnet_start() {
        if [ -z "${FUNPLUGDIR}" ]; then
                echo "ERROR: \$FUNPLUGDIR not set"
                exit 1
        fi
        echo "Starting mlnet..."
        mkdir -p ${TMPDIR}
        mkdir -p ${MLDONKEY_DIR}/incoming/
        mkdir -p ${MLDONKEY_DIR}/logs/
        nohup ${FUNPLUGDIR}/bin/mlnet >> ${MLDONKEY_DIR}/logs/mlnet.log 2>&1 &
}

mlnet_stop() {
        echo "Stopping mlnet..."
        kill $(pidof mlnet)
        sleep 1
        kill -9 $(pidof mlnet) 2>/dev/null
}

mlnet_status() {
    if [ -z "$(pidof mlnet)" ]; then
        echo "stopped"
    else
        echo "running"
    fi
}

case "$1" in                              
    stop)                                 
        mlnet_stop                        
        ;;                          
    status)                         
        mlnet_status                
        ;;                          
    start|'')         
        mlnet_start   
        ;;            
    restart)        
        mlnet_stop  
        sleep 1     
        mlnet_start 
        ;;          
    *)              
        echo "Usage: $0 start|stop|restart|status"
        ;;                                        
esac

I also have made a ffp package for myself, which can be installed using 'funpkg.sh mlnet-2.9.3.tgz', which is probably easier for users of fonz fun_plug to install mlnet.

If you want to package your next releases, this script will make the package automatically:

Code:

#!/bin/sh
VERSION="2.9.3"
tar cvf ./mlnet-${VERSION}.tar ${FUNPLUGDIR}/start/mlnet.sh ${FUNPLUGDIR}/bin/mlnet
gzip ./mlnet-${VERSION}.tar
mv ./mlnet-${VERSION}.tar.gz ./mlnet-${VERSION}.tgz

Cheers,

pof

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB