-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Strip version does not works properly even with simple Hello world program on java. #9278
Comments
@aehlig do you know what could cause the @systemlogic in 70eea93 I added github urls for java_tools zip in addition to the ones on mirror.bazel, hopefully that works. The change is going to land in bazel 1.0, but you can try it out with bazel@HEAD as well. I couldn't reproduce on my machine. |
@iirina you committed your changes 22 hours back and bazel binary is created 18 hours ago. So if I am not wrong, changes might have already in the latest binary. Is in it ? Also, connection reset happen at 12th sec every time. |
Unfortunately no, my commit is not in the latest release. bazel 0.29 was released yesterday, but its baseline was at the beginning of the month. See more in #8572. |
Just in case, My project details
|
@aehlig do you know what could cause the `Connection reset` error?
Well, whatever makes Java's `UrlConnection.connect()` throw such
an error. It could be the foreign host resetting the connection,
but also a timeout in trying to establish the connection; given
the observed timing, the latter sounds more likely. That _could_
mean, the host is not up, but also it could also mean that someone
on the way drops the packages, e.g., a misconfigured firewall on
your host.
@systemlogic in 70eea93 I
added github urls for java_tools zip in addition to the ones on
mirror.bazel, hopefully that works.
If you want a work around, you can also download the files manually
and put it where you collect your disfiles, and then point bazel
to it via the `--distdir` option.
…--
Klaus Aehlig
Google Germany GmbH, Erika-Mann-Str. 33, 80636 Muenchen
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschaeftsfuehrer: Paul Terence Manicle, Halimah DeLaine Prado
|
yes, It is fire wall issue. But I am surprised how come bazel is not able to download |
Is this still an issue? |
Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 14 days unless any other activity occurs or one of the following labels is added: "not stale", "awaiting-bazeler". Please reach out to the triage team ( |
This issue has been automatically closed due to inactivity. If you're still interested in pursuing this, please reach out to the triage team ( |
Description of the problem / feature request: Require heavy bundle of bazel which does have required tooling. Strip version of bazel is failing in most of the cases.
java.io.IOException: Error downloading [https://mirror.bazel.build/bazel_java_tools/releases/javac11/v4.0/java_tools_javac11_linux-v4.0.zip]
Feature requests: what underlying problem are you trying to solve with this feature?
any java target cause above issue
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
WARNING: Download from https://mirror.bazel.build/bazel_java_tools/releases/javac11/v4.0/java_tools_javac11_linux-v4.0.zip failed: class javax.net.ssl.SSLProtocolException Connection reset
ERROR: An error occurred during the fetch of repository 'remote_java_tools_linux':
java.io.IOException: Error downloading [https://mirror.bazel.build/bazel_java_tools/releases/javac11/v4.0/java_tools_javac11_linux-v4.0.zip] to /home/harora37/.cache/bazel/_bazel_harora37/bbea7929ac98478df803126c2ffe502a/external/remote_java_tools_linux/java_tools_javac11_linux-v4.0.zip: Connection reset
ERROR: /home/harora37/.cache/bazel/_bazel_harora37/bbea7929ac98478df803126c2ffe502a/external/bazel_tools/tools/jdk/BUILD:224:1: @bazel_tools//tools/jdk:JacocoCoverageRunner depends on @remote_java_tools_linux//:java_tools/JacocoCoverage_jarjar_deploy.jar in repository @remote_java_tools_linux which failed to fetch. no such package '@remote_java_tools_linux//': java.io.IOException: Error downloading [https://mirror.bazel.build/bazel_java_tools/releases/javac11/v4.0/java_tools_javac11_linux-v4.0.zip] to /home/harora37/.cache/bazel/_bazel_harora37/bbea7929ac98478df803126c2ffe502a/external/remote_java_tools_linux/java_tools_javac11_linux-v4.0.zip: Connection reset
ERROR: Analysis of target '//:Hello' failed; build aborted: no such package '@remote_java_tools_linux//': java.io.IOException: Error downloading [https://mirror.bazel.build/bazel_java_tools/releases/javac11/v4.0/java_tools_javac11_linux-v4.0.zip] to /home/harora37/.cache/bazel/_bazel_harora37/bbea7929ac98478df803126c2ffe502a/external/remote_java_tools_linux/java_tools_javac11_linux-v4.0.zip: Connection reset
INFO: Elapsed time: 14.269s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (15 packages loaded, 282 targets configured)
FAILED: Build did NOT complete successfully (15 packages loaded, 282 targets configured)
harora37@harora37:
/dummy$ ls/dummy$ bazel info releaseBUILD Hello.java WORKSPACE
harora37@harora37:
release 0.29.0
What operating system are you running Bazel on?
Ubuntu 16.04
What's the output of
bazel info release
?If
bazel info release
returns "development version" or "(@non-git)", tell us how you built Bazel.What's the output of
git remote get-url origin ; git rev-parse master ; git rev-parse HEAD
?this is private repo of IBM
Have you found anything relevant by searching the web?
bazelbuild/rules_scala#798 (comment)
but not helping
Any other information, logs, or outputs that you want to share?
No
FYI @johnynek @nlopezgi @cushon @katre @iirina
The text was updated successfully, but these errors were encountered: