0

I am currently having an issue with Jenkins running on Ubuntu 18.04. The sh pipeline step hangs and eventually times out with the following message:

[Pipeline] sh
process apparently never started in /var/lib/jenkins/workspace/members-only-demo@tmp/durable-494a3b0d
(running Jenkins temporarily with -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true might make the problem clearer)
Cannot contact : java.io.FileNotFoundException: File '/var/lib/jenkins/workspace/members-only-demo@tmp/durable-494a3b0d/output.txt' does not exist

Here is the thread dump:

Thread #6
    at DSL.sh(completed process (code -2) in /var/lib/jenkins/workspace/members-only-demo@tmp/durable-494a3b0d; recurrence period: 15000ms; check task scheduled; cancelled? false done? false)
    at WorkflowScript.run(WorkflowScript:9)
    at DSL.stage(Native Method)
    at WorkflowScript.run(WorkflowScript:8)
    at DSL.node(running on )
    at WorkflowScript.run(WorkflowScript:3)

The pipeline script is as follows:

#!/usr/bin/env groovy
node {
        stage('Checkout') {
            checkout([$class: 'GitSCM', branches: [[name: '*/da-demo']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'TeamHub2', url: 'hth@helixteamhub.cloud:digitalarchitects/projects/slender-man/repositories/git/members-only-app']]])
        }
        stage('Create Build Dir') {
            sh label: '', returnStdout: true, script: 'rm --recursive --force ${env.WORKSPACE}/build/'
            sh 'mkdir --parents ${env.WORKSPACE}/build/coverage ${env.WORKSPACE}/build/logs ${env.WORKSPACE}/build/pdepend'
        }
   ...
}

I am not really sure how to troubleshoot this issue. Can anyone help please?

New contributor
Aesonus is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
0

I ended up reinstalling jenkins using apt-get --purge remove jenkins then apt-get install jenkins. Sadly everything must be configured again, but the problem has been solved.

New contributor
Aesonus is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

Aesonus is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.