-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intermittent errors in deploy error handling #10
Comments
Same here when running via CircleCI. Unfortunately this blocks us from using Netlify. |
Any idea @biilmann @cassiozen? |
I pushed an update to netlify-cli yesterday that mainly pulls in an updated version of the node client library. The fix in the node client was related to deploys with many concurrent uploads failing with that kind of error. Can you make sure you're on netlify-cli v1.0.3 and let me know if that version still has the problem? |
Hey @biilmann. I've installed the |
ah, I filed #13 today - to give us some better debugging tools around this same issue. |
Any update on this? 80% of our builds are seeing this error... |
Hi @schickling and @ilkka - I think we just fixed the longer term problem with larger deploys. Can you give v1.1.0 a spin and let us know how it goes? |
Thanks, we'll bump our dependency and see how it goes! |
OK, this is still an issue with version 1.1.0 and I've now seen it firsthand and think we (@netlify) will be able to reproduce well enough to debug. Is there anyone attached to this issue (mainly not sure about @ilkka ) who isn't using CircleCI when they get the error? It felt to me like the "working" deploys completed at least an order of magnitude faster than the failing ones, so while I'm not suggesting this as a long-term workaround or a fix, you may get some mileage out of a stopgap with something like the first answer here to restart a failed deploy rather than having to redo the build: |
We've hit some walls in debugging this and want to take it to CircleCI - but are not paying customers. Does one of you who is a paying customer mind writing in with a real ticket (rather than a forum post which is all we can do for free) and cc:ing myself (chrism@netlify.com) and our buildmaster (ryan@netlify.com) so we can present our evidence and ask them for help? After that point we probably don't actually need you to spend any time at it, just trying to get in the door :) If someone does it please comment here so we don't hit them multiple times in parallel. (cc @schickling and @ilkka) |
hmm, haven't heard back from anyone yet but would like to make some progress on this - @schickling any chance you can email Circle and cc: us? |
Sorry we're also not on the needed pricing plan and they haven't responded to our previous inquiries yet. |
Yeah, sorry, we're still only freeloaders on CircleCI too. |
seems to be happening to TravisCI customers as well sometimes, grr! (https://app.intercom.io/a/apps/q245f50x/inbox/conversation/6853522502) |
Yeah, it's gotten pretty bad for us. Now happening for 9/10 builds for some repos... |
Any progress on this? |
I was looking for this ticket! check it out! https://github.com/netlify/netlifyctl If you want to see an example of using it in circle-ci check out this https://github.com/rybit/circle-ci-test-repo |
Thanks for this update @rybit! Are there any plans to phase out the JS version of |
That is definitely part of an ongoing discussion we're having, but it will definitely be supported for the foreseeable future. Idealy we would bundle it inside a node module, but that is still a ways out. |
I actually fixed it twice, while I was waiting for the first one to go through Circle Ci.
Hope this helps. |
@aj0strow can you create a PR for the original |
I'm also seeing this error every time using bitbucket pipelines. The call that hangs for me is the createDeploy call in node-client: https://github.com/netlify/node-client/blob/22117378564500d082b281f4e8c0f62e4ca5fe56/lib/site.js#L144 It's failing with a socket hangup, which looks like it's actually making the connection but not receiving any data. Do you see the connection being made on your side? I'm able to make the GET request for the site before this call, so at least something is making a connection. Here's the request data if it helps (without the 161 files from the post body):
|
I was able to hack something together to get this to work, but I'm still not sure of the root cause. I found that simply retrying the request in node wasn't doing the trick. Instead I was able to fall back to curl to make the request instead. It's a total hack, but the code is here: https://github.com/jppurcell9/node-client/tree/feature/retry-if-no-data |
@jppurcell9 have you tried the go client? It might be easier than subshelling out to curl |
@rybit I got the go client to work. Thanks! |
All of sudden I've starting to get the same error in my jenkins machine. My build is very small and consists only of few dozens of files less than 2 MiBs in total. |
Any ETA on when the go binary will be shipped via NPM? It's a pretty big deal for us. |
@schickling from what I understand, CircleCI allows to install many runtimes/libs into build image and also allow to download custom binaries so you could just use |
@rozhok it's rather a matter of convenience/maintainability since we're mainting dozens of repos using Netlify for deployment. |
Having the same issue on Visual Studio Team Services build system. The
|
Any update on this @netlify? This is still a huge pain for us. |
While pull requests are welcomed, we will probably not put a lot more development effort into netlify-cli https://github.com/netlify/netlifyctl is the tool that can reliably deploy today, and will definitely be developed further in the future. |
Closing since this issue appears stale. Feel free to reopen if we run into similar issues on the 2.0.0 node cli release. |
After deploying my project to netlify. I saw something wrong to my website. My imported assets cant read by netlify but i can run it well on localhost. Anything can help me about my problem? |
Sorry @Cjay123, doesn't ring a bell. If you have a reproducible problem you can demonstrate in an issue, gist or repo, please open an issue. |
I have this problem when I do
but, after few seconds I run the same command again it then work fine.
Not sure if it help to point out to the cause of the problem... |
Nice catch @worrawutp, we should make the polling step while waiting for the deploy to finish up more resilient to random errors or transport errors. |
* chore: change package details * chore: update package * chore: bump * chore: add @netlify/edge-bundler * chore: bump * chore: remove npmrc line * chore: bump version * chore: update @netlify/edge-bundler * feat: deploy Edge Handlers to internal path * feat: add local development experience * chore: bump version * chore: update @netlify/edge-bundler * refactor: move `watcher` util * feat: add `configWatcher` * feat: updates to Edge Handlers dev server * chore: update @netlify/edge-bundler * refactor: remove unused error binding * chore: update package name * chore: update deps * fix: use correct URL path when matching Edge Handlers * chore: bump version * chore: bump version * feat: add support for internal handlers in local dev (#1) * feat: add support for internal handlers in local dev * refactor: correctly merge declarations * chore: bump version * fix: run config watcher only on certain commands (#2) * chore: bump version * chore: bump version * feat: add support for user import maps (#3) * feat: add support for user import maps * feat: warn when failing to read import map file * chore: bump version * chore: bump version * fix: improve error handling for Edge Handlers (#4) * chore: bump version * feat: listen for `NETLIFY_DENO_DEBUG` environment variable (#5) * feat: listen for `NETLIFY_DENO_DEBUG` environment variable * chore: upgrade @netlify-labs/edge-bundler * chore: bump version * fix: use `0.0.0.0` for Deno server host (#6) * fix: wait for Edge Handlers server to become available (#7) * fix: wait for Edge Handlers server to become available * refactor: wait for server inside request * refactor: increase timeout * refactor: use watcher from correct location * chore: update package.json * chore: disable release-please * feat: replace @netlify/build with @netlify-labs/build-internal * chore: use token in CI * refactor: use existing config watcher * chore: remove unused variables * chore: remove actions * chore: remove action * chore: update test * chore: add tests * chore: move env to job * chore: remove duplicate env * chore: fix tests * chore: remove unused imports * fix: check if EH directory exists before deploy * feat: rename Edge Handlers to Edge Functions (#9) * chore: fix linting issue * chore: fix tests * chore: fix test * chore: add `withEdgeFunction` test helper * chore: remove `console.log` * feat: add `generate` command * chore: add tests * refactor: rename variable * refactor: remove old Edge Handlers code * chore: update packages * fix: remove reference to traffic-mesh * chore: fix linting issue * chore: fix linting issue * refactor: remove unused code * refactor: remove `dev:trace` command * chore: setup Deno in the CI * refactor: use different localhost IP * chore: fix linting issues * refactor: remove nullish coalesce * refactor: remove nullish coalesce * chore: undo test change * fix: unixify Windows paths * feat: set `deno.path` in VS Code settings * chore: update test snapshot * refactor: update message * refactor: rename command * chore: update command name in test * chore: update test snapshot * chore: add test snapshot
We are deploying a Netlify site as part of a Jenkins build, and sometimes are seeing what look like network connection issues between our CI provider and Netlify. The troublesome aspect here is that Jenkins fails to flag these builds as failed, thinking that they've succeeded regardless of this error output at the bottom of the console log:
The "error handling error" seems to be trying to parse
error.data
, containing the string "Error: ..." in error_logger.js. Don't know why that would cause an exit with return code 0 though, or if there are more Jenkins shenanigans actually causing that.The text was updated successfully, but these errors were encountered: