Error
RequestError: Unable to load ConfigEditor?processAction=databaseHealthCheck&pwmFormID=5Y7iBNJqgD0JHlSPlcWsldMCcggbeH3J14ffaab7dd7BIkXN&preventCache=1443020023873 status: 0
Clicking OK only brings me back to the database configuration editor page. Health status does not display on the Configuration Manager, only showing the following error with red background:
unable to load health data from server
9/23/2015, 10:59:15 AM retry
Removing the driver from Configuration Editor fixes the health display issues, but I can't connect to my DB without it.
Checking the PWM logs I see that java has a few exceptions thrown:
2015-09-23T10:47:54Z, ERROR, filter.ApplicationStatusFilter, error while trying to detect application status: javax.servlet.ServletException: Servlet execution threw an exception
2015-09-23T10:47:54Z, ERROR, filter.ApplicationStatusFilter, unable to satisfy incoming request, application is not available
I can attach the full stacktrace if need be, but I did find this piece of the trace to be of interest:
Caused by: java.lang.RuntimeException: Can't load resource bundle due to underlying exception java.util.MissingResourceException: Can't find bundle for base name com.mysql.jdbc.LocalizedErrorMessages, locale en
at com.mysql.jdbc.Messages.<clinit>(Messages.java:54)
... 70 more
Caused by: java.util.MissingResourceException: Can't find bundle for base name com.mysql.jdbc.LocalizedErrorMessages, locale en
at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
at java.util.ResourceBundle.getBundleImpl(Unknown Source)
at java.util.ResourceBundle.getBundle(Unknown Source)
at com.mysql.jdbc.Messages.<clinit>(Messages.java:52)
... 70 more
Googling this error shows a multitude of solutions for different Java applications, however since I'm not a developer, I'm not sure how (or even IF) it applies to the PWM application.
Any assistance would be greatly appreciated as I'm looking forward to deploying this software to my userbase ASAP.
Thanks Jason, but I do have the .jar file loaded:
I'm hoping to bump this thread back up for some assistance. I've attempted to connect mySQL to PWM on three different
servers now, the first two being Windows 2012r2 and the third being an
Ubuntu Server 14.04 machine with the latest .war file, jdk 1.7.0_85, and mySQL 5.5.46 (Ubuntu). Each time I
attempt to upload the jdbc driver using PWM's web config, I receive the
same message:
RequestError: Unable to load
ConfigEditor?processAction=databaseHealthCheck&pwmFormID=Cmnl5bEOeJIH17qvS3WtMVD7zNR4bTX7150ed7dd0abSifIy&
preventCache=1447093602461
status: 0
This also causes PWM's health statistics to not
show on the config manager page, only showing the message 'Unable to
load health data'. I've tried multiple iterations of the driver, 5.0.8, 5.1.36,
5.1.37, but all versions gave the same message as above when attempting
to test the database connectivity using the config. Is there any correlation between jdk and jdbc driver versions that might be causing this? I don't want to run the PWM database as LocaDB if I don't have to, but it seems I have no choice at the moment. I haven't tried loading an other databases (SQL, PostGres, etc) to see if this might have a resolution. Is there a way to bypass the web config and upload the driver manually?
For my Ubuntu box I'm using v5.1.37 found here: http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.37.zip.
I unzipped it as instructed and tried uploading the .jar file inside through config manager. That's when I receive the error.
Good news though. I placed the .jar file manually in the directory as specified below, changed my connection string to use
jdbc:mysql://localhost:3306/pwm instead of 127.0.0.1 or the server's IP and I get a successful connection. I'd still like to find out why the error appeared as it did to help any other folks having the same issues.
I meant that I would be using the LocalDB to hold responses versus using MySQL, as I would've liked. Apologies for the confusion.