Execution Error: Unable to connect with robot

Hello everyone,

when trying to run the robot (Play recording), I get the following error message:

    > Unable to connect with robot
    >   com.workfusion.studio.rpa.recorder.player.driver.DriverInitializationException: Unable to connect with robot
    >       at com.workfusion.studio.rpa.recorder.player.driver.RpaUniversalDriver.connect(RpaUniversalDriver.java:121)
    >       at com.workfusion.studio.rpa.recorder.player.driver.RpaUniversalDriver.initialize(RpaUniversalDriver.java:49)
    >       at com.workfusion.studio.rpa.recorder.player.PlaybackLogic.run(PlaybackLogic.java:76)
    >       at java.lang.Thread.run(Unknown Source)
    >   Caused by: org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
    > Build info: version: '8.4.4', revision: 'e73f2bf5fc565c545ea6913c92cce4c1a2b8f871', time: '2017-12-04 13:17:22'
    > System info: host: 'LCE20432', ip: '10.130.26.32', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_74'
    > Driver info: driver.version: RpaUniversalDriver
    >       at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:633)
    >       at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:212)
    >       at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:94)
    >       at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:121)
    >       at com.freedomoss.crowdcontrol.webharvest.selenium.wrapper.RemoteDriverWrapper.<init>(RemoteDriverWrapper.java:44)
    >       at com.workfusion.studio.rpa.recorder.player.driver.RpaUniversalDriver.connect(RpaUniversalDriver.java:119)
    >       at com.workfusion.studio.rpa.recorder.player.driver.RpaUniversalDriver.initialize(RpaUniversalDriver.java:49)
    >       at com.workfusion.studio.rpa.recorder.player.PlaybackLogic.run(PlaybackLogic.java:76)
    >       at java.lang.Thread.run(Unknown Source)
    >   Caused by: org.apache.http.conn.HttpHostConnectException: Connect to localhost:15444 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect
    >       at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:151)
    >       at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
    >       at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
    >       at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
    >       at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
    >       at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
    >       at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
    >       at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
    >       at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:71)
    >       at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
    >       at org.openqa.selenium.remote.internal.ApacheHttpClient.fallBackExecute(ApacheHttpClient.java:144)
    >       at org.openqa.selenium.remote.internal.ApacheHttpClient.execute(ApacheHttpClient.java:90)
    >       at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
    >       at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:612)
    >       at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:212)
    >       at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:94)
    >       at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:121)
    >       at com.freedomoss.crowdcontrol.webharvest.selenium.wrapper.RemoteDriverWrapper.<init>(RemoteDriverWrapper.java:44)
    >       at com.workfusion.studio.rpa.recorder.player.driver.RpaUniversalDriver.connect(RpaUniversalDriver.java:119)
    >       at com.workfusion.studio.rpa.recorder.player.driver.RpaUniversalDriver.initialize(RpaUniversalDriver.java:49)
    >       at com.workfusion.studio.rpa.recorder.player.PlaybackLogic.run(PlaybackLogic.java:76)
    >       at java.lang.Thread.run(Unknown Source)
    >   Caused by: java.net.ConnectException: Connection refused: connect
    >       at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
    >       at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
    >       at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
    >       at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
    >       at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
    >       at java.net.PlainSocketImpl.connect(Unknown Source)
    >       at java.net.SocksSocketImpl.connect(Unknown Source)
    >       at java.net.Socket.connect(Unknown Source)
    >       at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:74)
    >       at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134)
    >       at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
    >       at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
    >       at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
    >       at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
    >       at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
    >       at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
    >       at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
    >       at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:71)
    >       at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
    >       at org.openqa.selenium.remote.internal.ApacheHttpClient.fallBackExecute(ApacheHttpClient.java:144)
    >       at org.openqa.selenium.remote.internal.ApacheHttpClient.execute(ApacheHttpClient.java:90)
    >       at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
    >       at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:612)
    >       at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:212)
    >       at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:94)
    >       at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:121)
    >       at com.freedomoss.crowdcontrol.webharvest.selenium.wrapper.RemoteDriverWrapper.<init>(RemoteDriverWrapper.java:44)
    >       at com.workfusion.studio.rpa.recorder.player.driver.RpaUniversalDriver.connect(RpaUniversalDriver.java:119)
    >       at com.workfusion.studio.rpa.recorder.player.driver.RpaUniversalDriver.initialize(RpaUniversalDriver.java:49)
    >       at com.workfusion.studio.rpa.recorder.player.PlaybackLogic.run(PlaybackLogic.java:76)
    >       at java.lang.Thread.run(Unknown Source)

Does anyone know how to solve this issue?

Thank you very much in advance! :slight_smile:

Did you check that the Bot Manager is up and running?

