Comments (9)
Hmm. Not sure this is related to this package specifically.
Just merged
caea759
went to deploy it to staging
could not find a good candidate within 90 attempts at load balancing
again
tried bumping staging to 512Mb RAM
still failing
rolled back to the previous version. All is well.
Currently stumped :/
from shields.
Error is could not find a good candidate within 90 attempts at load balancing
- only some docker hashes seem to trigger this behaviour
sha256:e77392c2f4cfa1a9da6a7754fd26911f560bc522e3fc0d56ee7386b910b0c5b1
sha256:42974bb5b7da023a8277fb7da86db1f884f5f8177d95f3ba8d14dd97184c9d35
are known bad. I don't know of any other bad ones
- SSH into an "unhealthy" instance, install curl.
curl http://127.0.0.1
andcurl http://0.0.0.0
work fine - Tried giving it MOAR memory, no difference
- Tried fiddling around with the
tcp_checks
settings (matched staging to prod, matched staging to review apps). No difference. Massively increased thetimeout
andgrace_period
. No differece. - Crazy thing is, if I deploy one of the "bad" images (to staging) and
flyctl scale count 2
, the app suddenly becomes accessible.flyctl scale count 1
and it is back tocould not find a good candidate within 90 attempts at load balancing
- Sometimes I can get a machine deployed from one of the "bad" images to start serving traffic by restarting it, but not consistently.
- Deploying once of the "bad" images, running
flyctl scale count 2
and then deleting the first machine that was deployed (keeping the second) consistently results in one working machine serving traffic. - Disabling
REQUIRE_CLOUDFLARE
has no bearing on it. Disable that and hit https://shields-io-staging.fly.dev/ - same behaviour - This feels like fly.io being wierd and flaky, but why do some specific images trigger this behaviour while others work perfectly?
The one thing I haven't tried is just yeeting one of the "bad" images to production. My instinct is they'd probably work because we're running multiple instance, but I'm reluctant to just try that without understanding wtf is going on first.
Utterly baffling.
from shields.
Some things I haven't tried yet:
- Deploy from GHCR or build a completely new image from the same commits + push to fly registry (to eliminate DockerHub)
- Make a completely clean app on fly using the staging settings - does this reproduce?
- Move the staging app to a different region
- Ritual sacrifice π
from shields.
Ritual sacrifice π
I think i can pitch in on this one π
from shields.
Or could possibly be a platform level issue: https://community.fly.io/t/could-not-find-a-good-candidate-at-load-balancing-outage/19172/16 ?
from shields.
Thanks. When I circle back to this I will check that out.
If I end up against a brick wall again, we do have email support with fly so raising a support ticket is another option once I have time to follow up.
from shields.
OK. So I just tried deploying sha256:42974bb5b7da023a8277fb7da86db1f884f5f8177d95f3ba8d14dd97184c9d35
to staging again. Worked fine.
I think I am going to assume that there is nothing wrong with any of the images and we were triggering some kind of issue on fly's side.
Assuming I don't run into this again trying to deploy later I will assume this is fixed and close this.
from shields.
I've now successfully run staging and production deploys.
Going to close this.
Glad I didn't spend more time banging my head against this brick wall when I first hit it.
from shields.
Indeed! Glad it's sorted
from shields.
Related Issues (20)
- TypeError: color.toLowerCase is not a function
- Github Downloads badge reverts to zero when I overwrite a release asset HOT 3
- Dependabot does not bump actions referenced from composite actions
- Bitbucket not completely finished workflow returns invalid response data HOT 5
- Matrix badges not working HOT 9
- Discord Embed not rendering HOT 3
- Azure DevOps - Build Badge - PAT Token not used on private projects HOT 1
- Chrome Web Store Version βnot foundβ HOT 4
- Static badge with data url logo doesn't work on GitHub if set as `srcset` attribute of `<source>` tag HOT 6
- On conda, the displayed badge version is outdated. HOT 2
- GitLab badges are not working HOT 5
- GitLab stars does not working anymore HOT 1
- llm trainning framework and libraries HOT 2
- GitLab top language
- Gitea workflow badge
- github/last-commit is looking at the authored date and not the commit date HOT 3
- crates.io dependents
- π SimpleIcons 12
- 404 Badge Not Found HOT 2
- Badge Request: GitHub Check ignore pending builds
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shields.