Package: buildbot Version: 2.10.1-1 Severity: important Hello,
Our buildbot instances has the web interface enabled: c['www'] = dict(port=8080) But buildbot doesn't want to start: 2022-01-24 20:36:49+0100 [-] adding 834 new builders, removing 0 2022-01-24 20:37:17+0100 [-] adding 441 new schedulers, removing 0 2022-01-24 20:37:34+0100 [-] while starting BuildMaster Traceback (most recent call last): File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks result = g.send(result) File "/usr/lib/python3/dist-packages/buildbot/util/service.py", line 49, in reconfigServiceWithBuildbotConfig yield svc.reconfigServiceWithBuildbotConfig(new_config) File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1613, in unwindGenerator return _cancellableInlineCallbacks(gen) File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1529, in _cancellableInlineCallbacks _inlineCallbacks(None, g, status) --- <exception caught here> --- File "/usr/lib/python3/dist-packages/buildbot/master.py", line 304, in startService yield self.reconfigServiceWithBuildbotConfig(self.config) File "/usr/lib/python3/dist-packages/buildbot/util/service.py", line 49, in reconfigServiceWithBuildbotConfig yield svc.reconfigServiceWithBuildbotConfig(new_config) File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks result = g.send(result) File "/usr/lib/python3/dist-packages/buildbot/www/service.py", line 215, in reconfigServiceWithBuildbotConfig self.setupSite(new_config) File "/usr/lib/python3/dist-packages/buildbot/www/service.py", line 285, in setupSite raise RuntimeError("could not find buildbot-www; is it installed? %s" % (str(info()))) The str(info()) part is an addition on our side to know what plugins were actually detected, and we have: [...] 'www': {}} so nothing is detected for www. Indeed, looking at the source code in /usr/lib/python3/dist-packages/buildbot/plugins/db.py that detects plugins: def _tree(self): if self._real_tree is None: self._real_tree = _NSNode() for entry in iter_entry_points(self._group): This is using pkg_resources.iter_entry_points to get the list of python classes etc. but that reports nothing, for instance in a plain chroot: # apt install buildbot # python3 -c "import pkg_resources ; print(list(pkg_resources.iter_entry_points('buildbot.www')))" [] while /usr/lib/python3/dist-packages/buildbot/www/ is really there. One thing I noticed is that /usr/lib/python3/dist-packages/buildbot-2.0.1.post2.egg-info/entry_points.txt doesn't list anything for buildbot-www. We had to revert to the manual installation of buildbot, the Debian package was unusable for us. Samuel -- System Information: Debian Release: bookworm/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 'proposed-updates'), (500, 'oldstable-proposed-updates-debug'), (500, 'oldstable-proposed-updates'), (500, 'oldoldstable'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental-debug'), (1, 'buildd-experimental'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.16.0 (SMP w/8 CPU threads; PREEMPT) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages buildbot depends on: ii adduser 3.118 ii cdebconf [debconf-2.0] 0.261 ii debconf [debconf-2.0] 1.5.79 ii dpkg 1.21.1 ii libc6 2.33-2 ii libjs-sphinxdoc 4.3.2-1 ii lsb-base 11.1.0 ii passwd 1:4.8.1-2 pn python <none> pn python-dateutil <none> pn python-jinja2 <none> pn python-migrate <none> pn python-sqlalchemy <none> pn python-twisted <none> pn python-twisted-core <none> pn python-twisted-web <none> pn python-twisted-words <none> ii python3 3.9.7-1 pn python3-alembic <none> pn python3-autobahn <none> ii python3-dateutil 2.8.1-6 pn python3-future <none> ii python3-idna 3.2-2 ii python3-jinja2 3.0.1-2 ii python3-jwt 2.1.0-1 pn python3-migrate <none> ii python3-openssl 21.0.0-1 ii python3-pkg-resources 59.6.0-1.2 ii python3-service-identity 18.1.0-6 pn python3-sqlalchemy <none> ii python3-twisted 20.3.0-7 pn python3-txaio <none> ii python3-yaml 5.4.1-1+b1 ii python3-zope.interface 5.4.0-1+b1 Versions of packages buildbot recommends: ii bash-completion 1:2.11-5 pn buildbot-slave <none> pn buildbot-worker <none> ii libaprutil1 1.6.1-5 pn python-twisted-mail <none> Versions of packages buildbot suggests: ii brz [bzr] 3.2.1+bzr7568-1 pn buildbot-doc <none> ii bzr 2.7.0+bzr6622+brz ii cvs 2:1.12.13+real-28 ii git 1:2.34.1-1 ii mercurial 6.0.1-3 ii python3-lz4 3.1.3+dfsg-1+b1 ii python3-psycopg2 2.9.2-1 ii subversion 1.14.1-3+b2 -- Samuel Linux, c'est simple : ça s'adresse à une machine qui est parfois un peu maraboutée mais qui d'habitude n'a pas d'états d'âme. Sur Usenet y'a plein d'humains et de primates, et ça devient vraiment gore par moment. -+- TP in : Guide du linuxien pervers - "Le linuxien a-t-il une âme ?" -+-