Author Topic: Zentyal update 3.2 to 3.3 gives Zarafa Not Found: PHP mapi extension not found  (Read 12184 times)

hakunamatata

  • Zen Apprentice
  • *
  • Posts: 12
  • Karma: +1/-0
    • View Profile
The webpage /webapp and /webaccess states:  "Not Found: PHP mapi extension not found
If you have upgraded zarafa, please restart Apache

Zarafa WebApp can't start because of incompatible configuration.

Please correct above errors, a good start is by checking your '/etc/php5/apache2/php.ini' file.

Or if you wish, you can disable this config check by editing the file '/usr/share/zarafa-webapp/config.php', but this is not recommend."

No clues in "/var/log/zarafa/server.log
I'still searching. Any help or solutions are appreciated!  :'(

keegan@dtph.com

  • Guest
I had the same issue. I logged into the terminal and ran "sudo apt-get -f install" and it fixed the issue.

hakunamatata

  • Zen Apprentice
  • *
  • Posts: 12
  • Karma: +1/-0
    • View Profile
Hi Keegan,

Thanks for your reply.
I've tried the "sudo apt-get -f install" in the terminal but it didn't work. The problem stil exist.
Looks like some Zarafa files are lost or overwritten by the Rouncube update.

I'll continue searching.
I'll keep you informed!
Stay in touch!

one2black

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +1/-0
    • View Profile
Same issue after upgrade. I get this message calling WebApp:

Not Found: PHP mapi extension not found
If you have upgraded zarafa, please restart Apache
Zarafa WebApp can't start because of incompatible configuration.

Please correct above errors, a good start is by checking your '/etc/php5/apache2/php.ini' file.

Or if you wish, you can disable this config check by editing the file '/usr/share/zarafa-webapp/config.php', but this is not recommend.

hakunamatata

  • Zen Apprentice
  • *
  • Posts: 12
  • Karma: +1/-0
    • View Profile
Nothing found in the /var/log/zarafa/... logfiles.
The Zarafa directories in /usr/shar/zarafa/... look good.
The mapi configuration is available in /etc/php5/apache2/conf.d/zarafa.ini

Any one of the Zentyal-Zarafa Guru's outhere has a clue?
A hint that can guide into the good direction?

I'll check out the Apache acces.log, and error.log  /var/log/apache2/...

The error.log states:

"PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/mapi.so' - /usr/lib/libicalmapi.so.1: undefined symbol: _ZTIN7details18iconv_context_baseE in Unknown on line 0"
« Last Edit: December 21, 2013, 07:20:09 pm by hakunamatata »

one2black

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +1/-0
    • View Profile
I just verify every thing and can't find anything thats help to resolve.

keegan@dtph.com

  • Guest
I had the web mail module installed initially, but deleted it when I could not get the filter rules that I wanted. Zarafa does have the forwarding rule that I want. I also ran "sudo apt-get autoremove" which removed roundcube and "sudo apt-get  install php5-mapi" but it was already the latest version.

I just installed the web mail module again which brought back this error.

one2black

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +1/-0
    • View Profile
This does not apply to my case. I had never installed the web-mail modules. Actualy I don't have any possibility to access my email.

Webaccess/Webapp:
Not Found: PHP mapi extension not found
If you have upgraded zarafa, please restart Apache
Zarafa WebApp can't start because of incompatible configuration.

Please correct above errors, a good start is by checking your '/etc/php5/apache2/php.ini' file.

Or if you wish, you can disable this config check by editing the file '/usr/share/zarafa-webapp/config.php', but this is not recommend.

And devices using z-push can't login:
22/12/2013 10:26:34 [10805] [FATAL] [username] FatalMisconfigurationException: PHP-MAPI extension is not available - code: 0

I just don't like to install  everything again  :(

hakunamatata

  • Zen Apprentice
  • *
  • Posts: 12
  • Karma: +1/-0
    • View Profile
One2Black you need to enable the webmail module before you can use Zarafa Groupware. The mail coming in from the mailserver is being mapped via the virtual domain to the groupware app.
« Last Edit: December 22, 2013, 03:51:10 pm by hakunamatata »

one2black

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +1/-0
    • View Profile
Nothing helps at all  :( I do a fresh zentyal installation  :-\

one2black

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +1/-0
    • View Profile
Uff... now everything is setup  :) :) I just have only one issue. Pleas help because I have try several things without success.  My problem zentyal (Version 3.3.2) don't like to use modified stubs at all. They are just ignored. The subs are stored in /etc/zentyal/stubs

one2balck@zeus:/etc/zentyal/stubs$ ls -la
total 24
drwxr-xr-x 6 root root 4096 Dec 22 20:00 ./
drwxr-xr-x 6 root root 4096 Dec 22 19:59 ../
drwxr-x--- 2 root root 4096 Dec 22 20:00 mail/
drwxr-x--- 2 root root 4096 Dec 22 20:00 samba/
drwxr-x--- 2 root root 4096 Dec 22 20:00 webserver/
drwxr-x--- 2 root root 4096 Dec 22 20:44 zarafa/

Alle individual settings stored in stubs e.g. mail, samba, etc. are just ignored by the server. Does somebody had the same issue? any suggestions?

one2black

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +1/-0
    • View Profile
Gentleman's  :) I will answer myself in this case ;D Maybe it's can help somebody in the future.

Access rights to the folders and files must be 755  ;) ;)
drwxr-xr-x 2 root root 4096 Dec 22 20:00 mail/
drwxr-xr-x 2 root root 4096 Dec 22 20:00 samba/
drwxr-xr-x 2 root root 4096 Dec 22 20:00 webserver/
drwxr-xr-x 2 root root 4096 Dec 22 20:44 zarafa/

seriousp

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Same Problem here:

Quote
PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/mapi.so' - /usr/lib/libicalmapi.so.1: undefined symbol: _ZTIN7details18iconv_context_baseE

I've tryed all versions of "php5-mapi" and "zarafa-libs", which contains "ibicalmapi", from archive.zentyal. Ever the Same Problem.

Quote
root@jupiter:~# dpkg -s php5-mapi
Package: php5-mapi
Status: install ok installed
Priority: optional
Section: php
Installed-Size: 896
Maintainer: John van der Kamp <j.vdkamp@zarafa.com>
Architecture: amd64
Source: zarafa
Version: 7.1.7-42779
Replaces: zarafa (<< 7.0)
Depends: libc6 (>= 2.14), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.6), zarafa-client (= 7.1.7-42779), zarafa-libs (= 7.1.7-42779), phpapi-20090626, libapache2-mod-php5 | php5-cgi | php5-cli
Conflicts: zarafa (<< 7.0)
Conffiles:
 /etc/php5/apache2/conf.d/zarafa.ini 0c0c8ea4a196629043e589366164482f
Description: PHP MAPI bindings
 Using this module, you can create PHP programs which use MAPI
 calls to interact with Zarafa.

Quote
root@jupiter:~# dpkg -s zarafa-libs
Package: zarafa-libs
Status: install ok installed
Priority: optional
Section: mail
Installed-Size: 939
Maintainer: John van der Kamp <j.vdkamp@zarafa.com>
Architecture: amd64
Source: zarafa
Version: 7.1.7-42779
Replaces: zarafa (<< 7.0)
Depends: libc6 (>= 2.14), libgcc1 (>= 1:4.1.1), libical0 (>= 0.44), libstdc++6 (>= 4.6), libvmime0 (>= 0.9.2), zarafa-client, libvmime0 (<< 1.0)
Conflicts: zarafa (<< 7.0)
Description: Conversion libraries between Open Standards and MAPI
 Commonly used libraries by Zarafa Collaboration Platform client
 programs.


Quote
root@jupiter:~# dpkg -l | grep zentyal
ii  bind9                                1:9.8.1.dfsg.P1+zentyal52~ubuntu12.04.1 Internet Domain Name Server
ii  bind9-host                           1:9.8.1.dfsg.P1+zentyal52~ubuntu12.04.1 Version of 'host' bundled with BIND 9.X
ii  bind9utils                           1:9.8.1.dfsg.P1+zentyal52~ubuntu12.04.1 Utilities for BIND
ii  dnsutils                             1:9.8.1.dfsg.P1+zentyal52~ubuntu12.04.1 Clients provided with BIND
ii  language-pack-zentyal-de             3.3                                     Zentyal translations for language German
ii  libbind9-80                          1:9.8.1.dfsg.P1+zentyal52~ubuntu12.04.1 BIND9 Shared Library used by BIND
ii  libdns81                             1:9.8.1.dfsg.P1+zentyal52~ubuntu12.04.1 DNS Shared Library used by BIND
ii  libisc83                             1:9.8.1.dfsg.P1+zentyal52~ubuntu12.04.1 ISC Shared Library used by BIND
ii  libisccc80                           1:9.8.1.dfsg.P1+zentyal52~ubuntu12.04.1 Command Channel Library used by BIND
ii  libisccfg82                          1:9.8.1.dfsg.P1+zentyal52~ubuntu12.04.1 Config File Handling Library used by BIND
ii  liblwres80                           1:9.8.1.dfsg.P1+zentyal52~ubuntu12.04.1 Lightweight Resolver Library used by BIND
ii  libmapi0                             1:2.0-QUADRANT-385-g1dd55ee-0zentyal0   Client library for the MAPI protocol
rc  libmapiproxy0                        1:2.0-QUADRANT-385-g1dd55ee-0zentyal0   Proxy library for the MAPI (Exchange/Outlook) protocol
rc  libmapistore0                        1:2.0-QUADRANT-385-g1dd55ee-0zentyal0   Storage library for MAPI objects
rc  libocpf0                             1:2.0-QUADRANT-385-g1dd55ee-0zentyal0   Scripting library for the MAPI protocol
rc  libsbjson2.3                         4.9-zentyal2                            High performance Objective-C JSON library
rc  libsope-appserver4.9                 4.9-zentyal2                            SOPE application server libraries
rc  libsope-core4.9                      4.9-zentyal2                            Core libraries of the SOPE application server
rc  libsope-gdl1-4.9                     4.9-zentyal2                            GNUstep database libraries for SOPE
rc  libsope-ldap4.9                      4.9-zentyal2                            SOPE libraries for LDAP access
rc  libsope-mime4.9                      4.9-zentyal2                            SOPE libraries for MIME processing
rc  libsope-xml4.9                       4.9-zentyal2                            SOPE libraries for XML processing
ii  libtrycatch-lite-perl                1.003001+zentyal4                       first class try catch semantics for Perl - lite version
rc  openchange-ocsmanager                1:2.0-QUADRANT-385-g1dd55ee-0zentyal0   Working instance of python-ocsmanager
rc  openchangeserver                     1:2.0-QUADRANT-385-g1dd55ee-0zentyal0   Experimental MAPI (Exchange/Outlook) server
pi  roundcube-core                       0.9.3-zentyal3                          skinnable AJAX based webmail solution for IMAP servers
ii  roundcube-mysql                      0.9.3-zentyal3                          metapackage providing MySQL dependencies for RoundCube
ii  roundcube-plugins                    0.9.3-zentyal3                          skinnable AJAX based webmail solution for IMAP servers - plugins
ii  roundcube-sqlite3                    0.9.3-zentyal3                          metapackage providing SQLite dependencies for RoundCube
ii  samba4                               4.1.3-zentyal2                          SMB/CIFS file, NT domain and active directory server (version 4)
rc  sogo                                 2.1.2-zentyal1                          a modern and scalable groupware
rc  sogo-openchange                      2.1.2-zentyal1                          a modern and scalable groupware - OpenChange backend
ii  zentyal                              3.3                                     Zentyal - Core metapackage
ii  zentyal-bwmonitor                    3.3                                     Zentyal - Bandwidth Monitor
ii  zentyal-ca                           3.3                                     Zentyal - Certification Authority
ii  zentyal-common                       3.3                                     Zentyal - Common Library
ii  zentyal-core                         3.3.2                                   Zentyal - Core
ii  zentyal-dns                          3.3                                     Zentyal - DNS Service
ii  zentyal-firewall                     3.3                                     Zentyal - Firewall
ii  zentyal-mail                         3.3                                     Zentyal - Mail Service
ii  zentyal-monitor                      3.3                                     Zentyal - Monitor
ii  zentyal-network                      3.3                                     Zentyal - Network Configuration
ii  zentyal-ntp                          3.3                                     Zentyal - NTP Service
ii  zentyal-objects                      3.3                                     Zentyal - Network Objects
ii  zentyal-samba                        3.3                                     Zentyal - File Sharing and Domain Services
ii  zentyal-services                     3.3                                     Zentyal - Network Services
ii  zentyal-software                     3.3                                     Zentyal - Software Management
ii  zentyal-usercorner                   3.3                                     Zentyal - User Corner
ii  zentyal-users                        3.3                                     Zentyal - Users and Computers
ii  zentyal-webserver                    3.3                                     Zentyal - Web Server
ii  zentyal-zarafa                       3.3                                     Zentyal - Groupware (Zarafa)


Some new ideas?

Greetings
Patrick

Chaos

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
ensure that openchange module is uninstalled, it cannot co-exist with zarafa in my experience

#sudo apt-get autoremove
#sudo apt-get --reinstall install [zentyal-zarafa and then zarafa-dagent]
#sudo apt-get --reinstall install zarfa-webapp
#sudo service apache2 reload


This should replace and make functional the require libmapi and libcal components that you require. Please let me know if it helped!




Chaos

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
also,

why would you want to use roundcube when zarafa already has an awesome webapp, i would remove roundcube also!

thanks