0

我在两台不同的机器上都遇到了 Datastax 社区版 (datastax-community-64bit_1.2.6.msi) 的错误,这两种机器都是 Windows 7,在这两种情况下 OpsCentre 都无法正常工作。这是紧随安装之后的,除了遵循安装向导之外,我没有做任何其他事情。OpsCenter 在浏览器中完成加载后弹出以下错误(“localhost:88888”):

“加载事件时出错:ClusterServices 实例没有属性‘event_store’”

为了提供一些上下文,我想使用 Cassandra 后端开发一个 ASP.NET MVC 应用程序,并尝试使用 [Chirper .NET 应用程序][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)
4

2 回答 2

1

假设它仍然是错误 10013,这通常意味着防火墙/防病毒软件禁止访问。你可以暂时禁用它吗?您可能需要检查防火墙/防病毒日志以查看是否可以允许 OpsCenter 访问(这比完全打开计算机的风险要小)。您可能还必须为 Cassandra 开放端口(请参阅此处:Cassandra 端口使用 - 端口如何使用?)。

谢谢,斯文

于 2013-08-30T23:13:01.363 回答
1

这就是问题:

试图以权限禁止的方式访问套接字

我对 Windows 不是很熟悉,所以我不确定是什么原因造成的。防火墙?不以管理员身份运行?

于 2013-08-05T12:56:06.720 回答