Unable to Run the agent in MAC machine

I am unable to run the agent in the mac machine.
The agent is starting and shutting down at at time both scenarios are happening.

mostly it must be showing the message that agent is not able to connect to the testproject server. Its happening with me for past 7 days.