Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pyload-9999: Downloadmanager for various One-Click-Hosters
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
yellowhat
Guru
Guru


Joined: 10 Sep 2008
Posts: 500

PostPosted: Sat Sep 24, 2011 10:10 am    Post subject: Reply with quote

Quote:
If I run "pyLoadCore.py -s" as root it works without problem, but when I reboot pyload web interface doesn't start anymore, running "pyLoadCore.py" as root:

Codice:
Traceback (most recent call last):
File "pyLoadCore.py", line 600, in <module>
pyload_core.start()
File "pyLoadCore.py", line 300, in start
self.init_logger(logging.INFO) # logging level
File "pyLoadCore.py", line 449, in init_logger
encoding="utf8"
File "/usr/lib/python2.7/logging/handlers.py", line 118, in __init__
BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/lib/python2.7/logging/handlers.py", line 65, in __init__
logging.FileHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/lib/python2.7/logging/__init__.py", line 893, in __init__
StreamHandler.__init__(self, self._open())
File "/usr/lib/python2.7/logging/__init__.py", line 914, in _open
stream = codecs.open(self.baseFilename, self.mode, self.encoding)
File "/usr/lib/python2.7/codecs.py", line 881, in open
file = __builtin__.open(filename, mode, buffering)
IOError: [Errno 13] Permission denied: u'/var/lib/pyload/Logs/log.txt'


To let it start I have to delete "/var/lib/pyload" folder (configuration folder), restart "/etc/init.d/pyload restart" and run "pyLoadCore.py -s" on every reboot.


This problem seems to be solved by changing "Change group of running process" and "Change user of running process" to off
_________________
Gentoo Linux ~amd64, Kernel 4.5.3, Enermax 400W, Intel i7-3770, DDR3 8GB, Sapphire HD6870
Back to top
View user's profile Send private message
Dr.Willy
Guru
Guru


Joined: 15 Jul 2007
Posts: 491
Location: NRW, Germany

PostPosted: Sat Sep 24, 2011 11:01 am    Post subject: Reply with quote

The error occurs because pyload cant write to log.txt
Have you tried chowning it to the user you use to run pyload?
Back to top
View user's profile Send private message
yellowhat
Guru
Guru


Joined: 10 Sep 2008
Posts: 500

PostPosted: Sat Sep 24, 2011 11:57 am    Post subject: Reply with quote

Running "chmod user:user /var/lib/pyload" and reloading pyLoadCore.py as user give me this:

Code:
Traceback (most recent call last):
  File "/opt/pyload/pyLoadCore.py", line 627, in <module>
    pyload_core = Core()
  File "/opt/pyload/pyLoadCore.py", line 114, in __init__
    self.config = ConfigParser()
  File "/opt/pyload/module/ConfigParser.py", line 47, in __init__
    self.checkVersion()
  File "/opt/pyload/module/ConfigParser.py", line 87, in checkVersion
    self.checkVersion(n + 1)
  File "/opt/pyload/module/ConfigParser.py", line 87, in checkVersion
    self.checkVersion(n + 1)
  File "/opt/pyload/module/ConfigParser.py", line 87, in checkVersion
    self.checkVersion(n + 1)
  File "/opt/pyload/module/ConfigParser.py", line 65, in checkVersion
    f = open("pyload.conf", "rb")
IOError: [Errno 13] Permission denied: 'pyload.conf'


I think I will stay as root
_________________
Gentoo Linux ~amd64, Kernel 4.5.3, Enermax 400W, Intel i7-3770, DDR3 8GB, Sapphire HD6870
Back to top
View user's profile Send private message
Helderon
n00b
n00b


Joined: 19 Jan 2012
Posts: 1

PostPosted: Thu Jan 19, 2012 12:32 pm    Post subject: Reply with quote

Hello world.

I'm new to the forum. But I use Gentoo since many years. And today is my first post to the forum.

Recently I had some errors when I run pyload after an update.
Code:

