Bug 11834

Summary: if you have a bad layer in bblayers, bitbake server connection hangs
Product: [Build System, Metadata & Runtime] BitBake Reporter: brian avery <brian.avery>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: High CC: bluelightning, poky.bs.watcher, poky.watcher, randy.macleod
Version: 2.4   
Target Milestone: 2.4 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description brian avery 2017-07-25 20:36:05 UTC
poky commitish f7eb49e5db69b4f75105434d427b1cf67719bb0a

If you have a bad path in your bblayers file, the memres startup gets into an error loop. This loop is silent from the terminal point of view until you ctrl-c the process and look at the bitbake-cookerdaemon.log.

A snippet from the bitbake-cookerdaemon.log, this repeats for at least a minute or two...

ERROR: Layer directory '/workdir/poky/meta' does not exist! Please check BBLAYERS in /home/bavery/work/esdk-menuconfig/build/conf/bblayers.conf
ERROR: Layer directory '/workdir/poky/meta' does not exist! Please check BBLAYERS in /home/bavery/work/esdk-menuconfig/build/conf/bblayers.conf
NOTE: Timeout while attempting to communicate with bitbake server, retrying...
NOTE: Timeout while attempting to communicate with bitbake server, retrying...
NOTE: Timeout while attempting to communicate with bitbake server, retrying...
NOTE: Timeout while attempting to communicate with bitbake server, retrying...
NOTE: Retrying server connection...
NOTE: Starting bitbake server...
ERROR: Layer directory '/workdir/poky/meta' does not exist! Please check BBLAYERS in /home/bavery/work/esdk-menuconfig/build/conf/bblayers.conf
ERROR: Layer directory '/workdir/poky/meta' does not exist! Please check BBLAYERS in /home/bavery/work/esdk-menuconfig/build/conf/bblayers.conf
NOTE: Timeout while attempting to communicate with bitbake server, retrying...
NOTE: Timeout while attempting to communicate with bitbake server, retrying...
NOTE: Timeout while attempting to communicate with bitbake server, retrying...