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

x/build/cmd/buildlet: permission denied errors trying to clean a new buildlet #32065

Closed
bradfitz opened this issue May 15, 2019 · 1 comment
Closed
Labels
Builders x/build issues (builders, bots, dashboards) FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@bradfitz
Copy link
Contributor

The coordinator is failing to get an arm5 builder because those buildlets are failing to clean:

From the farmer.golang.org history, this failed build is linked:

  builder: linux-arm-arm5spacemonkey
      rev: 14491a2ec499668388d7fe7e95b84dbf0e1cf04d
 buildlet: (nil *buildlet.Client)
  started: 2019-05-15 20:37:42.029121728 +0000 UTC m=+108224.767650353
    ended: 2019-05-15 20:37:42.548240559 +0000 UTC m=+108225.286769101
  success: false

Events:
  2019-05-15T20:37:42Z checking_for_snapshot 
  2019-05-15T20:37:42Z finish_checking_for_snapshot after 24ms
  2019-05-15T20:37:42Z get_buildlet 
  2019-05-15T20:37:42Z wait_static_builder host-linux-arm5spacemonkey
  2019-05-15T20:37:42Z finish_wait_static_builder after 0s; host-linux-arm5spacemonkey
  2019-05-15T20:37:42Z clean_buildlet http://go-builder-1 reverse peer go-builder-1/69.58.94.166:26826 for host type host-linux-arm5spacemonkey
  2019-05-15T20:37:42Z finish_clean_buildlet after 130.2ms; err=500 Internal Server Error; body: unlinkat /home/builder/stage0scratch/workdir/gopath/pkg/mod/golang.org/x/sys@v0.0.0-20190403152447-81d4e9dc473e/PATENTS: permission denied
; http://go-builder-1 reverse peer go-builder-1/69.58.94.166:26826 for host type host-linux-arm5spacemonkey
  2019-05-15T20:37:42Z finish_get_buildlet after 310ms; err=500 Internal Server Error; body: unlinkat /home/builder/stage0scratch/workdir/gopath/pkg/mod/golang.org/x/sys@v0.0.0-20190403152447-81d4e9dc473e/PATENTS: permission denied


Build log:


Error: failed to get a buildlet: 500 Internal Server Error; body: unlinkat /home/builder/stage0scratch/workdir/gopath/pkg/mod/golang.org/x/sys@v0.0.0-20190403152447-81d4e9dc473e/PATENTS: permission denied

/cc @dmitshur

@bradfitz bradfitz added the NeedsFix The path to resolution is known, but the work has not been done. label May 15, 2019
@gopherbot gopherbot added this to the Unreleased milestone May 15, 2019
@gopherbot gopherbot added the Builders x/build issues (builders, bots, dashboards) label May 15, 2019
@gopherbot
Copy link

Change https://golang.org/cl/177457 mentions this issue: cmd/buildlet: make workdir dir cleaning change permissions if needed

@golang golang locked and limited conversation to collaborators May 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Builders x/build issues (builders, bots, dashboards) FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

2 participants