Njon

Members
  • Posts

    160
  • Joined

  • Last visited

Posts posted by Njon

  1. As always I have some problems  ;D

    First. I reinstalled pyload using the new package you posted and now unmenu says: 

     

    Package File:	pyload-src-v0.4.9.zip md5 Checksum:	4fbc0ee89cafc709eb01addd07a9c0f7 (NOT matched - download may be corrupted or download URL no longer valid.)

     

    Second. Pyload is extremely slow! 

     

     

    root@TServer:~# cat /etc/rc.d/unraid.d/rc.unraid_pyload                                                                                            case $1 in
    start)
    if test -e /etc/rc.d/unraid.d/rc.unraid_pyload -a $(ps auxwww | grep pyLoadCore.py | grep -v grep | wc -l) -lt 1; then
       if [ -d "/mnt/disk1/.pyload" ]; then
          test -f /etc/unraid-version && UNRAID_VERSION=`cat /etc/unraid-version | awk '{split($0,a,"="); print a[2]}' | awk '{split($0,b,"-"); print b[1]}'`
          if [ "${UNRAID_VERSION}" = "5.0" ]; then
             cd /mnt/disk1/.pyload
             chown -R nobody:users .
             chmod 755 /mnt/disk1/.pyload/pyload.conf
             LOG_DIR=$(cat /mnt/disk1/.pyload/pyload.conf | grep log_folder | awk '{print$6}')
             mkdir -p "$LOG_DIR"
             DOWNLOAD_DIR=$(cat /mnt/disk1/.pyload/pyload.conf | grep download_folder | awk '{print$7}')
             mkdir -p "$DOWNLOAD_DIR"
             chown -R nobody:users "$LOG_DIR"
             chown -R nobody:users "$DOWNLOAD_DIR"
             usermod -s /bin/bash nobody > /dev/null 2>&1
             su nobody -c "python /mnt/disk1/.pyload/pyLoadCore.py --daemon > /dev/null 2>&1"
             echo "pyLoad started as nobody."
          else
             LOG_DIR=$(cat /mnt/disk1/.pyload/pyload.conf | grep log_folder | awk '{print$6}')
             mkdir -p "$LOG_DIR"
             DOWNLOAD_DIR=$(cat /mnt/disk1/.pyload/pyload.conf | grep download_folder | awk '{print$7}')
             mkdir -p "$DOWNLOAD_DIR"
             python /mnt/disk1/.pyload/pyLoadCore.py --daemon > /dev/null 2>&1
             echo "pyLoad started as root."
          fi
       else
          echo "pyLoad could not be started because the installation directory, /mnt/disk1/.pyload, could not be found."
          echo "If pyLoad is installed to the unRAID array and the unRAID array is stopped, use the buttons on the User Scripts page to start pyLoad once the unRAID array is started."
       fi
    else
       echo "pyLoad is already started."
    fi
    ;;
    stop)
    if [[ ! -z $(ps -ef | grep pyLoadCore.py | grep -v grep | awk '{print$2}') ]]; then
       sleep 5
       for i in $(ps -ef | grep pyLoadCore.py | grep -v grep | awk '{print$2}')
       do
          if [[ $(ps -fp $i | awk 'NR>1' | awk '{print $9}') = "/mnt/disk1/.pyload/pyLoadCore.py" ]]; then
             kill $i
             echo "<font color=\"red\"><b>Killed pyLoad process $i</b></font>"
          fi
          sleep 5
       done
       echo "pyLoad stopped."
    else
       echo "pyLoad is already stopped."
    fi
    ;;
    version)
    chmod +x /mnt/disk1/.pyload/pyLoadCore.py
    /mnt/disk1/.pyload/pyLoadCore.py -v | awk '{print$2}'
    ;;
    esac
    root@TServer:~# ls -al /mnt/disk1/.pyload
    total 199
    drwxrwx---  9 nobody users   752 2012-02-11 08:21 ./
    drwxrwx---  9 nobody users   288 2012-01-26 19:45 ../
    -rw-rw----  1 nobody users   149 2011-12-15 17:37 .hg_archival.txt
    -rw-rw----  1 nobody users 32422 2011-12-15 17:37 LICENSE
    -rw-rw----  1 nobody users  2541 2011-12-15 17:37 README
    -rw-------  1 nobody users   498 2012-02-11 10:24 accounts.conf
    -rw-------  1 nobody users 35840 2012-02-11 08:21 files.db
    -rw-rw----  1 nobody users     2 2011-12-15 17:37 files.version
    drwxrwx---  2 nobody users   720 2011-12-15 17:37 icons/
    drwxrwx--- 17 nobody users   616 2011-12-15 17:37 locale/
    drwxrwx--- 12 nobody users  1264 2011-12-15 17:41 module/
    -rw-rw----  1 nobody users  9105 2011-12-15 17:37 pavement.py
    -rw-------  1 nobody users  5679 2012-02-06 20:41 plugin.conf
    -rw-rw----  1 nobody users 19879 2011-12-15 17:37 pyLoadCli.py
    -rwxrwx--x  1 nobody users 22464 2011-12-15 17:37 pyLoadCore.py*
    -rw-rw----  1 nobody users 28650 2011-12-15 17:37 pyLoadGui.py
    -rw-------  1 nobody users  2508 2012-02-06 20:41 pyload.conf
    -rw-rw-rw-  1 nobody users     5 2012-02-06 20:41 pyload.pid
    drwxrwx--- 10 nobody users   360 2011-12-15 17:37 scripts/
    -rw-rw----  1 nobody users   117 2011-12-15 17:37 setup.cfg
    -rw-rw----  1 nobody users  3406 2011-12-15 17:37 systemCheck.py
    -rw-rw----  1 nobody users  1005 2011-12-15 17:37 testlinks.txt
    drwxrwx---  2 nobody users   112 2011-12-15 17:37 tests/
    drwxrwx---  5 nobody users   152 2012-02-11 07:54 tmp/
    -rw-rw----  1 nobody users     0 2011-12-15 17:51 unrar_passwords.txt
    drwxrwx---  9 nobody users   288 2012-01-07 19:42 userplugins/
    root@TServer:~# /etc/rc.d/unraid.d/rc.unraid_pyload version
    0.4.9
    root@TServer:~# cat /boot/packages/pyload-src-v0.4.9.zip.manual_install
    

  2. So sorry  :-\

     

    root@TServer:~# cat /etc/rc.d/unraid.d/rc.unraid_pyload
    case $1 in
    start)
    if test -e /etc/rc.d/unraid.d/rc.unraid_pyload -a $(ps auxwww | grep pyLoadCore.py | grep -v grep | wc -l) -lt 1; then
       if [ -d "/mnt/disk1/.pyload" ]; then
          test -f /etc/unraid-version && UNRAID_VERSION=`cat /etc/unraid-version | awk '{split($0,a,"="); print a[2]}' | awk '{split($0,b,"-"); print b[1]}'`
          if [ "${UNRAID_VERSION}" = "5.0" ]; then
             cd /mnt/disk1/.pyload
             chown -R nobody:users .
             chmod 755 /mnt/disk1/.pyload/pyload.conf
             LOG_DIR=$(cat /mnt/disk1/.pyload/pyload.conf | grep log_folder | awk '{print$6}')
             mkdir -p "$LOG_DIR"
             DOWNLOAD_DIR=$(cat /mnt/disk1/.pyload/pyload.conf | grep download_folder | awk '{print$7}')
             mkdir -p "$DOWNLOAD_DIR"
             chown -R nobody:users "$LOG_DIR"
             chown -R nobody:users "$DOWNLOAD_DIR"
             usermod -s /bin/bash nobody > /dev/null 2>&1
             su nobody -c "python /mnt/disk1/.pyload/pyLoadCore.py --daemon > /dev/null 2>&1"
             echo "pyLoad started as nobody."
          else
             LOG_DIR=$(cat /mnt/disk1/.pyload/pyload.conf | grep log_folder | awk '{print$6}')
             mkdir -p "$LOG_DIR"
             DOWNLOAD_DIR=$(cat /mnt/disk1/.pyload/pyload.conf | grep download_folder | awk '{print$7}')
             mkdir -p "$DOWNLOAD_DIR"
             python /mnt/disk1/.pyload/pyLoadCore.py --daemon > /dev/null 2>&1
             echo "pyLoad started as root."
          fi
       else
          echo "pyLoad could not be started because the installation directory, /mnt/disk1/.pyload, could not be found."
          echo "If pyLoad is installed to the unRAID array and the unRAID array is stopped, use the buttons on the User Scripts page to start pyLoad once the unRAID array is started."
       fi
    else
       echo "pyLoad is already started."
    fi
    ;;
    stop)
    if [[ ! -z $(ps -ef | grep pyLoadCore.py | grep -v grep | awk '{print$2}') ]]; then
       sleep 5
       for i in $(ps -ef | grep pyLoadCore.py | grep -v grep | awk '{print$2}')
       do
          if [[ $(ps -fp $i | awk 'NR>1' | awk '{print $9}') = "/mnt/disk1/.pyload/pyLoadCore.py" ]]; then
             kill $i
             echo "<font color=\"red\"><b>Killed pyLoad process $i</b></font>"
          fi
          sleep 5
       done
       echo "pyLoad stopped."
    else
       echo "pyLoad is already stopped."
    fi
    ;;
    version)
    /mnt/disk1/.pyload/pyLoadCore.py -v | awk '{print$2}'
    ;;
    esac
    root@TServer:~# ls -al /mnt/disk1/.pyload
    total 255
    drwxrwx---  9 nobody users   752 2011-12-15 15:23 ./
    drwxrwx---  8 nobody users   264 2011-11-30 18:23 ../
    -rw-rw----  1 nobody users   149 2011-12-15 15:01 .hg_archival.txt
    -rw-rw----  1 nobody users 32422 2011-12-15 15:01 LICENSE
    -rw-rw----  1 nobody users  2541 2011-12-15 15:01 README
    -rw-------  1 nobody users   377 2011-12-15 15:02 accounts.conf
    -rw-------  1 nobody users 87040 2011-12-15 15:23 files.db
    -rw-rw----  1 nobody users     2 2011-11-27 20:14 files.version
    drwxrwx---  2 nobody users   720 2011-11-27 20:14 icons/
    drwxrwx--- 17 nobody users   616 2011-12-15 15:01 locale/
    drwxrwx--- 12 nobody users  1264 2011-12-15 15:02 module/
    -rwxr-xr-x  1 nobody users  9105 2011-12-15 15:01 pavement.py*
    -rw-------  1 nobody users  5010 2011-12-15 15:20 plugin.conf
    -rw-rw----  1 nobody users 19879 2011-12-15 15:01 pyLoadCli.py
    -rw-rw----  1 nobody users 22464 2011-12-15 15:01 pyLoadCore.py
    -rw-rw----  1 nobody users 28650 2011-12-15 15:01 pyLoadGui.py
    -rw-------  1 nobody users  2514 2011-12-15 15:20 pyload.conf
    -rw-rw-rw-  1 nobody users     5 2011-12-15 15:02 pyload.pid
    drwxrwx--- 10 nobody users   360 2011-11-27 20:15 scripts/
    -rwxr-xr-x  1 nobody users   117 2011-12-15 15:01 setup.cfg*
    -rw-rw----  1 nobody users  3406 2011-12-15 15:01 systemCheck.py
    -rw-rw----  1 nobody users  1005 2011-12-15 15:01 testlinks.txt
    drwxr-xr-x  2 nobody users   112 2011-12-15 15:01 tests/
    drwxrwx---  5 nobody users   488 2011-12-02 23:27 tmp/
    -rw-rw----  1 nobody users    24 2011-11-27 20:16 unrar_passwords.txt
    drwxrwx---  9 nobody users   256 2011-12-15 15:02 userplugins/
    root@TServer:~# /etc/rc.d/unraid.d/rc.unraid_pyload version
    /etc/rc.d/unraid.d/rc.unraid_pyload: line 52: /mnt/disk1/.pyload/pyLoadCore.py: Permission denied
    root@TServer:~# cat /boot/packages/pyload-src-v0.4.8.zip.manual_install

  3. i'm sorry, but now also with smb i can't modify the files in the Download folder.

    So now i think that i have a wrong configuration of pyload. I tried to reinstall everything but the situation doesn't change: i still have to manually repair permission running a "New permission" process.

     

    Here is the code you requested

     

    root@TServer:~# ls -al /mnt/disk1/Tiny_Server/Downloads/                       
    total 23
    drwxrwx--- 11 nobody users   384 2011-12-05 07:32 ./
    drwxrwx--- 11 nobody users   432 2011-12-02 15:12 ../
    drwxrwx---  2 nobody users   104 2011-10-15 14:23 .AppleDouble/
    -rw-rw----  1 nobody users 15364 2011-12-05 14:41 .DS_Store
    drwxr-xr-x  2 nobody users   496 2011-12-04 12:03 81719/
    drwxrwx---  3 nobody users   136 2011-11-15 17:09 Call\ of\ Duty\ 2/
    drwxrwx---  3 nobody users   112 2011-12-01 20:00 Fantasia/
    drwxr-xr-x  2 nobody users  5856 2011-12-02 22:07 La\ Bella\ e\ la\ Bestia/
    drwxr-xr-x  2 nobody users   528 2011-12-05 08:02 La\ musica\ nel\ cuore/
    drwxrwx---  4 nobody users   112 2011-11-30 18:21 Lightroom/
    drwxrwx---  3 nobody users   136 2011-11-30 18:21 NikSoftwarePlugin/
    drwxrwx---  3 nobody users   688 2011-12-03 17:24 Un\ Amore\ e\ una\ Vendetta/

     

  4. root@TServer:~# ps -ef | grep pyload
    root      5243  5226  0 16:49 pts/0    00:00:00 grep pyload
    nobody   17589     1  0 Nov27 ?        00:41:09 python /mnt/disk1/.pyload/pyLoadCore.py --daemon

     

    Yes, I log in as admin... I tried to add a new user typing the command

    python pyLoadCore.py -u

    but the problem still remain also because if I uncheck the admin field (creating a non-admin user) I can't access the web interface!

     

    probably this could help

     

    pyload.png

  5. Sorry man  ;)

     

    root@TServer:~# cat /etc/rc.d/unraid.d/rc.unraid_pyload
    case $1 in
    start)
    if test -e /etc/rc.d/unraid.d/rc.unraid_pyload -a $(ps auxwww | grep pyLoadCore.py | grep -v grep | wc -l) -lt 1; then
       if [ -d "/mnt/disk1/.pyload" ]; then
          test -f /etc/unraid-version && UNRAID_VERSION=`cat /etc/unraid-version | awk '{split($0,a,"="); print a[2]}' | awk '{split($0,b,"-"); print b[1]}'`
          if [ "${UNRAID_VERSION}" = "5.0" ]; then
             cd /mnt/disk1/.pyload
             chown -R nobody:users .
             chmod 755 /mnt/disk1/.pyload/pyload.conf
             LOG_DIR=$(cat /mnt/disk1/.pyload/pyload.conf | grep log_folder | awk '{print$6}')
             mkdir -p "$LOG_DIR"
             DOWNLOAD_DIR=$(cat /mnt/disk1/.pyload/pyload.conf | grep download_folder | awk '{print$7}')
             mkdir -p "$DOWNLOAD_DIR"
             chown -R nobody:users "$LOG_DIR"
             chown -R nobody:users "$DOWNLOAD_DIR"
             usermod -s /bin/bash nobody > /dev/null 2>&1
             su nobody -c "python /mnt/disk1/.pyload/pyLoadCore.py --daemon > /dev/null 2>&1"
             echo "pyLoad started as nobody."
          else
             LOG_DIR=$(cat /mnt/disk1/.pyload/pyload.conf | grep log_folder | awk '{print$6}')
             mkdir -p "$LOG_DIR"
             DOWNLOAD_DIR=$(cat /mnt/disk1/.pyload/pyload.conf | grep download_folder | awk '{print$7}')
             mkdir -p "$DOWNLOAD_DIR"
             python /mnt/disk1/.pyload/pyLoadCore.py --daemon > /dev/null 2>&1
             echo "pyLoad started as root."
          fi
       else
          echo "pyLoad could not be started because the installation directory, /mnt/disk1/.pyload, could not be found."
          echo "If pyLoad is installed to the unRAID array and the unRAID array is stopped, use the buttons on the User Scripts page to start pyLoad once the unRAID array is started."
       fi
    else
       echo "pyLoad is already started."
    fi
    ;;
    stop)
    if [[ ! -z $(ps -ef | grep pyLoadCore.py | grep -v grep | awk '{print$2}') ]]; then
       sleep 5
       for i in $(ps -ef | grep pyLoadCore.py | grep -v grep | awk '{print$2}')
       do
          if [[ $(ps -fp $i | awk 'NR>1' | awk '{print $9}') = "/mnt/disk1/.pyload/pyLoadCore.py" ]]; then
             kill $i
             echo "<font color=\"red\"><b>Killed pyLoad process $i</b></font>"
          fi
          sleep 5
       done
       echo "pyLoad stopped."
    else
       echo "pyLoad is already stopped."
    fi
    ;;
    version)
    /mnt/disk1/.pyload/pyLoadCore.py -v | awk '{print$2}'
    ;;
    esac
    root@TServer:~# ls -al /mnt/disk1/.pyload
    total 243
    drwxrwx---  8 nobody users   696 2011-11-30 18:15 ./
    drwxrwx---  8 nobody users   264 2011-11-30 18:23 ../
    -rw-rw----  1 nobody users   122 2011-11-27 20:14 .hg_archival.txt
    -rw-rw----  1 nobody users 32422 2011-11-27 20:14 LICENSE
    -rw-rw----  1 nobody users  2655 2011-11-27 20:14 README
    -rw-rw----  1 nobody users   339 2011-11-27 20:18 accounts.conf
    -rw-------  1 nobody users 69632 2011-11-30 18:15 files.db
    -rw-rw----  1 nobody users 24248 2011-11-30 18:28 files.db-journal
    -rw-rw----  1 nobody users     2 2011-11-27 20:14 files.version
    drwxrwx---  2 nobody users   720 2011-11-27 20:14 icons/
    drwxrwx--- 15 nobody users   568 2011-11-27 20:14 locale/
    drwxrwx--- 12 nobody users  1264 2011-11-30 18:24 module/
    -rw-rw----  1 nobody users  4254 2011-11-30 18:14 plugin.conf
    -rw-rw----  1 nobody users 19818 2011-11-27 20:14 pyLoadCli.py
    -rw-rw----  1 nobody users 21049 2011-11-27 20:14 pyLoadCore.py
    -rw-rw----  1 nobody users 28514 2011-11-27 20:14 pyLoadGui.py
    -rw-rw----  1 nobody users  2473 2011-11-30 18:14 pyload.conf
    -rw-rw----  1 nobody users     5 2011-11-27 20:18 pyload.pid
    drwxrwx--- 10 nobody users   360 2011-11-27 20:15 scripts/
    -rw-rw----  1 nobody users  3402 2011-11-27 20:14 systemCheck.py
    -rw-rw----  1 nobody users  1005 2011-11-27 20:14 testlinks.txt
    drwxrwx---  5 nobody users   152 2011-11-27 20:15 tmp/
    -rw-rw----  1 nobody users    24 2011-11-27 20:16 unrar_passwords.txt
    drwxrwx---  8 nobody users   232 2011-11-27 20:15 userplugins/
    root@TServer:~# /etc/rc.d/unraid.d/rc.unraid_pyload version
    /etc/rc.d/unraid.d/rc.unraid_pyload: line 52: /mnt/disk1/.pyload/pyLoadCore.py: Permission denied
    root@TServer:~# cat /boot/packages/pyload-src-v0.4.7.zip.manual_install
    

     

    for the second code I already ran a new permission script, so I need to download another file  :) (tomorrow)

     

    Thank you

  6. I'm having a strange issue... I loose permissions every time I download something! So if i want to extract a file, or delete one i can't do it. The only solution is to start a "new permission" process that re-gives me the power of doing something on my server   :o

  7. I found this:

     

    #!/bin/bash
    
    #Date for Log
    date >> /DataVolume/Public/log.txt
    
    #Set TMPDIR variable into env for big file size
    export TMPDIR=/CacheVolume/tmp
    echo Directory TEMP = $TMPDIR
    
    #Move to the download folder of pyLoad
    cd /DataVolume/Public/Downloads
    
    #Save my ls for directory tree
    tree="$(ls|grep -v '^:.*')" 
    
    for i in $tree
    do
       echo Processing directory $i >> /DataVolume/Public/log.txt
       cd /DataVolume/Public/Downloads/$i
       
       #Checking for temp files
       ok=$(ls | grep -v '^.*.r..$')
    
       #IF there are temp files then skip the directory else start to extract it
       if [ $? -eq 0 ]
       then
          echo Directory not ready for extraction. Skip to next one. >> /DataVolume/Public/log.txt
          continue
       else
          archive=$(ls|grep '^.*.rar$'|head -1)
          
          if [ $? -eq 0 ]
          then
             echo The archive $archive will be now extract.
             echo Processing $archive >> /DataVolume/Public/log.txt
             
             #Create a log file for the extraction output of the archive
             touch OutputEstrazione.txt
    
             #Start with unrar process of the selected archive
             unrar x $archive /DataVolume/Public/Shared\ Videos/New/ >> OutputEstrazione.txt
             
             if [ $? -eq 0 ]
             then
                echo $i succesfuly extracted >> /DataVolume/Public/log.txt
                rm -rf /DataVolume/Public/Downloads/$i
             fi      
          else
             echo There is a strange case... Why you are here?!!!. >> /DataVolume/Public/log.txt
          fi
       fi
    done
    

     

    It is for a NAS but I think that changing folder's path with your help, it should work.

    Who helps me? I'm not able to find the log file...

  8. I tried, and in fact from a windows box the transfer speed was considerably higher (50/60 MegaBytes) so it's not an unraid's problem. Every machine is on a gigabit lan (also the mac).

    Today I was transferring some files from my mac and I saw the transfer speed rise to 60 MB for about a minute and than fall again ... it's a mac (smb) problem  :-[

    "Jumbo" frames could solve the problem?