[JIRA] (JENKINS-59838) durable-task plugin v1.30 and v1.31 - process aparently never started in /var/lib/jenkins/workspace/<jobname>

19 views
Skip to first unread message

jonuda77@gmail.com (JIRA)

unread,
Oct 29, 2019, 4:49:05 AM10/29/19
to jenkinsc...@googlegroups.com
Jon Udaondo updated an issue
 
Jenkins / Bug JENKINS-59838
durable-task plugin v1.30 and v1.31 - process aparently never started in /var/lib/jenkins/workspace/<jobname>
Change By: Jon Udaondo
Summary: durable-task plugin v1.30 or and v1.31 - process aparently never started in /var/lib/jenkins/workspace/<jobname>
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

jonuda77@gmail.com (JIRA)

unread,
Oct 30, 2019, 4:07:11 AM10/30/19
to jenkinsc...@googlegroups.com

cchiou@cloudbees.com (JIRA)

unread,
Oct 30, 2019, 2:29:02 PM10/30/19
to jenkinsc...@googlegroups.com
Carroll Chiou commented on Bug JENKINS-59838
 
Re: durable-task plugin v1.30 and v1.31 - process aparently never started in /var/lib/jenkins/workspace/<jobname>

Can you try running your Jenkins with -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true? That might help us since the logging right now is not really telling us anything. RIght now it could be anything from a bug in the script, in the environment, or the plugin.

cchiou@cloudbees.com (JIRA)

unread,
Oct 30, 2019, 2:34:02 PM10/30/19
to jenkinsc...@googlegroups.com
Carroll Chiou edited a comment on Bug JENKINS-59838
Can you try running your Jenkins with -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true? That might help us since the logging right now is not really telling us anything. RIght now it could be anything from a bug in the script, in the environment, or the plugin.

Also we are at 1.33 now, so you might try upgrading to that since 1.31 and 1.32 are known to have some issues.

jonuda77@gmail.com (JIRA)

unread,
Oct 31, 2019, 4:00:03 AM10/31/19
to jenkinsc...@googlegroups.com

How can I run that?

