* Debug messages will be sent to sauce_connect.log
      Exception in thread "MainThread" Traceback (most recent call last):
        File "<string>", line 1, in <module>
        File "__pyclasspath__/sauce_connect.py", line 649, in setup_logging
        File "/var/lib/jenkins/plugins/sauce-ondemand/WEB-INF/lib/sauce-connect-3.0.18.jar/Lib/logging/handlers.py", line 109, in __init__
        File "/var/lib/jenkins/plugins/sauce-ondemand/WEB-INF/lib/sauce-connect-3.0.18.jar/Lib/logging/handlers.py", line 61, in __init__
        File "/var/lib/jenkins/plugins/sauce-ondemand/WEB-INF/lib/sauce-connect-3.0.18.jar/Lib/logging/__init__.py", line 770, in __init__
      IOError: (13, 'Permission denied', 'sauce_connect.log')
      

      Not sure where this is being thrown, the Jenkins process can definitely access /var/lib/jenkins on the master (that's its home directory)

      Ideally this shouldn't break the connector like this, but my hunch is that some how the slave is starting the tunnel and using a current working directory from the master (/var/lib/jenkins doesn't exist on the slaves).

      Check out the FilePath class which should help generate safe paths on slaves

          [JENKINS-13207] Sauce OnDemand fails to start up

          Ross Rowe added a comment -

          Hi, I've updated the plugin to set the working directory of the process which launches Sauce Connect to be the user's home directory. I've uploaded a snapshot version to https://repository-saucelabs.forge.cloudbees.com/release/org/jenkins-ci/plugins/sauce-ondemand/1.13-SNAPSHOT/sauce-ondemand-1.13-20120323.043826-1.hpi, could you let me know if this fixes the issue?

          Cheers,

          Ross

          Ross Rowe added a comment - Hi, I've updated the plugin to set the working directory of the process which launches Sauce Connect to be the user's home directory. I've uploaded a snapshot version to https://repository-saucelabs.forge.cloudbees.com/release/org/jenkins-ci/plugins/sauce-ondemand/1.13-SNAPSHOT/sauce-ondemand-1.13-20120323.043826-1.hpi , could you let me know if this fixes the issue? Cheers, Ross

          Code changed in jenkins
          User: Ross Rowe
          Path:
          pom.xml
          src/main/java/com/saucelabs/hudson/HudsonSauceConnectManager.java
          src/main/java/hudson/plugins/sauce_ondemand/PluginImpl.java
          src/main/java/hudson/plugins/sauce_ondemand/SauceOnDemandBuildWrapper.java
          src/main/resources/META-INF/plexus/components.xml
          src/main/resources/hudson/plugins/sauce_ondemand/PluginImpl/config.jelly
          src/main/resources/hudson/plugins/sauce_ondemand/PluginImpl/help-sauceConnectDirectory.html
          src/test/java/hudson/plugins/sauce_ondemand/SauceOnDemandBuildWrapperTest.java
          src/test/java/hudson/plugins/sauce_ondemand/SauceOnDemandReportPublisherTest.java
          http://jenkins-ci.org/commit/sauce-ondemand-plugin/39d23bb2168651951ee85a265e3fdb8827e069c0
          Log:
          JENKINS-13207 Provide ability for users to set the working directory for the Sauce Connect process

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ross Rowe Path: pom.xml src/main/java/com/saucelabs/hudson/HudsonSauceConnectManager.java src/main/java/hudson/plugins/sauce_ondemand/PluginImpl.java src/main/java/hudson/plugins/sauce_ondemand/SauceOnDemandBuildWrapper.java src/main/resources/META-INF/plexus/components.xml src/main/resources/hudson/plugins/sauce_ondemand/PluginImpl/config.jelly src/main/resources/hudson/plugins/sauce_ondemand/PluginImpl/help-sauceConnectDirectory.html src/test/java/hudson/plugins/sauce_ondemand/SauceOnDemandBuildWrapperTest.java src/test/java/hudson/plugins/sauce_ondemand/SauceOnDemandReportPublisherTest.java http://jenkins-ci.org/commit/sauce-ondemand-plugin/39d23bb2168651951ee85a265e3fdb8827e069c0 Log: JENKINS-13207 Provide ability for users to set the working directory for the Sauce Connect process

          Code changed in jenkins
          User: Ross Rowe
          Path:
          src/main/resources/hudson/plugins/sauce_ondemand/PluginImpl/help-updates.html
          src/main/resources/hudson/plugins/sauce_ondemand/SauceOnDemandBuildWrapper/help-browsers.html
          src/main/resources/hudson/plugins/sauce_ondemand/SauceOnDemandBuildWrapper/help-seleniumHost.html
          http://jenkins-ci.org/commit/sauce-ondemand-plugin/42a3630a84629e65e45a248bf21b575130b6f4b8
          Log:
          JENKINS-13207 Updated context help

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ross Rowe Path: src/main/resources/hudson/plugins/sauce_ondemand/PluginImpl/help-updates.html src/main/resources/hudson/plugins/sauce_ondemand/SauceOnDemandBuildWrapper/help-browsers.html src/main/resources/hudson/plugins/sauce_ondemand/SauceOnDemandBuildWrapper/help-seleniumHost.html http://jenkins-ci.org/commit/sauce-ondemand-plugin/42a3630a84629e65e45a248bf21b575130b6f4b8 Log: JENKINS-13207 Updated context help

          Ross Rowe added a comment -

          Resolved in version 1.12

          Ross Rowe added a comment - Resolved in version 1.12

            rossrowe Ross Rowe
            rtyler R. Tyler Croy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: