[Piuparts-commits] [piuparts] 16/23: detect more db_setup issues
Holger Levsen
holger at layer-acht.org
Tue Jan 17 12:39:47 UTC 2017
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch develop
in repository piuparts.
commit 91d628ac6c6dd68eb92268fc5f8bd8f43a8ba6b8
Author: Andreas Beckmann <anbe at debian.org>
Date: Mon Jan 16 13:24:00 2017 +0100
detect more db_setup issues
createuser: could not connect to database postgres: could not connect to server: No such file or directory
Non-default port in /etc/postgresql/.*/main/postgresql.conf
dbconfig-common: .* configure: ignoring errors from here forwards
Signed-off-by: Andreas Beckmann <anbe at debian.org>
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
debian/changelog | 1 +
known_problems/db_setup_error.conf | 2 +-
known_problems/db_setup_issue.conf | 2 +-
master-bin/detect_piuparts_issues.in | 1 +
4 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index fec1ea1..a45edee 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -17,6 +17,7 @@ piuparts (0.75) UNRELEASED; urgency=medium
* Add/adjust some exceptions for ancient packages.
* scripts/pre_distupgrade_zz_database-server: Run pg_upgradecluster during
dist-upgrades.
+ * Detect more database setup issues.
-- Andreas Beckmann <anbe at debian.org> Sun, 15 Jan 2017 20:34:58 +0100
diff --git a/known_problems/db_setup_error.conf b/known_problems/db_setup_error.conf
index 7554c0e..1514fa6 100644
--- a/known_problems/db_setup_error.conf
+++ b/known_problems/db_setup_error.conf
@@ -1,7 +1,7 @@
#
# detect packages with failed to install due to problems configuring the db - see #595652
#
-PATTERN='(warning: database package not installed|dbconfig-common: .* configure: (aborted|noninteractive fail).|updating database schema for .*...command failed with code 0|psql: could not connect to server: No such file or directory|DBI connect.* failed: could not connect to server|pg_pconnect\(\): Unable to connect to PostgreSQL server|Unable to connect to MySQL server|unable to connect to mysql server)'
+PATTERN='(warning: database package not installed|dbconfig-common: .* configure: (aborted|noninteractive fail|ignoring errors from here forwards)|updating database schema for .*...command failed with code 0|(postgres|psql): could not connect to server: No such file or directory|DBI connect.* failed: could not connect to server|pg_pconnect\(\): Unable to connect to PostgreSQL server|Non-default port in /etc/postgresql/.*/main/postgresql.conf|Unable to connect to MySQL server|unable to con [...]
WHERE='fail bugged affected'
ISSUE=0
HEADER='Packages with failed logs because installation failed because no database could be connected.'
diff --git a/known_problems/db_setup_issue.conf b/known_problems/db_setup_issue.conf
index 2405b27..5d48839 100644
--- a/known_problems/db_setup_issue.conf
+++ b/known_problems/db_setup_issue.conf
@@ -1,7 +1,7 @@
#
# detect packages with failed to install due to problems configuring the db - see #595652
#
-PATTERN='(warning: database package not installed|dbconfig-common: .* configure: (aborted|noninteractive fail).|updating database schema for .*...command failed with code 0|psql: could not connect to server: No such file or directory|DBI connect.* failed: could not connect to server|pg_pconnect\(\): Unable to connect to PostgreSQL server|Unable to connect to MySQL server|unable to connect to mysql server)'
+PATTERN='(warning: database package not installed|dbconfig-common: .* configure: (aborted|noninteractive fail|ignoring errors from here forwards)|updating database schema for .*...command failed with code 0|(postgres|psql): could not connect to server: No such file or directory|DBI connect.* failed: could not connect to server|pg_pconnect\(\): Unable to connect to PostgreSQL server|Non-default port in /etc/postgresql/.*/main/postgresql.conf|Unable to connect to MySQL server|unable to con [...]
WHERE='pass'
ISSUE=1
HEADER='Packages with failed logs because installation failed because no database could be connected.'
diff --git a/master-bin/detect_piuparts_issues.in b/master-bin/detect_piuparts_issues.in
index 3fe6506..b334e96 100755
--- a/master-bin/detect_piuparts_issues.in
+++ b/master-bin/detect_piuparts_issues.in
@@ -64,6 +64,7 @@ for SECTION in $SECTIONS ; do
rgrep -l -e 'Failed to connect to postgres.' $MASTER/$SECTION/$subdir >> $FILE
rgrep -l -e 'psql: FATAL: password authentication failed for user' $MASTER/$SECTION/$subdir >> $FILE
rgrep -l -e 'createuser: could not connect to database postgres: could not connect to server: No such file or directory' $MASTER/$SECTION/$subdir >> $FILE
+ rgrep -l -e 'Non-default port in /etc/postgresql/.*/main/postgresql.conf' $MASTER/$SECTION/$subdir >> $FILE
rgrep -l -e 'Firebird .* server already running.' $MASTER/$SECTION/$subdir >> $FILE
rgrep -l -e 'E: Command line option --allow-downgrades is not understood' $MASTER/$SECTION/$subdir >> $FILE
find $MASTER/$SECTION/$subdir -name '*.log' -size 0 >> $FILE
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git
More information about the Piuparts-commits
mailing list