com.tek42.perforce.PerforceException: Failed to open connection to: p4

Jenkins JIRA | yschimke | 9 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    After downgrading to 1.0.11 of the perforce plugin, we are occasionally getting the following non fatal Exception. com.tek42.perforce.PerforceException: Failed to open connection to: p4 at com.tek42.perforce.process.CmdLineExecutor.exec(CmdLineExecutor.java:63) at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:184) at com.tek42.perforce.parse.Workspaces.getWorkspace(Workspaces.java:26) at hudson.plugins.perforce.PerforceSCM.pollChanges(PerforceSCM.java:345) at hudson.model.AbstractProject.pollSCMChanges(AbstractProject.java:633) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:253) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:285) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) Caused by: java.io.IOException: java.io.IOException: Too many open files at java.lang.UNIXProcess.<init>(UNIXProcess.java:148) at java.lang.ProcessImpl.start(ProcessImpl.java:65) at java.lang.ProcessBuilder.start(ProcessBuilder.java:451) at com.tek42.perforce.process.CmdLineExecutor.exec(CmdLineExecutor.java:58) ... 12 more lsof shows that the file count is jumping between high 200s to over 1000 which is when we start getting this error. Most of the file handles are pipes. java 1313 platot 206r FIFO 0,7 101871703 pipe java 1313 platot 207r FIFO 0,7 101876010 pipe java 1313 platot 212r FIFO 0,7 101871708 pipe java 1313 platot 305r FIFO 0,7 101689401 pipe

    Jenkins JIRA | 9 years ago | yschimke
    com.tek42.perforce.PerforceException: Failed to open connection to: p4
  2. 0

    After downgrading to 1.0.11 of the perforce plugin, we are occasionally getting the following non fatal Exception. com.tek42.perforce.PerforceException: Failed to open connection to: p4 at com.tek42.perforce.process.CmdLineExecutor.exec(CmdLineExecutor.java:63) at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:184) at com.tek42.perforce.parse.Workspaces.getWorkspace(Workspaces.java:26) at hudson.plugins.perforce.PerforceSCM.pollChanges(PerforceSCM.java:345) at hudson.model.AbstractProject.pollSCMChanges(AbstractProject.java:633) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:253) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:285) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) Caused by: java.io.IOException: java.io.IOException: Too many open files at java.lang.UNIXProcess.<init>(UNIXProcess.java:148) at java.lang.ProcessImpl.start(ProcessImpl.java:65) at java.lang.ProcessBuilder.start(ProcessBuilder.java:451) at com.tek42.perforce.process.CmdLineExecutor.exec(CmdLineExecutor.java:58) ... 12 more lsof shows that the file count is jumping between high 200s to over 1000 which is when we start getting this error. Most of the file handles are pipes. java 1313 platot 206r FIFO 0,7 101871703 pipe java 1313 platot 207r FIFO 0,7 101876010 pipe java 1313 platot 212r FIFO 0,7 101871708 pipe java 1313 platot 305r FIFO 0,7 101689401 pipe

    Jenkins JIRA | 9 years ago | yschimke
    com.tek42.perforce.PerforceException: Failed to open connection to: p4

    Root Cause Analysis

    1. com.tek42.perforce.PerforceException

      Failed to open connection to: p4

      at com.tek42.perforce.process.CmdLineExecutor.exec()
    2. com.tek42.perforce
      CmdLineExecutor.exec
      1. com.tek42.perforce.process.CmdLineExecutor.exec(CmdLineExecutor.java:63)
      1 frame