TestProject Forum
Powered by leading experts in the test automation community

Error in remote agent registration in aws ec2 linux machine

I am getting error while trying to run the testproject agent in an aws ec2 Linux server.
following is the log that I get.
2020-09-07 21:56:04.022 INFO 9349 main i.t.a.Program *** AGENT - START ***
2020-09-07 21:56:04.200 INFO 9349 init-entry i.t.a.a TestProject Agent 0.64.22 (9b0b38813bf0032a085e5b3cc3804a8229bbea25) on Linux
2020-09-07 21:56:04.233 INFO 9349 init-entry i.t.a.a Running as /root with root privileges
2020-09-07 21:56:04.239 INFO 9349 init-entry i.t.a.a No X11 available - headless mode.
2020-09-07 21:56:04.242 INFO 9349 init-entry i.t.a.s.IdentityManager No identity file was found - Agent is not registered
2020-09-07 21:56:04.254 INFO 9349 init-entry i.t.a.a Working folder: /home/ec2-user/Testproject
2020-09-07 21:56:04.254 INFO 9349 init-entry i.t.a.a Data folder: /root/.testproject/agent
2020-09-07 21:56:04.270 INFO 9349 init-entry i.t.a.d.a.F Application initialization failed, Agent will stop now.
2020-09-07 21:56:04.277 INFO 9349 state-machine i.t.a.a Heartbeat State: Stopped
2020-09-07 21:56:04.277 INFO 9349 state-machine i.t.a.a Stopping…
2020-09-07 21:56:04.277 INFO 9349 state-machine i.t.a.a Stopping Identity Server client…
2020-09-07 21:56:04.281 INFO 9349 state-machine i.t.a.a Stopping internal web server…
2020-09-07 21:56:04.284 INFO 9349 state-machine i.t.a.a Stopping other servers (Selenium & Appium)…
2020-09-07 21:56:04.300 INFO 9349 state-machine i.t.a.a All modules stopped.
2020-09-07 21:56:04.301 INFO 9349 state-machine i.t.a.d.g Agent state machine stopped.
2020-09-07 21:56:04.302 INFO 9349 main i.t.a.Program Agent will exit with code: 5
2020-09-07 21:56:04.302 INFO 9349 main i.t.a.Program *** AGENT - STOP ***

Please help…!!!

Hello @vmishra
Can you please run the agent not as root?
Also make sure you did not install the agent as root as well.

Worked like a charm…Thank you…!!!