Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#13645 closed bug (fixed)

buildbot slaves configuration

Reported by: korli Owned by: kallisti5
Priority: normal Milestone:
Component: Sys-Admin Version:
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All


Please fix the buildbot configuration for these slaves.

"Your umask is too restrictive (should be: <= 0022; is actually: 0077)",1

Change History (9)

comment:1 Changed 2 years ago by kallisti5


  • 077 (as-is, Fedora 21)
    • New File: rw-------
    • New Dir: rwx------
  • 022 (new minimum in configure script)
    • New File: rw-r--r--
    • New Dir: rwxr-xr-x
  • 002 (Fedora default as of F26)
    • New File: rw-rw-r--
    • New Dir: rwxrwxr-x

Weird... the default is 022:

# By default, we want umask to get set. This sets it for non-login shell. # Current threshold for system reserved uid/gids is 200 # You could check uidgid reservation validity in # /usr/share/doc/setup-*/uidgid file if [ $UID -gt 199 ] && [ "id -gn" = "id -un" ]; then

umask 002


umask 022


comment:2 Changed 2 years ago by kallisti5

Looks like I was starting the buildslave via a cron entry:

@reboot	buildslave start /var/lib/buildbot/slaves/haiku

Going to convert to a systemd service:

# cat /etc/systemd/system/buildbot-slave.service 
Description=BuildBot slave service

ExecStart=/bin/buildslave start /var/lib/buildbot/slaves/haiku


systemd defaults to 022

Last edited 2 years ago by kallisti5 (previous) (diff)

comment:3 Changed 2 years ago by kallisti5

It looks like geist's builder on Ubuntu is encountering the same issue:

I wonder if he is spawning it via a one-liner cron entry as well?

comment:4 Changed 2 years ago by korli

waddlesplash spoke specifically of a buildbot slave tac config file.

comment:5 Changed 2 years ago by korli

[18:24:27] <PulkoMandy> geist: we need to set umask to 022 in buildbot.tac on the slaves

comment:6 Changed 2 years ago by kallisti5

Resolution: fixed
Status: newclosed

Done. Was set to "None" on my slaves.

comment:7 Changed 2 years ago by korli


comment:8 Changed 2 years ago by pulkomandy

A little background: the default in unix is indeed 0022, but twistd (the thing used to daemonize buildbot) forces it to 0077 by default. So it needs to be restored from inside the buildbot environment, which can be done using the setting in buildbot.tac.

We initially didn't notice the problem, and when we did, we updated the template buildbot.tac used to create new slaves, but old ones stayed as is.

comment:9 Changed 2 years ago by korli

FYI it seems the last buildbot slave is now fixed (configured and restarted).

Note: See TracTickets for help on using tickets.