Support > Forums > OpenBots Studio > Connecting the agent with the server after restarting the computer

Connecting the agent with the server after restarting the computer

Jan Renec

  • Reporter
  • Calender Icon June 28,2021 at 7:05 AM

Hi all,

After computer restart ( Windows 10 Pro, with an active agent connection) I can not connect the agent with the server I get: Error occured while connecting to the server Details : Exception when calling AuthApi.GetAuthTokden: at least one error has occurred

This forum has 172 topics, 459 replies, and was last updated 1 hours ago by Poornima Malv

Nataly Alvarado

  • Participant
  • Calender Icon August 05,2021 at 5:57 PM

Hi Jan,

The described behavior has not been reported by other users. A possibility, is that it might be caused by a setting or configuration on your machine. Most likely related to the Registry. Our support team would need to take a closer look at your specific environment.

Jan Renec

  • Participant
  • Calender Icon August 03,2021 at 11:32 AM

OpenBots Studio/Agents ver 1.5.3 the same as in version 1.5.2 : Agent doesn't remember password ( I see empty password field)

Jan Renec

  • Participant
  • Calender Icon August 02,2021 at 4:49 PM

I do not change my network settings.

See my reply #8895

Nataly Alvarado

  • Participant
  • Calender Icon August 02,2021 at 2:25 PM

In this case, the user needs to ensure that the network adapter (or associated MAC address) doesn't change when working with Agent. This is because Agent uses the MAC address to encrypt/decrypt the Agent Password when it successfully connects to the Server.

To understand this let's consider a scenario:

  1. User starts Agent App (Agent reads the MAC address associated with the current network adapter *say Wifi network adapter)

  2. User connects the Agent (Agent encrypts the password using current MAC address which is associated with the Wifi network adapter)

  3. User disconnects the agent and quit the app

  4. User plugs in the Ethernet cable. It changes the network adapter from Wifi to Ethernet hence the MAC address also gets changed because each network adapter has different MAC address.

  5. Now if user restarts the Agent app it will load the MAC address associated with Ethernet adapter. Hence the agent password cannot be decrypted because it was encrypted using the MAC address that was associated with Wifi. In this case, user will not be able to connect the agent. So user will have to clear the credentials.

Jan Renec

  • Participant
  • Calender Icon August 02,2021 at 10:09 AM

Hello Nataly

>Therefore, you will need to connect the Agent manually when the service is reconnected.

But before I can do it ( connecting agent with server ), I have to enter my password again ( ver 1.5.2) or clear credentials ( ver 1.5.1) and enter username and password again

(Service : OpenBotsSVC(OpenBots.Service.Client.exe) is running of course )

PS Due to problems with agent ver 1.5.2 (main problem: disconnecting itself) I downgraded my OpenBots Agents ( and Studio) to version 1.5.1

Nataly Alvarado

  • Participant
  • Calender Icon July 30,2021 at 2:31 PM

Hello Jan,

yes, the service is interrupted when the computer is rebooted. Therefore, you will need to connect the Agent manually when the service is reconnected.

Please reference the post: Automatic-start-of-the-openbots-agent/

Jan Renec

  • Participant
  • Calender Icon July 28,2021 at 5:27 AM

Hello Nataly,

My network settings: -LAN1 -LAN2 -LAN3 ( address IP of this card taken by 'Machine Info" ), (I always connect to the OpenBots server through this card ) -LAN4 ( HyperV network switch, use LAN1, inetrnal) ( address MAC of this card taken by 'Machine Info" ) Settings fixed during Windows configuration and unchanged from then on

> Agent should remember the password and keep connectivity, as long as the Agent information remains valid or the service is interrupted.

It is only true until I reboot my computer.

Nataly Alvarado

  • Participant
  • Calender Icon July 26,2021 at 6:21 PM

Hello Jan,

In short, yes. Agent gets the MAC address of the network card that is being used at the time when Agent App gets started.

Let's consider the following sequence of events:

  • Agent App Started
  • Agent picked the Wifi Network Card's MAC (say 00:0a:95:9d:68:16)
  • User changed the network adapter from Wifi to Ethernet
  • User connects Agent (Now Agent will use the last card's MAC)

Agent should remember the password and keep connectivity, as long as the Agent information remains valid or the service is interrupted.

Jan Renec

  • Participant
  • Calender Icon July 23,2021 at 10:57 AM

Now after upgrade to version 1.5.2 (agent and server ) :

Agent does not remember its password :(

BTW Do you use last network card's MAC in Machine Info?

Nataly Alvarado

  • Participant
  • Calender Icon July 06,2021 at 3:40 PM

Hello Jan,

Thanks for the information. Our development team has confirmed that the root of the problem is caused by the Agent password not getting decrypted on retrieval from the Registry as it should. This is a machine specific issue, which will be resolved on the next version. For now, it will be necessary to clear and rewrite the Agent password when computer is restarted.

Hope this helps!

You are not authorized to reply, please click here to login and add your reply to this topic.