Page MenuHomePhorge

Kolab 16 on Debian 11 Bullseye
Open, NormalPublic


I have installed Kolab on Debian 11 with the new repository :
deb [trusted=yes] ./

The product seems to work but I have a problem with php-kolabformat :

ii php-kolabformat 1.3.0-0~kolab2 amd64 PHP bindings for Kolab Format 3.0 XML parsing
ii python3-kolabformat 1.3.0-0~kolab2 amd64 Python 3 bindings for Kolab Format 3.0 XML parsing
ii libkolabxml1v5 1.3.0-0~kolab2 amd64 Libkolabxml is the reference implementation of the Kolab XML format

Here is one of the php errors extracted from the roundcube logs:

11-Aug-2023 19:01:16 Europe/Paris] PHP Fatal error: Uncaught Error: Call to undefined method SWIG\_p_Kolab__cDateTime::isValid() in /usr/share/roundcubemail/plugins/libkolab/lib/kolab_format.php:279
Stack trace:

#0 /usr/share/roundcubemail/plugins/libkolab/lib/kolab_format.php(594): kolab_format::php_datetime(Object(SWIG\_p_Kolab__cDateTime))

#1 /usr/share/roundcubemail/plugins/libkolab/lib/kolab_format_xcal.php(110): kolab_format->to_array(Array)
#2 /usr/share/roundcubemail/plugins/libkolab/lib/kolab_format_event.php(157): kolab_format_xcal->to_array(Array)
#3 /usr/share/roundcubemail/plugins/libkolab/lib/kolab_storage_folder.php(564): kolab_format_event->to_array(Array)
#4 /usr/share/roundcubemail/plugins/libkolab/lib/kolab_storage_cache.php(411): kolab_storage_folder->read_object('20')
#5 /usr/share/roundcubemail/plugins/libkolab/lib/kolab_storage_cache.php(269): kolab_storage_cache->synchronize_fetch(Array, Array, Array)
#6 /usr/share/roundcubemail/plugins/libkolab/lib/kolab_storage_cache.php(210): kolab_storage_cache->synchronize_full()
#7 /usr/share/roun in /usr/share/roundcubemail/plugins/libkolab/lib/kolab_format.php on line 279

I searched the web and came across post T7109 on

In this post it is requested not to use php-kolamformat version 1.3.0 but to downgrade to version 1.2.1-0~kolab3.

I don't know if it's possible without breaking the package manager.

Can you help me please ?

Thanks in advance


Ticket Type

Event Timeline

astark renamed this task from Kolab 16 on Denian 11 Bullseye to Kolab 16 on Debian 11 Bullseye.Aug 14 2023, 6:06 PM
astark created this task.

I recompiled and installed libkolabxml1v5 1.2.1-0~kolab3 but apache crashes now :

`coredumpctl info

         PID: 4657 (apache2)
         UID: 33 (www-data)
         GID: 33 (www-data)
      Signal: 11 (SEGV)
   Timestamp: Mon 2023-09-11 19:00:26 CEST (50s ago)
Command Line: /usr/sbin/apache2 -k start
  Executable: /usr/sbin/apache2

Control Group: /system.slice/apache2.service

      Unit: apache2.service
     Slice: system.slice
   Boot ID: 5607da01a8524049b9cecf8d646590a3
Machine ID: 7e0ae6a0e48b4b71bf21b4a8cb7c6089
  Hostname: kolab-new
   Storage: /var/lib/systemd/coredump/core.apache2.33.5607da01a8524049b9cecf8d646590a3.4657.1694451626000000.zst
   Message: Process 4657 (apache2) of user 33 dumped core.
            Stack trace of thread 4657:
            #0  0x00007f3aa5fe230a SWIG_SetPointerZval ( + 0x530a)
            #1  0x00007f3aa5fe2cd2 zim_XMLObject_readEvent ( + 0x5cd2)
            #2  0x00007f3aab927097 execute_ex ( + 0x325097)
            #3  0x00007f3aab92836b zend_execute ( + 0x32636b)
            #4  0x00007f3aab8a0e24 zend_execute_scripts ( + 0x29ee24)
            #5  0x00007f3aab83f9e0 php_execute_script ( + 0x23d9e0)
            #6  0x00007f3aab92a338 n/a ( + 0x328338)
            #7  0x0000563290fbf9d0 ap_run_handler (apache2 + 0x629d0)
            #8  0x0000563290fbffc6 ap_invoke_handler (apache2 + 0x62fc6)
            #9  0x0000563290fd7d7e ap_internal_redirect (apache2 + 0x7ad7e)
            #10 0x00007f3aab35c428 n/a ( + 0x5428)
            #11 0x0000563290fbf9d0 ap_run_handler (apache2 + 0x629d0)
            #12 0x0000563290fbffc6 ap_invoke_handler (apache2 + 0x62fc6)
            #13 0x0000563290fd89db ap_process_async_request (apache2 + 0x7b9db)
            #14 0x0000563290fd8c1e ap_process_request (apache2 + 0x7bc1e)
            #15 0x0000563290fd4a94 n/a (apache2 + 0x77a94)
            #16 0x0000563290fc9730 ap_run_process_connection (apache2 + 0x6c730)
            #17 0x00007f3aabaa7bbc n/a ( + 0x4bbc)
            #18 0x00007f3aabaa7f26 n/a ( + 0x4f26)
            #19 0x00007f3aabaa7f71 n/a ( + 0x4f71)
            #20 0x00007f3aabaa867f n/a ( + 0x567f)
            #21 0x0000563290f9f820 ap_run_mpm (apache2 + 0x42820)
            #22 0x0000563290f97148 main (apache2 + 0x3a148)
            #23 0x00007f3aabc19d0a __libc_start_main ( + 0x23d0a)
            #24 0x0000563290f9725a _start (apache2 + 0x3a25a)`

The problem comes from php-kolab 3.0.2-0~kolab2 but impossible to switch back to version 2.0~dev20151230-0~kolab18.

QT went from version 4 to version 5.

It is therefore necessary to correct libkolabxml 1.3.0

machniak lowered the priority of this task from Needs Triage to Normal.
machniak added projects: Libraries, Kolab 16.

Any further Developments here?

With best regards


Problem is with loading order of php modules. On Ubuntu the fix for me was:

mv /etc/php7.4/cli/conf.d/30-kolabformat.ini /etc/php7.4/cli/conf.d/32-kolabformat.ini
mv /etc/php7.4/apache2/conf.d/30-kolabformat.ini /etc/php7.4/apache2/conf.d/32-kolabformat.ini

We're working on a fix for packaging.

Thx for the News!

Calendars ar basically working now! Im glad :)
The following error doesn't seem to be critical at all.

Now i have the following exception on debian 11:

Critical: ./src/xcalconversions.h 1943: Failed to parse calendar!
schema exception
:7:14 error: missing elements in content model '(prodid,version,x-kolab-version)'
:10:61 error: element 'uri' is not allowed for content model '(parameters?,text)'
:11:51 error: value '20130726T181500Z' does not match regular expression facet '(\-|\+)?\d{4}\-\d{2}\-\d{2}T\d{2}:\d{2}:\d{2}(\.\d*)?Z?'
:12:49 error: value '20130802T211500Z' does not match regular expression facet '(\-|\+)?\d{4}\-\d{2}\-\d{2}T\d{2}:\d{2}:\d{2}(\.\d*)?Z?'
:15:16 error: no declaration found for element 'sensitivity'
:17:17 error: no declaration found for element 'show-time-as'
:18:15 error: element 'dtstart' is not allowed for content model '(uid,created,dtstamp,sequence?,class?,categories?,dtstart?,dtend?,duration?,transp?,rrule?,rdate?,exdate?,recurrence-id?,summary?,description?,comment?,priority?,status?,location?,organizer?,url?,attendee*,attach*,x-custom*)'
Critical: ./src/xcalconversions.h 1943: Failed to parse calendar!

Hope it helps and thx for help in return.

This has now been merged into Kolab:16, though the package is still building, but should become available shortly.

Thanks for this happy news :-)

It's possible to use Debian 12 to install kolab 16 ?

I'm still on Debian 10 - a new test-install on Debian 12 throws errors when logging in to kolab-webadmin. Didn't investigate further...

It's because of default php versions on Debian:
Debian 10 - php 7.3
Debian 11 - php 7.4
Debian 12 - php 8.2

I run in same on Debian 12.
I run the kolab-webadmin on own container image and tested with upgrade from Debian 10 -> 11 -> 12.
Debian 11 worked as expected.
Bookworm run into errors.
I'm now running Debian 11 a couple of weeks.

On my side was the trouble php8 code compatibility and the smarty version, which hinders after the upgrade to use kolab-webadmin on Debian 12.
Smarty issue fixed by hand, but php8 compatibility, I tried to fix first error and quit on second.
Before start fixing, I'd like to test with git repository code, but it's still on my todo list.

Anyone tested git version with >php8.2 ?