retry until server is up