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

Dimensions command fails, cannot connect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • dimensionsscm-plugin
    • None
    • Jenkins 2.401.3, Dimensions Plugin Version 0.9.3.1, Windows 10, Chrome. Dimensions CM 14.5.3 Build 9.245

      I cannot run a test job successfully which is intended to fetch a Project / Stream from Dimensions. This means we cannot use Jenkins with Dimensions on our site. The credentials used are username / password. The "Check Connection" button works as expected. I can successfully login to Dimensions from the agent using dmcli and the same details. One thing I notice is that dmcli doesn't seem to accept a combined dbname using both <bdname>@<dsn>. Also the Dimensions server has a non-standard port. 

      [WS-CLEANUP] Deferred wipeout is used...
      [DIMENSIONS] Running checkout on slave...
      [DIMENSIONS] Running build in 'C:\<Folder>\jenkins\prod\workspace\Dev\test-dimension-plugin'...
      [DIMENSIONS] Located 'C:\Program Files (x86)\Micro Focus\Dimensions 14.5.3\CM\prog\dmcli.exe' on the slave node.
      [DIMENSIONS] Checking out a fresh workspace because this project has not been built before...
      [DIMENSIONS] Removing 'file:/C:/<Folder>/jenkins/prod/workspace/Dev/test-dimension-plugin/'...
      [DIMENSIONS] Checking out project "<PRODUCT_ID>:<PROJECT_NAME>"...
      [DIMENSIONS] Checking out directory '\'...
      [test-dimension-plugin] $ "C:\Program Files (x86)\Micro Focus\Dimensions 14.5.3\CM\prog\dmcli.exe" ******** ******** -file C:\<Folder>\temp\dmCm16950211334196070330859975400009.tmp
      FATAL: Execution of Dimensions command failed with exit code 1
      [DIMENSIONS] (Note: Dimensions command output was - 
      
      [DIMENSIONS] ACL4502922E Error: Cannot open connection to host <dimensions-host>
      [DIMENSIONS] 
      [DIMENSIONS] Failed to start Dimensions server process
      [DIMENSIONS] )
      [DIMENSIONS] Calculating changes for directory '\'...
      [EnvInject] - Mask passwords that will be passed as build parameters.
      

      Turning on the debug logging shows the following. Perhaps it thinks logon has been successful even though it wasn't?

      Sep 18, 2023 3:23:45 PM FINE hudson.plugins.dimensionsscm.DimensionsSCM checkout
      Invoking checkout - hudson.plugins.dimensionsscm.DimensionsSCM
      Sep 18, 2023 3:23:45 PM FINE hudson.plugins.dimensionsscm.DimensionsSCM checkout
      Plugins are ok
      Sep 18, 2023 3:23:45 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI login
      DimensionsAPI.login - build number: "45", project: "test-dimension-plugin"
      Sep 18, 2023 3:23:45 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI login
      Checking Dimensions login parameters...
      Sep 18, 2023 3:23:45 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI login
      Logging into Dimensions: <userid> <url>:<port> <dbname>@<dsn>
      Sep 18, 2023 3:23:45 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI login
      Getting Dimensions connection...
      Sep 18, 2023 3:23:48 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI login
      Connection map key is 12
      Sep 18, 2023 3:23:48 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI login
      Connection map size before putIfAbsent is 0
      Sep 18, 2023 3:23:48 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI login
      Connection map size after putIfAbsent is 1
      Sep 18, 2023 3:23:48 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI login
        key: "12"
      Sep 18, 2023 3:23:48 PM FINE hudson.plugins.dimensionsscm.DimensionsSCM checkout
      Login worked.
      Sep 18, 2023 3:23:48 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI logout
      DimensionsAPI.logout - build number: "45", project: "test-dimension-plugin"
      Sep 18, 2023 3:23:48 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI getCon
      Looking for key 12
      Sep 18, 2023 3:23:48 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI getCon
      Found database
      Sep 18, 2023 3:23:48 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI logout
      Closing connection to Dimensions for key "12"...
      Sep 18, 2023 3:23:48 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI logout
      Now have 0 connections in use...
      Sep 18, 2023 3:23:48 PM FINE hudson.plugins.dimensionsscm.DimensionsSCM checkout
      Forced processing as slave...
      Sep 18, 2023 3:23:50 PM FINE hudson.plugins.dimensionsscm.DimensionsSCM generateChangeSet
      Job timezone setting is GMT
      Sep 18, 2023 3:23:50 PM FINE hudson.plugins.dimensionsscm.DimensionsSCM generateChangeSet
      Log updates between 2023-09-18T12:45:12Z -> 2023-09-18T14:23:50Z (GMT)
      Sep 18, 2023 3:23:50 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI login
      DimensionsAPI.login - build number: "45", project: "test-dimension-plugin"
      Sep 18, 2023 3:23:50 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI login
      Checking Dimensions login parameters...
      Sep 18, 2023 3:23:50 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI login
      Logging into Dimensions: <userid> <url>:<port> <dbname>@<dsn>
      Sep 18, 2023 3:23:50 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI login
      Getting Dimensions connection...
      Sep 18, 2023 3:23:51 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI login
      Connection map key is 13
      Sep 18, 2023 3:23:51 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI login
      Connection map size before putIfAbsent is 0
      Sep 18, 2023 3:23:51 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI login
      Connection map size after putIfAbsent is 1
      Sep 18, 2023 3:23:51 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI login
      Server information detected -3
      Sep 18, 2023 3:23:51 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI login
      0 - 14.5.3
      Sep 18, 2023 3:23:51 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI login
      1 - 2
      Sep 18, 2023 3:23:51 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI login
      2 - 14.5.3 Build 9.245
      Sep 18, 2023 3:23:51 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI login
      Detected server version: 14.5.3 Build 9.245
      Sep 18, 2023 3:23:51 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI login
      Version to process set to 2009
      Sep 18, 2023 3:23:51 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI login
        key: "13"
      Sep 18, 2023 3:23:51 PM FINE hudson.plugins.dimensionsscm.DimensionsSCM generateChangeSet
      Login worked.
      Sep 18, 2023 3:23:51 PM FINE hudson.plugins.dimensionsscm.DimensionsSCM generateChangeSet
      Extra parameters - null null
      Sep 18, 2023 3:23:51 PM FINE hudson.plugins.dimensionsscm.DimensionsSCM generateChangeSet
      Looking for changes in '/'...
      Sep 18, 2023 3:23:51 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI getCon
      Looking for key 13
      Sep 18, 2023 3:23:51 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI getCon
      Found database
      Sep 18, 2023 3:23:52 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI getItemRevisionByFilter
      Caught exception
      merant.adm.dimensions.exception.DBIOException: Error: failed to query database. (DBIOThruRPC.readStart: LCNetClnt.rpcDBreadStart() failed)
      	at merant.adm.dimensions.server.dbio.DBIOViaSQ.readStart(DBIOViaSQ.java:215)
      	at merant.adm.dimensions.server.dbio.DBIO.readStart(DBIO.java:431)
      	at merant.adm.dimensions.server.query.DariusSuperQueryImpl.readStart(DariusSuperQueryImpl.java:1139)
      	at merant.adm.dimensions.server.query.DariusSuperQueryImpl.readStart(DariusSuperQueryImpl.java:1150)
      	at merant.adm.dimensions.server.query.SuperQuery.readStart(SuperQuery.java:264)
      	at merant.adm.dimensions.cmds.relatable.QueryRelsCmd.queryRelations(QueryRelsCmd.java:422)
      	at merant.adm.dimensions.cmds.relatable.QueryRelsCmd.staticExecute(QueryRelsCmd.java:285)
      	at merant.adm.dimensions.cmds.relatable.QueryRelsCmd.internalExecute(QueryRelsCmd.java:529)
      	at merant.adm.dimensions.cmds.relatable.QueryRelsCmd.execute(QueryRelsCmd.java:138)
      	at merant.adm.dimensions.cmds.relatable.QueryChildrenCmd.execute(QueryChildrenCmd.java:272)
      	at com.serena.dmclient.api.DariusObjectImpl.queryDariusChildWithRelationship(DariusObjectImpl.java:788)
      	at com.serena.dmclient.api.DariusObjectImpl.getDariusChildObjects(DariusObjectImpl.java:827)
      	at com.serena.dmclient.api.DariusObjectImpl.getChildItems(DariusObjectImpl.java:1626)
      Caused: com.serena.dmclient.api.DimensionsRuntimeException: Error: failed to query database. (DBIOThruRPC.readStart: LCNetClnt.rpcDBreadStart() failed)
      	at com.serena.dmclient.api.ExceptionHandler.convertException(ExceptionHandler.java:66)
      	at com.serena.dmclient.api.ExceptionHandler.handleException(ExceptionHandler.java:40)
      	at com.serena.dmclient.api.DariusObjectImpl.getChildItems(DariusObjectImpl.java:1679)
      	at hudson.plugins.dimensionsscm.DimensionsAPI.getItemRevisionByFilter(DimensionsAPI.java:1430)
      	at hudson.plugins.dimensionsscm.DimensionsAPICallback14.saveChangesToXmlFile(DimensionsAPICallback14.java:96)
      	at hudson.plugins.dimensionsscm.DimensionsAPI.createChangeSetLogs(DimensionsAPI.java:652)
      	at hudson.plugins.dimensionsscm.DimensionsSCM.generateChangeSet(DimensionsSCM.java:855)
      	at hudson.plugins.dimensionsscm.DimensionsSCM.checkout(DimensionsSCM.java:797)
      	at hudson.scm.SCM.checkout(SCM.java:540)
      	at hudson.model.AbstractProject.checkout(AbstractProject.java:1240)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:649)
      	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:85)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:521)
      	at hudson.model.Run.execute(Run.java:1900)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
      	at hudson.model.ResourceController.execute(ResourceController.java:101)
      	at hudson.model.Executor.run(Executor.java:442)
      
      Sep 18, 2023 3:23:52 PM FINE hudson.plugins.dimensionsscm.DimensionsAPICallback14 saveChangesToXmlFile
      CM Url : https://<url>:<port>/dimensions
      Sep 18, 2023 3:23:52 PM FINE hudson.plugins.dimensionsscm.DimensionsAPICallback14 saveChangesToXmlFile
      Writing null changes to changelog file 'D:\<folder>\jobs\Dev\jobs\test-dimension-plugin\builds\45\changelog.xml'
      Sep 18, 2023 3:23:52 PM FINE hudson.plugins.dimensionsscm.DimensionsChangeLogWriter write
      Writing logfile in append mode = false
      Sep 18, 2023 3:23:52 PM FINE hudson.plugins.dimensionsscm.DimensionsChangeLogWriter write
      Writing to changelog: ''
      Sep 18, 2023 3:23:52 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI logout
      DimensionsAPI.logout - build number: "45", project: "test-dimension-plugin"
      Sep 18, 2023 3:23:52 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI getCon
      Looking for key 13
      Sep 18, 2023 3:23:52 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI getCon
      Found database
      Sep 18, 2023 3:23:52 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI logout
      Closing connection to Dimensions for key "13"...
      Sep 18, 2023 3:23:52 PM FINE hudson.plugins.dimensionsscm.DimensionsAPI logout
      Now have 0 connections in use...
      Sep 18, 2023 3:23:52 PM FINE hudson.plugins.dimensionsscm.DimensionsSCM createChangeLogParser
      Invoking createChangeLogParser - hudson.plugins.dimensionsscm.DimensionsSCM
      Sep 18, 2023 3:23:52 PM FINE hudson.plugins.dimensionsscm.DimensionsChangeLogParser digest
      Looking for 'D:\<folder>\jobs\Dev\jobs\test-dimension-plugin\builds\45\changelog.xml'
      Sep 18, 2023 3:25:45 PM FINE hudson.plugins.dimensionsscm.DimensionsChangeLogParser digest
      Looking for 'D:\<folder>\jobs\Dev\jobs\test-dimension-plugin\builds\45\changelog.xml'
      Sep 18, 2023 3:26:20 PM FINE hudson.plugins.dimensionsscm.DimensionsChangeLogParser digest
      Looking for 'D:\<folder>\jobs\Dev\jobs\test-dimension-plugin\builds\45\changelog.xml'
      

            vkoshchii Viacheslav
            en5ads Anthony
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: