Testproject Agent stops automatically and fails to rerun and execute the tests which are scheduled

We have installed TestProject agent in our virtual machine through docker installation and configured using Permanent Execution Engine.

I am getting the following error in logs:


**Error logs**

 Request token attempt 1 failed, retrying in 3 second...
testproject-agent    | 2022-08-09 00:36:44.162 [WARN ] i.t.a.f.c.a.a                            Failed to authenticate identity, might have been deleted from the server, deleting identity files...
testproject-agent    | 2022-08-09 00:36:44.163 [WARN ] i.t.a.s.IdentityManager                  Deleting agent identity file: id.dat
testproject-agent    | 2022-08-09 00:36:44.164 [INFO ] i.t.a.f.c.a.a                            Agent is running in docker, and since the identity is invalid, will stop now...
testproject-agent    | 2022-08-09 00:36:44.166 [INFO ] i.t.a.f.c.d                              Agent state machine stopped.
testproject-agent    | 2022-08-09 00:36:44.167 [INFO ] i.t.a.h                                  Stopping...
testproject-agent    | 2022-08-09 00:36:44.167 [INFO ] i.t.a.h                                  Stopping Identity Server client...
testproject-agent    | 2022-08-09 00:36:44.168 [INFO ] i.t.a.h                                  Stopping internal web server...
testproject-agent    | 2022-08-09 00:36:44.189 [INFO ] i.t.a.h                                  Stopping Appium server...
testproject-agent    | 2022-08-09 00:36:44.195 [INFO ] i.t.a.a.a.c.a                            Stopping ADB...
testproject-agent    | 2022-08-09 00:36:44.204 [INFO ] i.t.a.a.a.c.a                            ADB Stopped.
testproject-agent    | 2022-08-09 00:36:44.215 [INFO ] i.t.a.h                                  All modules stopped.
testproject-agent    | 2022-08-09 00:36:44.216 [INFO ] i.t.a.f.l.d                              Agent state machine stopped.
testproject-agent    | 2022-08-09 00:36:44.217 [INFO ] i.t.a.Program                            Agent will exit with code: 0
testproject-agent    | 2022-08-09 00:36:44.218 [INFO ] i.t.a.Program                            *** AGENT MANAGER - STOP ***
testproject-agent exited with code 0


Currently, we are deleting the agent from TestProject UI account, bringing down the containers and again re-running the containers to make it work again.
I think this happens everytime the TestProject server is down for maintenance. Any permanent solution to this.

3 Likes

We are also facing the exact same issue for the last few days. It’s messing up our production CI/CD pipelines. We spent quite a long time and tried a clean install but nothing helped.

1 Like

This is also happening to me. I have scheduled job with one test, runs every hour. It runs fine for a few hours, even upto 20 - then suddenly stops working and I have to re-register the agent otherwise it will just not execute and when tests I manually trigger don’t even go into executions until I re-register the agent.