I have tried running it like this because I read here (https://stackoverflow.com/questions/50067372/where-to-set-dorg-jenkinsci-plugins-durabletask-bourneshellscript-heartbeat-che). But nothing happened.

 

stage('Deploying services with Salt') { 
  when { 
    expression { params.DeploySalt == 'Yes' } 
  } 
  steps { 
    script { 
      STAGE=env.STAGE_NAME 
      System.setProperty("org.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS", "true");
    } 
    sh label: 'Deploying required software', script: "ssh -o StrictHostKeyChecking=no ${SALTMASTERLOGIN} 'sudo salt-run state.orchestrate orch.deploy --state-output=mixed'" 
  } 
}

 

I am running Jenkins as a service, should I place that in the "/etc/default/jenkins" file in the JAVA_ARGS property?

 

I saw that v1.33 was released but in Jenkins plugins manager is not available yet. Should I update it manually? 

 

Thank you.

jonuda77@gmail.com (JIRA)

unread,
Oct 31, 2019, 4:02:03 AM10/31/19
to jenkinsc...@googlegroups.com
Jon Udaondo edited a comment on Bug JENKINS-59838
How can I run that?

I have tried running it like this because I read here ([https://stackoverflow.com/questions/50067372/where-to-set-dorg-jenkinsci-plugins-durabletask-bourneshellscript-heartbeat-che]). But nothing happened.

 
{code:java}

stage('Deploying services with Salt') {
  when {
    expression { params.DeploySalt == 'Yes' }
  }
  steps {
    script {
      STAGE=env.STAGE_NAME
      System.setProperty("org.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS", "true");
    }
    sh label: 'Deploying required software', script: "ssh -o StrictHostKeyChecking=no ${SALTMASTERLOGIN} 'sudo salt-run state.orchestrate orch.deploy --state-output=mixed'"
  }
}
{code}
 

I am running Jenkins as a service, should I place that in the "/etc/default/jenkins" file in the JAVA_ARGS property?
After updating that, where can I see the logs? 

 

I saw that v1.33 was released but in Jenkins plugins manager is not available yet. Should I update it manually? 

 

Thank you.

jonuda77@gmail.com (JIRA)

unread,
Oct 31, 2019, 4:20:03 AM10/31/19
to jenkinsc...@googlegroups.com
Jon Udaondo edited a comment on Bug JENKINS-59838
How can I run that?

I have tried running it like this because I read here ([https://stackoverflow.com/questions/50067372/where-to-set-dorg-jenkinsci-plugins-durabletask-bourneshellscript-heartbeat-che]). But nothing happened.

 
{code:java}
stage('Deploying services with Salt') {
  when {
    expression { params.DeploySalt == 'Yes' }
  }
  steps {
    script {
      STAGE=env.STAGE_NAME
      System.setProperty("org.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS", "true");
    }
    sh label: 'Deploying required software', script: "ssh -o StrictHostKeyChecking=no ${SALTMASTERLOGIN} 'sudo salt-run state.orchestrate orch.deploy --state-output=mixed'"
  }
}
{code}
 

I am running Jenkins as a service, should I place that in the "/etc/default/jenkins" file in the JAVA_ARGS property like this?

 
{code:java}
# Allow graphs etc. to work even when an X server is present
JAVA_ARGS="-Xmx2048m -XX:MaxPermSize=512m -Djava.awt.headless=true -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true"

{code}
 

After updating that, where can I see the logs
, in /var/log/jenkins/jenkins.log


 

I saw that v1.33 was released but in Jenkins plugins manager is not available yet. Should I update it manually? 

 

Thank you.

jonuda77@gmail.com (JIRA)

unread,
Oct 31, 2019, 4:20:03 AM10/31/19
to jenkinsc...@googlegroups.com
Jon Udaondo edited a comment on Bug JENKINS-59838
How can I run that?

I have tried running it like this because I read here ([https://stackoverflow.com/questions/50067372/where-to-set-dorg-jenkinsci-plugins-durabletask-bourneshellscript-heartbeat-che]). But nothing happened.

 
{code:java}
stage('Deploying services with Salt') {
  when {
    expression { params.DeploySalt == 'Yes' }
  }
  steps {
    script {
      STAGE=env.STAGE_NAME
      System.setProperty("org.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS", "true");
    }
    sh label: 'Deploying required software', script: "ssh -o StrictHostKeyChecking=no ${SALTMASTERLOGIN} 'sudo salt-run state.orchestrate orch.deploy --state-output=mixed'"
  }
}
{code}
 

I am running Jenkins as a service, should I place that in the "/etc/default/jenkins" file in the JAVA_ARGS property
like this ?

 
{code:java}
# Allow graphs etc. to work even when an X server is present
JAVA_ARGS="-Xmx2048m -XX:MaxPermSize=512m -Djava.awt.headless=true -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true"

{code}
 

After updating that, where can I see the logs? 


 

I saw that v1.33 was released but in Jenkins plugins manager is not available yet. Should I update it manually? 

 

Thank you.

cchiou@cloudbees.com (JIRA)

unread,
Oct 31, 2019, 1:17:04 PM10/31/19
to jenkinsc...@googlegroups.com

So you can pass in that system property multiple ways. I would recommend passing it in the JVM startup args for however you run Jenkins, or at the script console found in the manage jenkins setting. The JVM startup is where I would recommend you do it. Once that is done, I can't say to where your logs would be, because that would depend on your system and how you installed Jenkins.

As for 1.33, i'm not sure why it wouldn't appear in the update center. I know you mentioned that you have issues in 1.30, but if you don't see 1.33, i would recommend downgrading to 1.30. in the plugin manager UI.

Could you open a mailing list thread on the jenkinsci-users mailing list for this question? You should add the output once you enable LAUNCH_DIAGNOSTICS, and some details about whether this was working for you previously (i.e. what version of Jenkins you are running, what OS you are using on the Jenkins master and the agent being used by the shell step, etc.). The bug tracker is not the right place for general investigation of issues like this. I am going to close this issue for now, if it looks like there is a bug after you provide more info on the mailing list, we’ll reopen the ticket

cchiou@cloudbees.com (JIRA)

unread,
Oct 31, 2019, 2:25:03 PM10/31/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages