Bug#801973: error 255 on package configuration

2015-10-16 Thread e-mmanuel

Package: roundcube
Version: 1.1.2+dfsg.1-5
Severity: serious
Justification: 3

Dear Maintainer,

During upgrade of roundcube (from 1.1.2+dfsg.1-4 to 1.1.2+dfsg.1-5), 
aptitude reports errors and upgrade stops.
Despite this error, roundcube works but last time (upgrade from 
0.9.5+dfsg1-4.2 to 1.1.1+dfsg.1-1), all was broken.

I had have to purge roundcube packages and reinstall from scratch.

The error message :
Paramétrage de roundcube-core (1.1.2+dfsg.1-5) ...
dbconfig-common: writing config to /etc/dbconfig-common/roundcube.conf
dbconfig-common: flushing administrative password
dpkg: erreur de traitement du paquet roundcube-core (--configure) :
 le sous-processus script post-installation installé a retourné une 
erreur de sortie d'état 255

dpkg: des problèmes de dépendances empêchent la configuration de roundcube :
 roundcube dépend de roundcube-core (= 1.1.2+dfsg.1-5) ; cependant :
 Le paquet roundcube-core n'est pas encore configuré.

dpkg: erreur de traitement du paquet roundcube (--configure) :
 problèmes de dépendances - laissé non configuré
Des erreurs ont été rencontrées pendant l'exécution :
 roundcube-core
 roundcube

E: Sub-process /usr/bin/dpkg returned an error code (1)
Failed to perform requested operation on package.  Trying to recover:
Paramétrage de roundcube-core (1.1.2+dfsg.1-5) ...
dbconfig-common: writing config to /etc/dbconfig-common/roundcube.conf
dbconfig-common: flushing administrative password
dpkg: erreur de traitement du paquet roundcube-core (--configure) :
 le sous-processus script post-installation installé a retourné une 
erreur de sortie d'état 255

dpkg: des problèmes de dépendances empêchent la configuration de roundcube :
 roundcube dépend de roundcube-core (= 1.1.2+dfsg.1-5) ; cependant :
 Le paquet roundcube-core n'est pas encore configuré.

dpkg: erreur de traitement du paquet roundcube (--configure) :
 problèmes de dépendances - laissé non configuré
Des erreurs ont été rencontrées pendant l'exécution :
 roundcube-core
 roundcube


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages roundcube-core depends on:
ii  dbconfig-common1.8.54
ii  debconf [debconf-2.0]  1.5.57
ii  libapache2-mod-php55.6.14+dfsg-1
ii  libmagic1  1:5.25-2
ii  php-auth   1.6.4-1
ii  php-mail-mime  1.8.9-1
ii  php-mail-mimedecode1.5.5-3
ii  php-net-smtp   1.6.2-2
ii  php-net-socket 1.0.14-1
ii  php5   5.6.14+dfsg-1
ii  php5-cli   5.6.14+dfsg-1
ii  php5-common5.6.14+dfsg-1
ii  php5-intl  5.6.14+dfsg-1
ii  php5-json  1.3.7-1
ii  php5-mcrypt5.6.14+dfsg-1
ii  roundcube-mysql1.1.2+dfsg.1-5
ii  ucf3.0030

Versions of packages roundcube-core recommends:
ii  apache2 [httpd-cgi]  2.4.16-3
ii  php-net-ldap31.0.3-1
ii  php-net-sieve1.3.4-2
ii  php5-gd  5.6.14+dfsg-1
ii  php5-pspell  5.6.14+dfsg-1

Versions of packages roundcube-core suggests:
ii  php-auth-sasl  1.0.6-2
pn  php-crypt-gpg  
pn  roundcube-plugins  

roundcube depends on no packages.

-- debconf information:
  roundcube/remove-error: abort
  roundcube/pgsql/method: Unix socket
  roundcube/upgrade-backup: true
* roundcube/purge: false
  roundcube/dbconfig-reinstall: false
  roundcube/internal/skip-preseed: false
  roundcube/pgsql/manualconf:
  roundcube/install-error: abort
  roundcube/passwords-do-not-match:
  roundcube/missing-db-package-error: abort
  roundcube/pgsql/changeconf: false
  roundcube/db/app-user: roundcube
  roundcube/remote/host:
  roundcube/pgsql/no-empty-passwords:
* roundcube/dbconfig-remove: true
  roundcube/dbconfig-upgrade: true
* roundcube/database-type: mysql
  roundcube/mysql/admin-user: root
  roundcube/upgrade-error: abort
  roundcube/pgsql/authmethod-admin: ident
  roundcube/pgsql/authmethod-user: password
  roundcube/internal/reconfiguring: false
  roundcube/restart-webserver: true
* roundcube/dbconfig-install: true
  roundcube/language: fr_FR
  roundcube/pgsql/admin-user: postgres
  roundcube/mysql/method: Unix socket
  roundcube/remote/port:
  roundcube/hosts:
  roundcube/db/basepath:
  roundcube/reconfigure-webserver: apache2, lighttpd
  roundcube/db/dbname: roundcube
  roundcube/remote/newhost:



Bug#801973: error 255 on package configuration

2015-10-19 Thread e-mmanuel

Hello,
the problem occurs on my other server.
Both are clean (production servers).
Just for information, I use MariaDB not MySQL.

Emmanuel.



Bug#801973: [Pkg-roundcube-maintainers] Bug#801973: error 255 on package configuration

2015-11-03 Thread e-mmanuel

Hello,
unfortunately, last week, I have forced the upgrade with exit 0 at the 
top of the script on my both servers.

I'll activate "set -x" for the next upgrade.

It's strange I was the the only one with this bug...
Emmanuel.


Bug#801973: [Pkg-roundcube-maintainers] Bug#801973: error 255 on package configuration

2015-11-03 Thread e-mmanuel
But during the upgrade from 0.9.5+dfsg1-4.2 to 1.1.1+dfsg.1-1, I purged 
the roundcube* packages and removed /etc/roundcube because all was 
broken (error 255 too).


Maybe I have forgotten symlinks.
If you have a list of symlinks to check, let me known,

Emmanuel.


Bug#801973: [Pkg-roundcube-maintainers] Bug#801973: error 255 on package configuration

2015-11-03 Thread e-mmanuel

Here are my symlinks :

/usr/share/roundcube
0 lrwxrwxrwx 1 root root 46 oct.   6 15:19 
plugins/jqueryui/config.inc.php -> 
/etc/roundcube/plugins/jqueryui/config.inc.php


/var/lib/roundcube
0 lrwxrwxrwx  1 root root   14 sept. 11 08:43 config -> /etc/roundcube/
0 lrwxrwxrwx  1 root root   23 oct.   6 15:19 .htaccess -> 
/etc/roundcube/htaccess
0 lrwxrwxrwx  1 root root   30 oct.   6 15:19 index.php -> 
/usr/share/roundcube/index.php
0 lrwxrwxrwx  1 root root   19 sept. 11 08:43 logs -> 
../../log/roundcube/

4 drwxr-xr-x  2 root root 4096 sept. 16 20:53 plugins/
0 lrwxrwxrwx  1 root root   28 sept. 11 08:43 program -> 
/usr/share/roundcube/program/
0 lrwxrwxrwx  1 root root   31 oct.   6 15:19 robots.txt -> 
/usr/share/roundcube/robots.txt

4 drwxr-xr-x  2 root root 4096 sept. 16 20:27 skins/
4 drwxr-xr-x  2 root root 4096 sept. 11 08:43 temp/

/var/lib/roundcube/plugins:
0 lrwxrwxrwx 1 root root   51 sept. 11 08:43 
filesystem_attachments -> 
/usr/share/roundcube/plugins/filesystem_attachments/
0 lrwxrwxrwx 1 root root   37 sept. 16 20:53 filters -> 
/usr/share/roundcube/plugins/filters//
0 lrwxrwxrwx 1 root root   37 sept. 11 08:43 jqueryui -> 
/usr/share/roundcube/plugins/jqueryui/
0 lrwxrwxrwx 1 root root   51 sept. 16 20:53 
pfadmin_autoresponder -> 
/usr/share/roundcube/plugins/pfadmin_autoresponder//


/var/lib/roundcube/skins:
0 lrwxrwxrwx 1 root root   34 sept. 11 08:43 classic -> 
/usr/share/roundcube/skins/classic/
0 lrwxrwxrwx 1 root root   32 sept. 11 08:43 larry -> 
/usr/share/roundcube/skins/larry/


The problem could be the // at the end of two lines or the autoresponder...
Emmanuel.


Bug#801973: [Pkg-roundcube-maintainers] Bug#801973: error 255 on package configuration

2015-11-03 Thread e-mmanuel

I've just verified on my second server.
No filter or autoresponder installed and I've had the problem on the 
upgrade.


Le 03/11/2015 18:57, e-mmanuel a écrit :

Here are my symlinks :

/usr/share/roundcube
0 lrwxrwxrwx 1 root root 46 oct.   6 15:19 
plugins/jqueryui/config.inc.php -> 
/etc/roundcube/plugins/jqueryui/config.inc.php


/var/lib/roundcube
0 lrwxrwxrwx  1 root root   14 sept. 11 08:43 config -> 
/etc/roundcube/
0 lrwxrwxrwx  1 root root   23 oct.   6 15:19 .htaccess -> 
/etc/roundcube/htaccess
0 lrwxrwxrwx  1 root root   30 oct.   6 15:19 index.php -> 
/usr/share/roundcube/index.php
0 lrwxrwxrwx  1 root root   19 sept. 11 08:43 logs -> 
../../log/roundcube/

4 drwxr-xr-x  2 root root 4096 sept. 16 20:53 plugins/
0 lrwxrwxrwx  1 root root   28 sept. 11 08:43 program -> 
/usr/share/roundcube/program/
0 lrwxrwxrwx  1 root root   31 oct.   6 15:19 robots.txt -> 
/usr/share/roundcube/robots.txt

4 drwxr-xr-x  2 root root 4096 sept. 16 20:27 skins/
4 drwxr-xr-x  2 root root 4096 sept. 11 08:43 temp/

/var/lib/roundcube/plugins:
0 lrwxrwxrwx 1 root root   51 sept. 11 08:43 
filesystem_attachments -> 
/usr/share/roundcube/plugins/filesystem_attachments/
0 lrwxrwxrwx 1 root root   37 sept. 16 20:53 filters -> 
/usr/share/roundcube/plugins/filters//
0 lrwxrwxrwx 1 root root   37 sept. 11 08:43 jqueryui -> 
/usr/share/roundcube/plugins/jqueryui/
0 lrwxrwxrwx 1 root root   51 sept. 16 20:53 
pfadmin_autoresponder -> 
/usr/share/roundcube/plugins/pfadmin_autoresponder//


/var/lib/roundcube/skins:
0 lrwxrwxrwx 1 root root   34 sept. 11 08:43 classic -> 
/usr/share/roundcube/skins/classic/
0 lrwxrwxrwx 1 root root   32 sept. 11 08:43 larry -> 
/usr/share/roundcube/skins/larry/


The problem could be the // at the end of two lines or the 
autoresponder...

Emmanuel.




Bug#801973: [Pkg-roundcube-maintainers] Bug#801973: error 255 on package configuration

2015-11-12 Thread e-mmanuel

Hello,
Same behavior during the upgrade to 1.1.3+dfsg.1-1.
With "set -x" option in /var/lib/dpkg/info/roundcube-core.postinst, the 
upgrade has no error !


Here is the output :

