While two people died when uprooted tin sheets fell on them, one woman died of heart attack and another of electrocution, according to police officials.
It occurred minutes ahead of the arrival of Chief Minister N Chandrababu Naidu to attend the celebrations and present silk clothes to the Lord Rama. The chief minister arrived over 90 minutes behind schedule because of rain and took part in the rituals.
The specially-erected pandals for the pilgrims were soaked with rain water and chaos was further compounded due to power outage.
One body was found late in the night and others were recovered after the pilgrims vacated the venue. 40 people of those injured were shifted to shifted to the Rajiv Institute of Medical Sciences in Kadapa for treatment.
A senior police official said an inquiry is being conducted into the various lapses that led to the tragedy at the festival.
(With inputs from PTI)
Get the latest election news, live updates and election schedule for Lok Sabha Elections 2019 on ndtv.com/elections. Like us on Facebook or follow us on Twitter and Instagram for updates from each of the 543 parliamentary seats for the 2019 Indian general elections.