Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-31489

Error - Sauce Connect can't lock pidfile

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hi

      I have started to get the below error when I trigger jobs on jenkins. The job fails immediately. Anyone seen this error

      Launching Sauce Connect on sm1-jenkins3-1-sfm.eng.sfdc.net
      Sauce Connect can't lock pidfile, attempting to close open Sauce Connect processes
      FATAL: null
      java.lang.NullPointerException
      at com.saucelabs.ci.sauceconnect.AbstractSauceTunnelManager.openConnection(AbstractSauceTunnelManager.java:324)
      at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$SauceConnectHandler.call(SauceOnDemandBuildWrapper.java:913)
      at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper.setUp(SauceOnDemandBuildWrapper.java:348)
      at hudson.model.Build$BuildExecution.doRun(Build.java:156)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
      at hudson.model.Run.execute(Run.java:1744)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:374)

        Attachments

          Activity

          Hide
          sika Marius Horvat added a comment -

          There is no *.pid file on my build machine.

          Show
          sika Marius Horvat added a comment - There is no *.pid file on my build machine.
          Hide
          halkeye Gavin Mogan added a comment -

          Your error message says sauce connect is trying to be started on the master.

          Can you check to see if sauce connect (sc.exe) is running on your master?

          Show
          halkeye Gavin Mogan added a comment - Your error message says sauce connect is trying to be started on the master. Can you check to see if sauce connect (sc.exe) is running on your master?
          Hide
          sika Marius Horvat added a comment -

          The master is a VM machine and I don't have the credentials (IT guys are gone for today). I will try tomorrow and report.
          Thanks!

          Show
          sika Marius Horvat added a comment - The master is a VM machine and I don't have the credentials (IT guys are gone for today). I will try tomorrow and report. Thanks!
          Hide
          sika Marius Horvat added a comment - - edited

          Gavin,
          sauce connect was /indeed/ running on master. Master got restarted & everything start working fine.
          If sauce connect (sc.exe) is running or is stuck by whatever reason, then the current plugin v1.144 (sometimes) can't stop it.

          • Would you please add a case that handles this scenario, too?

          Thanks for helping me with the debug!

          Show
          sika Marius Horvat added a comment - - edited Gavin, sauce connect was /indeed/ running on master. Master got restarted & everything start working fine. If sauce connect (sc.exe) is running or is stuck by whatever reason, then the current plugin v1.144 (sometimes) can't stop it. Would you please add a case that handles this scenario, too? Thanks for helping me with the debug!
          Hide
          halkeye Gavin Mogan added a comment -

          I'm going to track this in JENKINS-31615 which has a bit more details.

          We'll absolutely be looking into this.

          Show
          halkeye Gavin Mogan added a comment - I'm going to track this in JENKINS-31615 which has a bit more details. We'll absolutely be looking into this.

            People

            Assignee:
            halkeye Gavin Mogan
            Reporter:
            suprinder Suprinder Pujji
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: