# Secure Connection Failed PR\_END\_OF\_FILE\_ERROR during/after deployment

**URL:** <https://community.fly.io/t/secure-connection-failed-pr-end-of-file-error-during-after-deployment/4103>\
**Category:** Build debugging\
**Created:** [February 17, 2022, 2:36pm UTC](https://community.fly.io/t/secure-connection-failed-pr-end-of-file-error-during-after-deployment/4103 "2022-02-17T14:36:03Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![greg](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/greg/32/2119_2.png) [@greg](https://community.fly.io/u/greg)\
**Post date:** [February 17, 2022, 4:05pm UTC](https://community.fly.io/t/secure-connection-failed-pr-end-of-file-error-during-after-deployment/4103/4 "2022-02-17T16:05:56Z")

</div>

There is a known slow service propagation issue to which a fix is being developed. As such it can take up to a minute before requests are routed to new vms after a deploy and so get handled as expected.

As @zee says what you need is for an _old_ vm to hang around long enough so your _new_ vm route, service etc is fully propagated. If you only have one vm this issue randomly happens. As you say, transient. It can be mitigated by having _three_:

> [@Internal network DNS propagation and new deployments](https://community.fly.io/t/internal-network-dns-propagation-and-new-deployments/3672/4):
>
> Yes I think that will work! The deploy downtime you see through \<app\>.fly.dev is probably due to our slow service propagation. If you’re running behind an nginx, it probably won’t affect you. The workaround until we get this fixed is to fly scale count 3. You can see more details here: [how do fly.io deploys work? - #2 by kurt](https://community.fly.io/t/how-do-fly-io-deploys-work/3378/2)

… since it’s likely by the time the third _old_ vm is replaced, the first _new_ vm is ready to go, routing-wise. As this issue is fixed that won’t be necessary, however for now I’ve found that helps (in my case with the _rolling_ strategy). So if you get it again, give that a try.

---

_[View the full topic](https://community.fly.io/t/secure-connection-failed-pr-end-of-file-error-during-after-deployment/4103)._
