diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-13 23:16:02 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-13 23:26:28 +0000 |
commit | 77a9c9b66b26563729d35f8f7ee957d623659fe8 (patch) | |
tree | fe873b3000747f0980c918df888b192a9bab49cc /bitbake/lib/bb/main.py | |
parent | 9c36aef6102a691b8cc5fdc43f7f24bb7fe665db (diff) | |
download | poky-77a9c9b66b26563729d35f8f7ee957d623659fe8.tar.gz |
bitbake: main/process: Add extra sockname debugging
We're struggling to understand how bitbake.sock can sometimes disappear
in live builds when we can't see where it could have been deleted.
This causes connection failures to the server and failed builds.
Add some extra debugging around the server log and client retry
log messages to give more information for the next time this issue
occurs.
(Bitbake rev: 376a516dc8c96727fd042ada65f803013601ee2d)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/main.py')
-rwxr-xr-x | bitbake/lib/bb/main.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/main.py b/bitbake/lib/bb/main.py index 1e38d04bcf..f1ea7859da 100755 --- a/bitbake/lib/bb/main.py +++ b/bitbake/lib/bb/main.py | |||
@@ -441,7 +441,8 @@ def setup_bitbake(configParams, extrafeatures=None): | |||
441 | logger.info("Previous bitbake instance shutting down?, waiting to retry... (%s)" % timestamp()) | 441 | logger.info("Previous bitbake instance shutting down?, waiting to retry... (%s)" % timestamp()) |
442 | procs = bb.server.process.get_lockfile_process_msg(lockfile) | 442 | procs = bb.server.process.get_lockfile_process_msg(lockfile) |
443 | if procs: | 443 | if procs: |
444 | logger.info("Processes holding bitbake.lock:\n%s" % procs) | 444 | logger.info("Processes holding bitbake.lock (missing socket %s):\n%s" % (sockname, procs)) |
445 | logger.info("Directory listing: %s" % (str(os.listdir(topdir)))) | ||
445 | i = 0 | 446 | i = 0 |
446 | lock = None | 447 | lock = None |
447 | # Wait for 5s or until we can get the lock | 448 | # Wait for 5s or until we can get the lock |