pyLoad unMenu package


Recommended Posts

  • Replies 192
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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/

 

Link to comment

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/

 

 

Did you run that before the New Perms run or after?

 

I need that output from before a New Perms run and then after a new Perms run.

Link to comment

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/

 

 

Did you run that before the New Perms run or after?

 

I need that output from before a New Perms run and then after a new Perms run.

 

OK, just wanted to make sure.

 

The above output looks like the user has full access but the users in group nobody do not.  If you are not quite sure what that means then you probably need to do a quick google search for "linux permissions."

 

The short answer I can give you is that my package does not have anything to do with this.  This is something in pyLoad and the way it is downloading files.  There may be a section where you can set the permission for a download and I would suggest that be set to 770.  That would give full read, write, execute permissions to the user nobody, and every user in the users group.  Assuming you are not logging into the machine as the default root user that comes with unRAID than you should be fine.  If you are I suggest creating a user (call it admin for all I care) and using that account to administrate everything on the server.

 

The new perms script is just setting read, write, execute for all users in the user group, hence the reason you are then able to access the files.

Link to comment
  • 2 weeks later...

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

Link to comment

I can not download with pyload anymore...

/etc/rc.d/unraid.d/rc.unraid_pyload version

gives me:

/etc/rc.d/unraid.d/rc.unraid_pyload: line 52: /mnt/cache/.pyload/pyLoadCore.py: Permission denied

 

Pyload logs says:

Couldn't connect to host or connection reset, waiting 1 minute and retry.

 

But I have an internet connection. Tried it with different hosters, same result.

 

Link to comment

I can not download with pyload anymore...

/etc/rc.d/unraid.d/rc.unraid_pyload version

gives me:

/etc/rc.d/unraid.d/rc.unraid_pyload: line 52: /mnt/cache/.pyload/pyLoadCore.py: Permission denied

 

Pyload logs says:

Couldn't connect to host or connection reset, waiting 1 minute and retry.

 

But I have an internet connection. Tried it with different hosters, same result.

 

That error message is more than likely not my problem.  The install seems to have gone fine, so head over to the pyLoad website and see if someone over there can help with that error message.

 

 

NOTE:

New version attached that should fix the version check.

Link to comment

I just downloaded the new package to upgrade to 0.4.9 and when I downloaded the zip using the package, I got:

 

(MD5 of existing downloaded file NOT matched - download may be corrupted or download URL no longer valid.

 

Does anyone know what's wrong? thanks.

 

Thanks for the heads up... something with the download must have changed... I have changed the package and it should be in the first post hear shortly.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.