I think I got the reason. In the deployment wizard, for public resource management, I had other adobe servers selected. I changed it to tracking servers and it started working. If someone can provide more details why this change resolved it, will help a lot to understand it better.