Getting the following error when running sauce-ondemand.  It was working before Jenkins upgrade.  Plugins re-initialized/upgraded, so I can't downgrade.

      ```

       

      16:52:11 Starting Sauce Connect on slave node using tunnel name: <removed>

      16:52:13 Launching Sauce Connect on localhost

      16:52:15 Deleting 1 temporary files 16:52:15 ERROR: Processing failed due to a bug in the code. Please report this to the issue tracker (https://jenkins.io/redirect/report-an-issue). 16:52:15 com.squareup.moshi.JsonDataException: Expected an int but was 18446744073709551615 at path $.metadata.nofile_limit 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.squareup.moshi.JsonUtf8Reader.nextInt(JsonUtf8Reader.java:965) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.squareup.moshi.StandardJsonAdapters$7.fromJson(StandardJsonAdapters.java:196) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.squareup.moshi.StandardJsonAdapters$7.fromJson(StandardJsonAdapters.java:193) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.squareup.moshi.internal.NullSafeJsonAdapter.fromJson(NullSafeJsonAdapter.java:41) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.squareup.moshi.ClassJsonAdapter$FieldBinding.read(ClassJsonAdapter.java:245) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.squareup.moshi.ClassJsonAdapter.fromJson(ClassJsonAdapter.java:205) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.squareup.moshi.internal.NullSafeJsonAdapter.fromJson(NullSafeJsonAdapter.java:41) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.squareup.moshi.ClassJsonAdapter$FieldBinding.read(ClassJsonAdapter.java:245) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.squareup.moshi.ClassJsonAdapter.fromJson(ClassJsonAdapter.java:205) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.squareup.moshi.internal.NullSafeJsonAdapter.fromJson(NullSafeJsonAdapter.java:41) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.squareup.moshi.JsonAdapter.fromJson(JsonAdapter.java:70) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.saucelabs.saucerest.api.AbstractEndpoint.deserializeJSONObject(AbstractEndpoint.java:336) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.saucelabs.saucerest.api.AbstractEndpoint.deserializeJSONObject(AbstractEndpoint.java:383) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.saucelabs.saucerest.api.SauceConnectEndpoint.getTunnelInformation(SauceConnectEndpoint.java:62) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.saucelabs.saucerest.api.SauceConnectEndpoint.getTunnelInformation(SauceConnectEndpoint.java:73) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.saucelabs.ci.sauceconnect.AbstractSauceTunnelManager.activeTunnelID(AbstractSauceTunnelManager.java:590) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.saucelabs.ci.sauceconnect.AbstractSauceTunnelManager.openConnection(AbstractSauceTunnelManager.java:432) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$SauceConnectHandler.call(SauceOnDemandBuildWrapper.java:1227) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$SauceConnectHandler.call(SauceOnDemandBuildWrapper.java:1100) 16:52:15 at hudson.remoting.UserRequest.perform(UserRequest.java:225) 16:52:15 at hudson.remoting.UserRequest.perform(UserRequest.java:50) 16:52:15 at hudson.remoting.Request$2.run(Request.java:391) 16:52:15 at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:81) 16:52:15 at java.base/java.util.concurrent.FutureTask.run(Unknown Source) 16:52:15 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 16:52:15 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 16:52:15 at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:140) 16:52:15 at java.base/java.lang.Thread.run(Unknown Source) 16:52:15 Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from brightsign-31d75g004923.<removed>.<removed>.com/10.80.2.101:50198 16:52:15 at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1787) 16:52:15 at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356) 16:52:15 at hudson.remoting.Channel.call(Channel.java:1003) 16:52:15 at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper.setUp(SauceOnDemandBuildWrapper.java:442) 16:52:15 at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:665) 16:52:15 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526) 16:52:15 at hudson.model.Run.execute(Run.java:1894) 16:52:15 at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543) 16:52:15 at hudson.model.ResourceController.execute(ResourceController.java:101) 16:52:15 at hudson.model.Executor.run(Executor.java:442) 16:52:15 project=hudson.maven.MavenModuleSet@691df617[Automation/Licensing/<removed>/Tests/<removed>_QA_Chrome_JDK8] 16:52:15 project.getModules()=[hudson.maven.MavenModule@2820a40b[Automation/Licensing/<removed>/Tests/<removed>_QA_Chrome_JDK8/com.<removed>.qualityservices.project.templates:api-acceptance-tests][Automation/Licensing/<removed>/Tests/<removed>_QA_Chrome_JDK8/com.<removed>.qualityservices.project.templates:api-acceptance-tests][relativePath:api-acceptance-tests], hudson.maven.MavenModule@4b22e97f[Automation/Licensing/<removed>/Tests/<removed>_QA_Chrome_JDK8/com.<removed>.qualityservices.project.templates:common][Automation/Licensing/<removed>/Tests/<removed>_QA_Chrome_JDK8/com.<removed>.qualityservices.project.templates:common][relativePath:common], hudson.maven.MavenModule@766014c4[Automation/Licensing/<removed>/Tests/<removed>_QA_Chrome_JDK8/com.<removed>.qualityservices.project.templates:mobile-android-native-acceptance-tests][Automation/Licensing/<removed>/Tests/<removed>_QA_Chrome_JDK8/com.<removed>.qualityservices.project.templates:mobile-android-native-acceptance-tests][relativePath:mobile-android-native-acceptance-tests], hudson.maven.MavenModule@1347e4b7[Automation/Licensing/<removed>/Tests/<removed>_QA_Chrome_JDK8/com.<removed>.qualityservices.project.templates:mobile-ios-native-acceptance-tests][Automation/Licensing/<removed>/Tests/<removed>_QA_Chrome_JDK8/com.<removed>.qualityservices.project.templates:mobile-ios-native-acceptance-tests][relativePath:mobile-ios-native-acceptance-tests], hudson.maven.MavenModule@519474a2[Automation/Licensing/<removed>/Tests/<removed>_QA_Chrome_JDK8/com.<removed>.qualityservices.project.templates:qe-licensing-<removed>][Automation/Licensing/<removed>/Tests/<removed>_QA_Chrome_JDK8/com.<removed>.qualityservices.project.templates:qe-licensing-<removed>][relativePath:], hudson.maven.MavenModule@265a2723[Automation/Licensing/<removed>/Tests/<removed>_QA_Chrome_JDK8/com.<removed>.qualityservices.project.templates:web-acceptance-tests][Automation/Licensing/<removed>/Tests/<removed>_QA_Chrome_JDK8/com.<removed>.qualityservices.project.templates:web-acceptance-tests][relativePath:web-acceptance-tests]] 16:52:15 project.getRootModule()=hudson.maven.MavenModule@519474a2[Automation/Licensing/<removed>/Tests/<removed>_QA_Chrome_JDK8/com.<removed>.qualityservices.project.templates:qe-licensing-<removed>][Automation/Licensing/<removed>/Tests/<removed>_QA_Chrome_JDK8/com.<removed>.qualityservices.project.templates:qe-licensing-<removed>][relativePath:] 16:52:15 FATAL: Expected an int but was 18446744073709551615 at path $.metadata.nofile_limit 16:52:15 Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from brightsign-31d75g004923.<removed>.<removed>.com/10.80.2.101:50198 16:52:15 at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1787) 16:52:15 at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356) 16:52:15 at hudson.remoting.Channel.call(Channel.java:1003) 16:52:15 at hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper.setUp(SauceOnDemandBuildWrapper.java:442) 16:52:15 at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:665) 16:52:15 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526) 16:52:15 at hudson.model.Run.execute(Run.java:1894) 16:52:15 at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543) 16:52:15 at hudson.model.ResourceController.execute(ResourceController.java:101) 16:52:15 at hudson.model.Executor.run(Executor.java:442) 16:52:15 com.squareup.moshi.JsonDataException: Expected an int but was 18446744073709551615 at path $.metadata.nofile_limit 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.squareup.moshi.JsonUtf8Reader.nextInt(JsonUtf8Reader.java:965) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.squareup.moshi.StandardJsonAdapters$7.fromJson(StandardJsonAdapters.java:196) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.squareup.moshi.StandardJsonAdapters$7.fromJson(StandardJsonAdapters.java:193) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.squareup.moshi.internal.NullSafeJsonAdapter.fromJson(NullSafeJsonAdapter.java:41) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.squareup.moshi.ClassJsonAdapter$FieldBinding.read(ClassJsonAdapter.java:245) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.squareup.moshi.ClassJsonAdapter.fromJson(ClassJsonAdapter.java:205) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.squareup.moshi.internal.NullSafeJsonAdapter.fromJson(NullSafeJsonAdapter.java:41) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.squareup.moshi.ClassJsonAdapter$FieldBinding.read(ClassJsonAdapter.java:245) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.squareup.moshi.ClassJsonAdapter.fromJson(ClassJsonAdapter.java:205) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.squareup.moshi.internal.NullSafeJsonAdapter.fromJson(NullSafeJsonAdapter.java:41) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.squareup.moshi.JsonAdapter.fromJson(JsonAdapter.java:70) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.saucelabs.saucerest.api.AbstractEndpoint.deserializeJSONObject(AbstractEndpoint.java:336) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.saucelabs.saucerest.api.AbstractEndpoint.deserializeJSONObject(AbstractEndpoint.java:383) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.saucelabs.saucerest.api.SauceConnectEndpoint.getTunnelInformation(SauceConnectEndpoint.java:62) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.saucelabs.saucerest.api.SauceConnectEndpoint.getTunnelInformation(SauceConnectEndpoint.java:73) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.saucelabs.ci.sauceconnect.AbstractSauceTunnelManager.activeTunnelID(AbstractSauceTunnelManager.java:590) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//com.saucelabs.ci.sauceconnect.AbstractSauceTunnelManager.openConnection(AbstractSauceTunnelManager.java:432) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$SauceConnectHandler.call(SauceOnDemandBuildWrapper.java:1227) 16:52:15 at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$SauceConnectHandler.call(SauceOnDemandBuildWrapper.java:1100) 16:52:15 at hudson.remoting.UserRequest.perform(UserRequest.java:225) 16:52:15 at hudson.remoting.UserRequest.perform(UserRequest.java:50) 16:52:15 at hudson.remoting.Request$2.run(Request.java:391) 16:52:15 at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:81) 16:52:15 at java.base/java.util.concurrent.FutureTask.run(Unknown Source) 16:52:15 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 16:52:15 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 16:52:15 at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:140) 16:52:15 at java.base/java.lang.Thread.run(Unknown Source)

       

       

       

       

       

          [JENKINS-73566] sauce-ondemand failing after Jenkins upgrade

          R added a comment -

          At the exact same time, the container gave the following error:

          java.lang.NullPointerException: Cannot invoke "hudson.model.Computer.getHostName()" because the return value of "hudson.model.Computer.currentComputer()" is null at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper.getCurrentHostName(SauceOnDemandBuildWrapper.java:325) at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$SauceConnectHandler.call(SauceOnDemandBuildWrapper.java:1171) at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$SauceConnectHandler.call(SauceOnDemandBuildWrapper.java:1100) at hudson.remoting.UserRequest.perform(UserRequest.java:225) at hudson.remoting.UserRequest.perform(UserRequest.java:50) at hudson.remoting.Request$2.run(Request.java:391) at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:81) at java.base/java.util.concurrent.FutureTask.run(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:140) at java.base/java.lang.Thread.run(Unknown Source)

          R added a comment - At the exact same time, the container gave the following error: java.lang.NullPointerException: Cannot invoke "hudson.model.Computer.getHostName()" because the return value of "hudson.model.Computer.currentComputer()" is null at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper.getCurrentHostName(SauceOnDemandBuildWrapper.java:325) at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$SauceConnectHandler.call(SauceOnDemandBuildWrapper.java:1171) at upgrade-remoting-to-3244.vf7f977e04755-or-higher 0x48edace//hudson.plugins.sauce_ondemand.SauceOnDemandBuildWrapper$SauceConnectHandler.call(SauceOnDemandBuildWrapper.java:1100) at hudson.remoting.UserRequest.perform(UserRequest.java:225) at hudson.remoting.UserRequest.perform(UserRequest.java:50) at hudson.remoting.Request$2.run(Request.java:391) at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:81) at java.base/java.util.concurrent.FutureTask.run(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:140) at java.base/java.lang.Thread.run(Unknown Source)

          Mark Waite added a comment -

          The message:

          upgrade-remoting-to-3244.vf7f977e04755-or-higher
          

          likely indicates that you have an agent connected that must be upgraded because it is running a version of Jenkins remoting that is too old for the Jenkins controller that you are running..

          That likely means that one or more of your agents are inbound agents and you need to disconnect that inbound agent from the controller and download the most recent agent jar file from the agent page of the Jenkins controller.

          If that doesn't resolve the issue, then you'll need to provide more details so that others can duplicate the issue. "How to report an issue" includes a list of the types of details that are needed so that others can duplicate the issue.

          Mark Waite added a comment - The message: upgrade-remoting-to-3244.vf7f977e04755-or-higher likely indicates that you have an agent connected that must be upgraded because it is running a version of Jenkins remoting that is too old for the Jenkins controller that you are running.. That likely means that one or more of your agents are inbound agents and you need to disconnect that inbound agent from the controller and download the most recent agent jar file from the agent page of the Jenkins controller. If that doesn't resolve the issue, then you'll need to provide more details so that others can duplicate the issue. "How to report an issue" includes a list of the types of details that are needed so that others can duplicate the issue.

          R added a comment -

          I'm using:
          ```
          INFO: Using Remoting version: 3256.v88a_f6e922152
          ```

          R added a comment - I'm using: ``` INFO: Using Remoting version: 3256.v88a_f6e922152 ```

            yfangsl Yeh Fang
            goobysnack R
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: