Discussion:
[SOGo] Cannot run ocsmanger
Pyromanci .
2016-03-02 15:50:47 UTC
Permalink
Hello,

I've been struggling to get SOGo and Openchange up and running. I
finally got SOGo working properly, but the ocsmanager is not. So I
looked at teh logs and saw a hard crash. with "ImportError: No module
named mapistore"

I did some searching and found thi bug report
http://sogo.nu/bugs/view.php?id=3012

So I downloaded the source rpm and built the missing libary.
http://sogo.nu/files/downloads/SOGo/RHEL6/SRPMS/openchange-2.2.r4816.sogo-1.centos6.src.rpm

After copying the missing .so files over to the python folder. I tired
starting the ocsmanager again. It still wouldn't start. So i looked at
the log and say this:

Traceback (most recent call last):
File "/usr/bin/paster", line 9, in <module>
load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')()
File "/usr/lib/python2.6/site-packages/paste/script/command.py",
line 104, in run
invoke(command, command_name, options, args[1:])
File "/usr/lib/python2.6/site-packages/paste/script/command.py",
line 143, in invoke
exit_code = runner.run(args)
File "/usr/lib/python2.6/site-packages/paste/script/command.py",
line 238, in run
result = self.command()
File "/usr/lib/python2.6/site-packages/paste/script/serve.py", line
284, in command
relative_to=base, global_conf=vars)
File "/usr/lib/python2.6/site-packages/paste/script/serve.py", line
321, in loadapp
**kw)
File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py",
line 247, in loadapp
return loadobj(APP, uri, name=name, **kw)
File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py",
line 272, in loadobj
return context.create()
File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py",
line 710, in create
return self.object_type.invoke(self)
File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py",
line 146, in invoke
return fix_call(context.object, context.global_conf, **context.local_conf)
File "/usr/lib/python2.6/site-packages/paste/deploy/util.py", line
56, in fix_call
val = callable(*args, **kw)
File "/usr/lib/python2.6/site-packages/ocsmanager/config/middleware.py",
line 43, in make_app
config = load_environment(global_conf, app_conf)
File "/usr/lib/python2.6/site-packages/ocsmanager/config/environment.py",
line 135, in load_environment
mstore = mapistore.MAPIStore(config['ocsmanager']['main']['mapistore_root'])
SystemError: error in mapistore_init

This wasn't very helpful so I started it by hand instead of the service command.

# /usr/bin/paster serve /etc/ocsmanager/ocsmanager.ini --pid-file
/var/run/ocsmanager/ocsmanager.pid --log-file
/var/log/ocsmanager/ocsmanager.log

params.c:pm_process() - Processing configuration file
"/etc/samba/openchange.conf"
ldb_wrap open of secrets.ldb
Initialising global parameters
lpcfg_load: refreshing parameters from /etc/samba/smb.conf
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
params.c:pm_process() - Processing configuration file
"/etc/samba/openchange.conf"
Unable to open /usr/lib64/mapistore_backends/libMAPIStoreSOGo.so:
/usr/lib64/mapistore_backends/libMAPIStoreSOGo.so: undefined symbol:
oc_log
Unable to open /usr/lib64/mapistore_backends/libMAPIStoreSOGo.so.1.0.0:
/usr/lib64/mapistore_backends/libMAPIStoreSOGo.so.1.0.0: undefined
symbol: oc_log
Unable to open /usr/lib64/mapistore_backends/libMAPIStoreSOGo.so.1:
/usr/lib64/mapistore_backends/libMAPIStoreSOGo.so.1: undefined symbol:
oc_log

At the moment i'm a little at a loss as to how to get it up and running now.
The OS is CentOS 6.7 x86_64

