Elections are run by the state.
It's run by the State but largely administered by the counties themselves. The state gets the resources to the counties and they are then responsible for staffing and assuring polling places are open.
The only honest answer here is that the primary was a clusterf*ck, the State failed in some ways, these counties failed in other ways, and it all needs to be fixed.