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 2012-03-09 05:22:43

tommymsw
Member
Registered: 2012-02-24
Posts: 104

Re: Sabnzbd, Sickbeard & CouchPotato on DNS-320

All are working fine now (including autostart).

I get the idea of adding the config files back. I would like to do it thorugh explorer if I had rights to the folders. Could I just give 777 rights to the "newuser" folder and then drag and drop the config files back? Or is that harder?

I also copied the "data" file from CP before I started... I think that is where the  queue was held?

I think I may have it figured out....

Last edited by tommymsw (2012-03-09 06:23:25)

Offline

 

#202 2012-03-09 06:55:30

tommymsw
Member
Registered: 2012-02-24
Posts: 104

Re: Sabnzbd, Sickbeard & CouchPotato on DNS-320

All is well now EXCEPT (always something).... why can I only see one of my HD's in squeeze/mnt/HD ?
I seem to have no way to set the path for SB to my second HD.

Offline

 

#203 2012-03-09 16:27:16

Terrabyte
Member
Registered: 2011-08-19
Posts: 96

Re: Sabnzbd, Sickbeard & CouchPotato on DNS-320

tommymsw wrote:

All are working fine now (including autostart).

I get the idea of adding the config files back. I would like to do it thorugh explorer if I had rights to the folders. Could I just give 777 rights to the "newuser" folder and then drag and drop the config files back? Or is that harder?

I also copied the "data" file from CP before I started... I think that is where the  queue was held?

I think I may have it figured out....

I think that should work. I normally use Filezilla and sftp (like FTP but via SSH) into NAS than drop the file in. This way the permission are exact.

Offline

 

#204 2012-03-09 16:28:36

Terrabyte
Member
Registered: 2011-08-19
Posts: 96

Re: Sabnzbd, Sickbeard & CouchPotato on DNS-320

tommymsw wrote:

All is well now EXCEPT (always something).... why can I only see one of my HD's in squeeze/mnt/HD ?
I seem to have no way to set the path for SB to my second HD.

You have to mount the drive in Debian before you can use it. I will post instructions later tonight.

Last edited by Terrabyte (2012-03-09 16:28:52)

Offline

 

#205 2012-03-09 19:08:39

tommymsw
Member
Registered: 2012-02-24
Posts: 104

Re: Sabnzbd, Sickbeard & CouchPotato on DNS-320

Thanks, I found this:
http://linux.justinhartman.com/Installi … hard_drive

but I am afraid to try it. I still am no expert and I am not sure that I do not need to alter these paths for my particular needs?

And I am assuming (hoping) that the drive will not be erased. When I look at the drive via the instructions above, I see both drives and they are both showing partitions (identical). They are also identical drives... so I am not sure how to tell what one is which? Or even if that matters.

Offline

 

#206 2012-03-09 20:54:36

Terrabyte
Member
Registered: 2011-08-19
Posts: 96

Re: Sabnzbd, Sickbeard & CouchPotato on DNS-320

tommymsw wrote:

Thanks, I found this:
http://linux.justinhartman.com/Installi … hard_drive

but I am afraid to try it. I still am no expert and I am not sure that I do not need to alter these paths for my particular needs?

And I am assuming (hoping) that the drive will not be erased. When I look at the drive via the instructions above, I see both drives and they are both showing partitions (identical). They are also identical drives... so I am not sure how to tell what one is which? Or even if that matters.

How are the drives setup? Raid 0, 1, JBOD, Independent Drives

Offline

 

#207 2012-03-09 21:57:59

tommymsw
Member
Registered: 2012-02-24
Posts: 104

Re: Sabnzbd, Sickbeard & CouchPotato on DNS-320

Umm... independent drives I believe. I put the second in after the first so I think that was the only way without erasing them right?

Current RAID Type
Volume_1    : Standard
Volume_2    : Standard

Last edited by tommymsw (2012-03-09 22:01:12)

Offline

 

#208 2012-03-10 06:22:40

Terrabyte
Member
Registered: 2011-08-19
Posts: 96

Re: Sabnzbd, Sickbeard & CouchPotato on DNS-320

This is how to you set it up:

SSH as root
#blkid (look for dev/sdb2 and the UUID for it)
#mkdir /mnt/HD/HD_b2
#chmod 755 /mnt/HD/HD_b2
#mount UUID="xxxxxxxxxxxxxxxxxxxxxxxxxxx" /mnt/HD/HD_b2

