buildbot icon indicating copy to clipboard operation
buildbot copied to clipboard

Old build master still exists

Open lancelodliu opened this issue 7 years ago • 6 comments

In the Builds-Build Masters Tab, the old master I used months ago still exists and the workers are connected to it.

image

image

lancelodliu avatar Mar 27 '18 03:03 lancelodliu

I also notice this issue. I notice it when I have a dev instance and I rename the hostname (and buildbotURL and similar entries in master.cfg), and bring up new buildbot instance.

I think that's because the "masters" table in database has the entry for previous build master.

@tardyp Can we safely delete that old master entry from "masters" table in database? or is there any other/better way to delete old masters?

aj062 avatar Mar 27 '18 18:03 aj062

The master table is here to be able to support multimaster. If you change hostname or change path of master, then, this will create another master.

Problem with erasing a master is that you will need to cascade delete all the data that is associated with it (or the db engine will complain about foreign key issue). Notably, all builds record which master they built on.

This is something we could do in the Janitor step. If after some times there is no build associated with a master anymore, its time to delete it from the db.

tardyp avatar Mar 27 '18 19:03 tardyp

most of my workers connect to the new master, but two of them connect to both the old and the new one. Is there any way to stop this from happening?

scottalthoff avatar Sep 08 '20 18:09 scottalthoff

Also seeing workers connected to an old master that no longer exists. Is there a way to stop the worker from connecting to the non-existent master? Not sure if the potential Janitor step has been implemented or if there is a way to do this manually.

GretaCB avatar Apr 22 '21 20:04 GretaCB

Hey, is there any progress on this topic. I got similar issue. When I stop my workers they are all in green state although I've stopped them. When I start them again, the correct master is showing and slaves are connected successfully. Every build works fine, that's not the problem, its just the always active state that is not changing when I stop the slaves. Can anyone tell if the problem is the old masters that are still showing or the issues is different?

taizerah avatar Oct 19 '21 12:10 taizerah