Bug 12378 - parsing error while using persistent bitbake server
Summary: parsing error while using persistent bitbake server
Status: RESOLVED OBSOLETE
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 2.4
Hardware: x86 Multiple
: Medium normal
Target Milestone: Future
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-11-22 19:24 UTC by California Sullivan
Modified: 2020-06-25 08:27 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description California Sullivan 2017-11-22 19:24:49 UTC
Working on my efi boot partition stuff along with BB_SERVER_TIMEOUT=10000, I ran into the following:

WARNING: Got ParseProgress event for parsing that never started?
ERROR: Command execution failed: Traceback (most recent call last):
  File "/home/clsulliv/yocto/poky/bitbake/lib/bb/command.py", line 113, in runAsyncCommand
    self.cooker.updateCache()
  File "/home/clsulliv/yocto/poky/bitbake/lib/bb/cooker.py", line 1525, in updateCache
    if not self.parser.parse_next():
  File "/home/clsulliv/yocto/poky/bitbake/lib/bb/cooker.py", line 2150, in parse_next
    parsed=parsed, watcher = self.cooker.add_filewatch)
  File "/home/clsulliv/yocto/poky/bitbake/lib/bb/cache.py", line 718, in add_info
    watcher(info_array[0].file_depends)
  File "/home/clsulliv/yocto/poky/bitbake/lib/bb/cooker.py", line 287, in add_filewatch
    watcher.add_watch(f, self.watchmask, quiet=False)
  File "/home/clsulliv/yocto/poky/bitbake/lib/pyinotify.py", line 1924, in add_watch
    raise WatchManagerError(err, ret_)
pyinotify.WatchManagerError: add_watch: cannot watch /home/clsulliv/yocto/poky/meta/conf WD=-1, Errno=Invalid argument (EINVAL)

In order to get past this I had to kill a number of bitbake processes:

[clsulliv@clsulliv build]$ ps -aux | grep bitb
clsulliv 15006  0.2  0.5 788484 338784 ?       Sl   11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15008  0.2  0.5 788484 338844 ?       Sl   11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15009  0.2  0.5 788484 338736 ?       Sl   11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15010  0.2  0.5 788484 338736 ?       Sl   11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15011  0.2  0.5 788484 338708 ?       Sl   11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15012  0.2  0.5 788484 338648 ?       Sl   11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15013  0.2  0.5 788484 338760 ?       Sl   11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15014  0.2  0.5 788484 338760 ?       Sl   11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15015  0.2  0.5 788484 338648 ?       Sl   11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15016  0.1  0.5 788484 338780 ?       Sl   11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15017  0.2  0.5 788484 338740 ?       Sl   11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15019  0.2  0.5 788484 338648 ?       Sl   11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15020  0.2  0.5 788484 338580 ?       Sl   11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15021  0.2  0.5 788484 338776 ?       Sl   11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15022  0.2  0.5 788484 338648 ?       Sl   11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15024  0.2  0.5 788484 338736 ?       Sl   11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15025  0.1  0.5 788484 338636 ?       Sl   11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15026  0.2  0.5 788484 338772 ?       Sl   11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15028  0.2  0.5 788484 338648 ?       Sl   11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15029  0.1  0.5 788484 338564 ?       Sl   11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15032  0.2  0.5 788484 338648 ?       Sl   11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15034  0.1  0.5 788484 338568 ?       Sl   11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15037  0.2  0.5 788484 338580 ?       Sl   11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15040  0.2  0.5 788484 338648 ?       Sl   11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15041  0.1  0.5 788484 338648 ?       Sl   11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15043  0.2  0.5 788484 338580 ?       Sl   11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15044  0.1  0.5 788484 338564 ?       Sl   11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15049  0.0  0.5 788484 337740 ?       S    11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15053  0.0  0.5 788484 337740 ?       S    11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15056  0.0  0.5 788484 337740 ?       S    11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15061  0.0  0.5 788484 337740 ?       S    11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15063  0.0  0.5 788484 337740 ?       S    11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15066  0.0  0.5 788484 337740 ?       S    11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15068  0.0  0.5 788484 337740 ?       S    11:15   0:00 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base
clsulliv 15123  0.0  0.0 118516   980 pts/2    S+   11:19   0:00 grep --color=auto bitb
clsulliv 39582  6.1  0.5 788488 341984 ?       Sl   11:10   0:34 python3 /home/clsulliv/yocto/poky/bitbake/bin/bitbake core-image-base

After killing them all it reparsed and I move on.

I'm not sure of the exact steps needed to reproduce this. I was just modifying files/committing changes/doing the occasional rebase when it occurred.
Comment 1 brian avery 2017-11-30 16:18:03 UTC
Cal, if you can find a reproducer for this, please enter it in the bug. If you cannot, reassign it to me and I will just push it to future as a bug documentation entry in case someone later finds a reproducer.
Comment 2 California Sullivan 2017-12-07 18:05:59 UTC
I haven't been able to reproduce this for the last week. Assigning back to Brian.
Comment 3 brian avery 2017-12-08 19:09:43 UTC
here for documentation since no reproducer
Comment 4 Randy MacLeod 2020-06-25 08:27:24 UTC
If we get the persistent server going, we may reopen.