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

Confusing error message when MySQL API plugin isn't installed

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • pipeline-maven-plugin
    • None
    • Jenkins 2.190.3 LTS, Pipeline Maven Plugin 3.8.2, MySQL Database Plugin 1.3

      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!

          [JENKINS-60313] Confusing error message when MySQL API plugin isn't installed

          Josh Watson created issue -
          Josh Watson made changes -
          Description Original: I just encountered the 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:
          {code:java}
          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)
           {code}

          So I went to check my plug-ins and found I have the MySQL Database Plugin installed. After a bit of googling, I fcouldn't find a solution, so looked at the plugin configuration. When testing the plugin 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!
          New: 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:
          {code:java}
          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)
           {code}

          So I went to check my plug-ins and found I have the MySQL Database Plugin installed. After a bit of googling, I fcouldn't find a solution, so looked at the plugin configuration. When testing the plugin 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!
          Josh Watson made changes -
          Description Original: 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:
          {code:java}
          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)
           {code}

          So I went to check my plug-ins and found I have the MySQL Database Plugin installed. After a bit of googling, I fcouldn't find a solution, so looked at the plugin configuration. When testing the plugin 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!
          New: 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:
          {code:java}
          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)
           {code}

          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!
          Cyrille Le Clerc made changes -
          Assignee Original: Alvaro Lobato [ alobato ] New: Cyrille Le Clerc [ cleclerc ]
          Arnaud Héritier made changes -
          Assignee Original: Cyrille Le Clerc [ cleclerc ]

            Unassigned Unassigned
            josh_watson Josh Watson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: