在OpsCentre无法正常工作的两种情况下,我在Windows 7的两台不同计算机上遇到Datastax Community Edition(datastax-community-64bit_1.2.6.msi)错误。这是在安装后立即执行的,除了按照安装向导之外我没有做任何其他事情。 OpsCenter在浏览器中完成加载后弹出以下错误(“localhost:88888”):
“加载事件时出错:ClusterServices实例没有属性 'event_store'“
为了给出一些上下文我想使用Cassandra后端开发一个ASP.NET MVC应用程序,并试图用[Chirper .NET app] [1]作为例子来掌握它。
非常感谢, ħ
---- opscenterd.log的前几行
2013-07-31 15:51:39+0800 [] INFO: Log opened.
2013-07-31 15:51:39+0800 [] INFO: twistd 10.2.0 (C:\Program Files\DataStax Community\python\python.exe 2.7.2) starting up.
2013-07-31 15:51:39+0800 [] INFO: reactor class: twisted.internet.selectreactor.SelectReactor.
2013-07-31 15:51:39+0800 [] INFO: Logging level set to 'info'
2013-07-31 15:51:39+0800 [] INFO: OpsCenter version: 3.1.1
2013-07-31 15:51:39+0800 [] INFO: Compatible agent version: 3.1.1
2013-07-31 15:51:39+0800 [] INFO: Loading per-cluster config file C:\Program Files\DataStax Community\opscenter\conf\clusters\local.conf
2013-07-31 15:51:39+0800 [] INFO: HTTP BASIC authentication disabled
2013-07-31 15:51:39+0800 [] INFO: Starting webserver with ssl disabled.
2013-07-31 15:51:39+0800 [] INFO: SSL disabled
2013-07-31 15:51:39+0800 [] INFO: opscenterd.WebServer.OpsCenterdWebServer starting on 8888
2013-07-31 15:51:39+0800 [] INFO: Starting factory <opscenterd.WebServer.OpsCenterdWebServer instance at 0x028E9C60>
2013-07-31 15:51:39+0800 [] INFO: Unhandled error in Deferred:
2013-07-31 15:51:39+0800 [] Unhandled Error
Traceback (most recent call last):
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\scripts\_twistw.py", line 47, in postApplication
app.startApplication(self.application, not self.config['no_save'])
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\application\app.py", line 653, in startApplication
service.IService(application).startService()
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\application\service.py", line 277, in startService
service.startService()
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 1141, in unwindGenerator
return _inlineCallbacks(None, f(*args, **kwargs), Deferred())
--- <exception caught here> ---
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
File "build/lib/python2.7/site-packages/opscenterd/OpsCenterdService.py", line 54, in startService
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\application\service.py", line 277, in startService
service.startService()
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\application\service.py", line 277, in startService
service.startService()
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\application\internet.py", line 110, in startService
self._port = self._getPort()
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\application\internet.py", line 131, in _getPort
'listen%s' % (self.method,))(*self.args, **self.kwargs)
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\posixbase.py", line 419, in listenTCP
p.startListening()
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\tcp.py", line 857, in startListening
raise CannotListenError, (self.interface, self.port, le)
twisted.internet.error.CannotListenError: Couldn't listen on 127.0.0.1:61619: [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions.
2013-07-31 15:51:48+0800 [] ERROR: Problem while calling EventsController: ClusterServices instance has no attribute 'event_store'
2013-07-31 15:51:48+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
File "build/lib/python2.7/site-packages/opscenterd/WebServer.py", line 1198, in EventsController
2013-07-31 15:51:48+0800 [] ERROR: Problem while calling MetricsAggregateController: ClusterServices instance has no attribute 'cluster'
2013-07-31 15:51:48+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 133, in maybeDeferred
result = f(*args, **kw)
File "build/lib/python2.7/site-packages/opscenterd/WebServer.py", line 1445, in MetricsAggregateController
2013-07-31 15:51:48+0800 [] ERROR: Problem while calling StorageCapacityController: ClusterServices instance has no attribute 'cluster'
2013-07-31 15:51:48+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 133, in maybeDeferred
result = f(*args, **kw)
File "build/lib/python2.7/site-packages/opscenterd/WebServer.py", line 316, in StorageCapacityController
2013-07-31 15:51:48+0800 [] ERROR: Problem while calling MetricsAggregateController: ClusterServices instance has no attribute 'cluster'
2013-07-31 15:51:48+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 133, in maybeDeferred
result = f(*args, **kw)
File "build/lib/python2.7/site-packages/opscenterd/WebServer.py", line 1445, in MetricsAggregateController
2013-07-31 15:51:48+0800 [] ERROR: Problem while calling MissingAgentsController: ClusterServices instance has no attribute 'agents'
2013-07-31 15:51:48+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 133, in maybeDeferred
result = f(*args, **kw)
File "build/lib/python2.7/site-packages/opscenterd/WebServer.py", line 1523, in MissingAgentsController
2013-07-31 15:51:49+0800 [] ERROR: Problem while calling MetricsAggregateController: ClusterServices instance has no attribute 'cluster'
2013-07-31 15:51:49+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 133, in maybeDeferred
result = f(*args, **kw)
File "build/lib/python2.7/site-packages/opscenterd/WebServer.py", line 1445, in MetricsAggregateController
2013-07-31 15:51:49+0800 [] ERROR: Problem while calling MetricsAggregateController: ClusterServices instance has no attribute 'cluster'
2013-07-31 15:51:49+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 133, in maybeDeferred
result = f(*args, **kw)
File "build/lib/python2.7/site-packages/opscenterd/WebServer.py", line 1445, in MetricsAggregateController
2013-07-31 15:51:49+0800 [] ERROR: Problem while calling MetricsAggregateController: ClusterServices instance has no attribute 'cluster'
2013-07-31 15:51:49+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 133, in maybeDeferred
result = f(*args, **kw)
File "build/lib/python2.7/site-packages/opscenterd/WebServer.py", line 1445, in MetricsAggregateController
2013-07-31 15:51:49+0800 [] ERROR: Problem while calling MetricsAggregateController: ClusterServices instance has no attribute 'cluster'
2013-07-31 15:51:49+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 133, in maybeDeferred
result = f(*args, **kw)
File "build/lib/python2.7/site-packages/opscenterd/WebServer.py", line 1445, in MetricsAggregateController
2013-07-31 15:51:49+0800 [] INFO: No handlers could be found for logger "orbited.proxy.ProxyIncomingProtocol"
2013-07-31 15:51:50+0800 [] ERROR: Problem while calling MetricsAggregateController: ClusterServices instance has no attribute 'cluster'
2013-07-31 15:51:50+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 133, in maybeDeferred
result = f(*args, **kw)
File "build/lib/python2.7/site-packages/opscenterd/WebServer.py", line 1445, in MetricsAggregateController
2013-07-31 15:51:50+0800 [] ERROR: Problem while calling MetricsAggregateController: ClusterServices instance has no attribute 'cluster'
2013-07-31 15:51:50+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 133, in maybeDeferred
result = f(*args, **kw)
File "build/lib/python2.7/site-packages/opscenterd/WebServer.py", line 1445, in MetricsAggregateController
2013-07-31 15:51:50+0800 [] ERROR: Problem while calling MetricsAggregateController: ClusterServices instance has no attribute 'cluster'
2013-07-31 15:51:50+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 133, in maybeDeferred
result = f(*args, **kw)
File "build/lib/python2.7/site-packages/opscenterd/WebServer.py", line 1445, in MetricsAggregateController
2013-07-31 15:51:50+0800 [] ERROR: Problem while calling MetricsAggregateController: ClusterServices instance has no attribute 'cluster'
2013-07-31 15:51:50+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 133, in maybeDeferred
result = f(*args, **kw)
File "build/lib/python2.7/site-packages/opscenterd/WebServer.py", line 1445, in MetricsAggregateController
2013-07-31 15:51:50+0800 [] ERROR: Problem while calling MetricsAggregateController: ClusterServices instance has no attribute 'cluster'
2013-07-31 15:51:50+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 133, in maybeDeferred
result = f(*args, **kw)
File "build/lib/python2.7/site-packages/opscenterd/WebServer.py", line 1445, in MetricsAggregateController
2013-07-31 15:51:50+0800 [] ERROR: Problem while calling MetricsAggregateController: ClusterServices instance has no attribute 'cluster'
2013-07-31 15:51:50+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 133, in maybeDeferred
result = f(*args, **kw)
File "build/lib/python2.7/site-packages/opscenterd/WebServer.py", line 1445, in MetricsAggregateController
2013-07-31 15:52:48+0800 [] ERROR: Problem while calling EventsController: ClusterServices instance has no attribute 'event_store'
2013-07-31 15:52:48+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
File "build/lib/python2.7/site-packages/opscenterd/WebServer.py", line 1198, in EventsController
2013-07-31 15:52:48+0800 [] ERROR: Problem while calling MissingAgentsController: ClusterServices instance has no attribute 'agents'
2013-07-31 15:52:48+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 133, in maybeDeferred
result = f(*args, **kw)
File "build/lib/python2.7/site-packages/opscenterd/WebServer.py", line 1523, in MissingAgentsController
2013-07-31 15:52:50+0800 [] ERROR: Problem while calling MetricsAggregateController: ClusterServices instance has no attribute 'cluster'
2013-07-31 15:52:50+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 133, in maybeDeferred
result = f(*args, **kw)
File "build/lib/python2.7/site-packages/opscenterd/WebServer.py", line 1445, in MetricsAggregateController
2013-07-31 15:52:50+0800 [] ERROR: Problem while calling MetricsAggregateController: ClusterServices instance has no attribute 'cluster'
2013-07-31 15:52:50+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 133, in maybeDeferred
result = f(*args, **kw)
File "build/lib/python2.7/site-packages/opscenterd/WebServer.py", line 1445, in MetricsAggregateController
2013-07-31 15:52:50+0800 [] ERROR: Problem while calling MetricsAggregateController: ClusterServices instance has no attribute 'cluster'
2013-07-31 15:52:50+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 133, in maybeDeferred
result = f(*args, **kw)
File "build/lib/python2.7/site-packages/opscenterd/WebServer.py", line 1445, in MetricsAggregateController
2013-07-31 15:52:50+0800 [] ERROR: Problem while calling MetricsAggregateController: ClusterServices instance has no attribute 'cluster'
2013-07-31 15:52:50+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 133, in maybeDeferred
result = f(*args, **kw)
File "build/lib/python2.7/site-packages/opscenterd/WebServer.py", line 1445, in MetricsAggregateController
2013-07-31 15:52:50+0800 [] ERROR: Problem while calling MetricsAggregateController: ClusterServices instance has no attribute 'cluster'
2013-07-31 15:52:50+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 133, in maybeDeferred
result = f(*args, **kw)
File "build/lib/python2.7/site-packages/opscenterd/WebServer.py", line 1445, in MetricsAggregateController
2013-07-31 15:52:50+0800 [] ERROR: Problem while calling MetricsAggregateController: ClusterServices instance has no attribute 'cluster'
2013-07-31 15:52:50+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 133, in maybeDeferred
result = f(*args, **kw)
File "build/lib/python2.7/site-packages/opscenterd/WebServer.py", line 1445, in MetricsAggregateController
2013-07-31 15:53:49+0800 [] ERROR: Problem while calling EventsController: ClusterServices instance has no attribute 'event_store'
2013-07-31 15:53:49+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
File "build/lib/python2.7/site-packages/opscenterd/WebServer.py", line 1198, in EventsController
2013-07-31 15:53:49+0800 [] ERROR: Problem while calling MissingAgentsController: ClusterServices instance has no attribute 'agents'
2013-07-31 15:53:49+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 133, in maybeDeferred
result = f(*args, **kw)
File "build/lib/python2.7/site-packages/opscenterd/WebServer.py", line 1523, in MissingAgentsController
2013-07-31 15:53:50+0800 [] ERROR: Problem while calling MetricsAggregateController: ClusterServices instance has no attribute 'cluster'
2013-07-31 15:53:50+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 133, in maybeDeferred
result = f(*args, **kw)
File "build/lib/python2.7/site-packages/opscenterd/WebServer.py", line 1445, in MetricsAggregateController
2013-07-31 15:53:51+0800 [] ERROR: Problem while calling MetricsAggregateController: ClusterServices instance has no attribute 'cluster'
2013-07-31 15:53:51+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 133, in maybeDeferred
result = f(*args, **kw)
File "build/lib/python2.7/site-packages/opscenterd/WebServer.py", line 1445, in MetricsAggregateController
2013-07-31 15:53:52+0800 [] ERROR: Problem while calling MetricsAggregateController: ClusterServices instance has no attribute 'cluster'
2013-07-31 15:53:52+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 133, in maybeDeferred
result = f(*args, **kw)
File "build/lib/python2.7/site-packages/opscenterd/WebServer.py", line 1445, in MetricsAggregateController
2013-07-31 15:53:53+0800 [] ERROR: Problem while calling MetricsAggregateController: ClusterServices instance has no attribute 'cluster'
2013-07-31 15:53:53+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 133, in maybeDeferred
result = f(*args, **kw)
File "build/lib/python2.7/site-packages/opscenterd/WebServer.py", line 1445, in MetricsAggregateController
2013-07-31 15:53:54+0800 [] ERROR: Problem while calling MetricsAggregateController: ClusterServices instance has no attribute 'cluster'
2013-07-31 15:53:54+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 133, in maybeDeferred
result = f(*args, **kw)
File "build/lib/python2.7/site-packages/opscenterd/WebServer.py", line 1445, in MetricsAggregateController
2013-07-31 15:53:55+0800 [] ERROR: Problem while calling MetricsAggregateController: ClusterServices instance has no attribute 'cluster'
2013-07-31 15:53:55+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 133, in maybeDeferred
result = f(*args, **kw)
File "build/lib/python2.7/site-packages/opscenterd/WebServer.py", line 1445, in MetricsAggregateController
2013-07-31 15:54:49+0800 [] ERROR: Problem while calling MissingAgentsController: ClusterServices instance has no attribute 'agents'
2013-07-31 15:54:49+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 133, in maybeDeferred
result = f(*args, **kw)
File "build/lib/python2.7/site-packages/opscenterd/WebServer.py", line 1523, in MissingAgentsController
2013-07-31 15:54:49+0800 [] ERROR: Problem while calling EventsController: ClusterServices instance has no attribute 'event_store'
2013-07-31 15:54:49+0800 [] ERROR:
File "C:\Program Files\DataStax Community\opscenter\lib\py-win32\2.7\twisted\internet\defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
答案 0 :(得分:1)
这是问题所在:
尝试以其权限禁止的方式访问套接字
我对Windows不是很熟悉,所以我不确定是什么原因造成的。防火墙吗?没有以管理员身份运行?
答案 1 :(得分:1)
假设它仍然是错误10013,这通常意味着防火墙/防病毒软件禁止访问。你可以暂时禁用它吗?您可能需要检查防火墙/防病毒日志以查看是否允许访问OpsCenter(这比打开机器的风险要小)。您可能还需要为Cassandra打开端口(请参阅此处:Cassandra port usage - how are the ports used?)。
谢谢, 斯文