Hello!
I have a problem when I'm restarting the opscenter service. On the webpage I have the following error:
Error loading events: ClusterServices instance has no attribute 'event_store'
If I go to Edit Cluster and then save the settings than works fine.
In the opscenterd.log file I have the following output
Traceback (most recent call last):
File "/usr/share/opscenter/lib/py-debian/2.6/amd64/twisted/scripts/_twistd_unix.py", line 317, in startApplication
app.startApplication(application, not self.config['no_save'])
File "/usr/share/opscenter/lib/py-debian/2.6/amd64/twisted/application/app.py", line 653, in startApplication
service.IService(application).startService()
File "/usr/share/opscenter/lib/py-debian/2.6/amd64/twisted/application/service.py", line 277, in startService
service.startService()
File "/usr/share/opscenter/lib/py-debian/2.6/amd64/twisted/internet/defer.py", line 1141, in unwindGenerator
return _inlineCallbacks(None, f(*args, **kwargs), Deferred())
--- <exception caught here> ---
File "/usr/share/opscenter/lib/py-debian/2.6/amd64/twisted/internet/defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
File "/usr/lib/python2.6/dist-packages/opscenterd/OpsCenterdService.py", line 50, in startService
File "/usr/share/opscenter/lib/py-debian/2.6/amd64/twisted/application/service.py", line 277, in startService
service.startService()
File "/usr/share/opscenter/lib/py-debian/2.6/amd64/twisted/application/internet.py", line 110, in startService
self._port = self._getPort()
File "/usr/share/opscenter/lib/py-debian/2.6/amd64/twisted/application/internet.py", line 131, in _getPort
'listen%s' % (self.method,))(*self.args, **self.kwargs)
File "/usr/share/opscenter/lib/py-debian/2.6/amd64/twisted/internet/posixbase.py", line 419, in listenTCP
p.startListening()
File "/usr/share/opscenter/lib/py-debian/2.6/amd64/twisted/internet/tcp.py", line 867, in startListening
self.factory.doStart()
File "/usr/share/opscenter/lib/py-debian/2.6/amd64/twisted/internet/protocol.py", line 45, in doStart
self.startFactory()
File "/usr/share/opscenter/lib/py-debian/2.6/amd64/twisted/web/http.py", line 1755, in startFactory
self.logFile = self._openLogFile(self.logPath)
File "/usr/lib/python2.6/dist-packages/opscenterd/Logging.py", line 68, in _openLogFile
File "/usr/share/opscenter/lib/py-debian/2.6/amd64/twisted/python/logfile.py", line 162, in __init__
BaseLogFile.__init__(self, name, directory, defaultMode)
File "/usr/share/opscenter/lib/py-debian/2.6/amd64/twisted/python/logfile.py", line 41, in __init__
self._openFile()
File "/usr/share/opscenter/lib/py-debian/2.6/amd64/twisted/python/logfile.py", line 167, in _openFile
BaseLogFile._openFile(self)
File "/usr/share/opscenter/lib/py-debian/2.6/amd64/twisted/python/logfile.py", line 76, in _openFile
self._file = file(self.path, "w+", 1)
exceptions.IOError: [Errno 13] Permission denied: '/var/log/opscenter/http.log'
2012-11-18 08:25:46+0000 [] INFO: Log opened.
2012-11-18 08:25:46+0000 [] INFO: twistd 10.2.0 (/usr/bin/python2.6 2.6.5) starting up.
2012-11-18 08:25:46+0000 [] INFO: reactor class: twisted.internet.selectreactor.SelectReactor.
2012-11-18 08:25:46+0000 [] INFO: set uid/gid 1002/1001
2012-11-18 08:25:46+0000 [] INFO: Logging level set to 'info'
2012-11-18 08:25:46+0000 [] INFO: OpsCenterdService startService
2012-11-18 08:25:46+0000 [] INFO: OpsCenter version: 2.1
2012-11-18 08:25:46+0000 [] INFO: Compatible agent version: 2.8
2012-11-18 08:25:46+0000 [] INFO: Cluster config dir '/etc/opscenter/clusters' does not exist yet
2012-11-18 08:25:46+0000 [] INFO: No clusters are configured yet, checking to see if a config migration is needed
2012-11-18 08:25:46+0000 [] INFO: Main config does not appear to include a cluster configuration, skipping migration
2012-11-18 08:25:46+0000 [] INFO: Cluster config dir '/etc/opscenter/clusters' does not exist yet
2012-11-18 08:25:46+0000 [] INFO: No clusters are configured
2012-11-18 08:25:46+0000 [] INFO: HTTP BASIC authentication disabled
2012-11-18 08:25:46+0000 [] INFO: Starting webserver with ssl disabled.
2012-11-18 08:25:46+0000 [] INFO: SSL disabled
2012-11-18 08:25:46+0000 [] INFO: opscenterd.WebServer.OpsCenterdWebServer starting on 8888
2012-11-18 08:25:46+0000 [] INFO: Starting factory <opscenterd.WebServer.OpsCenterdWebServer instance at 0x3e15998>
2012-11-18 08:25:46+0000 [] INFO: Unhandled error in Deferred:
2012-11-18 08:25:46+0000 [] Unhandled Error
Traceback (most recent call last):
File "/usr/share/opscenter/lib/py-debian/2.6/amd64/twisted/scripts/_twistd_unix.py", line 317, in startApplication
app.startApplication(application, not self.config['no_save'])
File "/usr/share/opscenter/lib/py-debian/2.6/amd64/twisted/application/app.py", line 653, in startApplication
service.IService(application).startService()
File "/usr/share/opscenter/lib/py-debian/2.6/amd64/twisted/application/service.py", line 277, in startService
service.startService()
File "/usr/share/opscenter/lib/py-debian/2.6/amd64/twisted/internet/defer.py", line 1141, in unwindGenerator
return _inlineCallbacks(None, f(*args, **kwargs), Deferred())
--- <exception caught here> ---
File "/usr/share/opscenter/lib/py-debian/2.6/amd64/twisted/internet/defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
File "/usr/lib/python2.6/dist-packages/opscenterd/OpsCenterdService.py", line 50, in startService
File "/usr/share/opscenter/lib/py-debian/2.6/amd64/twisted/application/service.py", line 277, in startService
service.startService()
File "/usr/share/opscenter/lib/py-debian/2.6/amd64/twisted/application/internet.py", line 110, in startService
self._port = self._getPort()
File "/usr/share/opscenter/lib/py-debian/2.6/amd64/twisted/application/internet.py", line 131, in _getPort
'listen%s' % (self.method,))(*self.args, **self.kwargs)
File "/usr/share/opscenter/lib/py-debian/2.6/amd64/twisted/internet/posixbase.py", line 419, in listenTCP
p.startListening()
File "/usr/share/opscenter/lib/py-debian/2.6/amd64/twisted/internet/tcp.py", line 867, in startListening
self.factory.doStart()
File "/usr/share/opscenter/lib/py-debian/2.6/amd64/twisted/internet/protocol.py", line 45, in doStart
self.startFactory()
File "/usr/share/opscenter/lib/py-debian/2.6/amd64/twisted/web/http.py", line 1755, in startFactory
self.logFile = self._openLogFile(self.logPath)
File "/usr/lib/python2.6/dist-packages/opscenterd/Logging.py", line 68, in _openLogFile
File "/usr/share/opscenter/lib/py-debian/2.6/amd64/twisted/python/logfile.py", line 162, in __init__
BaseLogFile.__init__(self, name, directory, defaultMode)
File "/usr/share/opscenter/lib/py-debian/2.6/amd64/twisted/python/logfile.py", line 41, in __init__
self._openFile()
File "/usr/share/opscenter/lib/py-debian/2.6/amd64/twisted/python/logfile.py", line 167, in _openFile
BaseLogFile._openFile(self)
File "/usr/share/opscenter/lib/py-debian/2.6/amd64/twisted/python/logfile.py", line 76, in _openFile
self._file = file(self.path, "w+", 1)
exceptions.IOError: [Errno 13] Permission denied: '/var/log/opscenter/http.log'
Any suggestions?
Thank you very much.
