cancel
Showing results for 
Search instead for 
Did you mean: 

Jenkins plugin - local tunnel

andyfrith2
New Contributor

Jenkins plugin - local tunnel

Hi,

 

I am trialling using the Jenkins CBT plugin and want to use the local tunnel with it, however it fails and doesn't give a very useful error message:

 

 

17:43:40 Going to use default tunnel
17:43:41 Tunnel is currently not running. Need to start one.
17:43:41 Waiting for the tunnel to establish a connection.
17:44:47 FATAL: Failed to start Local Tunnel
17:44:47 java.lang.Error: Failed to start Local Tunnel
17:44:47 	at org.jenkinsci.plugins.cbt_jenkins.CBTBuildWrapper.startLocalTunnel(CBTBuildWrapper.java:219)
17:44:47 	at org.jenkinsci.plugins.cbt_jenkins.CBTBuildWrapper.setUp(CBTBuildWrapper.java:309)
17:44:47 	at hudson.model.Build$BuildExecution.doRun(Build.java:157)
17:44:47 	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
17:44:47 	at hudson.model.Run.execute(Run.java:1894)
17:44:47 	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
17:44:47 	at hudson.model.ResourceController.execute(ResourceController.java:97)
17:44:47 	at hudson.model.Executor.run(Executor.java:428)

 

Is there any advice as to how I can debug and fix this?

 

Thanks

Andy

6 REPLIES 6
AlexKaras
Community Hero

Re: Jenkins plugin - local tunnel

Hi,

 

Jenkins plugin - local tunnel

Is Jenkins installed in the same network you are working in and are you trying to open a tunnel from Jenkins to the same local network?

You may start with consulting with your sysadmins - some networks do not allow opening VPN tunnels to them from the machine that is part of this network. Some other restrictions may also exist that your admins are aware of.

Create Support ticket via the https://support.smartbear.com/crossbrowsertesting/message/ form if sysadmins cannot help.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
andyfrith2
New Contributor

Re: Jenkins plugin - local tunnel

Thanks for your response.

 

Yes I'm trying to open the tunnel on the same network as Jenkins.

 

I noticed looking in the plugin code that it is looking for the embedded tunnel at 

"/cbt_tunnels/v0.9.3";

however I don't see this installed on my Jenkins install, so perhaps that is the issue? It sounds like the plugin should handle this automatically, but perhaps I should try the option to manually install the cbt_tunnel module and provide the path to it.

AlexKaras
Community Hero

Re: Jenkins plugin - local tunnel

Hi,

 

Have you followed steps described in the https://support.smartbear.com/crossbrowsertesting/docs/integrations/jenkins.html help article?

Also quote from it: "Optional: сheck Use Local Tunnel to run tests on webpages behind your firewall. (The CrossBrowserTesting Node.js Tunnel must be installed globally)."

 

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
andyfrith2
New Contributor

Re: Jenkins plugin - local tunnel

Thanks Alex, I hadn't seen that page before and it contradicts the documentation for the plugin I was reading at 

 

https://plugins.jenkins.io/crossbrowsertesting/

 

which states:

 

Optional: Check Use Local Tunnel to run tests on webpages behind your firewall. The CBT NodeJS Tunnel is embedded into the plugin and does not need to be install on the Jenkins Server. 

 

Hence I was expecting it to work out of the box. I would prefer to not be installing NPM modules directly onto Jenkins so I am currently trying by using the NPM module imported into our tests instead.

AlexKaras
Community Hero

Re: Jenkins plugin - local tunnel

@TanyaYatskovska , @sonya_m :

I hadn't seen that page before and it contradicts the documentation for the plugin I was reading at

Ladies, could you please ask technical writers of the appropriate team to take a look and make documentation to be consistent?

 

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
sonya_m
Community Manager

Re: Jenkins plugin - local tunnel

@AlexKaras Thanks again, Alex, I've informed the doc team, they'll look into it.


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements