Skip to content Skip to sidebar Skip to footer

How Can I Run Buildbot Build Steps On Worker/slave As Non-root

I'm having issue building electron via electron-packager when I run it as root. However, it works just fine when I run it as other user, say, vagrant. I've already asked question r

Solution 1:

Buildbot-slave was running as root because I was using sudo in the provisioning script, i.e.

sudo pip install buildbot-slave

Fix was simply using:

pip install buildbot-slave

Running twistd --nodaemon --no_save -y buildbot.tac & via supervisord. Set user=vagrant in buildbot.conf file. Need to vagrant ssh into vm to run supervisord -n &, as running that via provision.sh during vagrant up still runs buildslave as root.

Thanks to comment by @Louis for pointing me in right direction.

Post a Comment for "How Can I Run Buildbot Build Steps On Worker/slave As Non-root"