Support > Forums > OpenBots Studio > Connecting the agent with the server after restarting the computer
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 317 topics, 687 replies, and was last updated 4 months ago by Nataly Alvarado...
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.
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)
I do not change my network settings.
See my reply #8895
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:
User starts Agent App (Agent reads the MAC address associated with the current network adapter *say Wifi network adapter)
User connects the Agent (Agent encrypts the password using current MAC address which is associated with the Wifi network adapter)
User disconnects the agent and quit the app
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.
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.
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
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/
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.
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 should remember the password and keep connectivity, as long as the Agent information remains valid or the service is interrupted.
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?
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.