19.01.2012 14:01:39 DEBUG     Redirected import pyload.plugins.hooks.ExtractArchive -> userplugins.hooks.ExtractArchive
19.01.2012 14:01:39 ERROR     Error importing ExtractArchive: No module named module.utils
Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/pyload/plugins/PluginManager.py", line 268, in loadModule
    plugins[name]["name"])
  File "/usr/lib64/python2.6/site-packages/pyload/plugins/PluginManager.py", line 317, in load_module
    module = __import__(newname, globals(), locals(), [plugin])
  File "/var/lib/pyload/userplugins/hooks/ExtractArchive.py", line 52, in <module>
    from module.utils import save_join, fs_encode
ImportError: No module named module.utils


To resolve this problem, I edited ExtractArchive.py from ${CONFIGDIR}/userplugins/hooks/.
Code:

sed -i -e 's:from module:from pyload:' \
    -e 's:import module:import pyload:' ExtractArchive.py

SED is the same as the ebuild (https://bugs.gentoo.org/show_bug.cgi?id=374871).

But if a new update is made. I will need to re-edit the new files.
I think we can change the init.d or /usr/bin/pyLoadCore script to run the sed command to fix this before start.
What you said?

Now, I have an error with FastCGI interface.
Code:

19.01.2012 14:01:39 INFO      Starting fastcgi server: 0.0.0.0:5001
Exception in thread Thread-7:
Traceback (most recent call last):
  File "/usr/lib64/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib64/python2.6/site-packages/pyload/web/ServerThread.py", line 69, in run
    self.start_fcgi()
  File "/usr/lib64/python2.6/site-packages/pyload/web/ServerThread.py", line 98, in start_fcgi
    webinterface.run_fcgi(host=self.host, port=self.port)
  File "/usr/lib64/python2.6/site-packages/pyload/web/webinterface.py", line 153, in run_fcgi
    run(app=web, host=host, port=port, server=FlupFCGIServer, quiet=True)
  File "/usr/lib64/python2.6/site-packages/pyload/lib/bottle.py", line 2383, in run
    server.run(app)
  File "/usr/lib64/python2.6/site-packages/pyload/lib/bottle.py", line 2070, in run
    flup.server.fcgi.WSGIServer(handler, **self.options).run()
  File "/usr/lib64/python2.6/site-packages/flup/server/fcgi.py", line 114, in run
    ret = ThreadedServer.run(self, sock)
  File "/usr/lib64/python2.6/site-packages/flup/server/threadedserver.py", line 68, in run
    self._installSignalHandlers()
  File "/usr/lib64/python2.6/site-packages/flup/server/threadedserver.py", line 153, in _installSignalHandlers
    signal.signal(sig, self._intHandler)
ValueError: signal only works in main thread

I have tray with pyLoad from scratch (official site). No change.
Have you already have this error?
Edit : OK, is resolved.

I'm sorry for my English. I do my best.
Thanks.
Back to top
View user's profile Send private message
Dr.Willy
Guru
Guru


Joined: 15 Jul 2007
Posts: 491
Location: NRW, Germany

PostPosted: Thu Jan 19, 2012 4:25 pm    Post subject: Reply with quote

Helderon wrote:
Hello world.

I'm new to the forum. But I use Gentoo since many years. And today is my first post to the forum.

Recently I had some errors when I run pyload after an update.

[…]

To resolve this problem, I edited ExtractArchive.py from ${CONFIGDIR}/userplugins/hooks/.
Code:

sed -i -e 's:from module:from pyload:' \
    -e 's:import module:import pyload:' ExtractArchive.py

SED is the same as the ebuild (https://bugs.gentoo.org/show_bug.cgi?id=374871).

But if a new update is made. I will need to re-edit the new files.
I think we can change the init.d or /usr/bin/pyLoadCore script to run the sed command to fix this before start.
What you said?

Yeah, that seems to be caused by our attempts to move pyload to /usr/.
We might just revert these changes.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum