# Do\_mender\_uboot\_auto\_configure fails due to multiple users running the build

**URL:** <https://hub.mender.io/t/do-mender-uboot-auto-configure-fails-due-to-multiple-users-running-the-build/2722>\
**Category:** General Discussions\
**Created:** [October 22, 2020, 11:17pm UTC](https://hub.mender.io/t/do-mender-uboot-auto-configure-fails-due-to-multiple-users-running-the-build/2722 "2020-10-22T23:17:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ckelloug2](https://avatars.discourse-cdn.com/v4/letter/c/c6cbf5/32.png) [@ckelloug2](https://hub.mender.io/u/ckelloug2)\
**Post date:** [October 22, 2020, 11:17pm UTC](https://hub.mender.io/t/do-mender-uboot-auto-configure-fails-due-to-multiple-users-running-the-build/2722/1 "2020-10-22T23:17:59Z")

</div>

Hi,  
We have mender integrated with our yocto Rocko build. When we do separate builds under two different usernames (not at the same time), we get the following error:

Error opening lock file /var/lock/fw\_printenv.lock

Checking the file permissions, the lock file was written by the last user to do a full build.

It appears that fw\_printenv writes a global lockfile outside of the yocto environment. I don’t know if this is a problem with mender or with u-boot but I figured I’d post about it in case anybody else has had the problem.

---

<div class="post-metadata">

**Author:** ![dellgreen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dellgreen/32/85_2.png) [@dellgreen](https://hub.mender.io/u/dellgreen)\
**Post date:** [October 23, 2020, 12:14am UTC](https://hub.mender.io/t/do-mender-uboot-auto-configure-fails-due-to-multiple-users-running-the-build/2722/2 "2020-10-23T00:14:23Z")

</div>

I think this looks like a bug in meta-mender in rocko which was fixed in sumo

> <https://github.com/mendersoftware/meta-mender/commit/7879f6ac3f24e94c3ab0ec227f71e5d85e8a372f#diff-7015e55d1581f80a603fba71c8bf262113546168220969da7876436c020712b1>

---

<div class="post-metadata">

**Author:** ![ckelloug2](https://avatars.discourse-cdn.com/v4/letter/c/c6cbf5/32.png) [@ckelloug2](https://hub.mender.io/u/ckelloug2)\
**Post date:** [October 23, 2020, 12:22am UTC](https://hub.mender.io/t/do-mender-uboot-auto-configure-fails-due-to-multiple-users-running-the-build/2722/3 "2020-10-23T00:22:56Z")

</div>

@dellgreen  
Thanks for the quick response. I’m glad to hear it’s already fixed. Someday a new BSP will come out and our product can be upgraded off of Rocko. In the mean time, this bug is easy to work around.

---

<div class="post-metadata">

**Author:** ![dellgreen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dellgreen/32/85_2.png) [@dellgreen](https://hub.mender.io/u/dellgreen)\
**Post date:** [October 23, 2020, 12:24am UTC](https://hub.mender.io/t/do-mender-uboot-auto-configure-fails-due-to-multiple-users-running-the-build/2722/4 "2020-10-23T00:24:45Z")

</div>

might be worth raising the issue in the issue tracker, as the rocko branch is still maintained by the looks of it and looks like a trivial process to cherry-pick the patch from sumo into rocko.

> **[\- Northern.tech AS](https://tracker.mender.io/projects/MEN/issues/MEN-3977?filter=allopenissues)**

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [October 23, 2020, 5:55pm UTC](https://hub.mender.io/t/do-mender-uboot-auto-configure-fails-due-to-multiple-users-running-the-build/2722/5 "2020-10-23T17:55:49Z")

</div>

@lluiscampos can you see if this patch can be backported to Rocko?

---

<div class="post-metadata">

**Author:** ![lluiscampos](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/lluiscampos/32/112_2.png) [@lluiscampos](https://hub.mender.io/u/lluiscampos)\
**Post date:** [October 28, 2020, 9:13am UTC](https://hub.mender.io/t/do-mender-uboot-auto-configure-fails-due-to-multiple-users-running-the-build/2722/6 "2020-10-28T09:13:15Z")

</div>

Thanks @dellgreen for easily spotting the patch!

Even though `rocko` is not maintained (see [Compatibility table at Mender Docs](https://docs.mender.io/overview/compatibility#mender-client-and-yocto-project-version)) I launched a PR in GitHub to backport this patch to `rocko`, ref [meta-mender #1156](https://github.com/mendersoftware/meta-mender/pull/1156), as it seems it will help @ckelloug2 and possibly others in this branch.

---

<div class="post-metadata">

**Author:** ![lluiscampos](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/lluiscampos/32/112_2.png) [@lluiscampos](https://hub.mender.io/u/lluiscampos)\
**Post date:** [December 4, 2020, 8:04am UTC](https://hub.mender.io/t/do-mender-uboot-auto-configure-fails-due-to-multiple-users-running-the-build/2722/7 "2020-12-04T08:04:12Z")

</div>

@ckelloug2 @drewmoseley Sorry for the late response on this. We decided against porting this to rocko. See [reasoning in the Pull Request](https://github.com/mendersoftware/meta-mender/pull/1156#issuecomment-717861564).
