Bug 8776 - We need to catch the error: WARNING: Could not connect to server at 0.0.0.0:46572 (Could not register UI event handler) ERROR: Could not connect to server 0.0.0.0:46572 : Could not register UI event handler
Summary: We need to catch the error: WARNING: Could not connect to server at 0.0.0.0:4...
Status: VERIFIED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 2.1
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.1
Assignee: Ed Bartosh
QA Contact: Mihail Stanciu
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-12-05 21:46 UTC by brian avery
Modified: 2016-03-01 15:21 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
the ui when we fail to connect and I tried an additional runagain. (196.21 KB, image/png)
2015-12-05 21:57 UTC, brian avery
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description brian avery 2015-12-05 21:46:51 UTC
Sometimes, the connection to the bitbake server fails.  Unknown reasons, but our build status stays on building and 0%.

The errors in toaster_ui.log:
WARNING: Could not register UI event handler 127.0.0.1:56783, retry
WARNING: Could not register UI event handler 127.0.0.1:56783, retry
WARNING: Could not register UI event handler 127.0.0.1:56783, retry
WARNING: Could not register UI event handler 127.0.0.1:56783, retry
WARNING: Could not register UI event handler 127.0.0.1:56783, retry
WARNING: Could not connect to server at 0.0.0.0:46572 (Could not register UI event handler)
ERROR: Could not connect to server 0.0.0.0:46572
: Could not register UI event handler
Comment 1 brian avery 2015-12-05 21:57:04 UTC
Created attachment 2887 [details]
the ui when we fail to connect and I tried an additional runagain.
Comment 2 Ed Bartosh 2015-12-30 09:54:36 UTC
My first guess was that it happens if bitbake server is not running. It's not as in this case warning message is different:
NOTE: ToasterUI waiting for events
WARNING: Return value is 0
NOTE: ToasterUI waiting for events
NOTE: ToasterUI waiting for events
NOTE: ToasterUI waiting for events
WARNING: Could not connect to server at 0.0.0.0:49355 ([Errno 111] Connection refused)
ERROR: Could not connect to server 0.0.0.0:49355
: [Errno 111] Connection refused
Comment 3 Ed Bartosh 2016-01-05 12:15:20 UTC
Fix has been sent to the ml for review: http://lists.openembedded.org/pipermail/bitbake-devel/2016-January/006835.html
Comment 4 Sujith H 2016-01-09 17:01:12 UTC
I tried with toaster-next branch and below are the results.

1) Ran toaster for the first time in toaster-next branch and it was successful. Verified the toaster_ui.log and everything went fine.
2) Ran toaster for second time in toaster-next branch and it failed. below are the results from toaster_ui.log:

[sujith@sujith poky-push]$ tail -f /home/sujith/build/poky-push/build/toaster_ui.log
NOTE: ToasterUI waiting for events
WARNING: Return value is 0
Traceback (most recent call last):
  File "/home/sujith/build/poky-push/bitbake/bin/bitbake", line 45, in <module>
    cookerdata.CookerConfiguration()))
  File "/home/sujith/build/poky-push/bitbake/lib/bb/main.py", line 414, in bitbake_main
    server_connection.setupEventQueue()
  File "/home/sujith/build/poky-push/bitbake/lib/bb/server/xmlrpc.py", line 308, in setupEventQueue
    self.events = uievent.BBUIEventQueue(self.connection, self.clientinfo)
  File "/home/sujith/build/poky-push/bitbake/lib/bb/ui/uievent.py", line 66, in __init__
    raise Exception(errmsg)
Exception: Could not register UI event handler. Error: Cooker is busy: parsing, host 127.0.0.1, port 41857
WARNING: Could not register UI event handler. Error: Cooker is busy: parsing, host 127.0.0.1, port 41857, retry
WARNING: Could not register UI event handler. Error: Cooker is busy: parsing, host 127.0.0.1, port 41857, retry
WARNING: Could not register UI event handler. Error: Cooker is busy: parsing, host 127.0.0.1, port 41857, retry
WARNING: Could not register UI event handler. Error: Cooker is busy: parsing, host 127.0.0.1, port 41857, retry
WARNING: Could not register UI event handler. Error: Cooker is busy: parsing, host 127.0.0.1, port 41857, retry
Comment 5 Ed Bartosh 2016-01-11 12:33:58 UTC
I can't reproduce this. Here is what I did:
- Started toaster: . ../bitbake/bin/toaster start
- Started build of image-core-sato from Toaster UI
- went back to command line while build was going and stopped toaster:
  . ../bitbake/bin/toaster stop
- Started toaster again: . ../bitbake/bin/toaster start
- Started build of image-core-sato from Toaster UI again
- grepped toaster_ui.log for 'Exception' and saw empty output:
(toaster)[ed@vmed build (toaster-next)]$ grep Exception toaster_ui.log
(toaster)[ed@vmed build (toaster-next)]$


Please, suggest how to reproduce this. Thanks.
Comment 6 Sujith H 2016-01-11 15:19:19 UTC
First let me share my env before I try to share any steps:

[sujith@sujith poky-push]$ env
HOSTNAME=sujith.yocto.systems
TERM=xterm
SHELL=/bin/bash
HISTSIZE=1000
SSH_CLIENT=139.181.35.34 34790 22
OLDPWD=/home/sujith/build
SSH_TTY=/dev/pts/0
USER=sujith
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.m4a=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.oga=01;36:*.opus=01;36:*.spx=01;36:*.xspf=01;36:
SSH_AUTH_SOCK=/tmp/ssh-xiRjuZYQND/agent.10800
MAIL=/var/spool/mail/sujith
PATH=/usr/lib64/ccache:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/sujith/.local/bin:/home/sujith/bin
PWD=/home/sujith/build/poky-push
LANG=en_IN
HISTCONTROL=ignoredups
SHLVL=1
HOME=/home/sujith
LOGNAME=sujith
CVS_RSH=ssh
SSH_CONNECTION=139.181.35.34 34790 172.17.0.40 22
LESSOPEN=|/usr/bin/lesspipe.sh %s
CCACHE_HASHDIR=
_=/usr/bin/env
[sujith@sujith poky-push]$

Below are the following steps I execute:

sujith@sujith poky-push]$ source venv/bin/activate
(venv)[sujith@sujith poky-push]$ . ./oe-init-build-env
You had no conf/local.conf file. This configuration file has therefore been
created for you with some default values. You may wish to edit it to use a 
different MACHINE (target hardware) or enable parallel build options to take 
advantage of multiple cores for example. See the file for more information as 
common configuration options are commented.

You had no conf/bblayers.conf file. The configuration file has been created for
you with some default values. To add additional metadata layers into your
configuration please add entries to this file.

The Yocto Project has extensive documentation about OE including a reference
manual which can be found at:
    http://yoctoproject.org/documentation

For more information about OpenEmbedded see their website:
    http://www.openembedded.org/


### Shell environment set up for builds. ###

You can now run 'bitbake <target>'

Common targets are:
    core-image-minimal
    core-image-sato
    meta-toolchain
    adt-installer
    meta-ide-support

You can also run generated qemu images with a command like 'runqemu qemux86'
(venv)[sujith@sujith build]$ . ../bitbake/bin/toaster start
The system will start.
Check if toaster can listen on 0.0.0.0:8000
OK
Operations to perform:
  Synchronize unmigrated apps: staticfiles, messages, toastermain, bldcollector, toastergui, humanize
  Apply all migrations: sessions, admin, auth, contenttypes, orm, bldcontrol
Synchronizing apps without migrations:
  Creating tables...
    Running deferred SQL...
  Installing custom SQL...
Running migrations:
  Rendering model states... DONE
  Applying contenttypes.0001_initial... OK
  Applying auth.0001_initial... OK
  Applying admin.0001_initial... OK
  Applying contenttypes.0002_remove_content_type_name... OK
  Applying auth.0002_alter_permission_name_max_length... OK
  Applying auth.0003_alter_user_email_max_length... OK
  Applying auth.0004_alter_user_username_opts... OK
  Applying auth.0005_alter_user_last_login_null... OK
  Applying auth.0006_require_contenttypes_0002... OK
  Applying orm.0001_initial... OK
  Applying bldcontrol.0001_initial... OK
  Applying orm.0002_auto_20151223_1528... OK
  Applying sessions.0001_initial... OK

 -- Validation: The layers checkout directory must be set.

 -- Validation: The build directory must be set.

Build configuration saved

Importing file: /home/sujith/build/poky-push/meta-yocto/conf/toasterconf.json

Layer configuration imported. Updating information from the layer sources, please wait.
You can re-update any time later by running bitbake/lib/toaster/manage.py lsupdates
2016-01-11 15:08:48,114 DEBUG Fetching branches
2016-01-11 15:08:49,006 DEBUG Fetching layer information
2016-01-11 15:08:54,109 DEBUG Fetching machine information
2016-01-11 15:08:56,331 DEBUG Fetching target information
2016-01-11 15:09:11,659 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (13 meta-gumstix-community / OpenEmbedded (1)  (VCS master, Project No project):./invalid.bb)
2016-01-11 15:09:12,698 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (8 e100-bsp / OpenEmbedded (1)  (VCS master, Project No project):recipes/linux/linux-usrp-embedded_2.6.35.bb)
2016-01-11 15:09:12,709 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (8 e100-bsp / OpenEmbedded (1)  (VCS master, Project No project):recipes/linux/linux-usrp-embedded_2.6.38.bb)
2016-01-11 15:09:12,719 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (8 e100-bsp / OpenEmbedded (1)  (VCS master, Project No project):recipes/linux/linux-usrp-embedded_3.0-pm.bb)
2016-01-11 15:09:12,729 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (8 e100-bsp / OpenEmbedded (1)  (VCS master, Project No project):recipes/linux/linux-usrp-embedded_git.bb)
2016-01-11 15:09:12,740 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (8 e100-bsp / OpenEmbedded (1)  (VCS master, Project No project):recipes/u-boot/u-boot-ettus_2011.12.bb)
2016-01-11 15:09:14,266 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (96 meta-ivi / OpenEmbedded (1)  (VCS master, Project No project):recipes-extended/itzamc/libitzam_6.0.4.bb)
2016-01-11 15:09:14,277 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (96 meta-ivi / OpenEmbedded (1)  (VCS master, Project No project):recipes-extended/node-startup-controller/node-startup-controller_1.0.2.bb)
2016-01-11 15:09:14,287 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (96 meta-ivi / OpenEmbedded (1)  (VCS master, Project No project):recipes-extended/node-startup-controller/node-startup-controller_git.bb)
2016-01-11 15:09:14,297 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (96 meta-ivi / OpenEmbedded (1)  (VCS master, Project No project):recipes-extended/node-state-manager/node-state-manager_2.0.0.bb)
2016-01-11 15:09:14,307 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (96 meta-ivi / OpenEmbedded (1)  (VCS master, Project No project):recipes-graphics/layer-management/layer-management_1.1.bb)
2016-01-11 15:09:14,317 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (96 meta-ivi / OpenEmbedded (1)  (VCS master, Project No project):recipes-graphics/layer-management/layer-management_git.bb)
2016-01-11 15:09:14,337 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (96 meta-ivi / OpenEmbedded (1)  (VCS master, Project No project):recipes-yocto-ivi/packagegroups/packagegroup-abstract-component-p1.bb)
2016-01-11 15:09:14,348 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (96 meta-ivi / OpenEmbedded (1)  (VCS master, Project No project):recipes-yocto-ivi/packagegroups/packagegroup-abstract-component-p2.bb)
2016-01-11 15:09:14,358 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (96 meta-ivi / OpenEmbedded (1)  (VCS master, Project No project):recipes-yocto-ivi/packagegroups/packagegroup-core-boot-genivi.bb)
2016-01-11 15:09:14,368 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (96 meta-ivi / OpenEmbedded (1)  (VCS master, Project No project):recipes-yocto-ivi/packagegroups/packagegroup-placeholder-component-p1.bb)
2016-01-11 15:09:14,378 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (96 meta-ivi / OpenEmbedded (1)  (VCS master, Project No project):recipes-yocto-ivi/packagegroups/packagegroup-specific-component-p1.bb)
2016-01-11 15:09:14,388 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (96 meta-ivi / OpenEmbedded (1)  (VCS master, Project No project):recipes-yocto-ivi/packagegroups/packagegroup-specific-component-p2.bb)
2016-01-11 15:09:14,398 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (96 meta-ivi / OpenEmbedded (1)  (VCS master, Project No project):recipes-yocto-ivi/packagegroups/packagegroup-xserver-ivi.bb)
2016-01-11 15:09:14,512 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (13 meta-gumstix-community / OpenEmbedded (1)  (VCS master, Project No project):./invalid.bb)
2016-01-11 15:09:19,142 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (13 meta-gumstix-community / OpenEmbedded (1)  (VCS master, Project No project):./invalid.bb)
2016-01-11 15:09:30,914 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (13 meta-gumstix-community / OpenEmbedded (1)  (VCS master, Project No project):./invalid.bb)
2016-01-11 15:09:30,930 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (13 meta-gumstix-community / OpenEmbedded (1)  (VCS master, Project No project):./invalid.bb)
2016-01-11 15:09:30,940 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (13 meta-gumstix-community / OpenEmbedded (1)  (VCS master, Project No project):./invalid.bb)
2016-01-11 15:09:30,950 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (13 meta-gumstix-community / OpenEmbedded (1)  (VCS master, Project No project):./invalid.bb)
2016-01-11 15:09:30,960 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (13 meta-gumstix-community / OpenEmbedded (1)  (VCS master, Project No project):./invalid.bb)
2016-01-11 15:09:30,999 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (13 meta-gumstix-community / OpenEmbedded (1)  (VCS master, Project No project):./invalid.bb)
2016-01-11 15:09:31,009 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (13 meta-gumstix-community / OpenEmbedded (1)  (VCS master, Project No project):./invalid.bb)
2016-01-11 15:09:31,019 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (13 meta-gumstix-community / OpenEmbedded (1)  (VCS master, Project No project):./invalid.bb)
2016-01-11 15:09:40,383 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (13 meta-gumstix-community / OpenEmbedded (1)  (VCS master, Project No project):./invalid.bb)
2016-01-11 15:09:40,431 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (13 meta-gumstix-community / OpenEmbedded (1)  (VCS master, Project No project):./invalid.bb)
2016-01-11 15:09:40,441 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (13 meta-gumstix-community / OpenEmbedded (1)  (VCS master, Project No project):./invalid.bb)
2016-01-11 15:09:40,451 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (13 meta-gumstix-community / OpenEmbedded (1)  (VCS master, Project No project):./invalid.bb)
2016-01-11 15:09:40,464 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (279 meta-gumstix-community / OpenEmbedded (1)  (VCS fido, Project No project):./invalid.bb)
2016-01-11 15:09:40,480 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (13 meta-gumstix-community / OpenEmbedded (1)  (VCS master, Project No project):./invalid.bb)
2016-01-11 15:09:40,490 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (279 meta-gumstix-community / OpenEmbedded (1)  (VCS fido, Project No project):./invalid.bb)
2016-01-11 15:09:40,500 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (13 meta-gumstix-community / OpenEmbedded (1)  (VCS master, Project No project):./invalid.bb)
2016-01-11 15:09:40,651 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (279 meta-gumstix-community / OpenEmbedded (1)  (VCS fido, Project No project):./invalid.bb)
2016-01-11 15:09:40,661 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (13 meta-gumstix-community / OpenEmbedded (1)  (VCS master, Project No project):./invalid.bb)
2016-01-11 15:09:40,671 DEBUG Failed saving recipe, ignoring: UNIQUE constraint failed: orm_recipe.layer_version_id, orm_recipe.file_path, orm_recipe.pathflags (279 meta-gumstix-community / OpenEmbedded (1)  (VCS fido, Project No project):./invalid.bb)
Starting webserver...
Webserver address:  http://0.0.0.0:8000/
Bitbake server address: 0.0.0.0, server port: 33344
Successful start.
(venv)[sujith@sujith build]$

Next I try to trigger a build for core-image-sato from UI and in the command line I see output as:

(venv)[sujith@sujith build]$ 2016-01-11 15:16:26,150 DEBUG localhostbecontroller, our git repos are {(u'git://git.yoctoproject.org/meta-yocto', u'master'): [(u'meta-yocto',
                                                          u'meta-yocto'),
                                                         (u'meta-yocto-bsp',
                                                          u'meta-yocto-bsp')],
 (u'git://git.yoctoproject.org/poky', u'master'): [('bitbake', u'bitbake'),
                                                   (u'openembedded-core',
                                                    u'meta')]}
2016-01-11 15:16:26,151 DEBUG lbc_shellcmmd: (/home/sujith/build/poky-push) git remote -v
2016-01-11 15:16:26,161 DEBUG localhostbecontroller: shellcmd success
2016-01-11 15:16:26,162 INFO Using pre-checked out source for layer {'git://git.yoctoproject.org/poky': u'/home/sujith/build/poky-push', 'ssh://git@git.yoctoproject.org/poky-contrib': u'/home/sujith/build/poky-push'}
2016-01-11 15:16:26,163 DEBUG localhostbecontroller: giturl git://git.yoctoproject.org/meta-yocto:master checking out in current directory /home/sujith/build/poky-push/_toaster_clones/_git___git.yoctoproject.org_meta-yocto_master
2016-01-11 15:16:26,163 DEBUG lbc_shellcmmd: (/home/sujith/build/poky-push/_toaster_clones/_git___git.yoctoproject.org_meta-yocto_master) git remote -v
2016-01-11 15:16:26,173 DEBUG localhostbecontroller: shellcmd success
2016-01-11 15:16:26,174 DEBUG localhostbecontroller: checking out commit master to /home/sujith/build/poky-push/_toaster_clones/_git___git.yoctoproject.org_meta-yocto_master 
2016-01-11 15:16:26,175 DEBUG lbc_shellcmmd: (/home/sujith/build/poky-push/_toaster_clones/_git___git.yoctoproject.org_meta-yocto_master) git fetch --all && git reset --hard "origin/master"
2016-01-11 15:16:26,464 DEBUG localhostbecontroller: shellcmd success
2016-01-11 15:16:26,465 DEBUG localhostbecontroller: localdirpath expected '/home/sujith/build/poky-push/_toaster_clones/_git___git.yoctoproject.org_meta-yocto_master/meta-yocto'
2016-01-11 15:16:26,465 DEBUG localhostbecontroller: localdirpath expected '/home/sujith/build/poky-push/_toaster_clones/_git___git.yoctoproject.org_meta-yocto_master/meta-yocto-bsp'
2016-01-11 15:16:26,466 DEBUG localhostbecontroller: giturl git://git.yoctoproject.org/poky:master checking out in current directory /home/sujith/build/poky-push/_toaster_clones/_git___git.yoctoproject.org_poky_master
2016-01-11 15:16:26,466 DEBUG lbc_shellcmmd: (/home/sujith/build/poky-push/_toaster_clones/_git___git.yoctoproject.org_poky_master) git remote -v
2016-01-11 15:16:26,476 DEBUG localhostbecontroller: shellcmd success
2016-01-11 15:16:26,476 DEBUG localhostbecontroller: checking out commit master to /home/sujith/build/poky-push/_toaster_clones/_git___git.yoctoproject.org_poky_master 
2016-01-11 15:16:26,477 DEBUG lbc_shellcmmd: (/home/sujith/build/poky-push/_toaster_clones/_git___git.yoctoproject.org_poky_master) git fetch --all && git reset --hard "origin/master"
2016-01-11 15:16:27,483 DEBUG localhostbecontroller: shellcmd success
2016-01-11 15:16:27,485 DEBUG localhostbecontroller: selected poky dir name /home/sujith/build/poky-push/_toaster_clones/_git___git.yoctoproject.org_poky_master
2016-01-11 15:16:27,485 DEBUG localhostbecontroller: localdirpath expected '/home/sujith/build/poky-push/_toaster_clones/_git___git.yoctoproject.org_poky_master/bitbake'
2016-01-11 15:16:27,486 DEBUG localhostbecontroller: localdirpath expected '/home/sujith/build/poky-push/_toaster_clones/_git___git.yoctoproject.org_poky_master/meta'
2016-01-11 15:16:27,486 DEBUG localhostbecontroller: current layer list [u'/home/sujith/build/poky-push/_toaster_clones/_git___git.yoctoproject.org_meta-yocto_master/meta-yocto',
 u'/home/sujith/build/poky-push/_toaster_clones/_git___git.yoctoproject.org_meta-yocto_master/meta-yocto-bsp',
 u'/home/sujith/build/poky-push/_toaster_clones/_git___git.yoctoproject.org_poky_master/meta'] 
2016-01-11 15:16:27,496 DEBUG lbc_shellcmmd: (/home/sujith/build/poky-push/build) bash -c 'source /home/sujith/build/poky-push/bitbake/bin/toaster restart-bitbake'
2016-01-11 15:16:32,984 DEBUG localhostbecontroller: shellcmd success
2016-01-11 15:16:32,985 DEBUG localhostbecontroller: restarted bitbake server
2016-01-11 15:16:32,987 DEBUG localhostbecontroller: bitbake port 34520
2016-01-11 15:16:33,025 DEBUG localhostbecontroller: Build launched, exiting. Follow build logs at /home/sujith/build/poky-push/build/toaster_ui.log


Later on another terminal when I open toaster_ui.log here is what I see:

[sujith@sujith poky-push]$ tail -f /home/sujith/build/poky-push/build/toaster_ui.log
NOTE: ToasterUI waiting for events
WARNING: Return value is 0
Traceback (most recent call last):
  File "/home/sujith/build/poky-push/bitbake/bin/bitbake", line 45, in <module>
    cookerdata.CookerConfiguration()))
  File "/home/sujith/build/poky-push/bitbake/lib/bb/main.py", line 414, in bitbake_main
    server_connection.setupEventQueue()
  File "/home/sujith/build/poky-push/bitbake/lib/bb/server/xmlrpc.py", line 308, in setupEventQueue
    self.events = uievent.BBUIEventQueue(self.connection, self.clientinfo)
  File "/home/sujith/build/poky-push/bitbake/lib/bb/ui/uievent.py", line 66, in __init__
    raise Exception(errmsg)
Exception: Could not register UI event handler. Error: Cooker is busy: parsing, host 127.0.0.1, port 58870
WARNING: Could not register UI event handler. Error: Cooker is busy: parsing, host 127.0.0.1, port 58870, retry
WARNING: Could not register UI event handler. Error: Cooker is busy: parsing, host 127.0.0.1, port 58870, retry
WARNING: Could not register UI event handler. Error: Cooker is busy: parsing, host 127.0.0.1, port 58870, retry
WARNING: Could not register UI event handler. Error: Cooker is busy: parsing, host 127.0.0.1, port 58870, retry
WARNING: Could not register UI event handler. Error: Cooker is busy: parsing, host 127.0.0.1, port 58870, retry

The output of env from the terminal after I ran toaster is as shown below:
(venv)[sujith@sujith build]$ env
TOASTER_DIR=/home/sujith/build/poky-push
HOSTNAME=sujith.yocto.systems
TERM=xterm
SHELL=/bin/bash
HISTSIZE=1000
SSH_CLIENT=139.181.35.34 34790 22
OLDPWD=/home/sujith/build/poky-push
SSH_TTY=/dev/pts/0
USER=sujith
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.m4a=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.oga=01;36:*.opus=01;36:*.spx=01;36:*.xspf=01;36:
SSH_AUTH_SOCK=/tmp/ssh-xiRjuZYQND/agent.10800
VIRTUAL_ENV=/home/sujith/build/poky-push/venv
MAIL=/var/spool/mail/sujith
PATH=/home/sujith/build/poky-push/scripts:/home/sujith/build/poky-push/bitbake/bin:/home/sujith/build/poky-push/venv/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/sujith/.local/bin:/home/sujith/bin
PWD=/home/sujith/build/poky-push/build
LANG=en_IN
PS1=(venv)[\u@\h \W]\$ 
TOASTER_CONF=/home/sujith/build/poky-push/meta-yocto/conf/toasterconf.json
HISTCONTROL=ignoredups
BUILDDIR=/home/sujith/build/poky-push/build
SHLVL=1
HOME=/home/sujith
LOGNAME=sujith
CVS_RSH=ssh
BBSERVER=0.0.0.0:-1
SSH_CONNECTION=139.181.35.34 34790 172.17.0.40 22
LESSOPEN=|/usr/bin/lesspipe.sh %s
DATABASE_URL=sqlite3:///home/sujith/build/poky-push/build/toaster.sqlite
BB_ENV_EXTRAWHITE=MACHINE DISTRO TCMODE TCLIBC HTTP_PROXY http_proxy HTTPS_PROXY https_proxy FTP_PROXY ftp_proxy FTPS_PROXY ftps_proxy ALL_PROXY all_proxy NO_PROXY no_proxy SSH_AGENT_PID SSH_AUTH_SOCK BB_SRCREV_POLICY SDKMACHINE BB_NUMBER_THREADS BB_NO_NETWORK PARALLEL_MAKE GIT_PROXY_COMMAND SOCKS5_PASSWD SOCKS5_USER SCREENDIR STAMPS_DIR 
CCACHE_HASHDIR=
_=/usr/bin/env
(venv)[sujith@sujith build]$ 

May I know if there is something wrong with env?
Comment 7 Ed Bartosh 2016-01-15 14:04:04 UTC
It turned out that increasing timeout after restarting bitbake solves this issue.

Sujith, thank you for testing it!

Patch has been sent for review: https://lists.yoctoproject.org/pipermail/toaster/2016-January/003693.html
Comment 8 Ed Bartosh 2016-01-17 19:45:51 UTC
The fix has been merged to bitbake master: http://cgit.openembedded.org/bitbake/commit/?id=b64a0adc1efd72aa4d46df3e043dd14543abae3d
Comment 9 Mihail Stanciu 2016-03-01 15:21:10 UTC
Verified. Haven't been able to reproduce this during the last FP for 2.1: 23056103c949b498c23b47579e8dd57ce78e6ed9