Unable to connect agent with Scheduler