Hi guys,
I’m trying to update my current (vm) install to the latest version and it miserably fails:
Configuring postgresql-common
-----------------------------
Obsolete major version 9.1
The PostgreSQL version 9.1 is obsolete, but the server or client packages
are still installed. Please install the latest packages (postgresql-9.4 and
postgresql-client-9.4) and upgrade the existing clusters with
pg_upgradecluster (see manpage).
Please be aware that the installation of postgresql-9.4 will automatically
create a default cluster 9.4/main. If you want to upgrade the 9.1/main
cluster, you need to remove the already existing 9.4 cluster (pg_dropcluster
--stop 9.4 main, see manpage for details).
The old server and client packages are no longer supported. After the
existing clusters are upgraded, the postgresql-9.1 and postgresql-client-9.1
packages should be removed.
Please see /usr/share/doc/postgresql-common/README.Debian.gz for details.
Creating config file /etc/postgresql-common/createcluster.conf with new version
insserv: warning: script 'K01univention-system-setup-boot' missing LSB tags and overrides
insserv: warning: script 'K01univention-saml' missing LSB tags and overrides
insserv: warning: script 'K01univention-s4-connector' missing LSB tags and overrides
insserv: warning: script 'K02bind9' missing LSB tags and overrides
insserv: warning: script 'K01univention-management-console-web-server' missing LSB tags and overrides
insserv: warning: script 'univention-system-setup-boot' missing LSB tags and overrides
insserv: warning: script 'univention-s4-connector' missing LSB tags and overrides
insserv: warning: script 'univention-management-console-web-server' missing LSB tags and overrides
insserv: warning: script 'univention-system-setup-boot-prepare' missing LSB tags and overrides
insserv: warning: script 'bind9' missing LSB tags and overrides
insserv: warning: script 'univention-saml' missing LSB tags and overrides
Starting PostgreSQL 9.1 database server: mainThe PostgreSQL server failed to start. Please check the log output: 2017-04-28 12:59:05 CEST LOG: could not open configuration file "/etc/postgresql/9.1/main/pg_hba.conf": No such file or directory 2017-04-28 12:59:05 CEST FATAL: could not load pg_hba.conf ... failed!
failed!
invoke-rc.d: initscript postgresql, action "start" failed.
dpkg: error processing package postgresql-common (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up postgresql-client-9.1 (9.1.24-0.A~4.2.0.201703301214) ...
dpkg: dependency problems prevent configuration of postgresql-9.1:
postgresql-9.1 depends on postgresql-common (>= 115~); however:
Package postgresql-common is not configured yet.
dpkg: error processing package postgresql-9.1 (--configure):
dependency problems - leaving unconfigured
#### Some stuff still running until:
Errors were encountered while processing:
postgresql-common
postgresql-9.1
E: Sub-process /usr/bin/dpkg returned an error code (1)
Error: Failed to execute "apt-get -o DPkg::Options::=--force-confold -o DPkg::Options::=--force-overwrite -o DPkg::Options::=--force-overwrite-dir --trivial-only=no --assume-yes --quiet=1 -u dist-upgrade"
while the DHCP mocks about the config file:
dhcpd self-test failed. Please fix /etc/dhcp/dhcpd.conf.
The error was:
Internet Systems Consortium DHCP Server 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Config file: /etc/dhcp/dhcpd.conf
Database file: /var/lib/dhcp/dhcpd.leases
PID file: /var/run/dhcpd.pid
Configuration file errors encountered -- exiting
I don’t see a big problem in the DHCP failing as I could just overwrite the configuration. But the PostgreSQL is really a showstopper. Any ideas on how to work around that?
btw - looks like I hit a known bug: http://forge.univention.org/bugzilla/show_bug.cgi?id=44160