The problem with the logging

10 messages Options
Embed this post
Permalink
Alexander Bondarenko

The problem with the logging

Reply Threaded More More options
Print post
Permalink
I'm a newbie with coherence. And immediately after the install I encountered such a problem. When I try to redirect logs from the console to the file, I receive these errors in the log:

Traceback (most recent call last):
  File "C:\Python25\lib\site-packages\twisted\internet\base.py", line 374, in fireEvent
    DeferredList(beforeResults).addCallback(self._continueFiring)
  File "C:\Python25\lib\site-packages\twisted\internet\defer.py", line 195, in addCallback
    callbackKeywords=kw)
  File "C:\Python25\lib\site-packages\twisted\internet\defer.py", line 186, in addCallbacks
    self._runCallbacks()
  File "C:\Python25\lib\site-packages\twisted\internet\defer.py", line 328, in _runCallbacks
    self.result = callback(self.result, *args, **kw)
--- <exception caught here> ---
  File "C:\Python25\lib\site-packages\twisted\internet\base.py", line 387, in _continueFiring
    callable(*args, **kwargs)
  File "c:\python25\lib\site-packages\coherence-0.6.2-py2.5.egg\EGG-INFO\scripts\coherence", line 250, in main
    c = Coherence(config)
  File "c:\python25\lib\site-packages\coherence-0.6.2-py2.5.egg\coherence\base.py", line 201, in __new__
    obj.setup(*args, **kwargs)
  File "c:\python25\lib\site-packages\coherence-0.6.2-py2.5.egg\coherence\base.py", line 264, in setup
    log.init(logfile, _debug)
  File "c:\python25\lib\site-packages\coherence-0.6.2-py2.5.egg\coherence\log.py", line 57, in init
    outputToFiles(stdout=None, stderr=logfile)
  File "c:\python25\lib\site-packages\coherence-0.6.2-py2.5.egg\coherence\extern\log\log.py", line 696, in outputToFiles
    handler = signal.signal(signal.SIGHUP, sighup)
exceptions.AttributeError: 'module' object has no attribute 'SIGHUP'

Any help is really appreciated.

My setup:
MS Windows XP SP3, Python 2.5.4, Twisted 8.2.0 for Python 2.5, Coherence 0.6.2 (installed with help of easy_install)

My config is:

logmode = log
logfile = c:/temp/coherence.log
serverport = 30020
controlpoint = no
web-ui = yes
 
[subsystem_log]
coherence = info
SSDP = info
MSEARCH = info
SOAP = info
Action = info
Variable = info
Event = info
Service_Server = info
Service_Client = info
Device = info
Connection_Manager_Server = info
MediaServer= info
MediaRenderer= log
ControlPoint = info
MS_Client = info
 
[plugins]
[[FSStore]]
    name = Coherence Test Content
    content = d:/Video/Coherence
[[AppleTrailersStore]]
    name = Apple Trailers
Philippe Normand

Re: The problem with the logging

Reply Threaded More More options
Print post
Permalink
Hi,

Can you please file a new bug?

https://coherence.beebits.net/newticket

This requires the update of the log system, which is hosted in a
different repository.

I'll have a look

Thanks,
Philippe

Le jeudi 14 mai 2009 à 11:43 -0700, Alexander Bondarenko a écrit :

> I'm a newbie with coherence. And immediately after the install I encountered
> such a problem. When I try to redirect logs from the console to the file, I
> receive these errors in the log:
>
> Traceback (most recent call last):
>   File "C:\Python25\lib\site-packages\twisted\internet\base.py", line 374,
> in fireEvent
>     DeferredList(beforeResults).addCallback(self._continueFiring)
>   File "C:\Python25\lib\site-packages\twisted\internet\defer.py", line 195,
> in addCallback
>     callbackKeywords=kw)
>   File "C:\Python25\lib\site-packages\twisted\internet\defer.py", line 186,
> in addCallbacks
>     self._runCallbacks()
>   File "C:\Python25\lib\site-packages\twisted\internet\defer.py", line 328,
> in _runCallbacks
>     self.result = callback(self.result, *args, **kw)
> --- <exception caught here> ---
>   File "C:\Python25\lib\site-packages\twisted\internet\base.py", line 387,
> in _continueFiring
>     callable(*args, **kwargs)
>   File
> "c:\python25\lib\site-packages\coherence-0.6.2-py2.5.egg\EGG-INFO\scripts\coherence",
> line 250, in main
>     c = Coherence(config)
>   File
> "c:\python25\lib\site-packages\coherence-0.6.2-py2.5.egg\coherence\base.py",
> line 201, in __new__
>     obj.setup(*args, **kwargs)
>   File
> "c:\python25\lib\site-packages\coherence-0.6.2-py2.5.egg\coherence\base.py",
> line 264, in setup
>     log.init(logfile, _debug)
>   File
> "c:\python25\lib\site-packages\coherence-0.6.2-py2.5.egg\coherence\log.py",
> line 57, in init
>     outputToFiles(stdout=None, stderr=logfile)
>   File
> "c:\python25\lib\site-packages\coherence-0.6.2-py2.5.egg\coherence\extern\log\log.py",
> line 696, in outputToFiles
>     handler = signal.signal(signal.SIGHUP, sighup)
> exceptions.AttributeError: 'module' object has no attribute 'SIGHUP'
>
> Any help is really appreciated.
>
> My setup:
> MS Windows XP SP3, Python 2.5.4, Twisted 8.2.0 for Python 2.5, Coherence
> 0.6.2 (installed with help of easy_install)
>
> My config is:
>
> logmode = log
> logfile = c:/temp/coherence.log
> serverport = 30020
> controlpoint = no
> web-ui = yes
>  
> [subsystem_log]
> coherence = info
> SSDP = info
> MSEARCH = info
> SOAP = info
> Action = info
> Variable = info
> Event = info
> Service_Server = info
> Service_Client = info
> Device = info
> Connection_Manager_Server = info
> MediaServer= info
> MediaRenderer= log
> ControlPoint = info
> MS_Client = info
>  
> [plugins]
> [[FSStore]]
>     name = Coherence Test Content
>     content = d:/Video/Coherence
> [[AppleTrailersStore]]
>     name = Apple Trailers

_______________________________________________
coherence-dev mailing list
[hidden email]
http://lists.beebits.net/cgi-bin/mailman/listinfo/coherence-dev
Alexander Bondarenko

Re: The problem with the logging

Reply Threaded More More options
Print post
Permalink
Thanks a lot. I've created the new ticket in trac:
The problem with the logging

Philippe Normand wrote:
Hi,

Can you please file a new bug?

https://coherence.beebits.net/newticket

This requires the update of the log system, which is hosted in a
different repository.

I'll have a look

Thanks,
Philippe
Alexander Bondarenko

Re: The problem with the logging

Reply Threaded More More options
Print post
Permalink
Hello,

I've downloaded the last dev sources from svn. Manually I've replaced the old "\coherence\extern\log\log.py" with the new one, compile it to .pyc. And nothing is changed. What did I miss?

Regards,
Alexander Bondarenko
szhairui

Re: The problem with the logging

Reply Threaded More More options
Print post
Permalink

Alexander Bondarenko wrote:
Hello,

I've downloaded the last dev sources from svn. Manually I've replaced the old "\coherence\extern\log\log.py" with the new one, compile it to .pyc. And nothing is changed. What did I miss?

Regards,
Alexander Bondarenko
I met with the same problem on win32 OS.
The key factor causes the problem maybe the "signal.SIGHUP".
It seems that SIGHUP is just for POSIX-compliant platforms, which mentioned at http://en.wikipedia.org/wiki/SIGHUP. Hence any moudles use the signal maybe cause execeptions for that.
Philippe Normand

Re: The problem with the logging

Reply Threaded More More options
Print post
Permalink
In reply to this post by Alexander Bondarenko
Le jeudi 04 juin 2009 à 12:10 -0700, Alexander Bondarenko a écrit :
> Hello,
>
> I've downloaded the last dev sources from svn. Manually I've replaced the
> old "\coherence\extern\log\log.py" with the new one, compile it to .pyc. And
> nothing is changed. What did I miss?
>
> Regards,
> Alexander Bondarenko

Send "your version" of log.py please

Philippe

_______________________________________________
coherence-dev mailing list
[hidden email]
http://lists.beebits.net/cgi-bin/mailman/listinfo/coherence-dev
Alexander Bondarenko

Re: The problem with the logging

Reply Threaded More More options
Print post
Permalink
Sure. Attached.

log.py
Philippe Normand

Re: The problem with the logging

Reply Threaded More More options
Print post
Permalink
That's indeed the latest version ;) Do you see a new traceback when
using it?

Philippe

Le vendredi 05 juin 2009 à 04:43 -0700, Alexander Bondarenko a écrit :
> Sure. Attached.
>
> http://n2.nabble.com/file/n3029762/log.py log.py

_______________________________________________
coherence-dev mailing list
[hidden email]
http://lists.beebits.net/cgi-bin/mailman/listinfo/coherence-dev
Alexander Bondarenko

Re: The problem with the logging

Reply Threaded More More options
Print post
Permalink
Hello,

No, the new traceback doesn't differ from the old one.

Best regards,
Alexander Bondarenko
Philippe Normand

Re: The problem with the logging

Reply Threaded More More options
Print post
Permalink
You're right the bug isn't fixed ;)
You can wait new version of log.py or try this:

1. Look for the import of signal
2. Update the code like this:

try:
    import signal
    signal.SIGHUP
except (ImportError, AttributeErro), exc:
    <here normal code of log.py>

Patch also there:

https://code.fluendo.com/flumotion/trac/attachment/ticket/1295/log-win32-2.diff

Le mardi 09 juin 2009 à 06:46 -0700, Alexander Bondarenko a écrit :
> Hello,
>
> No, the new traceback doesn't differ from the old one.
>
> Best regards,
> Alexander Bondarenko

_______________________________________________
coherence-dev mailing list
[hidden email]
http://lists.beebits.net/cgi-bin/mailman/listinfo/coherence-dev