python and flexget support (add-on)

Re: python and flexget support (add-on)

Postby SalzStreuer » Fri Nov 20, 2015 6:56 pm

Hi Jocko,

I got 4 500GB disks as RAID5 (this also included the sda disk).
And another 4TB on bay5.

My fvdw share was created in /share/1100/

Code: Select all
# mount

/dev/root on / type ext3 (rw,relatime,errors=continue,barrier=1,data=ordered)
none on /proc type proc (rw,relatime)
none on /sys type sysfs (rw,relatime)
none on /dev/pts type devpts (rw,relatime,mode=600)
/dev/sda1 on / type ext3 (rw,relatime,errors=continue,barrier=1,data=ordered)
none on /proc type proc (rw,relatime)
none on /sys type sysfs (rw,relatime)
none on /dev/pts type devpts (rw,relatime,mode=600)
/dev/sda5 on /rw_fs type ext3 (rw,noatime,errors=continue,barrier=1,data=ordered)
tmpfs on /rw_fs/tmp/usr/var type tmpfs (rw,relatime,size=5000k)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
/dev/sde8 on /share/1004 type ext3 (rw,relatime,errors=continue,user_xattr,acl,barrier=1,data=ordered)
/dev/md0 on /share/1100 type ext3 (rw,relatime,errors=continue,user_xattr,acl,barrier=1,data=ordered)


Code: Select all
# ls -l /share
total 24
drwxrwxrwx  2 root root 4096 2015-11-16 00:05 1000
drwxrwxrwx  2 root root 4096 2015-11-16 22:03 1001
drwxrwxrwx  2 root root 4096 2015-11-16 22:03 1002
drwxrwxrwx  2 root root 4096 2015-11-16 22:03 1003
drwxrwxrwx  5 root root 4096 2015-11-20 17:10 1004
drwxrwxrwx  4 root root 4096 2015-11-20 17:11 1100


Code: Select all
# ls -l /usr/local
lrwxrwxrwx  1 root root 23 2015-11-16 00:04 /usr/local -> /share/1000/fvdw/addons


Code: Select all
# ls -l /direct-usb/fvdw/addons
total 123584
drwxr-xr-x   2 root   root        4096 2015-11-20 17:14 bin
drwxr-xr-x   3 root   root        4096 2015-11-20 17:14 include
drwxr-xr-x   4 root   root        4096 2015-11-20 17:14 lib
-rw-rw-rw-   1 nobody nobody 126392320 2013-11-17 00:59 python.tar
drwxr-xr-x  13 root   root        4096 2015-11-20 17:14 sabnzbd
drwxr-xr-x   3 root   root        4096 2015-11-20 17:14 share
drwxrwxr-x  10 root   root        4096 2015-11-20 17:14 sickbeard


So I guess that I need to just fix the link on /usr/local ?

I didn't know this was just a link. :D
SalzStreuer
 
Posts: 5
Joined: Sun Nov 15, 2015 5:47 pm

Re: python and flexget support (add-on)

Postby Jocko » Fri Nov 20, 2015 7:10 pm

Thank for these outputs.

What volume is selected in the main setup menu (tab addons volume ).

If fvdw share is really on 1100, you must select as volume RD5-0

and in the howto use
Code: Select all
cd /share/1100/fvdw/addons
instead of
Code: Select all
cd /share/1000/fvdw/addons
before unta the archive
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: python and flexget support (add-on)

Postby SalzStreuer » Fri Nov 20, 2015 7:48 pm

I did all this correctly before.

I was just missing the correct symbolic link to /usr/local :)

Thanks for your help!
SalzStreuer
 
Posts: 5
Joined: Sun Nov 15, 2015 5:47 pm

Re: python and flexget support (add-on)

Postby Jocko » Fri Nov 20, 2015 7:54 pm

Hummm

There is something I don't yet understand : this symlink should be updated

First, if you update manually the symlink, at next boot your change will be undo. So We need to find what is it wrong.

Can you explain how did you :
- create the raid
- set the addons volume
- create the share fvdw

and please post also these 2 additional outputs
Code: Select all
ls -l /direct-usb
 grep addonsvol /etc/nas_conf_db.xml
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: python and flexget support (add-on)

Postby SalzStreuer » Fri Nov 20, 2015 8:01 pm

Jocko wrote:Can you explain how did you :
- create the raid

I followed your guide here to set up the RAID5: viewtopic.php?f=7&t=2006

- set the addons volume

I just created the addons folder in the fvdw share

- create the share fvdw

I just created it via the webinterface and set the used volume to the Raid5.

and please post also these 2 additional outputs
Code: Select all
ls -l /direct-usb
 grep addonsvol /etc/nas_conf_db.xml



Code: Select all
# ls -l /direct-usb
lrwxrwxrwx  1 root root 11 2015-11-20 19:53 /direct-usb -> /share/1100


Code: Select all
#  grep addonsvol /etc/nas_conf_db.xml
                <addonsvolume>1100</addonsvolume>




Is there any easy way to modify the symbolic link that gets created at reboot? Else I will find a way to "hack" this :D
SalzStreuer
 
Posts: 5
Joined: Sun Nov 15, 2015 5:47 pm

Re: python and flexget support (add-on)

Postby Jocko » Fri Nov 20, 2015 8:33 pm

SalzStreuer wrote:
- set the addons volume

I just created the addons folder in the fvdw share

So the issue was here.
addons volume is not the addons folder. You would have had to set the raid volume as addons volume. addons volume is the volume which contains the technical shares and fvdw share.
and then the symlink has not been updated.

But as there are some checks the firmware has automatically detected that the new addons volume is your RAID volume. ( I need to deepen later why it updates "direct-usb" symlink but not "local" symlink). So now you should be able to update the symlink just by rebooting the NAS.

PS: I need to update some posts in addons subforum need since version 16.0
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: python and flexget support (add-on)

Postby SalzStreuer » Fri Nov 20, 2015 8:52 pm

Good to know.

Thank you very much for your help :) I really appreciate it.
SalzStreuer
 
Posts: 5
Joined: Sun Nov 15, 2015 5:47 pm

Re: python and flexget support (add-on)

Postby Jocko » Sat Nov 21, 2015 8:45 am

Hi SalzStreuer,

I checked how the firmware auto-detects the addons volume if this one is mis-set.

Indeed, in this case it updates only the symlink /direct-usb but not /usr/local. I go to change this behaviour is next version.

Anyhow, all symlinks are updated when you restart the NAS or select again the wanted volume in the setup menu.
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: python and flexget support (add-on)

Postby karainier » Fri Jul 21, 2017 1:57 am

Hi Jocko and fvdw,

I'm rebuilding a cloudbox and have extracted python in the addons folder, but it is not available in my path (sh: python: not found)

Did I miss a step? Do I need to configure python after extracting it??

Thanks, as always, for your help.
karainier
 
Posts: 25
Joined: Sun Apr 13, 2014 9:01 pm

Re: python and flexget support (add-on)

Postby karainier » Fri Jul 21, 2017 2:01 am

I also tried installing with ipkg. Since there is not enough room in sda1, i set the destination for install as -d /share/1000/fvdw/addons
Installations are not created in /share/1000/fvdw/addons/opt, but again, I can't get them to stick in my path.
karainier
 
Posts: 25
Joined: Sun Apr 13, 2014 9:01 pm

PreviousNext

Return to Development

Who is online

Users browsing this forum: No registered users and 7 guests