Bug#318599: mydns-mysql: hangs when purging the package
Hi, Philipp Kern wrote: > On Sat, 2005-07-16 at 15:02 +0200, Matthijs Mohlmann wrote: > >>I got never asked for the purge_db question. > Yes, i saw it. > > You got asked while you installed it: > >>-- debconf information: > > [snip] > >> mydns/purge_db: true > Sorry that i didn't catch that earlier. > [snip] > > What's the problem anyway? Does the purge run just hang? > The purge run just hang yes. > Kind regards, > Philipp Kern Regards, Matthijs Mohlmann signature.asc Description: OpenPGP digital signature
Bug#318599: mydns-mysql: hangs when purging the package
On Sat, 2005-07-16 at 15:02 +0200, Matthijs Mohlmann wrote: > I got never asked for the purge_db question. You got asked while you installed it: > -- debconf information: [snip] > mydns/purge_db: true [snip] What's the problem anyway? Does the purge run just hang? Kind regards, Philipp Kern signature.asc Description: This is a digitally signed message part
Bug#318599: mydns-mysql: hangs when purging the package
Package: mydns-mysql Version: 1.0.0-4 Severity: normal The package doesn't purge correctly: I set "set -x" in the postrm script: nbosiris:~# apt-get remove --purge mydns-mysql Reading Package Lists... Done Building Dependency Tree... Done The following packages will be REMOVED: mydns-mysql* 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. Need to get 0B of archives. After unpacking 1520kB disk space will be freed. Do you want to continue? [Y/n] (Reading database ... 388052 files and directories currently installed.) Removing mydns-mysql ... + test -e /usr/share/debconf/confmodule + . /usr/share/debconf/confmodule ++ '[' '!' '' ']' ++ PERL_DL_NONLAZY=1 ++ export PERL_DL_NONLAZY ++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/mydns-mysql.postrm remove + test -e /usr/share/debconf/confmodule + . /usr/share/debconf/confmodule ++ '[' '!' 1 ']' ++ '[' -z '' ']' ++ exec ++ DEBCONF_REDIR=1 ++ export DEBCONF_REDIR + db_version 2.0 + _db_cmd 'VERSION 2.0' + echo 'VERSION 2.0' + local 'IFS= ' + local _LINE + read -r _LINE + RET=2.0 + return 0 + cleanup + '[' -n ']' + rm -rf + '[' remove = purge ']' + '[' remove = purge ']' + '[' -e /usr/share/debconf/confmodule ']' + db_stop + echo STOP Purging configuration files for mydns-mysql ... + test -e /usr/share/debconf/confmodule + . /usr/share/debconf/confmodule ++ '[' '!' '' ']' ++ PERL_DL_NONLAZY=1 ++ export PERL_DL_NONLAZY ++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/mydns-mysql.postrm purge + test -e /usr/share/debconf/confmodule + . /usr/share/debconf/confmodule ++ '[' '!' 1 ']' ++ '[' -z '' ']' ++ exec ++ DEBCONF_REDIR=1 ++ export DEBCONF_REDIR + db_version 2.0 + _db_cmd 'VERSION 2.0' + echo 'VERSION 2.0' + local 'IFS= ' + local _LINE + read -r _LINE + RET=2.0 + return 0 + get_config + CONF=/etc/mydns.conf + db_get mydns/mysql_server + _db_cmd 'GET mydns/mysql_server' + echo 'GET mydns/mysql_server' + local 'IFS= ' + local _LINE + read -r _LINE + RET=localhost + return 0 + MYSQL_HOST=localhost + db_get mydns/setup + _db_cmd 'GET mydns/setup' + echo 'GET mydns/setup' + local 'IFS= ' + local _LINE + read -r _LINE + RET=true + return 0 + '[' xtrue = xtrue ']' + SETUP=1 + '[' 1 -ne 0 ']' + db_get mydns/mysql_root_user + _db_cmd 'GET mydns/mysql_root_user' + echo 'GET mydns/mysql_root_user' + local 'IFS= ' + local _LINE + read -r _LINE + RET=root + return 0 + MYSQL_ROOT_USER=root + db_get mydns/mysql_root_passwd + _db_cmd 'GET mydns/mysql_root_passwd' + echo 'GET mydns/mysql_root_passwd' + local 'IFS= ' + local _LINE + read -r _LINE + RET=none + return 0 + MYSQL_ROOT_PASSWD=none + db_get mydns/database + _db_cmd 'GET mydns/database' + echo 'GET mydns/database' + local 'IFS= ' + local _LINE + read -r _LINE + RET=mydns + return 0 + DATABASE=mydns + db_get mydns/mysql_user + _db_cmd 'GET mydns/mysql_user' + echo 'GET mydns/mysql_user' + local 'IFS= ' + local _LINE + read -r _LINE + RET=mydns + return 0 + MYSQL_USER=mydns + db_get mydns/mysql_passwd + _db_cmd 'GET mydns/mysql_passwd' + echo 'GET mydns/mysql_passwd' + local 'IFS= ' + local _LINE + read -r _LINE + RET=mydns + return 0 + MYSQL_PASSWD=mydns + db_stop + echo STOP + '[' 1 -ne 0 ']' ++ mktemp /tmp/mydns.my-cnf.XX + MY_CNF=/tmp/mydns.my-cnf.YrTX7T + chmod 0600 /tmp/mydns.my-cnf.YrTX7T ++ echo localhost ++ cut -d: -f1 + mysql_h=localhost ++ echo localhost ++ cut -d: -f2 + mysql_p=localhost + '[' localhost '!=' localhost -a xlocalhost '!=' x ']' + MYSQL_HOSTNAME=localhost + MYSQL_PORT= + echo '[client] host=localhost port= user=root password=none' + MRO=--defaults-file=/tmp/mydns.my-cnf.YrTX7T + MUO=--defaults-file=/tmp/mydns.my-cnf.YrTX7T -umydns -pmydns + '[' 1 -ne 0 ']' + db_input critical mydns/purge_db + _db_cmd 'INPUT critical' mydns/purge_db + echo 'INPUT critical' mydns/purge_db + local 'IFS= ' + local _LINE + read -r _LINE I got never asked for the purge_db question. If i remove the purge_db code it breaks at the debconf purge (db_purge) action. -- System Information: Debian Release: 3.1 Architecture: i386 (i686) Kernel: Linux 2.6.12.2 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages mydns-mysql depends on: ii debconf [debconf-2.0] 1.4.30.13 Debian configuration management sy ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an ii mydns-common 1.0.0-4 DNS server using a SQL database fo ii mysql-client-4.1 [mysq 4.1.11a-4 mysql database client binaries ii zlib1g 1:1.2.2-4.sarge.1 compression library - runtime -- debconf information: * mydns/confirm: (password omitted) * mydns/mysql_root_passwd: (password omitted) * mydns/mysql_passwd: (password omitted) * mydns/mismatch: mydns/no_mysql: false mydns/purge_db: true * mydns/setup: true mydns/no_mysql_message: * mydns/database: mydns * mydns/mysql_root_user: root * mydns/mysql_server: localhost * mydns/mysql_user: mydns -- To UNSUBSCRIBE, email to