[users at bb.net] New masters being created after restart
povilas at radix.lt
Wed Aug 19 16:26:58 UTC 2020
On 8/19/20 11:27 AM, Lukas Jirkovsky wrote:
> I have a problem with new masters being created after every restart.
> We are running buildbot-master using docker image
> buildbot/buildbot-master:v2.7.0. The database is postgres 12.2 also
> running in docker. Whenever the container is restarted, a new build
> master is created. This has happened quite a few times recently for
> technical reasons when the server hosting buildbot had to be
> The list of build masters now shows a lot of masters with all except
> one being inactive. I think this has also caused an issue where two of
> the builders no longer work despite their workers are online, because
> I can see that the workers are now listed with two build masters which
> has never happened before.
IIRC the name of the master is set according to the hostname of the
docker instance. And docker instance will have a random hostname each time.
This could be solved by forcing a static hostname using the hostname
attribute in docker-compose (or the equivalent in docker command line).
As for cleaning up the mess, I don't have any help here. Maybe someone
else could chime in. Worst case you can connect to the database and
delete the rows manually (please take a back up of the database in case
this does not work).
More information about the users