Can't communicate with browser - Unattended only

I am having an issue where I get the following error:

Robot - -Cannot communicate with the browser, please check the UiPath extension.

For a process, but only when the process is run unattended, kicked off from orchestrator. I am able to run the process version in assistant, as an automation user, and in debug with studio and they successfully attach to the browser.

I have tried:

  1. Restarting PC
  2. Uninstalling and reinstalling the extension
  3. Uninstalling and reinstalling UiPath
  4. Uninstalling and reinstalling chrome/edge
  5. Reauthenticating robot
  6. Checking all steps in: Studio - Cannot communicate with the browser

None of these solutions have worked. Has anyone else run into this?

Do you have UiPath installed in service mode, not user mode, on the server where you’re trying to run the job unattended? When you installed the extension on that server, did you install it for all users?

Hi @Mason_Turvey_Silver

Are you trying to run unattended using the same user you ran from in attended mode?

Also, is the machine same?

If not, are you able to login to the machine where you are trying run it in unattended mode?

If yes, please go to chrome on below link:

Chrome://extensions

And then see if you can find your UiPath extension there installed and enabled as well?

@Mason_Turvey_Silver Check the extension is installed and enabled specifically for the unattended user account log in as that user (not your main account) and verify the extension is there and active.

Confirm that UiPath’s native messaging host isn’t blocked by antivirus add UiPath folders to antivirus exclusion.

@arjun.shiroya @sonaliaggarwal47 @postwick

I am running automations under the same user I am currently logged in as, on my personal machine. I have no issue running other processes, so have confirmed that this user works for unattended connection.

The extension is enabled and incognito settings and file settings enabled in chrome://extensions

UiPath studio is installed in service mode for all users on the machine, and robot is connected as unattended and retrieves license fine.

@Mason_Turvey_Silver

Does this happen for a specific process and is it at a specific step?

Cheers

Hi @Mason_Turvey_Silver

So, its happening for a specific process.

  1. Does this issue always happen or its random?

  2. Does it always happen at the same point in process? if yes, what is that step doing?

  3. It happens for chrome browser or edge. i see there is a mention of edge browser as well. if its for edge, checking the sleeping tabs issue with edge browser might be worth.

@Anil_G @sonaliaggarwal47

It is happening consistently for every Use Browser activity in all processes, regardless of the browser (both edge and chrome). Each process waits 60 seconds after reaching the Use Browser activity, then times out an produces the above error.

The processes that are working are not using use browser or any ui automation

@Mason_Turvey_Silver Try Switching the Robot from Service Mode to User Mode on your machine

Hi @Mason_Turvey_Silver

Can you please show us the properties of your use browser activity?

Also, what version of ui automation package you are using?

This doesn’t make sense. You don’t install in service mode for a user. Service mode is machine-wide. That’s the point to service mode.

@Mason_Turvey_Silver

what @postwick says makes sense..

can you confirm how it is installed

and do you have screenshots..can you check if you can see the browser extension

cheers

@postwick yes its installed machine wide, in service mode. That’s what I mean by for all users.

@Anil_G service mode, and yes the extension is installed and shows in chrome. It even works with debugging in studio

1 Like

@Mason_Turvey_Silver

Are there any group policies on the machines?

please open event viewer log and check the errors matching the time

also any screenshot from error?

cheers