The Software versions are:
rpm -qa | egrep "samba|sogo|openchange"
openchange-rpcproxy-2.2.r4816.sogo-1.centos6.x86_64
sogo-3.0.1-1.centos6.x86_64
sogo-ealarms-notify-3.0.1-1.centos6.x86_64
samba-devel-4.1.18-2.centos6.x86_64
samba-dc-4.1.18-2.centos6.x86_64
samba-libs-4.1.18-2.centos6.x86_64
samba-client-4.1.18-2.centos6.x86_64
sogo-openchange-backend-3.0.0b1-1.centos6.x86_64
sogo-devel-3.0.1-1.centos6.x86_64
samba-dc-libs-4.1.18-2.centos6.x86_64
samba-4.1.18-2.centos6.x86_64
openchange-ocsmanager-2.2.r4816.sogo-1.centos6.x86_64
sogo-tool-3.0.1-1.centos6.x86_64
sogo-debuginfo-3.0.1-1.centos6.x86_64
samba-pidl-4.1.18-2.centos6.noarch
samba-common-4.1.18-2.centos6.x86_64
openchange-2.2.r4816.sogo-1.centos6.x86_64
sogo-activesync-3.0.1-1.centos6.x86_64
sogo-slapd-sockd-3.0.1-1.centos6.x86_64
samba-python-4.1.18-2.centos6.x86_64
--
***@sogo.nu
https://inverse.ca/sogo/lists
Christian Mack
2016-03-08 16:56:11 UTC
Permalink
Post by Pyromanci .
Hello,
I've been struggling to get SOGo and Openchange up and running. I
finally got SOGo working properly, but the ocsmanager is not. So I
looked at teh logs and saw a hard crash. with "ImportError: No module
named mapistore"
I did some searching and found thi bug report
http://sogo.nu/bugs/view.php?id=3012
So I downloaded the source rpm and built the missing libary.
http://sogo.nu/files/downloads/SOGo/RHEL6/SRPMS/openchange-2.2.r4816.sogo-1.centos6.src.rpm
After copying the missing .so files over to the python folder. I tired
starting the ocsmanager again. It still wouldn't start. So i looked at
File "/usr/bin/paster", line 9, in <module>
load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')()
File "/usr/lib/python2.6/site-packages/paste/script/command.py",
line 104, in run
invoke(command, command_name, options, args[1:])
File "/usr/lib/python2.6/site-packages/paste/script/command.py",
line 143, in invoke
exit_code = runner.run(args)
File "/usr/lib/python2.6/site-packages/paste/script/command.py",
line 238, in run
result = self.command()
File "/usr/lib/python2.6/site-packages/paste/script/serve.py", line
284, in command
relative_to=base, global_conf=vars)
File "/usr/lib/python2.6/site-packages/paste/script/serve.py", line
321, in loadapp
**kw)
File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py",
line 247, in loadapp
return loadobj(APP, uri, name=name, **kw)
File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py",
line 272, in loadobj
return context.create()
File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py",
line 710, in create
return self.object_type.invoke(self)
File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py",
line 146, in invoke
return fix_call(context.object, context.global_conf, **context.local_conf)
File "/usr/lib/python2.6/site-packages/paste/deploy/util.py", line
56, in fix_call
val = callable(*args, **kw)
File "/usr/lib/python2.6/site-packages/ocsmanager/config/middleware.py",
line 43, in make_app
config = load_environment(global_conf, app_conf)
File "/usr/lib/python2.6/site-packages/ocsmanager/config/environment.py",
line 135, in load_environment
mstore = mapistore.MAPIStore(config['ocsmanager']['main']['mapistore_root'])
SystemError: error in mapistore_init
This wasn't very helpful so I started it by hand instead of the service command.
# /usr/bin/paster serve /etc/ocsmanager/ocsmanager.ini --pid-file
/var/run/ocsmanager/ocsmanager.pid --log-file
/var/log/ocsmanager/ocsmanager.log
params.c:pm_process() - Processing configuration file
"/etc/samba/openchange.conf"
ldb_wrap open of secrets.ldb
Initialising global parameters
lpcfg_load: refreshing parameters from /etc/samba/smb.conf
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
params.c:pm_process() - Processing configuration file
"/etc/samba/openchange.conf"
oc_log
/usr/lib64/mapistore_backends/libMAPIStoreSOGo.so.1.0.0: undefined
symbol: oc_log
oc_log
At the moment i'm a little at a loss as to how to get it up and running now.
The OS is CentOS 6.7 x86_64
rpm -qa | egrep "samba|sogo|openchange"
openchange-rpcproxy-2.2.r4816.sogo-1.centos6.x86_64
sogo-3.0.1-1.centos6.x86_64
sogo-ealarms-notify-3.0.1-1.centos6.x86_64
samba-devel-4.1.18-2.centos6.x86_64
samba-dc-4.1.18-2.centos6.x86_64
samba-libs-4.1.18-2.centos6.x86_64
samba-client-4.1.18-2.centos6.x86_64
sogo-openchange-backend-3.0.0b1-1.centos6.x86_64
sogo-devel-3.0.1-1.centos6.x86_64
samba-dc-libs-4.1.18-2.centos6.x86_64
samba-4.1.18-2.centos6.x86_64
openchange-ocsmanager-2.2.r4816.sogo-1.centos6.x86_64
sogo-tool-3.0.1-1.centos6.x86_64
sogo-debuginfo-3.0.1-1.centos6.x86_64
samba-pidl-4.1.18-2.centos6.noarch
samba-common-4.1.18-2.centos6.x86_64
openchange-2.2.r4816.sogo-1.centos6.x86_64
sogo-activesync-3.0.1-1.centos6.x86_64
sogo-slapd-sockd-3.0.1-1.centos6.x86_64
samba-python-4.1.18-2.centos6.x86_64
Did you open a bug report at http://www.sogo.nu/bugs ?


Kind regards,
Christian Mack
--
Christian Mack
UniversitÀt Konstanz
Kommunikations-, Informations-, Medienzentrum (KIM)
Abteilung Basisdienste
78457 Konstanz
+49 7531 88-4416
Loading...