From your query it clearly tells me that webserver is down while you try to login and hence it works after restart