From ad7e8c47ef7dd34fc1034e9b52b581bcf1e25ba1 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 5 Jun 2012 13:22:49 +0000 Subject: [PATCH] Display note that the MySQL connect error isn't an actual problem The: | ERROR 2002 (HY000): Can't connect to local MySQL server through socket ... gets displayed several times, though it's not an issue. Seems to be some async foo or race condition I couldn't identify yet, until it's resolved display a message to the user so nobody thinks that's a real error. From: Michael Prokop --- deployment.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deployment.sh b/deployment.sh index 134f8c4..2696d82 100755 --- a/deployment.sh +++ b/deployment.sh @@ -1257,10 +1257,13 @@ upload_db_dump() { # mysqldump writes errors to stdout, muhaha... if ! grep -q 'Dump completed on' /dump.db ; then - echo "Error: invalid data inside database dump." + echo "Error: invalid data inside database dump." >&2 exit 1 fi + echo "NOTE: you can safely IGNORE the message stating:" + echo " ERROR 2002 (HY000): Can't connect to local MySQL server through socket ..." + echo " listed above. If you're seeing this note here everything went fine." upload_file "/dump.db" }