[JIRA] (JENKINS-60065) durable_task_monitor_1.31_unix_32: Syntax error: "(" unexpected

0 views
Skip to first unread message

matt.oshry@gmail.com (JIRA)

unread,
Nov 5, 2019, 9:01:03 PM11/5/19
to jenkinsc...@googlegroups.com
Matt Oshry created an issue
 
Jenkins / Bug JENKINS-60065
durable_task_monitor_1.31_unix_32: Syntax error: "(" unexpected
Issue Type: Bug Bug
Assignee: Unassigned
Components: durable-task-plugin
Created: 2019-11-05 21:00
Environment: Jenkins ver. 2.190.2
master: Darwin xyz 17.6.0 Darwin Kernel Version 17.6.0: Tue May 8 15:22:16 PDT 2018; root:xnu-4570.61.1~1/RELEASE_X86_64 x86_64
build slave info:
Linux buildpi1 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l GNU/Linux
getconf LONG_BIT -> 32
OpenJDK Runtime Environment (build 1.8.0_212-8u212-b01-1+rpi1-b01)
Priority: Blocker Blocker
Reporter: Matt Oshry

Running a pipeline job on a raspberry pi (buildpi1), the job fails to execute a simple 'sh' directive claiming the following syntax error:

durable_task_monitor_1.31_unix_32: Syntax error: "(" unexpected

Here's the Jenkinsfile:

 
pipeline {
  agent 

{     label 'armv7l_pi'   }

  stages {
    stage('Hello') {
      steps 

{         echo 'hello'         sh 'env'       }

    }
  }
  post {
    success 

{       echo 'Success'     }

    failure 

{       echo 'Failure'     }

  }
}
 

Here's an excerpt from the console output:
[Pipeline] }[Pipeline] // stage[Pipeline] withEnv[Pipeline] {[Pipeline] stage[Pipeline]

{ (Hello)[Pipeline] echohello[Pipeline] sh/var/jenkins/caches/durable-task/durable_task_monitor_1.31_unix_32: 1: /var/jenkins/caches/durable-task/durable_task_monitor_1.31_unix_32: Syntax error: "(" unexpected process apparently never started in /var/jenkins/workspace/hello-pi_master@tmp/durable-8f36b150[Pipeline] }

[Pipeline] // stage[Pipeline] stage[Pipeline]

{ (Declarative: Post Actions)[Pipeline] echoFailure[Pipeline] }

[Pipeline] // stage[Pipeline] }[Pipeline] // withEnv[Pipeline] }[Pipeline] // node[Pipeline] End of PipelineERROR: script returned exit code -2
Finished: FAILURE
 

Here's the org.jenkinsci.plugins.durabletask logging:

 
Nov 05, 2019 12:25:17 PM org.jenkinsci.plugins.durabletask.executors.ContinuedTask$Scheduler canTake
FINER: ExecutorStepExecution.PlaceholderTask{runId=hello-pi/master#3,label=armv7l_pi,context=CpsStepContext[3:node]:Ownerhello-pi/master/3:hello-pi/master #3,cookie=null,auth=null} is not continued, so it would not block ExecutorStepExecution.PlaceholderTask{runId=hello-pi/master#3,label=armv7l_pi,context=CpsStepContext[3:node]:Ownerhello-pi/master/3:hello-pi/master #3,cookie=null,auth=null}
Nov 05, 2019 12:25:17 PM org.jenkinsci.plugins.durabletask.executors.ContinuedTask$Scheduler canTake
FINER: no reason to block ExecutorStepExecution.PlaceholderTask{runId=hello-pi/master#3,label=armv7l_pi,context=CpsStepContext[3:node]:Ownerhello-pi/master/3:hello-pi/master #3,cookie=null,auth=null}
Nov 05, 2019 12:25:17 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn
WARNING: Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.gitclient.Git$1 in file:/Users/Shared/Jenkins/Home/plugins/git-client/WEB-INF/lib/git-client.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
Nov 05, 2019 12:25:21 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn
WARNING: Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1 in file:/Users/Shared/Jenkins/Home/plugins/git-client/WEB-INF/lib/git-client.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
Nov 05, 2019 12:25:24 PM org.jenkinsci.plugins.durabletask.BourneShellScript launchWithCookie
FINE: launching [/var/jenkins/caches/durable-task/durable_task_monitor_1.31_unix_32, -controldir=/var/jenkins/workspace/hello-pi_master@tmp/durable-1696d9b6, -result=/var/jenkins/workspace/hello-pi_master@tmp/durable-1696d9b6/jenkins-result.txt, -log=/var/jenkins/workspace/hello-pi_master@tmp/durable-1696d9b6/jenkins-log.txt, -cookiename=JENKINS_SERVER_COOKIE, -cookieval=durable-6f565f35441ab86a66f506894014f646, -script=/var/jenkins/workspace/hello-pi_master@tmp/durable-1696d9b6/script.sh, -shell=/bin/bash]
Nov 05, 2019 12:25:24 PM org.jenkinsci.plugins.durabletask.FileMonitoringTask$FileMonitoringController writeLog
FINE: remote transcoding charset: null
Nov 05, 2019 12:25:24 PM org.jenkinsci.plugins.durabletask.BourneShellScript$ShellController exitStatus
FINE: starting check in /var/jenkins/workspace/hello-pi_master@tmp/durable-1696d9b6
Nov 05, 2019 12:29:04 PM jenkins.branch.MultiBranchProject$BranchIndexing run
INFO: spatial_pi #20191105.122901 branch indexing action completed: SUCCESS in 3.8 sec
Nov 05, 2019 12:30:37 PM org.jenkinsci.plugins.workflow.job.WorkflowRun finish
INFO: hello-pi/master #3 completed: FAILURE
 

Here's the buildpi1 launch log:

SSHLauncher{host='buildpi1.local', port=22, credentialsId='34aaa861-6852-4df9-8534-a9ef1933d907', jvmOptions='-Dorg.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true', javaPath='', prefixStartSlaveCmd='', suffixStartSlaveCmd='', launchTimeoutSeconds=210, maxNumRetries=10, retryWaitTime=15, sshHostKeyVerificationStrategy=hudson.plugins.sshslaves.verifiers.KnownHostsFileKeyVerificationStrategy, tcpNoDelay=true, trackCredentials=true}
[11/05/19 12:23:20] [SSH] Opening SSH connection to buildpi1.local:22.
[11/05/19 12:23:21] [SSH] SSH host key matches key in Known Hosts file. Connection will be allowed.
[11/05/19 12:23:21] [SSH] Authentication successful.
[11/05/19 12:23:21] [SSH] The remote user's environment is:
BASH=/bin/bash
BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath
BASH_ALIASES=()
BASH_ARGC=([0]="0")
BASH_ARGV=()
BASH_CMDS=()
BASH_EXECUTION_STRING=set
BASH_LINENO=()
BASH_SOURCE=()
BASH_VERSINFO=([0]="5" [1]="0" [2]="3" [3]="1" [4]="release" [5]="arm-unknown-linux-gnueabihf")
BASH_VERSION='5.0.3(1)-release'
DIRSTACK=()
EUID=1001
GROUPS=()
HOME=/home/build
HOSTNAME=buildpi1
HOSTTYPE=arm
IFS=$' \t\n'
LANG=en_GB.UTF-8
LOGNAME=build
MACHTYPE=arm-unknown-linux-gnueabihf
MAIL=/var/mail/build
OPTERR=1
OPTIND=1
OSTYPE=linux-gnueabihf
PATH=/usr/local/bin:/usr/bin:/bin:/usr/games
PIPESTATUS=([0]="0")
PPID=23344
PS4='+ '
PWD=/home/build
SHELL=/bin/bash
SHELLOPTS=braceexpand:hashall:interactive-comments
SHLVL=1
SSH_CLIENT='192.168.1.82 63259 22'
SSH_CONNECTION='192.168.1.82 63259 192.168.1.192 22'
TERM=dumb
UID=1001
USER=build
XDG_RUNTIME_DIR=/run/user/1001
XDG_SESSION_CLASS=user
XDG_SESSION_ID=c22
XDG_SESSION_TYPE=tty
_=']'
[11/05/19 12:23:21] [SSH] Checking java version of /var/jenkins/jdk/bin/java
Couldn't figure out the Java version of /var/jenkins/jdk/bin/java
bash: /var/jenkins/jdk/bin/java: No such file or directory

[11/05/19 12:23:21] [SSH] Checking java version of java
[11/05/19 12:23:22] [SSH] java -version returned 1.8.0_212.
[11/05/19 12:23:22] [SSH] Starting sftp client.
[11/05/19 12:23:22] [SSH] Copying latest remoting.jar...
Source agent hash is 388207AE638DEFCFB5229C655BCC5239. Installed agent hash is 388207AE638DEFCFB5229C655BCC5239
Verified agent jar. No update is necessary.
Expanded the channel window size to 4MB
[11/05/19 12:23:22] [SSH] Starting agent process: cd "/var/jenkins" && java -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true -jar remoting.jar -workDir /var/jenkins -jar-cache /var/jenkins/remoting/jarCache
Nov 05, 2019 8:23:23 PM org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDir
INFO: Using /var/jenkins/remoting as a remoting work directory
Nov 05, 2019 8:23:23 PM org.jenkinsci.remoting.engine.WorkDirManager setupLogging
INFO: Both error and output logs will be printed to /var/jenkins/remoting
<===[JENKINS REMOTING CAPACITY]===>channel started
Remoting version: 3.33
This is a Unix agent
Evacuated stdout
Agent successfully connected and online
Nov 05, 2019 8:25:17 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn
WARNING: Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.gitclient.Git$1; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
Nov 05, 2019 8:25:21 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn
WARNING: Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

matt.oshry@gmail.com (JIRA)

unread,
Nov 5, 2019, 9:03:03 PM11/5/19
to jenkinsc...@googlegroups.com

matt.oshry@gmail.com (JIRA)

unread,
Nov 5, 2019, 9:03:04 PM11/5/19
to jenkinsc...@googlegroups.com
Matt Oshry updated an issue
Running a pipeline job on a raspberry pi (buildpi1), the job fails to execute a simple 'sh' directive claiming the following syntax error:

durable_task_monitor_1.31_unix_32: Syntax error: "(" unexpected

Here's the Jenkinsfile:

  [^Jenkinsfile]
pipeline   {
  agent {
    label 'armv7l_pi'
  }
  stages {
    stage('Hello') {
      steps {
        echo 'hello'
        sh 'env'
      }
    }
  }
  post {
    success {
      echo 'Success'
    }
    failure {
      echo 'Failure'
    }
  }
}
 

Here's an excerpt from the console output:
[Pipeline] }[Pipeline] // stage[Pipeline] withEnv[Pipeline] {[Pipeline] stage[Pipeline]


{ (Hello)[Pipeline] echohello[Pipeline] sh/var/jenkins/caches/durable-task/durable_task_monitor_1.31_unix_32: 1: /var/jenkins/caches/durable-task/durable_task_monitor_1.31_unix_32: Syntax error: "(" unexpected
process apparently never started in /var/jenkins/workspace/hello-pi_master@tmp/durable-8f36b150[Pipeline] }

[Pipeline] // stage[Pipeline] stage[Pipeline]

{ (Declarative: Post Actions)[Pipeline] echoFailure[Pipeline] }

[Pipeline] // stage[Pipeline] }[Pipeline] // withEnv[Pipeline] }[Pipeline] // node[Pipeline] End of PipelineERROR: script returned exit code -2
Finished: FAILURE
 

Here's the org.jenkinsci.plugins.durabletask logging:

 
Nov 05, 2019 12:25:17 PM org.jenkinsci.plugins.durabletask.executors.ContinuedTask$Scheduler canTake
FINER: ExecutorStepExecution.PlaceholderTask \ {runId=hello-pi/master#3,label=armv7l_pi,context=CpsStepContext[3:node]:Owner[hello-pi/master/3:hello-pi/master #3 |#3 ],cookie=null,auth=null} is not continued, so it would not block ExecutorStepExecution.PlaceholderTask \ {runId=hello-pi/master#3,label=armv7l_pi,context=CpsStepContext[3:node]:Owner[hello-pi/master/3:hello-pi/master #3 |#3 ],cookie=null,auth=null}

Nov 05, 2019 12:25:17 PM org.jenkinsci.plugins.durabletask.executors.ContinuedTask$Scheduler canTake
FINER: no reason to block ExecutorStepExecution.PlaceholderTask \ {runId=hello-pi/master#3,label=armv7l_pi,context=CpsStepContext[3:node]:Owner[hello-pi/master/3:hello-pi/master #3 |#3 ],cookie=null,auth=null}

Nov 05, 2019 12:25:17 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn
WARNING: Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.gitclient.Git$1 in  [ file:/Users/Shared/Jenkins/Home/plugins/git-client/WEB-INF/lib/git-client.jar |file:///Users/Shared/Jenkins/Home/plugins/git-client/WEB-INF/lib/git-client.jar] ; see:  [ https://jenkins.io/redirect/serialization-of-anonymous-classes/ ]
Nov 05, 2019 12:25:21 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn
WARNING: Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1 in  [ file:/Users/Shared/Jenkins/Home/plugins/git-client/WEB-INF/lib/git-client.jar |file:///Users/Shared/Jenkins/Home/plugins/git-client/WEB-INF/lib/git-client.jar] ; see:  [ https://jenkins.io/redirect/serialization-of-anonymous-classes/ ]
WARNING: Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1; see: [ https://jenkins.io/redirect/serialization-of-anonymous-classes/ ]

matt.oshry@gmail.com (JIRA)

unread,
Nov 5, 2019, 9:45:02 PM11/5/19
to jenkinsc...@googlegroups.com

matt.oshry@gmail.com (JIRA)

unread,
Nov 6, 2019, 4:48:02 PM11/6/19
to jenkinsc...@googlegroups.com

matt.oshry@gmail.com (JIRA)

unread,
Nov 6, 2019, 4:48:03 PM11/6/19
to jenkinsc...@googlegroups.com
Matt Oshry updated an issue
Running a pipeline job on a raspberry pi (buildpi1), the job fails to execute a simple 'sh' directive claiming the following syntax error:

durable_task_monitor_1.31_unix_32: Syntax error: "(" unexpected

Here's the Jenkinsfile:

[^Jenkinsfile]

[^Jenkinsfile.txt]

matt.oshry@gmail.com (JIRA)

unread,
Nov 6, 2019, 4:49:02 PM11/6/19
to jenkinsc...@googlegroups.com

matt.oshry@gmail.com (JIRA)

unread,
Nov 6, 2019, 4:49:03 PM11/6/19
to jenkinsc...@googlegroups.com
Matt Oshry updated an issue
Running a pipeline job on a raspberry pi (buildpi1), the job fails to execute a simple 'sh' directive claiming the following syntax error:

durable_task_monitor_1.31_unix_32: Syntax error: "(" unexpected

]

[^Jenkinsfile
.txt]

cchiou@cloudbees.com (JIRA)

unread,
Nov 6, 2019, 7:24:02 PM11/6/19
to jenkinsc...@googlegroups.com
Carroll Chiou updated an issue
Change By: Carroll Chiou
Environment:
Jenkins ver. 2.190.2
master: Darwin xyz 17.6.0 Darwin Kernel Version 17.6.0: Tue May  8 15:22:16 PDT 2018; root:xnu-4570.61.1~1/RELEASE_X86_64 x86_64
build slave info:
Linux buildpi1 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l GNU/Linux
getconf LONG_BIT -> 32
OpenJDK Runtime Environment (build 1.8.0_212-8u212-b01-1+rpi1-b01) z

cchiou@cloudbees.com (JIRA)

unread,
Nov 6, 2019, 7:31:02 PM11/6/19
to jenkinsc...@googlegroups.com

cchiou@cloudbees.com (JIRA)

unread,
Nov 6, 2019, 7:31:02 PM11/6/19
to jenkinsc...@googlegroups.com
Carroll Chiou commented on Bug JENKINS-60065
 
Re: durable_task_monitor_1.31_unix_32: Syntax error: "(" unexpected

I believe this is related to https://issues.jenkins-ci.org/browse/JENKINS-59907
1.31 introduced an x86-based binary wrapper that would launch the shell scripts. Unfortunately, there was a bug that did not check whether the environment was indeed x86. Please upgrade the plugin to 1.33.

matt.oshry@gmail.com (JIRA)

unread,
Nov 6, 2019, 7:37:03 PM11/6/19
to jenkinsc...@googlegroups.com
Matt Oshry updated an issue
Change By: Matt Oshry
Environment: z Jenkins ver. 2.190.2

master: Darwin xyz 17.6.0 Darwin Kernel Version 17.6.0: Tue May  8 15:22:16 PDT 2018; root:xnu-4570.61.1~1/RELEASE_X86_64 x86_64
build slave info:
Linux buildpi1 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l GNU/Linux
getconf LONG_BIT -> 32
OpenJDK Runtime Environment (build 1.8.0_212-8u212-b01-1+rpi1-b01)

matt.oshry@gmail.com (JIRA)

unread,
Nov 6, 2019, 8:16:02 PM11/6/19
to jenkinsc...@googlegroups.com
Matt Oshry commented on Bug JENKINS-60065
 
Re: durable_task_monitor_1.31_unix_32: Syntax error: "(" unexpected

Thanks Carroll Chiou. A preliminary test with 1.33 of the durable-task-plugin was successful.

cchiou@cloudbees.com (JIRA)

unread,
Nov 6, 2019, 10:17:03 PM11/6/19
to jenkinsc...@googlegroups.com
Change By: Carroll Chiou
Status: Open Fixed but Unreleased
Resolution: Duplicate

cchiou@cloudbees.com (JIRA)

unread,
Nov 6, 2019, 10:17:03 PM11/6/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
New message from cchiou@cloudbees.com (JIRA)