Skip to content
This repository has been archived by the owner on Jun 26, 2021. It is now read-only.

Connection timed out github.com on Tagging #97

Closed
rossamt opened this issue Nov 9, 2017 · 5 comments
Closed

Connection timed out github.com on Tagging #97

rossamt opened this issue Nov 9, 2017 · 5 comments

Comments

@rossamt
Copy link

rossamt commented Nov 9, 2017

Hi,

I have just configured my pom to use unleash-maven-plugin and have installed the unleash Jenkins plugin as well. I get an error when the unleash plugin reaches the tag stage. My repository is hosted on Github and I have a personal access token setup to authenticate with. The git credentials I am using are the same I have for the Git plugin to connect to GitHub with. I got the below exception running in Jenkins and also by running the command line Jenkins was using, as shown below (where you see <removed> I just replaced all project names and paths that did exist with this placeholder) :

mvn -B -f /build/workspace/<removed>/pom.xml -s /home/blduser/.m2/settings.xml unleash:perform -X -Dunleash.releaseArgs=skipTests=true -Dunleash.tagNamePattern=@{project.version} -Dunleash.scmMessagePrefix=[unleash-maven-plugin] -DenableLogTimestamps=true -Dunleash.releaseVersion=2.63.0 -Dunleash.developmentVersion=2.64.0-SNAPSHOT -Dunleash.allowLocalReleaseArtifacts=true -Dunleash.commitBeforeTagging=false -e -X -Dunleash.scmUsernameEnvVar=UNLEASH_SCM_USERNAME -Dunleash.scmPasswordEnvVar=UNLEASH_SCM_PASSWORD

I set UNLEASH_SCM_USERNAME env variable to my Github user and UNLEASH_SCM_PASSWORD to the generated personal access token

Logs:
...
[INFO] 10:18:37,290 Checking remote SCM repository for changes. Initial revision was 1fef10e7902fadad6846a81b202943031d64d7ab
[DEBUG] 10:18:37,291 No commit before tagging requested. Checking for SCM changes at this point unnessecary!
[INFO] 10:18:37,291 Tagging local and remote SCM repositories.
[DEBUG] 10:18:37,291 Updating SCM connection tags in POM of module '<removed>:2.63.0'
[INFO] 10:18:37,356 Git - Searching for Git tag '2.63.0'
[DEBUG] 10:18:37,365 Git - Query info:
- TAG_NAME: 2.63.0
- WORKING_DIR: /build/workspace/<removed>
- REMOTE: affinity-ipm
- REMOTE_URL: https://github.com/<removed>.git
[ERROR] An exception was caught while processing the workflow step with id 'tagScm'.
com.itemis.maven.plugins.unleash.scm.ScmException: An error occurred while querying the remote git repository for tag '2.63.0'.
at com.itemis.maven.plugins.unleash.scm.providers.ScmProviderGit.hasTag (ScmProviderGit.java:622)
at com.itemis.maven.plugins.unleash.steps.actions.TagScm.execute (TagScm.java:88)
at com.itemis.maven.plugins.cdi.internal.util.workflow.WorkflowExecutor.executeSequentialWorkflowStep (WorkflowExecutor.java:157)
at com.itemis.maven.plugins.cdi.internal.util.workflow.WorkflowExecutor.execute (WorkflowExecutor.java:119)
at com.itemis.maven.plugins.cdi.AbstractCDIMojo.execute (AbstractCDIMojo.java:209)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: org.eclipse.jgit.api.errors.TransportException: https://github.com/<removed>.git: cannot open git-upload-pack
at org.eclipse.jgit.api.LsRemoteCommand.execute (LsRemoteCommand.java:220)
at org.eclipse.jgit.api.LsRemoteCommand.call (LsRemoteCommand.java:159)
at com.itemis.maven.plugins.unleash.scm.providers.ScmProviderGit.hasTag (ScmProviderGit.java:616)
at com.itemis.maven.plugins.unleash.steps.actions.TagScm.execute (TagScm.java:88)
at com.itemis.maven.plugins.cdi.internal.util.workflow.WorkflowExecutor.executeSequentialWorkflowStep (WorkflowExecutor.java:157)
at com.itemis.maven.plugins.cdi.internal.util.workflow.WorkflowExecutor.execute (WorkflowExecutor.java:119)
at com.itemis.maven.plugins.cdi.AbstractCDIMojo.execute (AbstractCDIMojo.java:209)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: org.eclipse.jgit.errors.TransportException: https://github.com/<removed>.git: cannot open git-upload-pack
at org.eclipse.jgit.transport.TransportHttp.connect (TransportHttp.java:510)
at org.eclipse.jgit.transport.TransportHttp.openFetch (TransportHttp.java:288)
at org.eclipse.jgit.api.LsRemoteCommand.execute (LsRemoteCommand.java:198)
at org.eclipse.jgit.api.LsRemoteCommand.call (LsRemoteCommand.java:159)
at com.itemis.maven.plugins.unleash.scm.providers.ScmProviderGit.hasTag (ScmProviderGit.java:616)
at com.itemis.maven.plugins.unleash.steps.actions.TagScm.execute (TagScm.java:88)
at com.itemis.maven.plugins.cdi.internal.util.workflow.WorkflowExecutor.executeSequentialWorkflowStep (WorkflowExecutor.java:157)
at com.itemis.maven.plugins.cdi.internal.util.workflow.WorkflowExecutor.execute (WorkflowExecutor.java:119)
at com.itemis.maven.plugins.cdi.AbstractCDIMojo.execute (AbstractCDIMojo.java:209)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
Caused by: java.net.ConnectException: Connection timed out github.com
at org.eclipse.jgit.util.HttpSupport.response (HttpSupport.java:197)
at org.eclipse.jgit.transport.TransportHttp.connect (TransportHttp.java:461)
at org.eclipse.jgit.transport.TransportHttp.openFetch (TransportHttp.java:288)
at org.eclipse.jgit.api.LsRemoteCommand.execute (LsRemoteCommand.java:198)
at org.eclipse.jgit.api.LsRemoteCommand.call (LsRemoteCommand.java:159)
at com.itemis.maven.plugins.unleash.scm.providers.ScmProviderGit.hasTag (ScmProviderGit.java:616)
at com.itemis.maven.plugins.unleash.steps.actions.TagScm.execute (TagScm.java:88)
at com.itemis.maven.plugins.cdi.internal.util.workflow.WorkflowExecutor.executeSequentialWorkflowStep (WorkflowExecutor.java:157)
at com.itemis.maven.plugins.cdi.internal.util.workflow.WorkflowExecutor.execute (WorkflowExecutor.java:119)
at com.itemis.maven.plugins.cdi.AbstractCDIMojo.execute (AbstractCDIMojo.java:209)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)

Could the connection timing out because of the personal access token authentication mechanism I am using?

@shillner
Copy link
Owner

shillner commented Nov 9, 2017

Hi, I think this issue is caused by the access token stuff. I've never tried this authentication mehtod and I'm pretty sure this doesn't work yet. Could you try to access your repository using basic auth or ssh authentication for the first? I'll take this one over to the git provider and will see what can be done there.

Btw. there is no need to set these env variables by hand. The Jenkins plugin does this implicitly based on the credentials when invoking the Maven plugin. This is only crutch for handing over the SCM credentials to the plugin without exposing them in Jenkins.

@shillner
Copy link
Owner

shillner commented Nov 9, 2017

Issue is now tracked here: unleash-scm-provider-git (issue #12).

@rossamt
Copy link
Author

rossamt commented Nov 10, 2017

Thanks for the fast response. I removed the two-factor authentication and ran the build again. I got the same error ... which makes me think I have incorrectly configured something. The same user credentials are used to fetch the repo so I don't know what it could be.

Any additional help on this would be hugely appreciated. The logs for this latest test:

Fetching changes from the remote Git repository

git config remote.<project_name>.url https://github.com/<remote_repo>.git # timeout=10
Fetching upstream changes from https://github.com/<remote_repo>.git
git --version # timeout=10
using GIT_ASKPASS to set credentials
Setting http proxy: 192.0.200.246:8080
git fetch --tags --progress https://github.com/<remote_repo>.git +refs/heads/:refs/remotes/<project_name>/
git rev-parse <project_name>/R2^{commit} # timeout=10
Checking out Revision 1fef10e7902fadad6846a81b202943031d64d7ab (<project_name>/R2)
git config core.sparsecheckout # timeout=10
git checkout -f 1fef10e7902fadad6846a81b202943031d64d7ab
Commit message: "updated project version"
git rev-list 1fef10e7902fadad6846a81b202943031d64d7ab # timeout=10
Parsing POMs
Established TCP socket on 43108
[handlers] $ java -cp /apps/Jenkins/plugins/maven-plugin/WEB-INF/lib/maven35-agent-1.12-alpha-1.jar:/apps/maven/boot/plexus-classworlds-2.5.2.jar:/apps/maven/conf/logging jenkins.maven3.agent.Maven35Main /apps/maven /apps/Jenkins/war/WEB-INF/lib/remoting-2.60.jar /apps/Jenkins/plugins/maven-plugin/WEB-INF/lib/maven35-interceptor-1.12-alpha-1.jar /apps/Jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.12-alpha-1.jar 43108
<===[JENKINS REMOTING CAPACITY]===>channel started
Executing Maven: -B -f /build/workspace/<project_name>/pom.xml -s /home/blduser/.m2/settings.xml unleash:perform -X -Dunleash.releaseArgs=skipTests=true -Dunleash.tagNamePattern=v@{project.version} -Dunleash.scmMessagePrefix=[unleash-maven-plugin] -DenableLogTimestamps=true -Dunleash.releaseVersion=2.63.0 -Dunleash.developmentVersion=2.64.0-SNAPSHOT -Dunleash.allowLocalReleaseArtifacts=true -Dunleash.commitBeforeTagging=false -e -X -Dunleash.scmUsernameEnvVar=UNLEASH_SCM_USERNAME -Dunleash.scmPasswordEnvVar=UNLEASH_SCM_PASSWORD
�[1mApache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T08:58:13+01:00)�[m
Maven home: /apps/maven
Java version: 1.8.0_92, vendor: Oracle Corporation
Java home: /apps/Java/jdk1.8.0_92/jre
Default locale: en_GB, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-693.5.2.el7.x86_64", arch: "amd64", family: "unix"
[�[1;34mINFO�[m] Error stacktraces are turned on.
...
[INFO] --- unleash-maven-plugin:2.7.2:perform (default-cli) @ handlers ---
[DEBUG] WELD-ENV-000030: Cannot load class using the ResourceLoader: org.jboss.jandex.Index
[DEBUG] WELD-ENV-000032: Processing bean archive reference: /build/maven/repository/com/itemis/maven/plugins/unleash-maven-plugin/2.7.2/unleash-maven-plugin-2.7.2.jar
[DEBUG] Handle path: /build/maven/repository/com/itemis/maven/plugins/unleash-maven-plugin/2.7.2/unleash-maven-plugin-2.7.2.jar
[DEBUG] Handle archive file: /build/maven/repository/com/itemis/maven/plugins/unleash-maven-plugin/2.7.2/unleash-maven-plugin-2.7.2.jar
[DEBUG] WELD-ENV-000024: Archive isolation enabled - creating multiple isolated bean archives if needed
...
[DEBUG] WELD-000620: interface javax.enterprise.inject.Intercepted is not declared @target(METHOD, FIELD, PARAMETER, TYPE). Weld will use this annotation, however this may make the application unportable.
[INFO] WELD-ENV-002003: Weld SE container STATIC_INSTANCE initialized
[DEBUG] 10:14:21,121 Resolved required SCM provider implementation to 'git'
[DEBUG] readpipe [git, --version],/usr/bin
[DEBUG] readpipe may return 'git version 1.8.3.1'
[DEBUG] remaining output:

[DEBUG] readpipe [git, config, --system, --edit],/usr/bin
[DEBUG] readpipe may return '/etc/gitconfig'
[DEBUG] remaining output:

[INFO] Executing the standard workflow of the goal
[INFO] 10:14:21,639 Stored SCM revision before project release: 1fef10e7902fadad6846a81b202943031d64d7ab
[DEBUG] 10:14:21,640 Checking that at least one of the reactor projects has a SNAPSHOT version assigned.
[INFO] 10:14:21,640 Checking that the project modules do not reference SNAPSHOT parents that are not scheduled for release.
[INFO] 10:14:21,641 Checking that none of the reactor projects contain SNAPSHOT dependencies.
[DEBUG] 10:14:21,641 Checking dependencies of reactor project '<group_id>:<artifact>:2.63.0-SNAPSHOT':
[DEBUG] 10:14:21,641 Checking managed dependencies
[DEBUG] 10:14:21,641 Checking direct dependencies
[INFO] 10:14:21,643 Checking that none of the reactor projects contains SNAPSHOT plugins.
[DEBUG] 10:14:21,644 Checking plugins of reactor project '<group_id>:<artifact>:2.63.0-SNAPSHOT':
[DEBUG] 10:14:21,644 Checking managed plugins
[DEBUG] 10:14:21,645 Checking direct plugin references
[INFO] 10:14:21,645 Checking that none of the reactor project's plugins contain SNAPSHOT dependencies.
[DEBUG] 10:14:21,645 Checking plugin dependencies of reactor project '<group_id>:<artifact>:2.63.0-SNAPSHOT':
[DEBUG] 10:14:21,646 Checking managed plugins
[DEBUG] 10:14:21,663 Checking direct plugin references
[INFO] 10:14:21,663 Calculating required versions for all modules.
[INFO] 10:14:21,663 Versions of module <group_id>:<artifact>:
[INFO] 10:14:21,663 PRE_RELEASE = 2.63.0-SNAPSHOT
[INFO] 10:14:21,663 RELEASE = 2.63.0
[INFO] 10:14:21,663 POST_RELEASE = 2.64.0-SNAPSHOT
[INFO] 10:14:21,663 Checking aether for already released artifacts of modules that are scheduled for release.
[DEBUG] 10:14:21,664 => If any of the modules had already been released with the corresponding release version, the release build will fail fast at this point.
[DEBUG] 10:14:21,664 Checking module '<group_id>:<artifact>:2.63.0-SNAPSHOT'
[INFO] 10:14:21,693 Updating project modules with release versions
[DEBUG] 10:14:21,712 Update of module version '<group_id>:<group_id>:<artifact>:jar:2.63.0-SNAPSHOT' [2.63.0-SNAPSHOT => 2.63.0]
[INFO] 10:14:21,848 Adding artifact-spy-plugin to the build configuration. This plugin is required to detect all artifacts that are produced by the release build for later installation and deployment.
[INFO] 10:14:21,927 Starting release build.
[DEBUG] 10:14:21,931 Using maven home: /apps/maven
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building handlers 2.63.0
[INFO] ------------------------------------------------------------------------
...
[INFO] --- artifact-spy-plugin:1.0.6:spy (spy) @ handlers ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:38 min
[INFO] Finished at: 2017-11-10T10:19:03Z
[INFO] Final Memory: 18M/73M
[INFO] ------------------------------------------------------------------------
[INFO] 10:19:03,171 Removing artifact-spy-plugin from build configuration.
[INFO] 10:19:03,206 Checking remote SCM repository for changes. Initial revision was 1fef10e7902fadad6846a81b202943031d64d7ab
[DEBUG] 10:19:03,207 No commit before tagging requested. Checking for SCM changes at this point unnessecary!
[INFO] 10:19:03,207 Tagging local and remote SCM repositories.
[DEBUG] 10:19:03,207 Updating SCM connection tags in POM of module '<group_id>:<artifact>:2.63.0'
[INFO] 10:19:03,231 Git - Searching for Git tag 'v2.63.0'
[DEBUG] 10:19:03,240 Git - Query info:
- TAG_NAME: v2.63.0
- WORKING_DIR: /build/workspace/<project_name>
- REMOTE: affinity-ipm
- REMOTE_URL: https://github.com/<remote_repo>.git
[ERROR] An exception was caught while processing the workflow step with id 'tagScm'.
com.itemis.maven.plugins.unleash.scm.ScmException: An error occurred while querying the remote git repository for tag 'v2.63.0'.
at com.itemis.maven.plugins.unleash.scm.providers.ScmProviderGit.hasTag (ScmProviderGit.java:622)
at com.itemis.maven.plugins.unleash.steps.actions.TagScm.execute (TagScm.java:88)
at com.itemis.maven.plugins.cdi.internal.util.workflow.WorkflowExecutor.executeSequentialWorkflowStep (WorkflowExecutor.java:157)
at com.itemis.maven.plugins.cdi.internal.util.workflow.WorkflowExecutor.execute (WorkflowExecutor.java:119)
at com.itemis.maven.plugins.cdi.AbstractCDIMojo.execute (AbstractCDIMojo.java:209)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
at org.jvnet.hudson.maven3.launcher.Maven35Launcher.main (Maven35Launcher.java:130)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at jenkins.maven3.agent.Maven35Main.launch (Maven35Main.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at hudson.maven.Maven3Builder.call (Maven3Builder.java:139)
at hudson.maven.Maven3Builder.call (Maven3Builder.java:70)
at hudson.remoting.UserRequest.perform (UserRequest.java:153)
at hudson.remoting.UserRequest.perform (UserRequest.java:50)
at hudson.remoting.Request$2.run (Request.java:332)
at hudson.remoting.InterceptingExecutorService$1.call (InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run (FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:617)
at java.lang.Thread.run (Thread.java:745)
Caused by: org.eclipse.jgit.api.errors.TransportException: https://github.com/<remote_repo>.git: cannot open git-upload-pack
at org.eclipse.jgit.api.LsRemoteCommand.execute (LsRemoteCommand.java:220)
at org.eclipse.jgit.api.LsRemoteCommand.call (LsRemoteCommand.java:159)
at com.itemis.maven.plugins.unleash.scm.providers.ScmProviderGit.hasTag (ScmProviderGit.java:616)
at com.itemis.maven.plugins.unleash.steps.actions.TagScm.execute (TagScm.java:88)
at com.itemis.maven.plugins.cdi.internal.util.workflow.WorkflowExecutor.executeSequentialWorkflowStep (WorkflowExecutor.java:157)
at com.itemis.maven.plugins.cdi.internal.util.workflow.WorkflowExecutor.execute (WorkflowExecutor.java:119)
at com.itemis.maven.plugins.cdi.AbstractCDIMojo.execute (AbstractCDIMojo.java:209)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
at org.jvnet.hudson.maven3.launcher.Maven35Launcher.main (Maven35Launcher.java:130)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at jenkins.maven3.agent.Maven35Main.launch (Maven35Main.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at hudson.maven.Maven3Builder.call (Maven3Builder.java:139)
at hudson.maven.Maven3Builder.call (Maven3Builder.java:70)
at hudson.remoting.UserRequest.perform (UserRequest.java:153)
at hudson.remoting.UserRequest.perform (UserRequest.java:50)
at hudson.remoting.Request$2.run (Request.java:332)
at hudson.remoting.InterceptingExecutorService$1.call (InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run (FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:617)
at java.lang.Thread.run (Thread.java:745)
Caused by: org.eclipse.jgit.errors.TransportException: https://github.com/<remote_repo>.git: cannot open git-upload-pack
at org.eclipse.jgit.transport.TransportHttp.connect (TransportHttp.java:510)
at org.eclipse.jgit.transport.TransportHttp.openFetch (TransportHttp.java:288)
at org.eclipse.jgit.api.LsRemoteCommand.execute (LsRemoteCommand.java:198)
at org.eclipse.jgit.api.LsRemoteCommand.call (LsRemoteCommand.java:159)
at com.itemis.maven.plugins.unleash.scm.providers.ScmProviderGit.hasTag (ScmProviderGit.java:616)
at com.itemis.maven.plugins.unleash.steps.actions.TagScm.execute (TagScm.java:88)
at com.itemis.maven.plugins.cdi.internal.util.workflow.WorkflowExecutor.executeSequentialWorkflowStep (WorkflowExecutor.java:157)
at com.itemis.maven.plugins.cdi.internal.util.workflow.WorkflowExecutor.execute (WorkflowExecutor.java:119)
at com.itemis.maven.plugins.cdi.AbstractCDIMojo.execute (AbstractCDIMojo.java:209)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
at org.jvnet.hudson.maven3.launcher.Maven35Launcher.main (Maven35Launcher.java:130)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at jenkins.maven3.agent.Maven35Main.launch (Maven35Main.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at hudson.maven.Maven3Builder.call (Maven3Builder.java:139)
at hudson.maven.Maven3Builder.call (Maven3Builder.java:70)
at hudson.remoting.UserRequest.perform (UserRequest.java:153)
at hudson.remoting.UserRequest.perform (UserRequest.java:50)
at hudson.remoting.Request$2.run (Request.java:332)
at hudson.remoting.InterceptingExecutorService$1.call (InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run (FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:617)
at java.lang.Thread.run (Thread.java:745)
Caused by: java.net.ConnectException: Connection timed out github.com
at org.eclipse.jgit.util.HttpSupport.response (HttpSupport.java:197)
at org.eclipse.jgit.transport.TransportHttp.connect (TransportHttp.java:461)
at org.eclipse.jgit.transport.TransportHttp.openFetch (TransportHttp.java:288)
at org.eclipse.jgit.api.LsRemoteCommand.execute (LsRemoteCommand.java:198)
at org.eclipse.jgit.api.LsRemoteCommand.call (LsRemoteCommand.java:159)
at com.itemis.maven.plugins.unleash.scm.providers.ScmProviderGit.hasTag (ScmProviderGit.java:616)
at com.itemis.maven.plugins.unleash.steps.actions.TagScm.execute (TagScm.java:88)
at com.itemis.maven.plugins.cdi.internal.util.workflow.WorkflowExecutor.executeSequentialWorkflowStep (WorkflowExecutor.java:157)
at com.itemis.maven.plugins.cdi.internal.util.workflow.WorkflowExecutor.execute (WorkflowExecutor.java:119)
at com.itemis.maven.plugins.cdi.AbstractCDIMojo.execute (AbstractCDIMojo.java:209)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
at org.jvnet.hudson.maven3.launcher.Maven35Launcher.main (Maven35Launcher.java:130)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at jenkins.maven3.agent.Maven35Main.launch (Maven35Main.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at hudson.maven.Maven3Builder.call (Maven3Builder.java:139)
at hudson.maven.Maven3Builder.call (Maven3Builder.java:70)
at hudson.remoting.UserRequest.perform (UserRequest.java:153)
at hudson.remoting.UserRequest.perform (UserRequest.java:50)
at hudson.remoting.Request$2.run (Request.java:332)
at hudson.remoting.InterceptingExecutorService$1.call (InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run (FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:617)
at java.lang.Thread.run (Thread.java:745)
[INFO] Rolling back after execution errors - please find the error messages and stack traces above.
[INFO] 10:21:11,237 Rollback of SCM tag creation and POM modifications due to a processing exception.
[INFO] 10:21:11,238 Git - Searching for Git tag 'v2.63.0'

thanks,

@rossamt
Copy link
Author

rossamt commented Nov 10, 2017

I got past that Connection Timeout error as it was due to my corporate proxy. Didn't think it was a proxy as the Git plugin was able to fetch. But that is using a proxy config that the unleash plugin doesn't use. I set the environment variables (http.proxyHost, http.proxyPort, https.proxyHost, https.proxyPort) and I got further. I will test with the personal access token to see if it works too.

However I am getting another error but haven't had time to troubleshoot:

[INFO] 14:38:28,039 Deploying the release artifacts into the distribution repository
[ERROR] An exception was caught while processing the workflow step with id 'deployArtifacts'.
java.lang.NullPointerException: remote repository cannot be null
at java.util.Objects.requireNonNull (Objects.java:228)
at org.eclipse.aether.internal.impl.DefaultRepositoryConnectorProvider.newRepositoryConnector (DefaultRepositoryConnectorProvider.java:102)
at org.eclipse.aether.internal.impl.DefaultDeployer.deploy (DefaultDeployer.java:243)
at org.eclipse.aether.internal.impl.DefaultDeployer.deploy (DefaultDeployer.java:223)
at com.itemis.maven.aether.ArtifactDeployer.deployArtifacts (ArtifactDeployer.java:45)
at com.itemis.maven.plugins.unleash.steps.actions.DeployArtifacts.execute (DeployArtifacts.java:46)
at com.itemis.maven.plugins.cdi.internal.util.workflow.WorkflowExecutor.executeSequentialWorkflowStep (WorkflowExecutor.java:157)
at com.itemis.maven.plugins.cdi.internal.util.workflow.WorkflowExecutor.execute (WorkflowExecutor.java:119)
at com.itemis.maven.plugins.cdi.AbstractCDIMojo.execute (AbstractCDIMojo.java:209)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
at org.jvnet.hudson.maven3.launcher.Maven35Launcher.main (Maven35Launcher.java:130)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at jenkins.maven3.agent.Maven35Main.launch (Maven35Main.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at hudson.maven.Maven3Builder.call (Maven3Builder.java:139)
at hudson.maven.Maven3Builder.call (Maven3Builder.java:70)
at hudson.remoting.UserRequest.perform (UserRequest.java:153)
at hudson.remoting.UserRequest.perform (UserRequest.java:50)
at hudson.remoting.Request$2.run (Request.java:332)
at hudson.remoting.InterceptingExecutorService$1.call (InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run (FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:617)
at java.lang.Thread.run (Thread.java:745)

@rossamt
Copy link
Author

rossamt commented Nov 10, 2017

I haven't been able to get past this recent error now. I followed some instructions about making sure I have additional behaviours set in the Jenkins configuration:
Clean before checkout added
Checkout to local branch (empty value)

But still the error exists

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants