Traffic light remains red

This morning I stood at a traffic light at a not too big junction. Rather outside a stand in a more or less village. After 3 minutes we were still standing in 5 position behind the traffic light then we already thought what the fuck then we waited 5 minutes and then after 6 minutes we were the first the turned around. I think the had some defect after us then more and more reversed and drove a detour. I guess the the traffic light just skipped the green and orange. Have you ever experienced something similar that a traffic light stays red for 5 or 6 minutes?