Paramétrage de roundcube-core (1.1.3+dfsg.1-1) ...
+ . /usr/share/debconf/confmodule
+ [ !  ]
+ PERL_DL_NONLAZY=1
+ export PERL_DL_NONLAZY
+ [  ]
+ exec /usr/share/debconf/frontend /var/lib/dpkg/info/roundcube-core.postinst 
configure 1.1.2+dfsg.1-5
+ . /usr/share/debconf/confmodule
+ [ ! 1 ]
+ [ -z  ]
+ exec
+ [  ]
+ exec
+ DEBCONF_REDIR=1
+ export DEBCONF_REDIR
+ . /usr/share/dbconfig-common/dpkg/postinst
+ dbc_generate_include=php:/etc/roundcube/debian-db.php
+ dbc_generate_include_owner=root:www-data
+ dbc_generate_include_perms=640
+ dbc_dbfile_owner=www-data:www-data
+ dbc_dbfile_perms=0660
+ dbc_dbuser=roundcube
+ dbc_dbname=roundcube
+ dbc_go roundcube configure 1.1.2+dfsg.1-5
+ local importing_from_non_dbc upgrading reconfiguring f tsubstfile 
upgrades_pending dbc_dumpfile _dbc_asuser reinstall nowtime need_adminpw
+ . /usr/share/dbconfig-common/dpkg/common
+ . /usr/share/dbconfig-common/internal/common
+ [  ]
+ _dbc_logfile=/var/log/dbconfig-common/dbc.log
+ _dbc_debug (postinst) dbc_go() roundcube configure 1.1.2+dfsg.1-5
+ [  ]
+ dbc_config roundcube configure 1.1.2+dfsg.1-5
+ _dbc_debug dbc_config() roundcube configure 1.1.2+dfsg.1-5
+ [  ]
+ dbc_share=/usr/share/dbconfig-common
+ dbc_package=roundcube
+ echo roundcube
+ cut -d_ -f1
+ dbc_basepackage=roundcube
+ dbc_command=configure
+ dbc_oldversion=1.1.2+dfsg.1-5
+ _dbc_sanity_check package command
+ [ 2 -ne 0 ]
+ [ -z roundcube ]
+ shift
+ [ 1 -ne 0 ]
+ [ -z configure ]
+ shift
+ [ 0 -ne 0 ]
+ dbc_confdir=/etc/dbconfig-common
+ dbc_globalconfig=/etc/dbconfig-common/config
+ dbc_packageconfig=/etc/dbconfig-common/roundcube.conf
+ dbc_standard_templates=database-type dbconfig-install dbconfig-upgrade 
dbconfig-remove dbconfig-reinstall password-confirm app-password-confirm purge 
upgrade-backup passwords-do-not-match install-error upgrade-error remove-error 
internal/reconfiguring internal/skip-preseed missing-db-package-error
+ dbc_mysql_templates=mysql/method remote/host remote/newhost mysql/app-pass 
mysql/admin-user mysql/admin-pass remote/port db/dbname db/app-user
+ dbc_pgsql_templates=pgsql/method remote/host remote/newhost pgsql/app-pass 
pgsql/admin-user pgsql/admin-pass remote/port pgsql/authmethod-admin 
pgsql/authmethod-user pgsql/changeconf pgsql/manualconf db/dbname db/app-user 
pgsql/no-empty-passwords
+ dbc_sqlite_templates=db/dbname db/basepath
+ dbc_all_supported_dbtypes=mysql pgsql sqlite sqlite3
+ dbc_authenticated_dbtypes=mysql pgsql
+ dbc_remote_dbtypes=mysql pgsql
+ dbc_fs_dbtypes=sqlite sqlite3
+ [ -f /etc/dbconfig-common/config ]
+ . /etc/dbconfig-common/config
+ dbc_remember_admin_pass=false
+ dbc_remote_questions_default=false
+ [ !  ]
+ dbc_prio_low=low
+ [ !  ]
+ dbc_prio_medium=medium
+ [ !  ]
+ dbc_prio_high=high
+ [ !  ]
+ dbc_prio_critical=critical
+ [ false = true ]
+ dbc_remote_questions_priority=low
+ dbc_default_pgsql_authmethod_admin=ident
+ dbc_set_dbtype_defaults
+ _dbc_debug dbc_set_dbtype_defaults()
+ [  ]
+ [  ]
+ dbc_default_basepath=
+ dbc_db_installed_cmd=dbc__db_installed
+ dbc_register_templates=database-type dbconfig-install dbconfig-upgrade 
dbconfig-remove dbconfig-reinstall password-confirm app-password-confirm purge 
upgrade-backup passwords-do-not-match install-error upgrade-error remove-error 
internal/reconfiguring internal/skip-preseed missing-db-package-error 
mysql/method remote/host remote/newhost mysql/app-pass mysql/admin-user 
mysql/admin-pass remote/port db/dbname db/app-user pgsql/method remote/host 
remote/newhost pgsql/app-pass pgsql/admin-user pgsql/admin-pass remote/port 
pgsql/authmethod-admin pgsql/authmethod-user pgsql/changeconf pgsql/manualconf 
db/dbname db/app-user pgsql/no-empty-passwords db/dbname db/basepath
+ [  ]
+ dbc_dgi_on_manual=true
+ [ configure = configure ]
+ dbc_read_package_debconf
+ local tmp_dballow
+ _dbc_debug dbc_read_package_debconf()
+ [  ]
+ _dbc_sanity_check package
+ [ 1 -ne 0 ]
+ [ -z roundcube ]
+ shift
+ [ 0 -ne 0 ]
+ [ !  ]
+ db_get roundcube/database-type
+ _db_cmd GET roundcube/database-type
+ _db_internal_IFS=

+ IFS=
+ printf %s\n GET roundcube/database-type
+ IFS=

+ IFS=
 read -r _db_internal_line
+ RET=mysql
+ return 0
+ dbc_dbtype=mysql
+ dbc_set_dbtype_defaults mysql
+ _dbc_debug dbc_set_dbtype_defaults() mysql
+ [  ]
+ [  ]
+ dbc_default_basepath=
+ dbc_db_installed_cmd=dbc_mysql_db_installed
+ . /usr/share/dbconfig-common/internal/mysql
+ . /usr/share/dbconfig-common/internal/common
+ [ /var/log/dbconfig-common/dbc.log ]
+ dbc_createuser_cmd=dbc_mysql_createuser
+ dbc_checkuser_cmd=dbc_mysql_check_user
+ dbc_createdb_cmd=dbc_mysql_createdb
+ dbc_dropdb_cmd=dbc_mysql_dropdb
+ dbc_dropuser_cmd=dbc_mysql_dropuser
+ dbc_sqlexec_cmd=dbc_mysql_exec_command
+ dbc_sqlfile_cmd=dbc_mysql_exec_file
+ dbc_dump_cmd=dbc_mysql_dump
+ dbc_register_templates=database-t