Package: dbconfig-common Version: 1.8.58 Severity: important So, I upgraded dbconfig-common and tt-rss and dpkg-reconfigure is still failing. Now it tries to connect to the local server as the admin via TCP even though I asked it to use ident. It also continues even after I said "Abort" (four times) and that's probably how I got my DB dropped (without a backup, as it failed to produce one; thankfully I have an older periodical one). A sample session with debug enabled:
# dpkg-reconfigure tt-rss (prerm) dbc_go() tt-rss upgrade 15.7+git20151123+dfsg-1. dbc_config() tt-rss upgrade 15.7+git20151123+dfsg-1. dbc_set_dbtype_defaults() . dbc_read_package_config() . dbc_set_dbtype_defaults() pgsql. (config) dbc_go() tt-rss reconfigure 15.7+git20151123+dfsg-1. dbc_config() tt-rss reconfigure 15.7+git20151123+dfsg-1. dbc_set_dbtype_defaults() . dbc_register_debconf() . dbc_read_package_config() . dbc_preseed_package_debconf() . dbc_forget_app_password() . dbc_detect_supported_dbtype() mysql. dbc_detect_installed_dbtype() mysql. _dbc_detect_installed_dbtype() mysql. dbc_detect_supported_dbtype() pgsql. dbc_detect_installed_dbtype() pgsql. _dbc_detect_installed_dbtype() pgsql. dbc_config() tt-rss reconfigure 15.7+git20151123+dfsg-1. dbc_set_dbtype_defaults() pgsql. dbc_register_debconf() . dbc_get_app_pass() . (postinst) dbc_go() tt-rss configure 15.7+git20151123+dfsg-1. dbc_config() tt-rss configure 15.7+git20151123+dfsg-1. dbc_set_dbtype_defaults() . dbc_read_package_debconf() . dbc_set_dbtype_defaults() pgsql. settings determined from dbc_read_package_debconf:. dbc_install=true. dbc_upgrade=true. dbc_remove=. dbc_dbtype=pgsql. dbc_dbuser=ttrss. dbc_dbpass=XXXXXXXX. dbc_dballow=. dbc_dbadmin=postgres. dbc_dbadmpass=. dbc_dbserver=127.0.0.1. dbc_dbport=. dbc_dbname=ttrss. dbc_authmethod_admin=ident. dbc_authmethod_user=password. dbc_ssl=. dbc_write_package_config() . dbconfig-common: writing config to /etc/dbconfig-common/tt-rss.conf Replacing config file /etc/dbconfig-common/tt-rss.conf with new version Replacing config file /etc/tt-rss/database.php with new version dbc_read_package_config() . dbc_detect_installed_dbtype() pgsql. _dbc_detect_installed_dbtype() pgsql. su -s /bin/sh root -c "env HOME='/tmp/dbconfig-common.psql_home.pRsfSG' PGPASSFILE='/tmp/dbconfig-common.psql_home.pRsfSG/.pgpass' PGSSLMODE='prefer' psql --set \"ON_ERROR_STOP=1\" -q -h '127.0.0.1' -U 'postgres' template1" 2>&1. unable to connect to postgresql server. error encountered creating user: Пароль пользователя postgres: psql: fe_sendauth: no password supplied dbconfig-common: tt-rss configure: aborted. dbc_postinst_cleanup() . dbc_forget_dbadmin_password() . dbconfig-common: flushing administrative password dbc_forget_app_password() . dbconfig-common: dumping pgsql database ttrss to /var/tmp/tt-rss.ttrss.2015-12-06-16.28.pgsql.Jh6ftQ. su -s /bin/sh root -c "env HOME='/tmp/dbconfig-common.psql_home.ogLCOZ' PGPASSFILE='/tmp/dbconfig-common.psql_home.ogLCOZ/.pgpass' PGSSLMODE='prefer' psql --set \"ON_ERROR_STOP=1\" -q -h '127.0.0.1' -U 'postgres' template1" 2>&1. unable to connect to postgresql server. error encountered dumping old database: Пароль пользователя postgres: psql: fe_sendauth: no password supplied dbconfig-common: tt-rss configure: aborted. dbc_postinst_cleanup() . dbc_forget_dbadmin_password() . dbconfig-common: flushing administrative password dbc_forget_app_password() . dbconfig-common: dropping old pgsql database ttrss. su -s /bin/sh root -c "env HOME='/tmp/dbconfig-common.psql_home.6RehsH' PGPASSFILE='/tmp/dbconfig-common.psql_home.6RehsH/.pgpass' PGSSLMODE='prefer' psql --set \"ON_ERROR_STOP=1\" -q -h '127.0.0.1' -U 'postgres' template1" 2>&1. unable to connect to postgresql server. error encountered dropping old database: Пароль пользователя postgres: psql: fe_sendauth: no password supplied dbconfig-common: tt-rss configure: aborted. dbc_postinst_cleanup() . dbc_forget_dbadmin_password() . dbconfig-common: flushing administrative password dbc_forget_app_password() . _dbc_detect_installed_dbtype() psql. su -s /bin/sh root -c "env HOME='/tmp/dbconfig-common.psql_home.SoZ9zX' PGPASSFILE='/tmp/dbconfig-common.psql_home.SoZ9zX/.pgpass' PGSSLMODE='prefer' psql --set \"ON_ERROR_STOP=1\" -q -h '127.0.0.1' -U 'postgres' template1" 2>&1. unable to connect to postgresql server. error encountered creating database: Пароль пользователя postgres: psql: fe_sendauth: no password supplied dbconfig-common: tt-rss configure: aborted. dbc_postinst_cleanup() . dbc_forget_dbadmin_password() . dbconfig-common: flushing administrative password dbc_forget_app_password() . populating database via sql... su -s /bin/sh root -c "env HOME='/tmp/dbconfig-common.psql_home.vJwT8d' PGPASSFILE='/tmp/dbconfig-common.psql_home.vJwT8d/.pgpass' PGSSLMODE='prefer' psql --set \"ON_ERROR_STOP=1\" -q -h '127.0.0.1' -U 'ttrss' ttrss" 2>&1. error encountered populating database: psql: FATAL: password authentication failed for user "ttrss" FATAL: password authentication failed for user "ttrss" пароль получен из файла "/tmp/dbconfig-common.psql_home.vJwT8d/.pgpass" dbconfig-common: tt-rss configure: aborted. dbc_postinst_cleanup() . dbc_forget_dbadmin_password() . dbconfig-common: flushing administrative password dbc_forget_app_password() . done. dbc_postinst_cleanup() . dbc_forget_dbadmin_password() . dbconfig-common: flushing administrative password dbc_forget_app_password() . apache2_invoke 50-tt-rss: already enabled -- System Information: Debian Release: stretch/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental') Architecture: i386 (x86_64) Kernel: Linux 4.1.5-x86_64-linode61 (SMP w/1 CPU core) Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages dbconfig-common depends on: ii debconf [debconf-2.0] 1.5.58 ii ucf 3.0031 dbconfig-common recommends no packages. Versions of packages dbconfig-common suggests: ii postgresql-client-9.3 [postgresql-client] 9.3.4-2 -- debconf information: dbconfig-common/pgsql/method: TCP/IP dbconfig-common/pgsql/manualconf: dbconfig-common/dbconfig-install: true dbconfig-common/purge: false dbconfig-common/mysql/admin-user: root dbconfig-common/dbconfig-upgrade: true * dbconfig-common/remember-admin-pass: false dbconfig-common/dbconfig-remove: true dbconfig-common/pgsql/revertconf: false dbconfig-common/upgrade-backup: true dbconfig-common/database-type: dbconfig-common/passwords-do-not-match: dbconfig-common/pgsql/admin-user: postgres dbconfig-common/missing-db-package-error: abort dbconfig-common/pgsql/no-user-choose-other-method: dbconfig-common/install-error: abort * dbconfig-common/remote-questions-default: false dbconfig-common/pgsql/changeconf: false dbconfig-common/dbconfig-reinstall: false dbconfig-common/db/basepath: dbconfig-common/pgsql/no-empty-passwords: dbconfig-common/db/dbname: dbconfig-common/internal/reconfiguring: false dbconfig-common/pgsql/authmethod-user: password dbconfig-common/remove-error: abort dbconfig-common/mysql/method: Unix socket dbconfig-common/remote/port: dbconfig-common/internal/skip-preseed: false dbconfig-common/db/app-user: dbconfig-common/pgsql/authmethod-admin: ident dbconfig-common/remote/host: dbconfig-common/remote/newhost: dbconfig-common/upgrade-error: abort