Bug 4010

Summary: bitbake ignores PRservice error
Product: [Build System, Metadata & Runtime] BitBake Reporter: Stoicescu Cornel <corneliux.stoicescu>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: poky.bs.watcher, poky.watcher, sgw
Version: 1.3   
Target Milestone: 1.3.2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Stoicescu Cornel 2013-03-11 16:57:10 UTC
branch: danny
commit: 955827af15f611189c66850fd077de344e1285c3

1) set up a poky build environment
2) checkout danny, revision 955827af15f611189c66850fd077de344e1285c3
3) in local.conf set up an invalid PRservice socket(with no PR service started on host):
PRSERV_HOST = "127.0.0.1"
PRSERV_PORT = "8585"
4) run bitbake man

Notice bitbake ignores error: 
"ERROR: PRservice 127.0.0.1:8585 not available" 
and builds pseudo, then stops with message:
"Summary: There was 1 ERROR message shown, returning a non-zero exit code.
Execution was interrupted, returning a non-zero exit code."

5) run bitbake man again

Notice bitbake ignores the error again and starts building man. It eventually stops at do_package with an error:
"ERROR: Can NOT get PRAUTO, exception [Errno 111] Connection refused
ERROR: Function failed: package_get_auto_pr"
Comment 1 Richard Purdie 2013-03-25 22:02:41 UTC
I think this issue also occurs in master...
Comment 2 Stoicescu Cornel 2013-03-26 08:04:00 UTC
Indeed, the problem is also present in master:9ffee9add2d0380f4025e7a678a166f25a7d659e

Here is the output:

**** first run ****

cornel@NODE1:~/SSD/3poky/build$ bitbake man
Pseudo is not present but is required, building this first before the main build
ERROR: PRservice 127.0.0.1:8585 not available
Parsing recipes: 100% |###################################################################################################################################################################| Time: 00:00:20
Parsing of 811 .bb files complete (0 cached, 811 parsed). 1120 targets, 28 skipped, 0 masked, 0 errors.

Build Configuration:
BB_VERSION        = "1.17.1"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-12.04"
TARGET_SYS        = "x86_64-poky-linux"
MACHINE           = "qemux86-64"
DISTRO            = "poky"
DISTRO_VERSION    = "1.3+snapshot-20130326"
TUNE_FEATURES     = "m64"
TARGET_FPU        = ""
meta
meta-yocto
meta-yocto-bsp    = "(nobranch):9ffee9add2d0380f4025e7a678a166f25a7d659e"

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 63 tasks of which 0 didn't need to be rerun and all succeeded.

Summary: There was 1 ERROR message shown, returning a non-zero exit code.

**** second run ****

cornel@NODE1:~/SSD/3poky/build$ bitbake man
find: `/home/cornel/SSD/3poky/build/pseudodone': No such file or directory
ERROR: PRservice 127.0.0.1:8585 not available
Loading cache: 100% |#####################################################################################################################################################################| ETA:  00:00:00
Loaded 1121 entries from dependency cache.

Build Configuration:
BB_VERSION        = "1.17.1"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-12.04"
TARGET_SYS        = "x86_64-poky-linux"
MACHINE           = "qemux86-64"
DISTRO            = "poky"
DISTRO_VERSION    = "1.3+snapshot-20130326"
TUNE_FEATURES     = "m64"
TARGET_FPU        = ""
meta
meta-yocto
meta-yocto-bsp    = "(nobranch):9ffee9add2d0380f4025e7a678a166f25a7d659e"

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: Can NOT get PRAUTO, exception [Errno 111] Connection refused
ERROR: Function failed: package_get_auto_pr
ERROR: Logfile of failure stored in: /home/cornel/SSD/3poky/build/tmp/work/x86_64-poky-linux/linux-libc-headers/3.8-r0/temp/log.do_package.25490
ERROR: Can NOT get PRAUTO, exception [Errno 111] Connection refused
ERROR: Function failed: package_get_auto_pr
ERROR: Logfile of failure stored in: /home/cornel/SSD/3poky/build/tmp/work/qemux86_64-poky-linux/shadow-securetty/4.1.4.3-r2/temp/log.do_package.25574
ERROR: Can NOT get PRAUTO, exception [Errno 111] Connection refused
ERROR: Function failed: package_get_auto_pr
ERROR: Logfile of failure stored in: /home/cornel/SSD/3poky/build/tmp/work/all-poky-linux/update-rc.d/0.7-r5/temp/log.do_package.25525
ERROR: Task 376 (/home/cornel/SSD/3poky/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_3.8.bb, do_package) failed with exit code '1'
ERROR: Task 651 (/home/cornel/SSD/3poky/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb, do_package) failed with exit code '1'
ERROR: Task 1149 (/home/cornel/SSD/3poky/meta/recipes-extended/shadow/shadow-securetty_4.1.4.3.bb, do_package) failed with exit code '1'
ERROR: Can NOT get PRAUTO, exception [Errno 111] Connection refused
ERROR: Function failed: package_get_auto_pr
ERROR: Logfile of failure stored in: /home/cornel/SSD/3poky/build/tmp/work/qemux86_64-poky-linux/sysvinit-inittab/2.88dsf-r9/temp/log.do_package.25596
ERROR: Task 1117 (/home/cornel/SSD/3poky/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb, do_package) failed with exit code '1'
NOTE: Tasks Summary: Attempted 965 tasks of which 279 didn't need to be rerun and 4 failed.
Waiting for 0 running tasks to finish:

Summary: 4 tasks failed:
  /home/cornel/SSD/3poky/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_3.8.bb, do_package
  /home/cornel/SSD/3poky/meta/recipes-core/update-rc.d/update-rc.d_0.7.bb, do_package
  /home/cornel/SSD/3poky/meta/recipes-extended/shadow/shadow-securetty_4.1.4.3.bb, do_package
  /home/cornel/SSD/3poky/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb, do_package
Summary: There were 9 ERROR messages shown, returning a non-zero exit code.
Comment 3 Richard Purdie 2013-05-09 17:02:50 UTC
Fixed in master: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=a4cc40c6227b1212d82450c3b2adc1e08061966f and backported into danny.
Comment 4 Richard Purdie 2013-05-09 17:03:00 UTC
Mark resolved.
Comment 5 Stoicescu Cornel 2013-05-10 09:12:55 UTC
Verified in master:e5d077d57f7d150d5a0bb67fdc1c87a94091cafe

Need verification in danny before setting to VERIFIED.
Comment 6 Stoicescu Cornel 2013-05-27 08:36:25 UTC
Verified in danny:8450317a6cbcc0b3e5ec00b266608ee1740d906c