Skip to main content
Question

Bot Stuck on "Connecting to Device"

  • February 14, 2025
  • 4 replies
  • 56 views

Forum|alt.badge.img+1

I have an Attended Bot license and I'm running a bot through a trigger, but the Control Room gets stuck on the message "Connecting to device" and does not proceed.

To fix this, I have to restart the services 2 to 5 times, which is quite tedious.

Has anyone encountered this issue? Is there any configuration or setting I might be missing to prevent this from happening?

4 replies

Forum|alt.badge.img+1

Hello community

I´m having issues when running my triggered bot on a device with a runner attended license. This bot is triggered with a mail trigger.

However, when I import the bot to the public folder to trying make test for execution i get this issue:

Connecting to device: “Device Name”

And the bot stay with the Pending execution status.

 

This only happens for this bot, because there are another bots with no issues.

 

 

 

 


Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+10
  • Automation Anywhere Team
  • 503 replies
  • February 14, 2025

The Bot Agent connects over port 443, just like regular HTTPS traffic over the web. I would check to see if there is firewall or anti-virus software that is interfering with the communication with the Control Room.

Alternately, you could try uninstalling the Bot Agent, clearing out the cache and configuration files, and reinstalling the Bot Agent.

Folders to clean:
c:\windows\system32\config\systemprofile\appdata\local\automationanywhere
C:\ProgramData\AutomationAnywhere


Forum|alt.badge.img+1
  • Author
  • Cadet | Tier 2
  • 1 reply
  • February 14, 2025

On that same server, with the same bot agent and in the same control room, other bots connect without any issues. That's why I believe the problem is with the bot itself rather than the environment configuration. But what could it be?


Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+10
  • Automation Anywhere Team
  • 503 replies
  • February 14, 2025
Diego Salgado wrote:

Hello community

I´m having issues when running my triggered bot on a device with a runner attended license. This bot is triggered with a mail trigger.

However, when I import the bot to the public folder to trying make test for execution i get this issue:

Connecting to device: “Device Name”

And the bot stay with the Pending execution status.

 

This only happens for this bot, because there are another bots with no issues.

That is very interesting. Typically, when I see the bot agent “stuck” in this state, it is because the Bot Runner has been stopped at an inopportune time. It makes me wonder if the bot is crashing something, kind of what ​@cvalladares said. 

One way to figure that out is to look at the bot runner logs, typically at C:\ProgramData\AutomationAnywhere\BotRunner\Logs (note that “c:\programdata” is a hidden folder).

You can also reset the bot agent using this site I made: https://developer.automationanywhere.com/deletedevice.php which isn’t a solution to the problem here, but rather a way to get the bot runner unstuck from its current state.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings