Skip to content
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

EPIPE when uploading asset #197

Open
toolslive opened this issue May 10, 2017 · 3 comments
Open

EPIPE when uploading asset #197

toolslive opened this issue May 10, 2017 · 3 comments

Comments

@toolslive
Copy link

I tried

$ GH_COOKIE=alba git-upload-release openvstorage alba 1.3.15 ./xxx.deb 
uploading to release id 6335375
git-upload-release: internal error, uncaught exception:
                    Unix.Unix_error(Unix.EPIPE, "write", "")
                    Raised at file "src/core/lwt.ml", line 805, characters 16-23
                    Called from file "src/unix/lwt_main.ml", line 34, characters 8-18
                    Called from file "src/cmdliner_term.ml", line 27, characters 19-24
                    Called from file "src/cmdliner.ml", line 106, characters 32-39

(I had to look in the code to see how to force it not to use the infra cookie)
The output of uploading to release id .... shows that it gets a token and can find the specific release of the project from the tag.
The upload of the asset however, fails.

This was installed via opam (version:2.3.0)

@dsheets
Copy link
Member

dsheets commented May 10, 2017

Thanks for your report! How big is xxx.deb?

@dsheets
Copy link
Member

dsheets commented May 10, 2017

If you could also try with GITHUB_DEBUG=1 and COHTTP_DEBUG=1 that may be helpful. If you post the results back here, be sure to redact any github tokens or other sensitive info that the logs may contain.

@toolslive
Copy link
Author

xxx.deb is 22MB (22424088 bytes)
If I add both env vars, it will spit out 22MB of logs.
the relevant piece seems to be this:

>>> POST /repos/openvstorage/alba/releases/6335375/assets?access_token=xxx&name=./xxx.deb HTTP/1.1
>>> accept: application/vnd.github.v3+json
content-length: 22424088
content-type: application/octet-stream
host: uploads.github.com
user-agent: ocaml-github ocaml-cohttp/0.21.1
>>> !<arch>...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants