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

some fixes for the new bare config example #31

Merged
merged 3 commits into from
Jun 10, 2020

Conversation

mostynb
Copy link
Contributor

@mostynb mostynb commented Jun 10, 2020

Here are a few proposed fixes for the bare example. It still doesn't quite work for me yet, I'm getting the following error:

ERROR: /home/user/.cache/bazel/_bazel_user/5dc217035a371a2209c1f6921a765276/external/zlib/BUILD.bazel:31:11 Executing genrule @zlib//:copy_public_headers failed (Exit 34). Note: Remote connection/protocol failed with: execution failed FAILED_PRECONDITION: No workers exist for instance "local" platform {"properties":[{"name":"OSFamily","value":"Linux"},{"name":"container-image","value":"docker://marketplace.gcr.io/google/rbe-ubuntu16-04@sha256:b516a2d69537cb40a7c6a7d92d0008abb29fba8725243772bdaf2c83f1be2272"}]}

mostynb added 3 commits June 10, 2020 21:34
The BES service has been abandoned, and this configuration makes
the build fail with the following error:

UNAVAILABLE: not an SSL/TLS record: 000006040000000000000500004000
The example base .bazelrc config uses the name "rbe-ubuntu16-04" in
place of "remote" in the upstream bazelrc example, so we should refer
to that in the local config instead of "remote".

This fixes the following error:

ERROR: Config value remote is not defined in any .rc file
It seems that grpcs:// is the default protocol, which the bare example
does not support.
@EdSchouten EdSchouten merged commit ce1485a into buildbarn:master Jun 10, 2020
@EdSchouten
Copy link
Member

You’re likely getting the error because you are using Bazel Toolchains. For the bare deployment you should not, because the runner is not an Ubuntu 16.04 RBE container. You should either run Bazel on the same kind of system and use the auto-detected platform info, or write it manually.

@EdSchouten
Copy link
Member

Whoops! Accidentally merged this and only saw afterwards that this added —config=ubuntu. That shouldn’t be in there.

@EdSchouten
Copy link
Member

I just cleaned up the repo history a bit: the first and third commits in your PR have been merged. The second one (that changed --config) has been omitted.

@EdSchouten
Copy link
Member

@mostynb Could you see what happens if you use what's in latest master, but with the --config=remote line removed? I don't think we need to pass in any --config now. That --config=remote part was just there to have all of the --spawn_strategy flags that were needed in the past.

@mickael-carl
Copy link
Contributor

Also worth noting that an issue is present to document how to use platform properties: #20

@mostynb
Copy link
Contributor Author

mostynb commented Jun 10, 2020

Could you see what happens if you use what's in latest master, but with the --config=remote line removed?

Yes, it works: #33

@EdSchouten
Copy link
Member

Thanks for taking care of this!

@mostynb
Copy link
Contributor Author

mostynb commented Jun 10, 2020

No problem- thanks for being so responsive!

@mostynb mostynb deleted the bare_fixes branch June 10, 2020 20:30
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

Successfully merging this pull request may close these issues.

3 participants