TestProject Forum

Error while running docker-compose command

Hey !!!
I have created a yaml file and mentioned required field like API Key and Job ID. While running docker-compose command from command line. I am getting below error. Agent status stays disconnected and no jobs gets executed.

Failed to start gRPC server, CLI won’t be able to communicate with this Agent
testproject-agent | 2021-03-09 15:14:10.807 [INFO ] i.t.a.h Agent initialization is complete.
testproject-agent | 2021-03-09 15:14:10.824 [INFO ] i.t.a.e.a.J Checking if Agent is registered and trying to authenticate…
testproject-agent | 2021-03-09 15:14:10.825 [INFO ] i.t.a.s.IdentityManager No identity file was found - Agent is not registered
testproject-agent | 2021-03-09 15:14:10.825 [INFO ] i.t.a.e.a.J Checking if Agent is registered…
testproject-agent | 2021-03-09 15:14:10.825 [INFO ] i.t.a.e.a.J Checking if configuration passed via environment variable is present…
testproject-agent | 2021-03-09 15:14:10.826 [INFO ] i.t.a.e.a.J Trying to register with configuration provided…
testproject-agent | 2021-03-09 15:14:10.830 [INFO ] i.t.a.e.a.J Registering agent with configuration
testproject-agent | 2021-03-09 15:14:11.339 [INFO ] i.t.a.b.b.g Connecting TestProject servers…
testproject-agent | 2021-03-09 15:14:11.340 [INFO ] i.t.a.m.J Checking connectivity with https://ping.testproject.io (Using proxy: No)
testproject-agent | 2021-03-09 15:14:11.956 [INFO ] i.t.a.m.J Connection established successfully.
testproject-agent | 2021-03-09 15:14:11.958 [INFO ] i.t.a.b.b.g Registering Agent…
testproject-agent | 2021-03-09 15:14:11.960 [INFO ] i.t.a.b.b.g Preparing to send registration request to host
testproject-agent | 2021-03-09 15:14:12.474 [INFO ] i.t.a.b.b.g Sending registration request to
testproject-agent | 2021-03-09 15:14:14.916 [INFO ] i.t.a.b.a.d POST https://api.testproject.io/agents/registration/agents - 200 (z5E6ipXP): null
testproject-agent | 2021-03-09 15:14:14.917 [INFO ] i.t.a.b.b.g Registration request succeeded.
testproject-agent | 2021-03-09 15:14:15.250 [INFO ] i.t.a.m.K Registered successfully
testproject-agent | 2021-03-09 15:14:15.348 [INFO ] i.t.a.s.IdentityManager Agent identity has been saved
testproject-agent | 2021-03-09 15:14:15.457 [INFO ] i.t.a.e.a.J Agent is registered,
testproject-agent | 2021-03-09 15:14:15.467 [INFO ] i.t.a.e.a.a Authenticating with TestProject…
testproject-agent | 2021-03-09 15:14:15.469 [INFO ] i.t.a.s.c Requesting authenticating token…
testproject-agent | 2021-03-09 15:14:16.257 [INFO ] i.t.a.s.c Authenticated successfully
Updated state to: Stopped
testproject-agent | 2021-03-09 15:14:16.279 [INFO ] i.t.a.h Stopping…
testproject-agent | 2021-03-09 15:14:16.280 [INFO ] i.t.a.h Stopping Identity Server client…
testproject-agent | 2021-03-09 15:14:16.280 [INFO ] i.t.a.h Stopping internal web server…
testproject-agent | 2021-03-09 15:14:16.291 [INFO ] i.t.a.h Stopping other servers (Selenium & Appium)…
testproject-agent | 2021-03-09 15:14:16.306 [INFO ] i.t.a.a.a.c.a Stopping ADB…
testproject-agent | 2021-03-09 15:14:16.339 [INFO ] i.t.a.a.a.c.a ADB Stopped.
testproject-agent | 2021-03-09 15:14:16.361 [INFO ] i.t.a.h Unregistering Agent…
testproject-agent | 2021-03-09 15:14:16.362 [INFO ] i.t.a.s.IdentityManager Deleting agent identity file: id.dat
testproject-agent | 2021-03-09 15:14:16.362 [INFO ] i.t.a.h All modules stopped.
testproject-agent | 2021-03-09 15:14:16.363 [INFO ] i.t.a.e.g Agent state machine stopped.
testproject-agent | 2021-03-09 15:14:16.363 [INFO ] i.t.a.Program Agent will exit with code: 5
testproject-agent | 2021-03-09 15:14:16.364 [INFO ] i.t.a.Program *** AGENT - STOP ***
testproject-agent exited with code 5