Closed UebelAndre closed 4 years ago
Thanks for the bug report. I wonder if you can test this on the previous bazel-remote commit (710020df649309b93d359ad892bc5f2ea874bca9
) ?
@mostynb Hey, Thanks for the quick reply! Yeah, I still run into this on 710020df649309b93d359ad892bc5f2ea874bca9
server_1 | 2020/07/06 15:40:46 bazel-remote built with go1.14.3 from git commit 710020df649309b93d359ad892bc5f2ea874bca9.
server_1 | 2020/07/06 15:40:46 Initial RLIMIT_NOFILE cur: 1048576 max: 1048576
server_1 | 2020/07/06 15:40:46 Setting RLIMIT_NOFILE cur: 1048576 max: 1048576
server_1 | 2020/07/06 15:40:46 Migrating files (if any) to new directory structure: /data/ac
server_1 | 2020/07/06 15:40:46 Migrating files (if any) to new directory structure: /data/cas
server_1 | 2020/07/06 15:40:46 Loading existing files in /data.
server_1 | 2020/07/06 15:40:46 Sorting cache files by atime.
server_1 | 2020/07/06 15:40:46 Building LRU index.
server_1 | 2020/07/06 15:40:46 Finished loading disk cache files.
server_1 | 2020/07/06 15:40:46 Loaded 11056 existing disk cache items.
server_1 | 2020/07/06 15:40:46 Starting HTTPS server on address :8080
server_1 | 2020/07/06 15:40:46 HTTP AC validation: enabled
server_1 | 2020/07/06 15:40:46 Starting gRPC server on address :9090
server_1 | 2020/07/06 15:40:46 gRPC AC dependency checks: enabled
server_1 | 2020/07/06 15:40:46 experimental gRPC remote asset API: enabled
server_1 | 2020/07/06 15:41:03 GRPC GETCAPABILITIES
server_1 | 2020/07/06 15:41:58 GRPC GETCAPABILITIES
server_1 | 2020/07/06 15:42:00 failed to get URI: https://static.rust-lang.org/dist/rust-1.44.1-x86_64-apple-darwin.tar.gz err: Get "https://static.rust-lang.org/dist/rust-1.44.1-x86_64-apple-darwin.tar.gz": x509: certificate signed by unknown authority
I suspect that go's http client relies on a system certificate store, which does not exist inside the container. As a quick workaround, you can try using http URLs (which should be safe since you can specify the sha256 hash in the WORKSPACE file, though the traffic would not be kept secret).
I will do some research and see what can be done (I'm no docker expert).
I have not been able to reproduce this error locally, though I did catch a different error with your testcase (fixed here: #307).
Inspecting the docker images with dive proved my initial guess wrong- we do already include ca certs.
Are you testing this on a network with some sort of transparent network proxy?
No, I'm not behind a transparent proxy. I have this being hosted on another machine running CentOS but otherwise just ran docker-compose up -d
on what I sent you.
Interesting, I also was able to seemingly resolve the issue by doing the following:
data
mount point to /home/bazel-remote/data
I also suspect that I may have built the container where I saw the problem with a different version of Go (1.12) via a GitLab Autodev pipeline. I updated this but and did the things above and everything works.
I feel since 6abc54f50d40b0d5dcc3eb902d9cbd46e892215b the docker documentation might need to be updated since it seems like you'll get permissions errors now that the container isn't running as root.
But I think this issue was just my own stupidity. Happy it lead to something productive though. Thanks for the help! 😄
I'm not sure what the root cause was here, we always build with the default go toolchain for the version of rules_go that is specified in WORKSPACE, and it's logged at startup - 1.14.3 as you can see in your logs. Feel free to reopen this issue if the problem reappears.
Re documentation, I have a proposed update in #309.
I'm running into the following error when I use
experimental_remote_asset_api
My
.bazelrc
My bazel-remote config file
My docker-compose file.
A repo that reproduces this issue. repro.zip
I also want to note that I built a new image off of 6abc54f50d40b0d5dcc3eb902d9cbd46e892215b
Is anyone else able to reproduce this with a similar (if not the same) setup?