JonathanM Posted October 10, 2011 Share Posted October 10, 2011 Whatya know, I did a file compare, and I changed exactly what you did, to the exact byte. I may actually be getting the hang of this. Quote Link to comment
prostuff1 Posted October 10, 2011 Author Share Posted October 10, 2011 Whatya know, I did a file compare, and I changed exactly what you did, to the exact byte. I may actually be getting the hang of this. Most all of the packages I have created (especially the ones as of late) there are usually only 3-4 lines that need to be changed to be able to update to a newer version of the app. Took more time to code it that way, but makes it WAY easier for me/anyone to update later. Quote Link to comment
razwed4ik Posted October 15, 2011 Share Posted October 15, 2011 Hi guys, I managed to install pyLoad successfully, thx for that. Default install folder is /mnt/cache/.pyload(I think its just virtual(RAM), because I dont have any cache drive). If I change my config and reboot, then my config is gone and default config is in use. Does somebody know how I can move my config to my flash drive, so after reboot pyload will start with my and not default config? THX Quote Link to comment
Njon Posted October 15, 2011 Share Posted October 15, 2011 What a nice package! Congratulations Only one question: is it normal that I don't have an "unrar" submenu where I can decide if i want to extract an archive or not? Thank you EDIT: I found it, under plug-ins Quote Link to comment
prostuff1 Posted October 15, 2011 Author Share Posted October 15, 2011 Hi guys, I managed to install pyLoad successfully, thx for that. Default install folder is /mnt/cache/.pyload(I think its just virtual(RAM), because I dont have any cache drive). If I change my config and reboot, then my config is gone and default config is in use. Does somebody know how I can move my config to my flash drive, so after reboot pyload will start with my and not default config? THX If you do not have a cache drive then DO NOT leave the install directory there. Quote Link to comment
Sledgehamma Posted October 16, 2011 Share Posted October 16, 2011 There is a new version available. Can u integrate it in ummenu? Quote Link to comment
prostuff1 Posted October 16, 2011 Author Share Posted October 16, 2011 There is a new version available. Can u integrate it in ummenu? I can not; Joe L. has to add it to unMenu and he likes to see that the new package(s) are error free before including them in the unMenu distribution. Quote Link to comment
Njon Posted October 28, 2011 Share Posted October 28, 2011 Pyload doesn't want to extract my files... It did it once and then it never did it again. The log file says "Extracting..." but nothing appens... is it normal?? Quote Link to comment
prostuff1 Posted October 28, 2011 Author Share Posted October 28, 2011 Pyload doesn't want to extract my files... It did it once and then it never did it again. The log file says "Extracting..." but nothing appens... is it normal?? Got me, I don't actually use the application. Try checking on there forums for an answer and if it is something I am doing wrong with my install I will fix it. Also, what other addon's might you be running along with pyLoad? Quote Link to comment
Sledgehamma Posted October 28, 2011 Share Posted October 28, 2011 Pyload doesn't want to extract my files... It did it once and then it never did it again. The log file says "Extracting..." but nothing appens... is it normal?? Same problem here. It works with files below 2gb fine. But bigger files does not work. Its known by the pyload team but they do not do anything about it. Some use a script. Just look at the forum. I think it has something to do with ram or cpu usage. Maybe unrar does not get the ressources it needs. Quote Link to comment
Njon Posted November 5, 2011 Share Posted November 5, 2011 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... Quote Link to comment
prostuff1 Posted November 8, 2011 Author Share Posted November 8, 2011 I am not even sure what the above script is doing but if it is to fix a problem in pyLoad itself... I am not all that interested in incorporating it into the package. I created the package for another user at there request but I do not actually use pyLoad. I will update the package when new version come out (if/when someone lets me know). But other than that I'm probably not going to be much help in diagnosing application problems. Quote Link to comment
Njon Posted November 8, 2011 Share Posted November 8, 2011 I would give it a try I would only know where those files (log, tmp) are located, then I will simply put the script in the script folder and see if it works or not! Quote Link to comment
Spritzup Posted November 12, 2011 Share Posted November 12, 2011 Whenever I try to install this, I get the following error with pyload --> "pyload-src-v0.4.8.zip apparently did not install properly, /etc/rc.d/unraid.d/rc.unraid_pyload does not exist." I also get the following error with both pyload and the transmission --> ls: cannot access /mnt/disk[1-20]: No such file or directory ls: cannot access /mnt/disk[1-20]: No such file or directory ls: cannot access /mnt/disk[1-20]: No such file or directory ls: cannot access /mnt/disk[1-20]: No such file or directory ls: cannot access /mnt/disk[1-20]: No such file or directory ls: cannot access /mnt/disk[1-20]: No such file or directory ls: cannot access /mnt/disk[1-20]: No such file or directory ls: cannot access /mnt/disk[1-20]: No such file or directory ls: cannot access /mnt/disk[1-20]: No such file or directory ls: cannot access /mnt/disk[1-20]: No such file or directory I've downloaded and installed all the dependencies. Any assistance you could provide would be appreciated. Quote Link to comment
prostuff1 Posted November 12, 2011 Author Share Posted November 12, 2011 Whenever I try to install this, I get the following error with pyload --> "pyload-src-v0.4.8.zip apparently did not install properly, /etc/rc.d/unraid.d/rc.unraid_pyload does not exist." I also get the following error with both pyload and the transmission --> ls: cannot access /mnt/disk[1-20]: No such file or directory ls: cannot access /mnt/disk[1-20]: No such file or directory ls: cannot access /mnt/disk[1-20]: No such file or directory ls: cannot access /mnt/disk[1-20]: No such file or directory ls: cannot access /mnt/disk[1-20]: No such file or directory ls: cannot access /mnt/disk[1-20]: No such file or directory ls: cannot access /mnt/disk[1-20]: No such file or directory ls: cannot access /mnt/disk[1-20]: No such file or directory ls: cannot access /mnt/disk[1-20]: No such file or directory ls: cannot access /mnt/disk[1-20]: No such file or directory I've downloaded and installed all the dependencies. Any assistance you could provide would be appreciated. There is a slight problem with that statement. a new pyload-unmenu-package.conf file is attached to the first post. Quote Link to comment
Njon Posted November 30, 2011 Share Posted November 30, 2011 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 Quote Link to comment
prostuff1 Posted November 30, 2011 Author Share Posted November 30, 2011 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 I need the information I asked for in the first post. Plus an: ls -al ON_THE_DOWNLOAD_DIRECTORY_FOR_YOUR_DOWNLOAD_OF_PYLOAD_BEFORE_YOU_RUN_THE_PERMS_SCRIPT it sounds like files are being downloaded/saved as the root user... but I have no idea. Quote Link to comment
Njon Posted November 30, 2011 Share Posted November 30, 2011 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 Quote Link to comment
prostuff1 Posted November 30, 2011 Author Share Posted November 30, 2011 For the last command try: root@TServer:~# cat /boot/packages/pyload-src-v0.4.8.zip.manual_install As for the permission denied one... will have to look at that and get back to you. Quote Link to comment
Njon Posted November 30, 2011 Share Posted November 30, 2011 Here it is! code.txt Quote Link to comment
lionelhutz Posted November 30, 2011 Share Posted November 30, 2011 maybe you could update the sab,sick,couch wiki with an addendum showing how to get where we got, so somebody that found and used the wiki instead of the unmenu packages can gracefully get to a non-conflicting python setup? You are a forum member so you can also edit the Wiki. Peter Quote Link to comment
prostuff1 Posted December 1, 2011 Author Share Posted December 1, 2011 Here it is! Thanks for that. It looks like it is fine. While pyload is running can I get the output of: ps -ef | grep pyload The only reason I can think this is happening is that the download is being saved as root:root instead of nobody:users and hence the reason you can't open it until you run the New Perms stuff. I don't use pyLoad, but I will try and see if I can figure out what might be going on. Are you using the default admin, admin login still? If so create a new user in pyLoad and using that person to download a file. Quote Link to comment
Njon Posted December 1, 2011 Share Posted December 1, 2011 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 Quote Link to comment
prostuff1 Posted December 1, 2011 Author Share Posted December 1, 2011 So pyLoad is running as nobody. As this point it is an issue with pyLoad and how it is saving downloads. I don't know the ins and outs of pyLoad so you might be better off searching/reading on there site. The settings you showed in the pic above might help... might not... not really sure. Read up on the pyLoad website and start changing pyLoad config stuff. Quote Link to comment
Recommended Posts
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.