Executing okq-server --okqconf=okq_local worker --loglevel=INFO --concurrency=1 --without-gossip --without-mingle --qu
eue=taiwan --hostname=okq:taiwan@%h in /var/lib/virtualenv/openkongqi-gams-current
Traceback (most recent call last):
File "/usr/lib/python3.5/logging/config.py", line 558, in configure
handler = self.configure_handler(handlers[name])
File "/usr/lib/python3.5/logging/config.py", line 731, in configure_handler
result = factory(**kwargs)
File "/usr/lib/python3.5/logging/handlers.py", line 150, in __init__
BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/lib/python3.5/logging/handlers.py", line 57, in __init__
logging.FileHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/lib/python3.5/logging/__init__.py", line 1009, in __init__
StreamHandler.__init__(self, self._open())
File "/usr/lib/python3.5/logging/__init__.py", line 1038, in _open
return open(self.baseFilename, self.mode, encoding=self.encoding)
PermissionError: [Errno 13] Permission denied: '/tmp/openkongqi.log'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/lib/virtualenv/XXX/lib/python3.5/site-packages/openkongqi/conf.py", line 132, in confi
g_from_object
load_logging()
File "/var/lib/virtualenv/XXX/lib/python3.5/site-packages/openkongqi/conf.py", line 118, in load_
logging
logging.config.dictConfig(settings['LOGGING'])
File "/usr/lib/python3.5/logging/config.py", line 795, in dictConfig
dictConfigClass(config).configure()
File "/usr/lib/python3.5/logging/config.py", line 566, in configure
'%r: %s' % (name, e))
ValueError: Unable to configure handler 'info_file_handler': [Errno 13] Permission denied: '/tmp/openkongqi.log'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/lib/virtualenv/XXX/bin/okq-server", line 8, in <module>
sys.exit(okq_server())
File "/var/lib/virtualenv/XXX/lib/python3.5/site-packages/openkongqi/bin.py", line 62, in okq_ser
ver
load_confmod(parser, args.confmod)
File "/var/lib/virtualenv/XXX/lib/python3.5/site-packages/openkongqi/bin.py", line 31, in load_co
nfmod
config_from_object(mod)
File "/var/lib/virtualenv/XXX/lib/python3.5/site-packages/openkongqi/conf.py", line 134, in confi
g_from_object
raise ConfigError('Invalid logging configuration')
openkongqi.exceptions.ConfigError: Invalid logging configuration
I solved the error by creating /tmp/openkongqi.log and setting the proper owner but this shouldn't happen.
I solved the error by creating
/tmp/openkongqi.log
and setting the proper owner but this shouldn't happen.