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

Jenkins windows service does not launch Run time GUI of Browser

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: core
    • Environment:
      JDK 9.0.4
      Jenkins 2.135
      Chrome 67
      Windows 10 64
    • Similar Issues:

      Description

      Is there any settings under Jenkins configuration, From which we can enable GUI running by Jenkins ?

      Jenkins is executing internally, Console is running for Web services. What it is executing on Web browser is not showing, as it didn't launch browser. 

      I have tried many solution, But it didn't worked.

      I do not use war to get up Jenkins. Its Windows Installer package.   

       

      Some of the Errors: 

          [INFO]     [INFO] — maven-surefire-plugin:2.22.0:test (default-test) @ SR-Normalized ---    [INFO]     [INFO] -------------------------------------------------------    [INFO]  T E S T S    [INFO] -------------------------------------------------------    [INFO] Running notification_Rules.editNRule09_AllDevice_AllUser    Starting ChromeDriver 2.40.565498 (ea082db3280dd6843ebfb08a625e3eb905c4f5ab) on port 40916    Only local connections are allowed.    Aug 02, 2018 6:10:19 PM org.openqa.selenium.remote.ProtocolHandshake createSession    INFO: Detected dialect: OSS
          <Working Job>
          Test Termination    [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 190.686 s - in         [INFO]     [INFO] Results:    [INFO]     [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0    [INFO]     [INFO] ------------------------------------------------------------------------    [INFO] BUILD SUCCESS    [INFO] ------------------------------------------------------------------------    [INFO] Total time: 03:14 min    [INFO] Finished at: 2018-08-02T18:13:27+05:30    [INFO] ------------------------------------------------------------------------    Finished: SUCCESS
          System.exit() or native command error interrupted process checker.    java.lang.IllegalStateException: error [STOPPED] to read process 5044    at org.apache.maven.surefire.booter.PpidChecker.checkProcessInfo(PpidChecker.java:145)    at org.apache.maven.surefire.booter.PpidChecker.isProcessAlive(PpidChecker.java:116)    at org.apache.maven.surefire.booter.ForkedBooter$2.run(ForkedBooter.java:213)    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)    at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)    at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:300)    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)    at java.base/java.lang.Thread.run(Thread.java:844)

      Same script is working independent from IDE. 

      https://stackoverflow.com/questions/51631735/jenkins-is-not-launching-browser-but-its-running-internally

      Looking Forward.

       

        Attachments

          Activity

          Show
          oleg_nenashev Oleg Nenashev added a comment - Have you tried https://github.com/kohsuke/winsw/blob/master/doc/xmlConfigFile.md#interactive ?
          Hide
          ishita_shah Ishita Shah added a comment -

          Oleg Nenashev I think it can work. But How to configure it ? 

          Can I configure it in Jenkins.xml file ? It looks something like this:

          Show
          ishita_shah Ishita Shah added a comment - Oleg Nenashev I think it can work. But How to configure it ?  Can I configure it in Jenkins.xml file ? It looks something like this:
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          yes, it can be configured in jenkins.xml

          Show
          oleg_nenashev Oleg Nenashev added a comment - yes, it can be configured in jenkins.xml
          Hide
          ishita_shah Ishita Shah added a comment -

          Can you please share correct syntax for it,  

          What is parameter for it, 

           <interactive />

          Show
          ishita_shah Ishita Shah added a comment - Can you please share correct syntax for it,   What is parameter for it,   <interactive />
          Hide
          nayan_744 Nayan Gogoi added a comment -

          Hi Ishita,

          If I am getting it correctly.

          I also faced the same issue earlier in my local machine. 
          My test was running perfectly from the eclipse but when I moved to Jenkins it was only running in console mode. I was unable to view the UI.

          So for that, you just need to make your local machine as a Jenkins slave by creating a new slave node in your Jenkins and select that node to execute the Jenkins job.

          Show
          nayan_744 Nayan Gogoi added a comment - Hi Ishita, If I am getting it correctly. I also faced the same issue earlier in my local machine.  My test was running perfectly from the eclipse but when I moved to Jenkins it was only running in console mode. I was unable to view the UI. So for that, you just need to make your local machine as a Jenkins slave by creating a new slave node in your Jenkins and select that node to execute the Jenkins job.
          Hide
          tamilsiva Tamilsiva Sekar added a comment -

          HI Team, 

          I'm also facing same issue when try to execute in server

          Show
          tamilsiva Tamilsiva Sekar added a comment - HI Team,  I'm also facing same issue when try to execute in server

            People

            • Assignee:
              ishita_shah Ishita Shah
              Reporter:
              ishita_shah Ishita Shah
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: