Hey there, it seems that i have an issue with my deployment. My staging web service is on the free tier. However, it keeps being unreachable if i send a request. I understand that the web service will go to sleep if there is no request and it will wake up when there is a request. However, it seems it does not wake up when i try to reach it after the first request and keeps sleeping before 60 minutes of inactivity. Seeing my metrics, the web service has not even reach its memory and cpu usage limit. Anyway you can help me with this?
Regards,
Gamma
Hey,
What happens exactly when you try to wake it up? Do you see a “Your service is almost ready” page? Does your service eventually boot?
Usually, how long does it take for your service to boot?
I checked our internal logs and I did not see any failure. However, I saw that it took a long time for your service to initialize. Is it normal?
Hey Nicolas, when it tries to boot up, the log keeps saying that the service is unhealthy and it tries to recover. But after it recovers and the log says the service is healthy, it becomes unreachable. Im currently trying out eco-nano instance for my staging web service. So far it is more stable. I will try to just pause the service manually if it’s not in use to save cost.
Regards,
Gamma
Hey!
I’m happy to debug it further and see where’s the issue, so it’s more convenient for you than having to pause/resume your service.
Could you deploy a Free instance running your staging project? This way I can check what’s going on without troubling your “real” staging project, running on the eco-nano instance.
Hey Nicolas, i think i figured out whats wrong, turns out i was testing the web service using iOS simulator. The issue arise when i made some changes to the web service and do the deployment less than 1 minute after i tested the web service. This is a known issue here: ios8 - Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." - Stack Overflow
Even though the solution in this SO thread does not work, however when i tried it using my real device, the web service is reachable and stable. For now, i will avoid using simulator to test the web service if i need to do a quick deployment. Will update you here if the issue still not resolved.
Regards,
Gamma
1 Like