[Pkg-roundcube-maintainers] Bug#1037537: Upgrade To Bookworm Fails with Roundcube Update

Paul Muster paul at muster.net
Thu Sep 18 16:22:51 BST 2025


Control: reopen

On Thu, 10 Aug 2023 16:57:14 +0200 Guilhem Moulin <guilhem at debian.org> 
wrote:

> Alright, thanks for the follow-up!  As there was no further reports or
> confirmations of the issue I'm closing it now.

Unfortunately this problem still exists:

Setting up roundcube-core (1.6.5+dfsg-1+deb12u5) ...
Installing new version of config file /etc/cron.d/roundcube-core ...
Installing new version of config file /etc/roundcube/apache.conf ...
Installing new version of config file 
/etc/roundcube/debian-db-roundcube.php ...
Installing new version of config file /etc/roundcube/defaults.inc.php ...
Installing new version of config file /etc/roundcube/htaccess ...
Installing new version of config file /etc/roundcube/mimetypes.php ...
dbconfig-common: writing config to /etc/dbconfig-common/roundcube.conf
creating database backup in 
/var/cache/dbconfig-common/backups/roundcube_1.4.15+dfsg.1-1+deb11u5.2025-09-17-10.01.15.
applying upgrade sql for 1.4.15+dfsg.1-1+deb11u5 -> 1.5.0+dfsg.1-1.
applying upgrade sql for 1.4.15+dfsg.1-1+deb11u5 -> 1.6~beta+dfsg-1.
applying upgrade sql for 1.4.15+dfsg.1-1+deb11u5 -> 1.6.1+dfsg-1.
dbconfig-common: flushing administrative password
INFO: Running /usr/share/roundcube/bin/update.sh as user 'www-data'
dpkg: error processing package roundcube-core (--configure):
  installed roundcube-core package post-installation script subprocess 
returned error exit status 255

This happens when upgrading from Debian 11 Bullseye to 12 Bookworm:

roundcube-core:amd64 (1.4.15+dfsg.1-1+deb11u5, 1.6.5+dfsg-1+deb12u5)

Trying to debug the issue by including a "set -x" into 
/var/lib/dpkg/info/roundcube-core.postinst shows this:

[...]
+ OLD_UPSTREAM_VERSION=1.4.15+dfsg.1
+ OLD_UPSTREAM_VERSION=1.4.15
+ stat -c%f -- /etc/roundcube/config.inc.php
+ m=81a0
+ [ 0 -ne 0 ]
+ stat -c%u -- /etc/roundcube/config.inc.php
+ user=0
+ [ -n 0 ]
+ [ 0 -ne 0 ]
+ [ 32 -eq 0 ]
+ stat -c%g -- /etc/roundcube/config.inc.php
+ gid=33
+ [ 33 -eq 0 ]
+ getent passwd
+ + cut -sd: -f1,4
sed -n s/:0*33$//p
+ user=www-data
+ [ -z www-data ]
+ getent passwd -- www-data
+ install -owww-data -groot -m0600 /dev/null 
/etc/roundcube/config.inc.php.dpkg-new
+ stat -c%i %#a -- /etc/roundcube/config.inc.php.dpkg-new
+ st1=32989 0600
+ [ www-data = root ]
+ echo INFO: Running /usr/share/roundcube/bin/update.sh as user 'www-data'
INFO: Running /usr/share/roundcube/bin/update.sh as user 'www-data'
+ runuser -uwww-data -- env DEBIAN_PKG=1 php 
/usr/share/roundcube/bin/update.sh --version=1.4.15 --accept=true
dpkg: error processing package roundcube-core (--configure):
   installed roundcube-core package post-installation script subprocess 
returned error exit status 255
Errors were encountered while processing:
  roundcube-core

Also when adding -d display_errors=on parameter for php I don't get any 
error messages from the PHP script:

/tmp # runuser -uwww-data -- env DEBIAN_PKG=1 php -d display_errors=on 
/usr/share/roundcube/bin/update.sh --version=1.4.15 --accept=true

If I request php to display errors and log error them the log file does 
not appear:

/tmp # runuser -uwww-data -- env DEBIAN_PKG=1 php -d display_errors=on 
-d log_errors=on -d error_log=php-cli-error.log 
/usr/share/roundcube/bin/update.sh --version=1.4.15 --accept=true

/tmp # ls php-cli*
ls: cannot access 'php-cli*': No such file or directory

The user www-data *can* write here:

/tmp # runuser -uwww-data -- touch touched-file
/tmp # ls -la touch*
-rw-r--r-- 1 www-data www-data 0 18. Sep 16:47 touched-file


Any ideas? How can I support on finding the reason for this?


Thanks in advance & kind Regards,

Paul



More information about the Pkg-roundcube-maintainers mailing list