You didn't told on what OS this agent is running. When I develop plugins, there constant need to restart the agent. I've seen these
2009-04-09 13:22:30,665 ERROR [Thread-1] [AutoinventoryCommandsServer] Unable to send autoinventory platform data to server, sleeping for 22 secs before retrying. Error: Unable to communicate with server -- provider not yet setup
messages many times, especially on windows. There is few things what I usually try:
1. If Win, skipping starting agent through service. Instead using direct command: hq-agent.bat start.
2. Also I may try to delete agents 'data' directory before restart.
3. If not success, try to use hq-agent.bat command under bundle. (bundles/agentXXX/bin/hq-agent.bat)
Sometimes this tanuki wrapper stuff just seems to fail. Don't know why.