nano /etc/init.d/mount-HDb2.sh
#!/bin/bash
mount UUID="xxxxxxxxxxxxxxxxxxxxxxxxxxx" /mnt/HD/HD_b2

chmod 755 /etc/init.d/mount-HDb2.sh

Create in /boot/linuxrc
nano /boot/linuxrc
# Mount HD_b2
/etc/init.d/mount-HDb2.sh
Control o to write file than Control x to exit file
exit

Offline

 

#209 2012-03-10 08:30:49

tommymsw
Member
Registered: 2012-02-24
Posts: 104

Re: Sabnzbd, Sickbeard & CouchPotato on DNS-320

SUCCESS! You are pretty awesome! Although if anybody else follows this:

SSH as root
#blkid (look for dev/sdb2 and the UUID for it)
#mkdir /mnt/HD/HD_b2
#chmod 755 /mnt/HD/HD_b2
#mount UUID="xxxxxxxxxxxxxxxxxxxxxxxxxxx" /mnt/HD/HD_b2

nano /etc/init.d/mount-HDb2.sh
#!/bin/bash
mount UUID="xxxxxxxxxxxxxxxxxxxxxxxxxxx" /mnt/HD/HD_b2
Control o to write file than Control x to exit file  <-------------- this needs to be here.

chmod 755 /etc/init.d/mount-HDb2.sh

Create in /boot/linuxrc
nano /boot/linuxrc
# Mount HD_b2
/etc/init.d/mount-HDb2.sh
Control o to write file than Control x to exit file
exit


Now I just need to figure out what made CP stop working AGAIN! lol. When I try to start it, Putty freezes and I have to restart the NAS. I will tinker with it.
Might have something to do with Mysql (as I had to re-set that all up again after the fresh install).

Offline

 

#210 2012-03-10 12:26:01

Le_candide
Member
Registered: 2011-10-14
Posts: 7

Re: Sabnzbd, Sickbeard & CouchPotato on DNS-320

Hi,

Another way, to automount all disk (including usb disk) :

SSH as root  and edit fun_plug file (make a backup before wink ) :

nano /mnt/HD/HD_a2/fun_plug

and replace this line :

mount --bind $DISK1 $DISTDIR$DISK1

by this block :

for DISK in `mount|awk '$3~"/mnt/"{print $3}'`; do
   if [ -d $DISK ] ; then mkdir -p $DISTDIR/$DISK ; mount --bind $DISK $DISTDIR/$DISK ; fi
done

(Control o to write file than Control x to exit file)

Last edited by Le_candide (2012-03-10 12:38:33)

Offline

 

#211 2012-03-10 19:57:26

tommymsw
Member
Registered: 2012-02-24
Posts: 104

Re: Sabnzbd, Sickbeard & CouchPotato on DNS-320

Any reason why when I "python CouchPotato/CouchPotato.py -d" my Putty freezes, my NAS locks up and CP never starts? I deleted the CP directory and re-installed.

Offline

 

#212 2012-03-10 20:24:59

Terrabyte
Member
Registered: 2011-08-19
Posts: 96

Re: Sabnzbd, Sickbeard & CouchPotato on DNS-320

Le_candide wrote:

Hi,

Another way, to automount all disk (including usb disk) :

SSH as root  and edit fun_plug file (make a backup before wink ) :

nano /mnt/HD/HD_a2/fun_plug

and replace this line :

mount --bind $DISK1 $DISTDIR$DISK1

by this block :

for DISK in `mount|awk '$3~"/mnt/"{print $3}'`; do
   if [ -d $DISK ] ; then mkdir -p $DISTDIR/$DISK ; mount --bind $DISK $DISTDIR/$DISK ; fi
done

(Control o to write file than Control x to exit file)

Much clean than my hack...bash scripting is the shisal

Offline

 

#213 2012-03-10 20:37:04

Terrabyte
Member
Registered: 2011-08-19
Posts: 96

Re: Sabnzbd, Sickbeard & CouchPotato on DNS-320

tommymsw wrote:

Any reason why when I "python CouchPotato/CouchPotato.py -d" my Putty freezes, my NAS locks up and CP never starts? I deleted the CP directory and re-installed.

All the other software run fine?...try remove the config from CP and see if that helps

Offline

 

#214 2012-03-10 22:41:02

tommymsw
Member
Registered: 2012-02-24
Posts: 104

Re: Sabnzbd, Sickbeard & CouchPotato on DNS-320

OH MAN!!! I have the worst luck with this! lol

All other programs run fine (even autostart), now it is only CP that won't start! I have deleted and re-installed it several times. ran ever chmod in the tutorial after the install. I think I am just bad luck!

Offline

 

#215 2012-03-10 22:44:01

tommymsw
Member
Registered: 2012-02-24
Posts: 104

Re: Sabnzbd, Sickbeard & CouchPotato on DNS-320

I think THIS is my problem:


drwxr-xr-x 10 tommymsw tommymsw 4096 Mar 10 15:35 CouchPotato
drwxrwxrwx 12 tommymsw tommymsw 4096 Mar  8 21:45 SABnzbd
drwxrwxrwx 11 tommymsw tommymsw 4096 Mar 10 15:36 Sick-Beard

Last edited by tommymsw (2012-03-10 23:05:19)

Offline

 

#216 2012-03-10 23:03:13

tommymsw
Member
Registered: 2012-02-24
Posts: 104

Re: Sabnzbd, Sickbeard & CouchPotato on DNS-320

Lol... now I am back where I started! I can get SAB and CP to start but when I start SB, it force closes the other two! I am going to start all over again, again!

It seems to be whatever one I start last. If i restart the NAS... SAB and SB start but not CP. Then if I manually start CP... it takes like 5minutes to do so, then crashes the other two. Then if I manually start all 3... in the other order... SAB, CP (both start fine) then SB crashes the other two (after taking like 5 min to start.

There must be a conflict somewhere!

Last edited by tommymsw (2012-03-10 23:15:34)

Offline

 

#217 2012-03-11 01:03:01

tommymsw
Member
Registered: 2012-02-24
Posts: 104

Re: Sabnzbd, Sickbeard & CouchPotato on DNS-320

Ok... I did it all again (this time trying to diagnose the problem). Followed everything step by step... and all three programs started fine.

I then followed the directions for the autostart and restarted the NAS. Only SAB and CP started. I manually started SB and CP crashed. So it must have something to do with the code in the autostart?

Restarted again... this time SAB and SB started and not CP.

Last edited by tommymsw (2012-03-11 01:54:49)

Offline

 

#218 2012-03-11 02:09:20

Terrabyte
Member
Registered: 2011-08-19
Posts: 96

Re: Sabnzbd, Sickbeard & CouchPotato on DNS-320

tommymsw wrote:

Mistakes?
SSH as root
#nano /etc/init.d/sabnzbd
#update-rc.d sabnzbd defaults <------------ this is written twice.. here wrong I think?

case "$1" in
start)
  echo "Starting SABnzbd."
  /usr/bin/sudo -u root -H /home/newuser/SABnzbd/SABnzbd.py -d -f /newuser/.sabnzbd/sabnzbd.ini

Missing /home/ before the second newuser

Mention to change "newuser" here:
#!/bin/bash
su root -c "chmod 666 /dev/null"
su newuser -c "python /home/newuser/CouchPotato/CouchPotato.py -d"
su newuser -c "python /home/newuser/Sick-Beard/SickBeard.py -d"
su newuser -c "python /home/newuser/headphones/Headphones.py -d"

Corrected in guide...

Offline

 

#219 2012-03-11 02:30:54

tommymsw
Member
Registered: 2012-02-24
Posts: 104

Re: Sabnzbd, Sickbeard & CouchPotato on DNS-320

Ya no matter what I do, I can't get CP and SB to run together. I removed the auto start and even changed chmod 666 /dev/null to 777. I can get one to start just fine, but the other force closes the first!

Offline

 

#220 2012-03-11 02:38:24

Terrabyte
Member
Registered: 2011-08-19
Posts: 96

Re: Sabnzbd, Sickbeard & CouchPotato on DNS-320

tommymsw wrote:

Ok... I did it all again (this time trying to diagnose the problem). Followed everything step by step... and all three programs started fine.

I then followed the directions for the autostart and restarted the NAS. Only SAB and CP started. I manually started SB and CP crashed. So it must have something to do with the code in the autostart?

Restarted again... this time SAB and SB started and not CP.

We are going to have to test this....add a # in front of /etc/init.d/mediaservers.sh

#nano /boot/linuxrc (add text below to bottom of file)
# START SickBeard CouchPotato Headphone
# /etc/init.d/mediaservers.sh

Restart and see if SABnzbd starts without issue...the others should not start

Now, comment out (#) CouchPotato and restart  and see if the other 2 work
nano /etc/init.d/mediaservers.sh (Copy text below in file and remember to change newuser)
Code:

#!/bin/bash
su root -c "chmod 666 /dev/null"
su newuser -c "python /home/newuser/CouchPotato/CouchPotato.py -d"
su newuser -c "python /home/newuser/Sick-Beard/SickBeard.py -d"
su newuser -c "python /home/newuser/headphones/Headphones.py -d"

Offline

 

#221 2012-03-11 02:45:02

Terrabyte
Member
Registered: 2011-08-19
Posts: 96

Re: Sabnzbd, Sickbeard & CouchPotato on DNS-320

tommymsw wrote:

Ok... I did it all again (this time trying to diagnose the problem). Followed everything step by step... and all three programs started fine.

I then followed the directions for the autostart and restarted the NAS. Only SAB and CP started. I manually started SB and CP crashed. So it must have something to do with the code in the autostart?

Restarted again... this time SAB and SB started and not CP.

If all 3 programs started when started manually than there is a problem with autostart script.

Offline

 

#222 2012-03-11 03:43:40

tommymsw
Member
Registered: 2012-02-24
Posts: 104

Re: Sabnzbd, Sickbeard & CouchPotato on DNS-320

I have been doing that all day but I just did what you asked... (added each one at a time). When I had SAB and either one of CP or SB autostart, they started... but all 3 will not. SB seems to take presidence over CP but I think that may just be how they are listed in order. and I am not sure they do all start on their own after the first re-start. I will try now.

Offline

 

#223 2012-03-11 04:06:52

tommymsw
Member
Registered: 2012-02-24
Posts: 104

Re: Sabnzbd, Sickbeard & CouchPotato on DNS-320

So I got rid of autostart. Restarted the NAS.
python CouchPotato/CouchPotato.py -d... went to my $ prompt as if the program started. But it did not start
Then:
python Sick-Beard/SickBeard.py -d ------and got: sh: cannot create /dev/null: Permission denied

Now why not with CP but with SB I wonder?

Then I chmod 777 /dev/null

python CouchPotato/CouchPotato.py -d ------------- success in like 3 seconds
python Sick-Beard/SickBeard.py -d ----------- takes like 4-5min for Putty to respond. Success but CP is no longer running.

It must be a conflict somewhere? But Google gives me nothing!

Offline

 

#224 2012-03-11 19:53:11

Terrabyte
Member
Registered: 2011-08-19
Posts: 96

Re: Sabnzbd, Sickbeard & CouchPotato on DNS-320

tommymsw wrote:

So I got rid of autostart. Restarted the NAS.
python CouchPotato/CouchPotato.py -d... went to my $ prompt as if the program started. But it did not start
Then:
python Sick-Beard/SickBeard.py -d ------and got: sh: cannot create /dev/null: Permission denied

Now why not with CP but with SB I wonder?

Then I chmod 777 /dev/null

python CouchPotato/CouchPotato.py -d ------------- success in like 3 seconds
python Sick-Beard/SickBeard.py -d ----------- takes like 4-5min for Putty to respond. Success but CP is no longer running.

It must be a conflict somewhere? But Google gives me nothing!

You sure do have some bad luck...lol

If you got rid of autostart you will have to "chmod 666 /dev/null" first.

Check the configs and see if both applications aren't using the same ports. If they are not than move or rename the config and try starting them and see what happens.

BTW, I am hope you are starting the application as newuser.

Offline

 

#225 2012-03-12 00:25:51

tommymsw
Member
Registered: 2012-02-24
Posts: 104

Re: Sabnzbd, Sickbeard & CouchPotato on DNS-320

I am starting them as newuser, I have also uninstalled and re-installed all of them many, many times so they can't be an issue with the config files. And they are not using the same ports. I have wiped the system and followed the guide from scratch like 4 times now and I get the exact same results each time. Maybe it is a new version of CP or SB that are causing conflicts? I mean if one program shuts the other down than it can's have anything to do with permissions (or they wouldn't start at all), they can't be installed wrong (or they wouldn't start at all)... I think the ONLY way I can get both programs to run but just not both at the same time is if they are interfering with one another somehow.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB