I have the same problem for 3 weeks now, the only difference is that I get exit status 1 instead of 7.
When I executed /opt/psa/bin/mysqldump.sh manually for the first time, I got the following error messages:
[: 1: -eq: unexpected operator
/opt/psa/bin/mysqldump.sh: 1: cannot create : Directory nonexistent
/opt/psa/bin/mysqldump.sh: 1: cannot create : Directory nonexistent
To get rid of the "unexpected operator", I edited the mysqldump.sh script like this:
---
function report_problem()
[...]
- if [ $problems_occured -eq 0 ]; then
+ if [ -z "$problems_occured" ]; then
---
function mysql_test_connection()
[...]
- if [ "$?" -eq "0" ]; then
+ if [ "$?" = "0" ]; then
---
- [ "$attempts" -eq "1" ] || sleep 2
+ [ "$attempts" = "1" ] || sleep 2
After that, the "unexpected operator" was gone, but now I get the other error messages 3 times:
/opt/psa/bin/mysqldump.sh: 1: cannot create : Directory nonexistent
/opt/psa/bin/mysqldump.sh: 1: cannot create : Directory nonexistent
/opt/psa/bin/mysqldump.sh: 1: cannot create : Directory nonexistent
I did some debugging (added "set -x" to the beginning of the script), here's the log:
[...]
+ mysql_direct mysql
+ [ 1 = 0 ]
+ [ 60 = 1 ]
+ sleep 2
+ + echomysql_direct mysql
+ [ 1 = 0 ]
+ [ 60 = 1 ]
+ sleep 2
+ echo
+ mysql_direct mysql
+ [ 1 = 0 ]
+ [ 60 = 1 ]
+ sleep 2
+ echo
+ mysql_direct mysql
+ [ 1 = 0 ]
+ [ 60 = 1 ]
+ sleep 2
+ p_echo failed
+ [ -n -o -n -o -z /dev/null ]
+ echo failed
+ return 1
+ die establish test connection
+ PACKAGE_SCRIPT_FAILED=establish test connection
+ [ X != X1 ]
+ printf \a\a
^G^G+ report_problem ERROR while trying to establish test connection Check the error reason(see log file: /dev/null), fix and try again
+ p_echo
+ [ -n -o -n -o -z /dev/null ]
+ echo
+ [ -z ]
/opt/psa/bin/mysqldump.sh: 1: cannot create : Directory nonexistent
+ echo ***** problem report *****
+ p_echo ERROR while trying to establish test connection
+ [ -n -o -n -o -z /dev/null ]
+ echo ERROR while trying to establish test connection
/opt/psa/bin/mysqldump.sh: 1: cannot create : Directory nonexistent
+ echo ERROR while trying to establish test connection
+ p_echo Check the error reason(see log file: /dev/null), fix and try again
+ [ -n -o -n -o -z /dev/null ]
+ echo Check the error reason(see log file: /dev/null), fix and try again
/opt/psa/bin/mysqldump.sh: 1: cannot create : Directory nonexistent
+ echo Check the error reason(see log file: /dev/null), fix and try again
+ p_echo
+ [ -n -o -n -o -z /dev/null ]
+ echo
+ product_log_tail
+ [ -f /dev/null ]
+ return 0
+ send_error_report Problem: ERROR while trying to establish test connection Check the error reason(see log file: /dev/null), fix and try again
+ echo Problem: ERROR while trying to establish+ /opt/psa/admin/bin/send-error-report test connection Check the error reason(see log file: /dev/null), fix and try again
+ install
echo
[...]
Any hint what's going wrong here?