Wednesday, December 14, 2011

Cassandra OpsCenter,Failed to load application:

Unzip the OpsCenter file, Instal the 2.7 Python, then run the opscenter, failed get the following error.

[root@e3 opscenter]# bin/opscenter
Traceback (most recent call last):
File "/usr/lib/cassandra/opscenter-1.3.1/lib/py-redhat/2.6/shared/amd64/twisted/application/", line 631, in run
File "/usr/lib/cassandra/opscenter-1.3.1/lib/py-redhat/2.6/shared/amd64/twisted/scripts/", line 23, in runApp
File "/usr/lib/cassandra/opscenter-1.3.1/lib/py-redhat/2.6/shared/amd64/twisted/application/", line 374, in run
self.application = self.createOrGetApplication()
File "/usr/lib/cassandra/opscenter-1.3.1/lib/py-redhat/2.6/shared/amd64/twisted/application/", line 439, in createOrGetApplication
application = getApplication(self.config, passphrase)
--- <exception caught here> ---
File "/usr/lib/cassandra/opscenter-1.3.1/lib/py-redhat/2.6/shared/amd64/twisted/application/", line 450, in getApplication
application = service.loadApplication(filename, style, passphrase)
File "/usr/lib/cassandra/opscenter-1.3.1/lib/py-redhat/2.6/shared/amd64/twisted/application/", line 400, in loadApplication
application = sob.loadValueFromFile(filename, 'application', passphrase)
File "/usr/lib/cassandra/opscenter-1.3.1/lib/py-redhat/2.6/shared/amd64/twisted/persisted/", line 210, in loadValueFromFile
exec fileObj in d, d
File "bin/", line 1, in <module>
from opscenterd import opscenterd_tap
File "build/lib/python2.7/site-packages/opscenterd/", line 16, in <module>

File "build/lib/python2.7/site-packages/opscenterd/", line 392, in init_config

File "build/lib/python2.7/site-packages/opscenterd/events/plugins/", line 12, in <module>

File "build/lib/python2.7/site-packages/opscenterd/", line 17, in <module>

File "build/lib/python2.7/site-packages/opscenterd/", line 14, in <module>

File "build/lib/python2.7/site-packages/opscenterd/", line 23, in <module>

File "build/lib/python2.7/site-packages/opscenterd/", line 10, in <module>

File "/usr/lib/cassandra/opscenter-1.3.1/lib/py-redhat/2.6/5/amd64/OpenSSL/", line 11, in <module>
import rand, crypto, SSL, tsafe
exceptions.ImportError: cannot open shared object file: No such file or directory

Failed to load application: cannot open shared object file: No such file or directory

When I list the LibPython module under /usr/lib64/libpython* , It only has the 2.4 modue. So we need to install the 2.6 Module required by the opscenter.

1, first, Check my OS, it ‘s Centos 5


go to, download the epel-release-5-4.noarch.rpm 

2. Update the rpm, “rpm -Uvh epel-release*rpm”

3. yum install python26-libs


Once done, you can see the 2.6 modules under the lib folder,

Now we can run the opscenter now.

No comments:

Locations of visitors to this page