Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ido-pgsql db import fails on debian #500

Closed
lbetz opened this issue Nov 22, 2018 · 1 comment
Closed

ido-pgsql db import fails on debian #500

lbetz opened this issue Nov 22, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@lbetz
Copy link
Contributor

lbetz commented Nov 22, 2018

Importing db schema of ido-pgsql fails on debian systems

Notice: /Stage[main]/Icinga2::Feature::Idopgsql/Exec[idopgsql-import-schema]/returns: psql: FATAL: password authentication failed for user "icinga2"
Notice: /Stage[main]/Icinga2::Feature::Idopgsql/Exec[idopgsql-import-schema]/returns: FATAL: password authentication failed for user "icinga2"
Error: 'psql -h '127.0.0.1' -U 'icinga2' -p '5432' -d 'icinga2' -w -f /usr/share/icinga2-ido-pgsql/schema/pgsql.sql' returned 2 instead of one of [0]
Error: /Stage[main]/Icinga2::Feature::Idopgsql/Exec[idopgsql-import-schema]/returns: change from 'notrun' to ['0'] failed: 'psql -h '127.0.0.1' -U 'icinga2' -p '5432' -d 'icinga2' -w -f /usr/share/icinga2-ido-pgsql/schema/pgsql.sql' returned 2 instead of one of [0]

Possible Solution

use a response file like
icinga2-ido-pgsql icinga2-ido-pgsql/dbconfig-install boolean false
icinga2-ido-pgsql icinga2-ido-pgsql/enable boolean false

to prevent debian to configure the ido by dbconfig.

@lbetz lbetz self-assigned this Nov 22, 2018
@lbetz lbetz added the bug label Nov 22, 2018
@lbetz lbetz modified the milestones: v2.0.0, v1.3.7 Nov 22, 2018
@lbetz lbetz closed this as completed in 729261b Nov 23, 2018
@lbetz
Copy link
Contributor Author

lbetz commented Nov 26, 2018

On debian 8 (jessie) the problem still exists. Looks like a bug in the package.

Using:
icinga2-ido-pgsql icinga2-ido-pgsql/dbconfig-install boolean false
icinga2-ido-pgsql icinga2-ido-pgsql/enable boolean false

still configures the database via dbconfig.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant