RemoteDB Error

136 views
Skip to first unread message

Brad Waller

unread,
Feb 2, 2022, 5:23:53 PM2/2/22
to pwm-general

I am building a new PWM box with 2.0 on Ubuntu 20.0.4. Im at a wall trying to use a remote database, getting the following error:
Database Unavailable. If this error occurs repeatedly please contact your help desk. { 5051 ERROR_DB_UNAVAILABLE (database connection is not open) }

When I connect to the DB from the command line of the pwm server, with the same credentials, I can connect. Any ideas? When I tell it to use the LocalDB, it says that LocalDB should only be used for testing.

jason.e...@gmail.com

unread,
Feb 2, 2022, 5:34:11 PM2/2/22
to pwm-general
What is your db server listening on address? Localhost, ip address ? How are you entering this in PWM?

Brad Waller

unread,
Feb 2, 2022, 5:40:09 PM2/2/22
to pwm-general
in the RemoteDB connection settings I have it listed with it's DNS name, the string looks like this:
Capture3.PNG

When I hit Test Connection, the box is blank:

Capture2.PNG

jason.e...@gmail.com

unread,
Feb 2, 2022, 5:51:18 PM2/2/22
to pwm-general
Is MySQL listening on localhost only? Does the user name for database have any hostname restriction set?

Brad Waller

unread,
Feb 2, 2022, 5:55:13 PM2/2/22
to pwm-general
Those are good questions, how would I check that?

Jason Rivard

unread,
Feb 2, 2022, 11:59:29 PM2/2/22
to pwm-general
Also, check the logs during the test.....

Brad Waller

unread,
Feb 3, 2022, 9:40:34 AM2/3/22
to pwm-general
Which logs should I be checking? When I look at catalina-date.log i don't see any errors relating to mysql. I have attached that log.
catalina.2022-02-03.log

Jason Rivard

unread,
Feb 3, 2022, 11:43:19 PM2/3/22
to pwm-general
Nope, not that one, the PWM logs in [applicationPath]/logs.

Brad Waller

unread,
Feb 4, 2022, 12:31:49 PM2/4/22
to pwm-general
that helped. I have found where it was erroring, turns out it didn't like the password I was using. Health has all green now. Thanks!
Reply all
Reply to author
Forward
0 new messages