Closed
Bug 779371
Opened 13 years ago
Closed 13 years ago
cef module is not usable on solaris, where syslog.LOG_PERROR is undefined
Categories
(Cloud Services :: Server: Other, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: rfkelly, Unassigned)
Details
(Whiteboard: [qa-])
A Solaris use reports the following traceback when trying to run sync server on solaris:
======================================================================
ERROR: Failure: AttributeError ('module' object has no attribute 'LOG_PERROR')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/export/ff-sync/server-full/lib/python2.6/site-packages/nose/loader.py", line 390, in loadTestsFromName
addr.filename, addr.module)
File "/export/ff-sync/server-full/lib/python2.6/site-packages/nose/importer.py", line 39, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/export/ff-sync/server-full/lib/python2.6/site-packages/nose/importer.py", line 86, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/export/ff-sync/server-full/deps/server-core/services/tests/test_baseapp.py", line 46, in <module>
from services.wsgiauth import Authentication
File "/export/ff-sync/server-full/deps/server-core/services/wsgiauth.py", line 43, in <module>
from cef import log_cef, AUTH_FAILURE
File "/export/ff-sync/server-full/lib/python2.6/site-packages/cef-0.3-py2.6.egg/cef.py", line 44, in <module>
'PERROR': syslog.LOG_PERROR}
AttributeError: 'module' object has no attribute 'LOG_PERROR'
It appears that the LOG_PERROR option is not available on this platform.
FYI, User tried a dirty fix of just removing the option:
/export/ff-sync/server-full/lib/python2.6/site-packages/cef-0.3-py2.6.egg/cef.py
- 'NOWAIT': syslog.LOG_NOWAIT,
+ 'NOWAIT': syslog.LOG_NOWAIT}
- 'PERROR': syslog.LOG_PERROR}
Server runs, not sure what logging is missing now though...
From Man syslog (on linux ).
"LOG_PERROR
(Not in POSIX.1-2001.) Print to stderr as well."
Updated•13 years ago
|
Whiteboard: [qa-]
| Reporter | ||
Comment 2•13 years ago
|
||
| Reporter | ||
Comment 3•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•