command.com.tek42.perforce.PerforceException

tip

This is a bug in some versions of the Arduino IDE. Try updating to the version 1.6.12 or further.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Text entry should trim whitespace when whitespace results in a configuration error. Example: Setup > Path to p4 executable add a space to the end of the entry, e.g., "/usr/bin/p4 " Result: java.io.IOException: Cannot run program "/usr/bin/p4 " Deleting the whitespace at the end of the command fixes the problem. The erroneous space character was the result of a copy/paste operation. It would simplify things to have the perforce plugin trim the whitespace. Console output: ===================================== Started by user anonymous Using master perforce client: client.name [workspace] $ "/usr/bin/p4 " workspace -o client.name Caught exception communicating with perforce. Could not run perforce command.com.tek42.perforce.PerforceException: Could not run perforce command. at hudson.plugins.perforce.HudsonP4Executor.exec(HudsonP4Executor.java:83) at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:289) at com.tek42.perforce.parse.Workspaces.getWorkspace(Workspaces.java:53) at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:951) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:499) at hudson.model.AbstractProject.checkout(AbstractProject.java:1054) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411) at hudson.model.Run.run(Run.java:1248) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:129) Caused by: java.io.IOException: Cannot run program "/usr/bin/p4 " (in directory "/var/lib/hudson/jobs/ProgressiveProxy/workspace"): java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:475) at hudson.Proc$LocalProc.<init>(Proc.java:192) at hudson.Proc$LocalProc.<init>(Proc.java:164) at hudson.Launcher$LocalLauncher.launch(Launcher.java:638) at hudson.Launcher$ProcStarter.start(Launcher.java:273) at hudson.plugins.perforce.HudsonP4Executor.exec(HudsonP4Executor.java:74) ... 11 more Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.<init>(UNIXProcess.java:164) at java.lang.ProcessImpl.start(ProcessImpl.java:81) at java.lang.ProcessBuilder.start(ProcessBuilder.java:468) ... 16 more Finished: FAILURE
    via by pauldigioia,
  • Text entry should trim whitespace when whitespace results in a configuration error. Example: Setup > Path to p4 executable add a space to the end of the entry, e.g., "/usr/bin/p4 " Result: java.io.IOException: Cannot run program "/usr/bin/p4 " Deleting the whitespace at the end of the command fixes the problem. The erroneous space character was the result of a copy/paste operation. It would simplify things to have the perforce plugin trim the whitespace. Console output: ===================================== Started by user anonymous Using master perforce client: client.name [workspace] $ "/usr/bin/p4 " workspace -o client.name Caught exception communicating with perforce. Could not run perforce command.com.tek42.perforce.PerforceException: Could not run perforce command. at hudson.plugins.perforce.HudsonP4Executor.exec(HudsonP4Executor.java:83) at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:289) at com.tek42.perforce.parse.Workspaces.getWorkspace(Workspaces.java:53) at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:951) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:499) at hudson.model.AbstractProject.checkout(AbstractProject.java:1054) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411) at hudson.model.Run.run(Run.java:1248) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:129) Caused by: java.io.IOException: Cannot run program "/usr/bin/p4 " (in directory "/var/lib/hudson/jobs/ProgressiveProxy/workspace"): java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:475) at hudson.Proc$LocalProc.<init>(Proc.java:192) at hudson.Proc$LocalProc.<init>(Proc.java:164) at hudson.Launcher$LocalLauncher.launch(Launcher.java:638) at hudson.Launcher$ProcStarter.start(Launcher.java:273) at hudson.plugins.perforce.HudsonP4Executor.exec(HudsonP4Executor.java:74) ... 11 more Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.<init>(UNIXProcess.java:164) at java.lang.ProcessImpl.start(ProcessImpl.java:81) at java.lang.ProcessBuilder.start(ProcessBuilder.java:468) ... 16 more Finished: FAILURE
    via by pauldigioia,
  • Saw the following log whilst nothing has changed during the period: ======================================== INFO: job_name_here #4437 main build action completed: SUCCESS Mar 27, 2012 6:11:09 AM com.tek42.perforce.parse.AbstractPerforceTemplate login WARNING: Using p4 issued ticket. Mar 27, 2012 6:21:10 AM com.tek42.perforce.parse.AbstractPerforceTemplate login WARNING: Using p4 issued ticket. Mar 27, 2012 6:31:09 AM com.tek42.perforce.parse.AbstractPerforceTemplate login WARNING: Using p4 issued ticket. Mar 27, 2012 6:41:09 AM com.tek42.perforce.parse.AbstractPerforceTemplate login WARNING: Using p4 issued ticket. Mar 27, 2012 6:51:09 AM com.tek42.perforce.parse.AbstractPerforceTemplate login WARNING: Using p4 issued ticket. Mar 27, 2012 7:01:09 AM com.tek42.perforce.parse.AbstractPerforceTemplate login WARNING: Using p4 issued ticket. Mar 27, 2012 7:01:18 AM hudson.model.Run run INFO: job_name_here #4438 main build action completed: SUCCESS Mar 27, 2012 7:11:10 AM com.tek42.perforce.parse.AbstractPerforceTemplate login WARNING: Using p4 issued ticket. Mar 27, 2012 7:21:10 AM com.tek42.perforce.parse.AbstractPerforceTemplate login WARNING: Using p4 issued ticket. Mar 27, 2012 7:31:10 AM com.tek42.perforce.parse.AbstractPerforceTemplate login WARNING: Using p4 issued ticket. Mar 27, 2012 7:43:09 AM com.tek42.perforce.parse.AbstractPerforceTemplate login WARNING: Login with '/tools/perforce/2010.1/bin.linux26x86/p4' failed: Login attempt failed: Password invalid. Mar 27, 2012 7:43:09 AM com.tek42.perforce.parse.AbstractPerforceTemplate login WARNING: Attempt to workaround p4 executable location failed com.tek42.perforce.PerforceException: Could not run perforce command. at hudson.plugins.perforce.HudsonP4DefaultExecutor.exec(HudsonP4DefaultExecutor.java:88) at com.tek42.perforce.parse.AbstractPerforceTemplate.p4Login(AbstractPerforceTemplate.java:596) at com.tek42.perforce.parse.AbstractPerforceTemplate.login(AbstractPerforceTemplate.java:566) at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:372) at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:292) at com.tek42.perforce.parse.Workspaces.getWorkspace(Workspaces.java:61) at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1325) at hudson.plugins.perforce.PerforceSCM.compareRemoteRevisionWith(PerforceSCM.java:1019) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356) at hudson.scm.SCM.poll(SCM.java:373) at hudson.model.AbstractProject.poll(AbstractProject.java:1340) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:420) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:449) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: java.io.IOException: Cannot run program "/usr/bin/p4" (in directory "/projects/jenkins/jenkins_home"): java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) at hudson.Proc$LocalProc.<init>(Proc.java:244) at hudson.Proc$LocalProc.<init>(Proc.java:216) at hudson.Launcher$LocalLauncher.launch(Launcher.java:707) at hudson.Launcher$ProcStarter.start(Launcher.java:338) at hudson.plugins.perforce.HudsonP4DefaultExecutor.exec(HudsonP4DefaultExecutor.java:79) ... 19 more Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.<init>(UNIXProcess.java:148) at java.lang.ProcessImpl.start(ProcessImpl.java:65) at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) ... 24 more Problem: Login attempt failed: Password invalid. Mar 27, 2012 7:51:09 AM com.tek42.perforce.parse.AbstractPerforceTemplate login WARNING: Using p4 issued ticket. Mar 27, 2012 8:01:09 AM com.tek42.perforce.parse.AbstractPerforceTemplate login WARNING: Using p4 issued ticket. Mar 27, 2012 8:01:10 AM com.tek42.perforce.parse.AbstractPerforceTemplate login WARNING: Using p4 issued ticket. Mar 27, 2012 8:01:12 AM hudson.model.Run run INFO: job_name_here #4439 main build action completed: SUCCESS
    via by lestin,
  • I have a Master and Two slaves. The Linux Slave is behaving very well. The problem is only related to the Windows Slave. It works nicely, till the problem happens. The only way to fix it is restarting Jenkins. Its a real problem, and affecting my teamwork. People ask me why the build was not triggered, and I then ask them to commit something else, after I quickly reboot Jenkins. While the error is happening, I get: Git Polling Log Started on Jul 3, 2014 3:10:24 PM Using strategy: Default [poll] Last Built Revision: Revision 8ae038f280a0faa58243ec1df7af64d961a951c8 (origin/master) using GIT_SSH to set credentials > C:\git\cmd\git.exe ls-remote -h git@gitlab:group/repo.git master FATAL: hudson.plugins.git.GitException: Error performing command: C:\git\cmd\git.exe ls-remote -h git@gitlab:group/repo.git master hudson.util.IOException2: hudson.plugins.git.GitException: Error performing command: C:\git\cmd\git.exe ls-remote -h git@gitlab:group/repo.git master at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:459) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356) at hudson.scm.SCM.poll(SCM.java:373) at hudson.model.AbstractProject._poll(AbstractProject.java:1584) at hudson.model.AbstractProject.poll(AbstractProject.java:1493) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:462) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:491) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:679) Caused by: hudson.plugins.git.GitException: Error performing command: C:\git\cmd\git.exe ls-remote -h git@gitlab:group/repo.git master at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1332) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1186) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1110) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1101) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getHeadRev(CliGitAPIImpl.java:1788) at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:492) at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:457) ... 13 more Caused by: java.io.IOException: Cannot run program "C:\git\cmd\git.exe": java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:488) at hudson.Proc$LocalProc.<init>(Proc.java:244) at hudson.Proc$LocalProc.<init>(Proc.java:216) at hudson.Launcher$LocalLauncher.launch(Launcher.java:773) at hudson.Launcher$ProcStarter.start(Launcher.java:353) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1321) ... 19 more Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.<init>(UNIXProcess.java:164) at java.lang.ProcessImpl.start(ProcessImpl.java:81) at java.lang.ProcessBuilder.start(ProcessBuilder.java:470) ... 24 more Done. Took 68 ms No changes I know, it looks like git.exe is not there. But it is, really is. After restarting Jenkins, this happens (on another repo I was able to see the same error, and not I can push something). Started on Jul 3, 2014 4:04:40 PM Polling SCM changes on WINMACHINE Using strategy: Default [poll] Last Built Revision: Revision 62e80167e7067ede25727c3cb96885551694c860 (origin/master) > C:\git\cmd\git.exe rev-parse --is-inside-work-tree Fetching changes from the remote Git repositories > C:\git\cmd\git.exe config remote.origin.url git@gitlab:tools/repo.git Fetching upstream changes from git@gitlab:tools/repo.git > C:\git\cmd\git.exe --version using GIT_SSH to set credentials > C:\git\cmd\git.exe fetch --tags --progress git@gitlab:tools/repo.git +refs/heads/:refs/remotes/origin/ Polling for changes in Seen branch in repository origin/master Seen 1 remote branch > C:\git\cmd\git.exe log --full-history --no-abbrev --format=raw -M -m --raw 62e80167e7067ede25727c3cb96885551694c860..bb82f97faa7e27ba53c600050c8bef66df7fe5d0 Done. Took 18 sec Changes found Interesting is that now, right below the date, it says: "Polling SCM changes on WINMACHINE" This was not available on previous information... It cannot be trying to go to the wrong machine... or "no-machine"? Its odd... And I am using "branches to build" = */master Another interesting thing... when not works, I can see this line: at java.lang.UNIXProcess.<init>(UNIXProcess.java:164) Why I got an UNUXProcess error, if I am running it on a WinMachine? Does it make sense? As per the checklist: - I was not running git --version as build step, but was using git log. I already changed my pre-build script, which affects all jobs. Cannot force the error to happen, so I need to wait will next time the problem happen - All Projects are restricted to run or on Linux or on Windows Slave machines. In this case, it affects only projects tied to Windows Slave. - My GitPolling is configured as @yearly, since my GitLab installation does the trigger to the polling. - I am not forcing pulling. I could not understood why I should use this, and on its description, we can read: "If this option is selected, polling will require a workspace and might trigger unwanted builds (see JENKINS-10131)." The only fix I can do is rebooting Jenkins. Then everything starts to work again, for a while. Lovato
    via by Marco Lovato,
  • The build fails when trying to execute rvm-installer if the job name contains a space: {code} Building in workspace /var/lib/jenkins/workspace/RVM test Capturing environment variables produced by 'rvm use 2.0.0-p247' $ bash -c export $ bash -c "test -f ~/.rvm/scripts/rvm" $ bash -c "test -f /usr/local/rvm/scripts/rvm" Installing RVM $ /var/lib/jenkins/workspace/RVM test/rvm-installer FATAL: Cannot run program "/var/lib/jenkins/workspace/RVM": java.io.IOException: error=2, No such file or directory java.io.IOException: Cannot run program "/var/lib/jenkins/workspace/RVM": java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:475) at hudson.Proc$LocalProc.<init>(Proc.java:244) at hudson.Proc$LocalProc.<init>(Proc.java:216) at hudson.Launcher$LocalLauncher.launch(Launcher.java:775) at hudson.Launcher$ProcStarter.start(Launcher.java:355) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:440) at org.jruby.javasupport.JavaMethod.invokeDirect(JavaMethod.java:304) at org.jruby.java.invokers.InstanceMethodInvoker.call(InstanceMethodInvoker.java:52) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:134) at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:64) at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:75) at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:225) at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:204) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:202) at org.jruby.ast.FCallSpecialArgNode.interpret(FCallSpecialArgNode.java:41) at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:64) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:75) at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:225) at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:204) at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:346) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:204) at org.jruby.ast.CallTwoArgNode.interpret(CallTwoArgNode.java:59) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.ast.IfNode.interpret(IfNode.java:116) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:75) at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:268) at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:220) at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:366) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:238) at org.jruby.ast.CallThreeArgNode.interpret(CallThreeArgNode.java:61) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.ast.RescueNode.executeBody(RescueNode.java:224) at org.jruby.ast.RescueNode.interpret(RescueNode.java:119) at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:75) at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:112) at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:126) at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:163) at org.jruby.javasupport.proxy.JavaProxyConstructor$2.invoke(JavaProxyConstructor.java:224) at org.jruby.proxy.hudson.tasks.BuildWrapper$Proxy2.setUp(Unknown Source) at hudson.model.Build$BuildExecution.doRun(Build.java:153) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:518) at hudson.model.Run.execute(Run.java:1706) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231) Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.<init>(UNIXProcess.java:164) at java.lang.ProcessImpl.start(ProcessImpl.java:81) at java.lang.ProcessBuilder.start(ProcessBuilder.java:468) ... 56 more {code}
    via by Daniel Serodio,
  • Saw the following log whilst nothing has changed during the period: ======================================== INFO: job_name_here #4437 main build action completed: SUCCESS Mar 27, 2012 6:11:09 AM com.tek42.perforce.parse.AbstractPerforceTemplate login WARNING: Using p4 issued ticket. Mar 27, 2012 6:21:10 AM com.tek42.perforce.parse.AbstractPerforceTemplate login WARNING: Using p4 issued ticket. Mar 27, 2012 6:31:09 AM com.tek42.perforce.parse.AbstractPerforceTemplate login WARNING: Using p4 issued ticket. Mar 27, 2012 6:41:09 AM com.tek42.perforce.parse.AbstractPerforceTemplate login WARNING: Using p4 issued ticket. Mar 27, 2012 6:51:09 AM com.tek42.perforce.parse.AbstractPerforceTemplate login WARNING: Using p4 issued ticket. Mar 27, 2012 7:01:09 AM com.tek42.perforce.parse.AbstractPerforceTemplate login WARNING: Using p4 issued ticket. Mar 27, 2012 7:01:18 AM hudson.model.Run run INFO: job_name_here #4438 main build action completed: SUCCESS Mar 27, 2012 7:11:10 AM com.tek42.perforce.parse.AbstractPerforceTemplate login WARNING: Using p4 issued ticket. Mar 27, 2012 7:21:10 AM com.tek42.perforce.parse.AbstractPerforceTemplate login WARNING: Using p4 issued ticket. Mar 27, 2012 7:31:10 AM com.tek42.perforce.parse.AbstractPerforceTemplate login WARNING: Using p4 issued ticket. Mar 27, 2012 7:43:09 AM com.tek42.perforce.parse.AbstractPerforceTemplate login WARNING: Login with '/tools/perforce/2010.1/bin.linux26x86/p4' failed: Login attempt failed: Password invalid. Mar 27, 2012 7:43:09 AM com.tek42.perforce.parse.AbstractPerforceTemplate login WARNING: Attempt to workaround p4 executable location failed com.tek42.perforce.PerforceException: Could not run perforce command. at hudson.plugins.perforce.HudsonP4DefaultExecutor.exec(HudsonP4DefaultExecutor.java:88) at com.tek42.perforce.parse.AbstractPerforceTemplate.p4Login(AbstractPerforceTemplate.java:596) at com.tek42.perforce.parse.AbstractPerforceTemplate.login(AbstractPerforceTemplate.java:566) at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:372) at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:292) at com.tek42.perforce.parse.Workspaces.getWorkspace(Workspaces.java:61) at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1325) at hudson.plugins.perforce.PerforceSCM.compareRemoteRevisionWith(PerforceSCM.java:1019) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356) at hudson.scm.SCM.poll(SCM.java:373) at hudson.model.AbstractProject.poll(AbstractProject.java:1340) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:420) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:449) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: java.io.IOException: Cannot run program "/usr/bin/p4" (in directory "/projects/jenkins/jenkins_home"): java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) at hudson.Proc$LocalProc.<init>(Proc.java:244) at hudson.Proc$LocalProc.<init>(Proc.java:216) at hudson.Launcher$LocalLauncher.launch(Launcher.java:707) at hudson.Launcher$ProcStarter.start(Launcher.java:338) at hudson.plugins.perforce.HudsonP4DefaultExecutor.exec(HudsonP4DefaultExecutor.java:79) ... 19 more Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.<init>(UNIXProcess.java:148) at java.lang.ProcessImpl.start(ProcessImpl.java:65) at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) ... 24 more Problem: Login attempt failed: Password invalid. Mar 27, 2012 7:51:09 AM com.tek42.perforce.parse.AbstractPerforceTemplate login WARNING: Using p4 issued ticket. Mar 27, 2012 8:01:09 AM com.tek42.perforce.parse.AbstractPerforceTemplate login WARNING: Using p4 issued ticket. Mar 27, 2012 8:01:10 AM com.tek42.perforce.parse.AbstractPerforceTemplate login WARNING: Using p4 issued ticket. Mar 27, 2012 8:01:12 AM hudson.model.Run run INFO: job_name_here #4439 main build action completed: SUCCESS
    via by lestin,
  • I have a Master and Two slaves. The Linux Slave is behaving very well. The problem is only related to the Windows Slave. It works nicely, till the problem happens. The only way to fix it is restarting Jenkins. Its a real problem, and affecting my teamwork. People ask me why the build was not triggered, and I then ask them to commit something else, after I quickly reboot Jenkins. While the error is happening, I get: Git Polling Log Started on Jul 3, 2014 3:10:24 PM Using strategy: Default [poll] Last Built Revision: Revision 8ae038f280a0faa58243ec1df7af64d961a951c8 (origin/master) using GIT_SSH to set credentials > C:\git\cmd\git.exe ls-remote -h git@gitlab:group/repo.git master FATAL: hudson.plugins.git.GitException: Error performing command: C:\git\cmd\git.exe ls-remote -h git@gitlab:group/repo.git master hudson.util.IOException2: hudson.plugins.git.GitException: Error performing command: C:\git\cmd\git.exe ls-remote -h git@gitlab:group/repo.git master at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:459) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356) at hudson.scm.SCM.poll(SCM.java:373) at hudson.model.AbstractProject._poll(AbstractProject.java:1584) at hudson.model.AbstractProject.poll(AbstractProject.java:1493) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:462) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:491) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:679) Caused by: hudson.plugins.git.GitException: Error performing command: C:\git\cmd\git.exe ls-remote -h git@gitlab:group/repo.git master at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1332) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1186) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1110) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1101) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getHeadRev(CliGitAPIImpl.java:1788) at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:492) at hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:457) ... 13 more Caused by: java.io.IOException: Cannot run program "C:\git\cmd\git.exe": java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:488) at hudson.Proc$LocalProc.<init>(Proc.java:244) at hudson.Proc$LocalProc.<init>(Proc.java:216) at hudson.Launcher$LocalLauncher.launch(Launcher.java:773) at hudson.Launcher$ProcStarter.start(Launcher.java:353) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1321) ... 19 more Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.<init>(UNIXProcess.java:164) at java.lang.ProcessImpl.start(ProcessImpl.java:81) at java.lang.ProcessBuilder.start(ProcessBuilder.java:470) ... 24 more Done. Took 68 ms No changes I know, it looks like git.exe is not there. But it is, really is. After restarting Jenkins, this happens (on another repo I was able to see the same error, and not I can push something). Started on Jul 3, 2014 4:04:40 PM Polling SCM changes on WINMACHINE Using strategy: Default [poll] Last Built Revision: Revision 62e80167e7067ede25727c3cb96885551694c860 (origin/master) > C:\git\cmd\git.exe rev-parse --is-inside-work-tree Fetching changes from the remote Git repositories > C:\git\cmd\git.exe config remote.origin.url git@gitlab:tools/repo.git Fetching upstream changes from git@gitlab:tools/repo.git > C:\git\cmd\git.exe --version using GIT_SSH to set credentials > C:\git\cmd\git.exe fetch --tags --progress git@gitlab:tools/repo.git +refs/heads/:refs/remotes/origin/ Polling for changes in Seen branch in repository origin/master Seen 1 remote branch > C:\git\cmd\git.exe log --full-history --no-abbrev --format=raw -M -m --raw 62e80167e7067ede25727c3cb96885551694c860..bb82f97faa7e27ba53c600050c8bef66df7fe5d0 Done. Took 18 sec Changes found Interesting is that now, right below the date, it says: "Polling SCM changes on WINMACHINE" This was not available on previous information... It cannot be trying to go to the wrong machine... or "no-machine"? Its odd... And I am using "branches to build" = */master Another interesting thing... when not works, I can see this line: at java.lang.UNIXProcess.<init>(UNIXProcess.java:164) Why I got an UNUXProcess error, if I am running it on a WinMachine? Does it make sense? As per the checklist: - I was not running git --version as build step, but was using git log. I already changed my pre-build script, which affects all jobs. Cannot force the error to happen, so I need to wait will next time the problem happen - All Projects are restricted to run or on Linux or on Windows Slave machines. In this case, it affects only projects tied to Windows Slave. - My GitPolling is configured as @yearly, since my GitLab installation does the trigger to the polling. - I am not forcing pulling. I could not understood why I should use this, and on its description, we can read: "If this option is selected, polling will require a workspace and might trigger unwanted builds (see JENKINS-10131)." The only fix I can do is rebooting Jenkins. Then everything starts to work again, for a while. Lovato
    via by Marco Lovato,
  • The build fails when trying to execute rvm-installer if the job name contains a space: {code} Building in workspace /var/lib/jenkins/workspace/RVM test Capturing environment variables produced by 'rvm use 2.0.0-p247' $ bash -c export $ bash -c "test -f ~/.rvm/scripts/rvm" $ bash -c "test -f /usr/local/rvm/scripts/rvm" Installing RVM $ /var/lib/jenkins/workspace/RVM test/rvm-installer FATAL: Cannot run program "/var/lib/jenkins/workspace/RVM": java.io.IOException: error=2, No such file or directory java.io.IOException: Cannot run program "/var/lib/jenkins/workspace/RVM": java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:475) at hudson.Proc$LocalProc.<init>(Proc.java:244) at hudson.Proc$LocalProc.<init>(Proc.java:216) at hudson.Launcher$LocalLauncher.launch(Launcher.java:775) at hudson.Launcher$ProcStarter.start(Launcher.java:355) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:440) at org.jruby.javasupport.JavaMethod.invokeDirect(JavaMethod.java:304) at org.jruby.java.invokers.InstanceMethodInvoker.call(InstanceMethodInvoker.java:52) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:134) at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:64) at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:75) at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:225) at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:204) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:202) at org.jruby.ast.FCallSpecialArgNode.interpret(FCallSpecialArgNode.java:41) at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:64) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:75) at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:225) at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:204) at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:346) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:204) at org.jruby.ast.CallTwoArgNode.interpret(CallTwoArgNode.java:59) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.ast.IfNode.interpret(IfNode.java:116) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:75) at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:268) at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:220) at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:366) at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:238) at org.jruby.ast.CallThreeArgNode.interpret(CallThreeArgNode.java:61) at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:105) at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) at org.jruby.ast.RescueNode.executeBody(RescueNode.java:224) at org.jruby.ast.RescueNode.interpret(RescueNode.java:119) at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:75) at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:112) at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:126) at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:163) at org.jruby.javasupport.proxy.JavaProxyConstructor$2.invoke(JavaProxyConstructor.java:224) at org.jruby.proxy.hudson.tasks.BuildWrapper$Proxy2.setUp(Unknown Source) at hudson.model.Build$BuildExecution.doRun(Build.java:153) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:518) at hudson.model.Run.execute(Run.java:1706) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231) Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.<init>(UNIXProcess.java:164) at java.lang.ProcessImpl.start(ProcessImpl.java:81) at java.lang.ProcessBuilder.start(ProcessBuilder.java:468) ... 56 more {code}
    via by Daniel Serodio,
    • command.com.tek42.perforce.PerforceException: Could not run perforce command. at hudson.plugins.perforce.HudsonP4Executor.exec(HudsonP4Executor.java:83) at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:289) at com.tek42.perforce.parse.Workspaces.getWorkspace(Workspaces.java:53) at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:951) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:499) at hudson.model.AbstractProject.checkout(AbstractProject.java:1054) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411) at hudson.model.Run.run(Run.java:1248) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:129) Caused by: java.io.IOException: Cannot run program "/usr/bin/p4 " (in directory "/var/lib/hudson/jobs/ProgressiveProxy/workspace"): java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:475) at hudson.Proc$LocalProc.<init>(Proc.java:192) at hudson.Proc$LocalProc.<init>(Proc.java:164) at hudson.Launcher$LocalLauncher.launch(Launcher.java:638) at hudson.Launcher$ProcStarter.start(Launcher.java:273) at hudson.plugins.perforce.HudsonP4Executor.exec(HudsonP4Executor.java:74) ... 11 more Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.<init>(UNIXProcess.java:164) at java.lang.ProcessImpl.start(ProcessImpl.java:81) at java.lang.ProcessBuilder.start(ProcessBuilder.java:468) ... 16 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    124 more bugmates