Tens of thousands of people were stuck in long queues at all entry points nationwide, after the country’s entire immigration system crashed following a major glitch.