| Summary: | bitbake-prserv-tool has issues when it comes to exporting the PR database | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BitBake | Reporter: | Costin <costin.c.constantin> | ||||||
| Component: | bitbake | Assignee: | Chong Lu <chong.lu> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | Medium | CC: | alexandru.c.georgescu, chong.lu, poky.bs.watcher, poky.watcher, richard.purdie | ||||||
| Version: | 1.7 | ||||||||
| Target Milestone: | 1.8 | ||||||||
| Hardware: | x86 | ||||||||
| OS: | Multiple | ||||||||
| Whiteboard: | |||||||||
| OS type for building Yocto: | --- | Type of Regression: | --- | ||||||
| Verified: | Documentation change: | Don't know | |||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 7734 | ||||||||
| Attachments: |
|
||||||||
|
Description
Costin
2014-09-23 13:11:40 UTC
If would be helpful to see all the processes, to see that error, there must be some process holding the lockfile open. "lsof bitbake.lock" should show up which processes are using it too. Created attachment 2142 [details]
lsof result file
Created attachment 2143 [details]
ps output during lsof
Hello, Attached are two files, one containing the result of "lsof bitbake.lock" named lsof.txt and the other containing the selection for related processes resutlt of "ps -eaf" during the lsof command named ps_while_lsof.txt. before and after issuing "bitbake-prserv-tool export export.inc" there is no result returned by lsof. Thank you, Costin Hello, Just performed tests for the new 1.8 build: Build Configuration: BB_VERSION = "1.25.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "Fedora-20" TARGET_SYS = "i586-poky-linux" MACHINE = "qemux86" DISTRO = "poky" DISTRO_VERSION = "1.7" TUNE_FEATURES = "m32 i586" TARGET_FPU = "" meta meta-yocto meta-yocto-bsp = "master:b813bdebb36501500e86fea5f7e15b4b15ea0902" The issue is "resolved" in a way (tested on Fedora-20 and Ubuntu 14.10): - on Fedora (with PR active): --> build m4 (bitbake m4) --> check PR (ls tmp/deploy/rpm/i586/m4* and result is m4*-r0.0.i586.rpm) --> modify m4 recipe (vi ../meta/recipes-devtools/m4/m4_1.4.17.bb) --> build m4 and check new PR (result: m4*-r0.1.i586.rpm; ok untill now) --> export db (bitbake-prserv-tool export export.inc, all goes well) --> rm db file (rm cache/prserv.sqlite3) --> import db (bitbake-prserv-tool export export.inc, and apparently all is well) --> modify m4 recipe && build m4 --> check PR ... and it is reset to 0 (result: m4*-r0.0.i586.rpm) I tried the above steps for few times and in the end i got (the export part is well however no matter how many times i perform it): [cosscat@Fedora-CCC build]$ bitbake-prserv-tool import export.inc ERROR: Only one copy of bitbake should be run against a build directory Importing from file export.inc failed! [cosscat@Fedora-CCC build]$ However the good thing is that this time it didn't displayed the message above from the start and I could do export/import of db few times - on Ubuntu (with PR active): performed all the above and same thing happens with the exception that the "ERROR*" message is not encountered Costin Hello, The already described behavior is valid for this week's commit: 1.7.1_RC1: 6dd21a9f152a93e2df1178d7a5bd903d7edcf4be Costin I think this issue is caused by syncing database after thread quit. I will send a patch. Hello, still present in d9d5b8b499af3ae01a1e33d0d3969c54c2d4ab1b The patch for the thread issue was merged in http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=8da8a0e55e7191b81e6e0fd1d2d4f0937ba7b0ac Marking as resolved as I think this is fixed now (couldn't reproduce it locally myself). Please reopen if the same error occurs. |