View Issue Details

IDProjectCategoryView StatusLast Update
0003012SOGoOpenChange backendpublic2015-06-19 19:17
Reporterxmatej Assigned Toludovic  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionsuspended 
Platform[Server] LinuxOSRHEL/CentOSOS Version6
Product Version2.2.10 
Summary0003012: Cannot run ocsmanger
Description

Hi,

after upgrade I am not able to run ocsmanager on Centos 6.
The version of ocsmanager is
openchange-ocsmanager.x86_64 2.2.r4816.sogo-1.centos6 from sogo repository

serving on http://127.0.0.1:5000
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 271, in loadobj
global_conf=global_conf)
File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
global_conf=global_conf)
File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 320, in _loadconfig
return loader.get_context(object_type, name, global_conf)
File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 454, in get_context
section)
File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 476, in _context_from_use
object_type, name=use, global_conf=global_conf)
File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 406, in get_context
global_conf=global_conf)
File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
global_conf=global_conf)
File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 328, in _loadegg
return loader.get_context(object_type, name, global_conf)
File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 620, in get_context
object_type, name=name)
File "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 646, in find_egg_entry_point
possible.append((entry.load(), protocol, entry.name))
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1948, in load
entry = import(self.module_name, globals(),globals(), ['name'])
File "/usr/lib/python2.6/site-packages/ocsmanager/config/middleware.py", line 14, in <module>
from ocsmanager.config.environment import load_environment
File "/usr/lib/python2.6/site-packages/ocsmanager/config/environment.py", line 34, in <module>
import openchange.mapistore as mapistore
ImportError: No module named mapistore

Steps To Reproduce

I've reproduced the problem on freshly installed Centos 6

TagsNo tags attached.

Relationships

related to 0003257 resolvedludovic openchange_ocsmanager 2.2 

Activities

Christian Mack

Christian Mack

2014-12-05 13:31

developer   ~0007780

Did you install and configure a mysql database for it?

xmatej

xmatej

2014-12-05 14:16

reporter   ~0007781

Yes I did. I have sucessfully finished Samba configuration and OpenChange Configuration chapter from SOGo Native Microsoft Outlook Configuration.pdf

Now I am stucked at the step

/etc/init.d/openchange-ocsmanager start , which doesnt start and log the error message described above.

Here is list of installed packages

samba-4.1.11-2.centos6.x86_64
openchange-2.2.r4816.sogo-1.centos6.x86_64
sogo-openchange-backend-2.2.10-1.centos6.x86_64
openchange-ocsmanager-2.2.r4816.sogo-1.centos6.x86_64
openchange-rpcproxy-2.2.r4816.sogo-1.centos6.x86_64
mysql-server-5.1.73-3.el6_5.x86_64
MySQL-python-1.2.3-0.3.c1.1.el6.x86_64

avh

avh

2015-02-13 12:55

reporter   ~0008186

I've got the exact same problem, too.
Is there something I can do?

avh

avh

2015-02-16 14:58

reporter   ~0008206

Oh, my sogo version is 2.2.16
The problem seems to be that openchange-2.2.r4816.sogo-1.centos6.x86_64.rpm does not contain the mapistore python library

avh

avh

2015-02-17 10:56

reporter   ~0008211

workaround: compile openchange yourself with --enable-pyopenchange and copy python/openchange/mapistore.so to /usr/lib64/python2.6/site-packages/openchange/

vykupitel

vykupitel

2015-03-19 22:34

reporter   ~0008321

Would be possible to publish mapistore.so? I am not able to compile openchange with rpmbuild from src.rpm as there is no pidl (WARNING: No version of pidl was found!)

zhb

zhb

2015-04-24 05:18

reporter   ~0008425

Any update on this issue? still have this issue on CentOS 6.6:

rpm -qa| grep -i openchange

openchange-rpcproxy-2.2.r4816.sogo-1.centos6.x86_64
openchange-ocsmanager-2.2.r4816.sogo-1.centos6.x86_64
sogo-openchange-backend-2.2.17a-1.centos6.x86_64
openchange-2.2.r4816.sogo-1.centos6.x86_64

zhb

zhb

2015-04-24 05:49

reporter   ~0008426

Just one line change in SPEC file, don't understand why SOGo doesn't fix it quickly:

diff -Naur old.spec openchange.spec

--- old.spec 2015-04-24 21:48:22.249293860 +0800
+++ openchange.spec 2015-04-24 21:40:43.064297144 +0800
@@ -163,7 +163,7 @@
CFLAGS="-O2 -ggdb" \
PYTHON=%{__python} \
PYTHON_CONFIG="/bin/false" \
-%configure --with-modulesdir=%{_libdir}/samba/modules --datadir=%{_datadir}/samba PYTHON=%{python}
+%configure --with-modulesdir=%{_libdir}/samba/modules --datadir=%{_datadir}/samba PYTHON=%{
python} --enable-pyopenchange

Parallel builds prohibited by makefile

make

ludovic

ludovic

2015-05-25 19:33

administrator   ~0008526

Retry once v2.3 is out. Reopen if necessary.

Issue History

Date Modified Username Field Change
2014-12-04 21:15 xmatej New Issue
2014-12-05 13:31 Christian Mack Note Added: 0007780
2014-12-05 14:16 xmatej Note Added: 0007781
2015-02-13 12:55 avh Note Added: 0008186
2015-02-16 14:58 avh Note Added: 0008206
2015-02-17 10:56 avh Note Added: 0008211
2015-03-18 17:49 ludovic Severity major => minor
2015-03-19 22:34 vykupitel Note Added: 0008321
2015-04-24 05:18 zhb Note Added: 0008425
2015-04-24 05:49 zhb Note Added: 0008426
2015-05-25 19:33 ludovic Note Added: 0008526
2015-05-25 19:33 ludovic Status new => closed
2015-05-25 19:33 ludovic Assigned To => ludovic
2015-05-25 19:33 ludovic Resolution open => suspended
2015-06-19 19:17 ludovic Relationship added related to 0003257