BDR install broken on Ubuntu 14.04

Started by LOUBRADOU, Rémyabout 10 years ago2 messagesgeneral
Jump to latest
#1LOUBRADOU, Rémy
r.loubradou@adveez.com

Hi,

I have the same issue. It was working fine a month ago. I wrote a cookbook
with chef to install BDR a month ago since then I did not change the
cookbook but now I got this error.

This seem to be the heart of the issue:

Removing obsolete dictionary files:
==> ldev4: * No PostgreSQL clusters exist; see "man pg_createcluster"
==> ldev4: /usr/share/postgresql-common/maintscripts-functions: line
95: db_stop: command not found
==> ldev4: dpkg: error processing package postgresql-bdr-9.4
(--configure):
==> ldev4: subprocess installed post-installation script returned
error exit status 127

Anyone know what's going on ? I'm going to investigate.

Thanks for your replies,

Rémy

#2Roland van Laar
roland@micite.net
In reply to: LOUBRADOU, Rémy (#1)
Re: BDR install broken on Ubuntu 14.04

On 13-01-16 17:48, LOUBRADOU, Rémy wrote:

Hi,

I have the same issue. It was working fine a month ago. I wrote a
cookbook with chef to install BDR a month ago since then I did not
change the cookbook but now I got this error.

This seem to be the heart of the issue:

Removing obsolete dictionary files:
==> ldev4: * No PostgreSQL clusters exist; see "man pg_createcluster"
==> ldev4: /usr/share/postgresql-common/maintscripts-functions: line
95: db_stop: command not found
==> ldev4: dpkg: error processing package postgresql-bdr-9.4
(--configure):
==> ldev4: subprocess installed post-installation script returned
error exit status 127

Anyone know what's going on ? I'm going to investigate.

The debconf source file is missing.
db_stop, stands for debconf stop.

It is supposed to be fixed but it is not.
See this closed issue on Github:
https://github.com/2ndQuadrant/bdr/issues/156

I "fixed" it in ansible by

- installing bdr accepting the fail
- removing the db_stop line
- installing bdr again.

This is the relevant part of my ansible configuration:

- name: install postgresql bdr
apt:
name=postgresql-bdr-9.4-bdr-plugin
state=present
ignore_errors: yes

- name: remove db_stop from postgres postinstall script
lineinfile:
dest=/usr/share/postgresql-common/maintscripts-functions
regexp=db_stop
state=absent

- name: reinstall postgresql bdr to mitigate the db_stop problem
apt:
name=postgresql-bdr-9.4-bdr-plugin
state=present

Regards,

Roland

Thanks for your replies,

Rémy

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general