Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-60313

Confusing error message when MySQL API plugin isn't installed


    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Trivial
    • Resolution: Unresolved
    • Component/s: pipeline-maven-plugin
    • Labels:
    • Environment:
      Jenkins 2.190.3 LTS, Pipeline Maven Plugin 3.8.2, MySQL Database Plugin 1.3
    • Similar Issues:


      I just encountered issue JENKINS-54587, but had to search online to resolve it as the error message in the log from the plug-in is incorrect. The log message states:

      2019-11-28 08:43:45.873+0000 [id=206]   INFO    hudson.model.AsyncPeriodicWork$1#run: Finished DockerContainerWatchdog Asynchronous Periodic Work. 7 ms
      2019-11-28 08:43:50.207+0000 [id=14]    WARNING o.j.p.p.m.GlobalPipelineMavenConfig#getDao: Exception creating database dao, skip
      java.lang.RuntimeException: MySql driver 'com.mysql.cj.jdbc.Driver' not found. Please install the 'MySQL Database Plugin' to install the MySql driver
              at org.jenkinsci.plugins.pipeline.maven.GlobalPipelineMavenConfig.getDao(GlobalPipelineMavenConfig.java:322)
              at org.jenkinsci.plugins.pipeline.maven.NonProductionGradeDatabaseWarningAdministrativeMonitor.isActivated(NonProductionGradeDatabaseWarningAdministrativeMonitor.java:19)

      So I went to check my plug-ins and confirmed I have the MySQL Database Plugin installed. After a bit of googling, I couldn't find a solution, so looked at the plug-in configuration. When testing the plug-in configuration it states that I should install the 'MySQL API Plugin' - I didn't have this installed and this resolved the issue.

      The issue is just a misleading error message. Thanks for all the hard work on Jenkins and the plugins!



          There are no comments yet on this issue.


            • Assignee:
              cleclerc Cyrille Le Clerc
              josh_watson Josh Watson
            • Votes:
              0 Vote for this issue
              1 Start watching this issue


              • Created: