-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Build did NOT complete successfully #14289
Comments
The error message says IO timed out. Pls try to check if you can access |
I can access to the url outside docker, In docker, I need to use proxychains. |
@Xinchengzelin I came across the same problem.. just cannot download inside the docker |
Have you found the solutions? |
Not yet, the same problem in #14105, and the author somehow closed it with no solutions given. |
If you don't mind, you can do the following
and then try again |
I copy the tar.gz into docker /tmp dir, but it showed /tmp/981f06c3d2bd10225e85209904090eb7b5fb26bd.tar.gz (No such file or directory) |
Now I can solve the rules_java and build_bazel_rules_swift by your way, but it didn't work for cython. /apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/external/com_github_grpc_grpc/src/python/grpcio/grpc/_cython/BUILD.bazel:12:12: @com_github_grpc_grpc//src/python/grpcio/grpc/_cython:cygrpc.pyx_cython_translation depends on @cython//:cython_binary in repository @cython which failed to fetch. no such package '@cython//': java.io.IOException: Error downloading [https://github.com/cython/cython/archive/c2b80d87658a8525ce091cbe146cb7eaa29fed5c.tar.gz] to /apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/external/cython/temp755279677140508045/c2b80d87658a8525ce091cbe146cb7eaa29fed5c.tar.gz: connect timed out I write the similar code in workspace for cython, but it seems not work. |
ohh, in this case, we can try to set up a git proxy, otherwise we will have to keep adding configuration. add git proxyYou can follow below step to add git proxy in docker ref
|
After the 'git proxy' setting, I can connect to baidu.com by Howerver, when build the apollo.sh, the same error is there. |
@Xinchengzelin By adding the configuration in workspace, there's no problem with "rules_java" and "build_bazel_rules_swift", but it doesn't work for the downloading of "cython". I just don't understand. |
Also try to add
|
I tried both and still faied. http_archive( |
I failed again, could you |
I don’t know how to ping in docker, it shows
Bash: ping: command not found
but I can ping outside the docker
发自我的iPhone
…------------------ Original ------------------
From: Zeitlin ***@***.***>
Date: Wed,Feb 16,2022 5:06 PM
To: ApolloAuto/apollo ***@***.***>
Cc: c0y0h ***@***.***>, Comment ***@***.***>
Subject: Re: [ApolloAuto/apollo] Build did NOT complete successfully (Issue#14289)
Also try to add https_proxy, you can ref to link
git config --global http.proxy ***@***.***:8080 git config --global https.proxy ***@***.***:8080
I tried both and still faied. Sorry to bother you but I don't understand why I add the following code in apollo WORKSPACE, and download the tar.gz manually, unlike "rules_java", the "cython" still failed in docker build.
http_archive( name = "cython", sha256 = "d68138a2381afbdd0876c3cb2a22389043fa01c4badede1228ee073032b07a27", strip_prefix = "cython-c2b80d87658a8525ce091cbe146cb7eaa29fed5c", urls = [ "file://localhost/apollo/tmp/cython-c2b80d87658a8525ce091cbe146cb7eaa29fed5c.tar.gz", ], )
I failed again, could you ping https://github.com/? I couldn't,
ping: unknown host
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you commented.Message ID: ***@***.***>
|
Maybe you need to install a tool, |
I install “iputils-ping”, but still can’t use it in docket, like the picture showed.
发自我的iPhone
…------------------ Original ------------------
From: Zeitlin ***@***.***>
Date: Wed,Feb 16,2022 5:29 PM
To: ApolloAuto/apollo ***@***.***>
Cc: c0y0h ***@***.***>, Comment ***@***.***>
Subject: Re: [ApolloAuto/apollo] Build did NOT complete successfully (Issue#14289)
Bash: ping: command not found
Maybe you need to install a tool, apt install iputils-ping
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you commented.Message ID: ***@***.***>
|
You can download the package first, change the name, and calculate the sha256. I suggest you take a look at how to setup git proxy
|
git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080 Is "proxyuser:proxypwd@" necessary in this case? And should "proxy.server.com:8080" be set as my proxy ip and port? I set it as my ip and port and it still didn't work. http_archive( In this way, I found if the urls is wrong, the error will be "no such file or directory", and if the sha256 is wrong, the right one will be given automatically. I write two "http_archive" for "rules_java" and "build_bazel_rules_swift" and they work well. However, for the "cython", the code in WORKPLACE just had no effect. For example, even I write a wrong urls for it, the error will not be "no such file or directory". |
there're two questions:
cython is dependency by |
How to know the sha256 and strip_prefix? |
Actually you can search the file’s name on google, and look for the source code on GitHub.
发自我的iPhone
…------------------ Original ------------------
From: Zeitlin ***@***.***>
Date: Thu,Feb 24,2022 8:11 PM
To: ApolloAuto/apollo ***@***.***>
Cc: c0y0h ***@***.***>, Comment ***@***.***>
Subject: Re: [ApolloAuto/apollo] Build did NOT complete successfully (Issue#14289)
If you don't mind, you can do the following
download the file outside the docker, then copy it into docker, copy the download 981f06c3d2bd10225e85209904090eb7b5fb26bd.tar.gz file into docker /tmp dir
add below code in apollo WORKSPACE file ref
http_archive( name = "rules_java", sha256 = "f5a3e477e579231fca27bf202bb0e8fbe4fc6339d63b38ccb87c2760b533d1c3", strip_prefix = "rules_java-981f06c3d2bd10225e85209904090eb7b5fb26bd", urls = [ "file://localhost/tmp/981f06c3d2bd10225e85209904090eb7b5fb26bd.tar.gz" ], )
and then try again
How to know the sha256 and strip_prefix?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you commented.Message ID: ***@***.***>
|
Do you solve the problem? if so, could you sent the "WORKSPACE" file that you changed? |
According to my own description, I solved this problem. |
Your description? actually, I'm still in trouble |
Hello I also encounter the same problem, could you kindly illustrate more about the local library, because I have gone through the examples on Basel website but still confused about how to apply in “cython” really really thanks |
I have done these problem. |
That seems to be a lot of trifling work, several hundred of packages need to be changed? |
No, you can have a try, about 6-7 files. |
Em..... |
hi,how do you solve the problem of this: An error occurred during the fetch of repository 'build_bazel_rules_swift' |
in my case, i can't download cython package, so:
than try build again, problem solved. |
We appreciate you go through Apollo documentations and search previous issues before creating an new one. If neither of the sources helped you with your issues, please report the issue using the following form. Please note missing info can delay the response time.
System information
apollo.sh config
if onmaster
branch:Steps to reproduce the issue:
I couldn't build successfully as the instructions. When run the below commands, it shows "Build did NOT complete successfully"
Supporting materials (screenshots, command lines, code/script snippets):
The text was updated successfully, but these errors were encountered: