The install process went without any errors.
I configured dyango with "python /opt/pyload/module/web/manage.py syncdb", used root as SU, gave the same pass that the system root has (I guess it's ok), and it configured everything without a glitch.
But that's it. Can't make it run.
Nothing happens when I try to run it. Nothing with the script or the command.
Please help :-(
Date: 17 Jul 2010 15:30
Number of posts: 24
RSS: New posts
The install process went without any errors.
it start the webinterface at port 8001
use screen -r to see the output
Thanks for the help. But I'm gonna need more.
When I run "/opt/bin/screen -dmS pyload /opt/bin/python /opt/pyload/pyLoadCore.py" and then "screen -r" it says "There is no screen to be resumed."
From the screen manpage, I found that -dm means "Start screen in "detached" mode. This creates a new session but doesn't attach to it." If I try different combinations (without the dm, only with d or m) I see an error for a second but then it disappears and screen closes with this error: /var/run/utmp: No such file or directory - [screen is terminating]
From searching in other forums I found I should have "core.xml" and "plugins.xml" in /opt/pyload/module/config. I don't have them. I had "default.conf" and "gui_default.xml" I copied the files I had in /root/.pyload (plugin.conf, pyload.conf and pyload.db), but it didn't help
Update: I managed to copy the error I couldn't see. It says:
Traceback (most recent call last):
File "/opt/pyload/pyLoadCore.py", line 60, in <module>
from module.PluginManager import PluginManager
File "/opt/pyload/module/PluginManager.py", line 33, in <module>
from ast import literal_eval
ImportError: No module named ast
It let me in with the user and password I entered when I first configured the dyango web server. I'm still not sure where is it reading the configuration file from.
The right format for the download location must be (as supposed) /shares/internal/yourlocation… and not /DataVolume…
Thanks for the help. I'm working on a script to start/stop pyload from the features pack web interface now. If someone is interested, I'll post my results when I'm done.
Good idea Damiankitai, y would like have pyload integrated in the features pack web interface and can stop program because now is always open and i can't delete files in windows.
@Damiankitai: pyLoad reads conf files from folder name .pyload (with dot in start of it).
Mine is located in /home/myshellusername/.pyload
To find it, just install mc (via optware) or try to locate that directory using 'ls -al'
Stop it is not a problem. The tricky part was starting it.
This is what I did: I used the autostart script, but I called it N95pyload (if it doesn't start with "S", it won't start).
At the end of the tutorial of Teinturman the Great, http://mybookworld.wikidot.com/featurepacks, I found that it's actually easy to run scripts from the web interface instead of opening terminal and connecting via ssh.
I created a folder called "Pyload" Inside, I put two files: "pystart.sh" and "pystop.sh" Inside both files I wrote (in my case: /opt/etc/init.d/N95pyload) and the word "start" or "stop, respectively. chmod -R the folder to 744 and chgrp + chown it to www-data.
That's it. With all the other things I have installed it works very nice. But Pyload is a little tricky:
I found that if I start it from terminal or using the startup script, it works nice, and the "home" folder (with all the config files and the database needed to run pyload) are in /root/.pyload. But when I run it from the webif, it creates a folder in /opt/pyload called .pyload and builds the config from scratch. the web interface doesn't work even if you copy the entire /root/.pyload folder to the new "home". It keeps crashing (a lot of things he can't find, I suppose from the $PATH problem the bluerings have)
So, I did this:
cd /opt/pyload/module/config/ echo "/root/.pyload" >> configdir
that anchored the home of pyload to /root/.pyload, no matter where it started from. Now it works.
to jazzymood: Not in the case of the bluerings MBWE. Maybe if you have the "ldso-runpath-enabled-firmware", I don't know, but in that case, the Features Pack Webif won't work, so…
I don't have anything in /home (actually, I have a default and guest folders, but both are empty), nothing hidden also.
The home of the user root (the one I use for ssh connection) is /root. and pyload creates a hidden folder inside it (.pyload). from there pyload reads the conf files.
What I found strange was that if I start pyload using the script that it's in /opt/etc/init.d, it creates a new "home" for the user and creates a new set of conf files in /opt/pyload/.pyload. of course, nothing works from there.
Not a big problem, though. Just had to create a file called "configdir" and wrote inside the path of the desired config folder for pyload.
Anyway, it's working great now. Thanks to you and Kevku for the help.
What bothers me is the message "do not download more than 10 Mb from here". I mean, really?
I guess I'll keep Jdownloader installed after all.
oh good news!
A web frontend for plowshare had been a long-time users' request, so they have started a new project (still in alpha state), check it http://code.google.com/p/sokha/
that might work a lot better on a system like mybook .
Kevky, thanks for the reference, I thinks it's a little out of my league. If someone builds optware versions of plowshare and sokha for the MBWE, I'll be happy to try it. In the meantime, I can't even compile in my MBWE.
@Damiankitai : that text ""do not download more than 10 Mb from here" also confused me big time. but i asked pyLoad developers about it and they explined that to me. They said following:
"You can download any size files with pyLoad, but it's totally not reccomended to transfer downloaded files from server on which pyLoad is started to your PC via pyLoad webinterface, becouse then files are loaded in RAM somehow. You should use other ways to do it (ftp, samba share or whatever)."
Understood, so "download the files with the webinterface but after they completed the download, move them elsewhere with samba, ftp or something else."
I think they mean if you didn't change the download folder and you are downloading to the HOME folder.
I download directly to a shared volume in /shares/internal, so I don't need to move them anywhere, so I guess I can ignore the message. Thanks for the explanation.
No, this is not about HOME folder.
They mean situation where you setup pyLoad on some other remote machine, not your local PC.. for example in other linux box which maybe located in other end of planet. And if you want to get downloaded files from that remote machine to your home PC, then you should use other means of transfer, but not webinerface.
i followed the instruction on the pyload page of this wiki, but in doesn't work for me:(
~ # python /opt/pyload/pyLoadCore.py
Traceback (most recent call last):
File "/opt/pyload/pyLoadCore.py", line 57, in <module>
from module.FileDatabase import FileHandler
File "/opt/pyload/module/FileDatabase.py", line 36, in <module>
from module.PyPackage import PyPackage
ImportError: No module named PyPackage
What package is missing?
but you can come to #pyload irc channel and get help there from developers.
1 time I got similar import error but that was when using latest developer build, which in rare cases contain errors.
fixed that just by telling in irc channel that it does not work for me. After some time it was fixed in next build :)
Just want to inform that 'tutorial' posted here is outdated.
this part (python /opt/pyload/module/web/manage.py syncdb) is changed becouse pyload dont use django anymore.
Find out more on pyload official site or just come in to IRC for some live help
(is it still perfectly possible to use pyload on My Book World and My Book Live with these new changes).
i have the white light my book and i thought this program used to startup automatically w/ everything else. well, it isnt now. i have the S90pyload script above in opt/etc/init.d/ and the s99topware in /etc/init.d which executes the prior. after much testing the scripts on my own..they run flawless but this pyload refuses to start up automatically. any suggestions other than upgrade pyload?
No idea. Never used startup script for pyload.
But im sure you can use crontab for ir and use pyload's built-in daemon mode.
Just come to #pyload IRC channel for additional LIVE help.
Lots of friendly ppl there.
i tried the crontab but it makes additional pyload processes each time it runs. so for instance, the 1st run may have 9 pyload processes, then next 15, then next 28, etc. i should probably put a filter into the the S90pyload script so it doesnt keep starting the same process when its already running. thx for answering.
i have modified the /opt/etc/init.d/S90pyload script and used cron to make pyload start each day!! here's what i changed:
PATH=/opt/bin:/opt/sbin:/opt/pyload:/sbin:/bin:/usr/sbin:/usr/bin // i added /opt/pyload to this line 4. this may not be neccessary.
NAME="screen" // nothing changed here.
SCRE="`pidof screen`" // i created this variable to hold the process id of screen.
if [ -z $SCRE ]; then //ive added a simple if then statement to make sure only 1 screen pid is running
echo "Starting Service: $NAME"
/opt/bin/screen -dmS pyload /opt/bin/python pyLoadCore.py
vi /opt/var/cron/crontabs/root // type this in putty as root and add line below
0 9 * * * /opt/etc/init.d/S90pyload start // this runs the command every day and month @ 9am. about 8 python pids run total.
/opt/etc/init.d/S10cron stop // run this command at the command line of putty
/opt/etc/init.d/S10cron start // run this command at the command line of putty. You're finished!!