When I choose “Bot Manager” in the menu on the right side it gives me initially the message “starting” and then it always turns into red written “not started” (please see the picture)

.
Am I doing something wrong?
Thank you very much for your support.

Hi Aleksandra,
Does your computer meet the system requirements?
Try restarting RPA Express. Don’t start Control Tower and OCR (they are disabled by default). Does the bot manager start in this case?

Hello aleksandra,

Did your machine got network access something like LAN or WiFi. If not please follow the steps given here.
https://kb.workfusion.com/display/RPAe/Troubleshooting#expand-BotManagercannotbestarted

Thanks,
Kishore

1 Like

@aleksandra_pMD
Hi Aleksandra, did you have a chance to do the steps @kmkumar1 proposed?

Hello and thank you very much for you answers both of you! I have realized that my laptop is not fulfilling the system requirements needed to run the program.

Hello there,

I tried to run the recording but workfusion gives me following error:

Unable to connect with robot
com.workfusion.studio.rpa.recorder.player.driver.DriverInitializationException: Unable to connect with robot
at com.workfusion.studio.rpa.recorder.player.driver.RpaUniversalDriver.connect(RpaUniversalDriver.java:127)
at com.workfusion.studio.rpa.recorder.player.driver.RpaUniversalDriver.initialize(RpaUniversalDriver.java:64)
at com.workfusion.studio.rpa.recorder.player.PlaybackLogic.run(PlaybackLogic.java:75)
at java.lang.Thread.run(Unknown Source)
Caused by: org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Build info: version: ‘9.1.0.0’, revision: ‘fd814778f3’, time: ‘2018-08-23T11:59:12.788Z’
System info: host: ‘OCLT70588801’, ip: ‘172.17.89.179’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_191’
Driver info: driver.version: RpaUniversalDriver
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:744)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:265)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:247)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:148)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:185)
at com.freedomoss.crowdcontrol.webharvest.selenium.wrapper.RemoteDriverWrapper.(RemoteDriverWrapper.java:44)
at com.workfusion.studio.rpa.recorder.player.driver.RpaUniversalDriver.connect(RpaUniversalDriver.java:125)
at com.workfusion.studio.rpa.recorder.player.driver.RpaUniversalDriver.initialize(RpaUniversalDriver.java:64)
at com.workfusion.studio.rpa.recorder.player.PlaybackLogic.run(PlaybackLogic.java:75)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:4444 [/127.0.0.1] failed: Connection refused: connect
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:151)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:71)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
at org.openqa.selenium.remote.internal.ApacheHttpClient.fallBackExecute(ApacheHttpClient.java:139)
at org.openqa.selenium.remote.internal.ApacheHttpClient.execute(ApacheHttpClient.java:87)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:337)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:135)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:723)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:265)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:247)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:148)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:185)
at com.freedomoss.crowdcontrol.webharvest.selenium.wrapper.RemoteDriverWrapper.(RemoteDriverWrapper.java:44)
at com.workfusion.studio.rpa.recorder.player.driver.RpaUniversalDriver.connect(RpaUniversalDriver.java:125)
at com.workfusion.studio.rpa.recorder.player.driver.RpaUniversalDriver.initialize(RpaUniversalDriver.java:64)
at com.workfusion.studio.rpa.recorder.player.PlaybackLogic.run(PlaybackLogic.java:75)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:74)
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:71)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
at org.openqa.selenium.remote.internal.ApacheHttpClient.fallBackExecute(ApacheHttpClient.java:139)
at org.openqa.selenium.remote.internal.ApacheHttpClient.execute(ApacheHttpClient.java:87)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:337)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:135)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:723)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:265)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:247)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:148)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:185)
at com.freedomoss.crowdcontrol.webharvest.selenium.wrapper.RemoteDriverWrapper.(RemoteDriverWrapper.java:44)
at com.workfusion.studio.rpa.recorder.player.driver.RpaUniversalDriver.connect(RpaUniversalDriver.java:125)
at com.workfusion.studio.rpa.recorder.player.driver.RpaUniversalDriver.initialize(RpaUniversalDriver.java:64)
at com.workfusion.studio.rpa.recorder.player.PlaybackLogic.run(PlaybackLogic.java:75)
at java.lang.Thread.run(Unknown Source)

@shamrina check that the server profile is filled in https://kb.workfusion.com/display/RPAe/Preferences#Preferences-ServerProfiles

Hey Alesia,

so i did look at the preferences :slight_smile:
not sure what Username and Password to access Control Tower since i am running it on my own computer and i wasnt asked to put in any username and password when i installed workfusion. The same goes with Username and Password to access File Storage. In addition to that, for JWT Secret, i dont have any information in Secret Vault.

Thanks,
Mrinal