All of lore.kernel.org
 help / color / mirror / Atom feed
* Debugfs + nfs-utils-client + ipkg
@ 2016-12-02  3:19 Michael Gloff
  2016-12-02  7:17 ` Robert Yang
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Gloff @ 2016-12-02  3:19 UTC (permalink / raw)
  To: OE Core

[-- Attachment #1: Type: text/plain, Size: 3434 bytes --]

I've run into an issue recently when trying to build an image along with
the companion debugfs. This error only occurs if 'nfs-utils-client' is
added to IMAGE_INSTALL and ipkg packages are selected. I don't get the
error with RPM or with removing nfs-utils-client. Also, I can see the
missing files are present at some point during do_rootfs, but then must be
getting wiped out? I noticed this in Krogoth first, but can reproduce in
latest master. Any ideas?

developer@OEBuilder:~/oe/recipes/poky/build$ bitbake core-image-minimal
Loading cache: 100%
|##########################################################################################################################################################|
Time: 0:00:00
Loaded 1304 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.32.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal"
TARGET_SYS        = "i586-poky-linux"
MACHINE           = "qemux86"
DISTRO            = "poky"
DISTRO_VERSION    = "2.2"
TUNE_FEATURES     = "m32 i586"
TARGET_FPU        = ""
meta
meta-poky
meta-yocto-bsp    = "master:9e63f81c78e284c9b325fe04a1b59e61c7ad8a1a"

Initialising tasks: 100%
|#####################################################################################################################################################|
Time: 0:00:03
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: core-image-minimal-1.0-r0 do_rootfs: Cannot get the installed
packages list. Command
'/home/developer/oe/recipes/poky/build/tmp/sysroots/x86_64-linux/usr/bin/opkg
-f
/home/developer/oe/recipes/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/opkg.conf
-o
/home/developer/oe/recipes/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs
--force_postinstall --prefer-arch-to-version   status' returned 0 and
stderr:
Collected errors:
 * file_md5sum_alloc: Failed to open file
/home/developer/oe/recipes/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/var/lib/nfs/etab:
No such file or directory.
 * file_md5sum_alloc: Failed to open file
/home/developer/oe/recipes/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/var/lib/nfs/rmtab:
No such file or directory.
 * file_md5sum_alloc: Failed to open file
/home/developer/oe/recipes/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/var/lib/nfs/xtab:
No such file or directory.
 * file_md5sum_alloc: Failed to open file
/home/developer/oe/recipes/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/var/lib/nfs/statd/state:
No such file or directory.

ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in:
/home/developer/oe/recipes/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.5361
ERROR: Task
(/home/developer/oe/recipes/poky/meta/recipes-core/images/core-image-minimal.bb:do_rootfs)
failed with exit code '1'
NOTE: Tasks Summary: Attempted 2168 tasks of which 2167 didn't need to be
rerun and 1 failed.

Summary: 1 task failed:

/home/developer/oe/recipes/poky/meta/recipes-core/images/core-image-minimal.bb:
do_rootfs
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

Thanks,

Michael Gloff
mgloff@emacinc.com

[-- Attachment #2: Type: text/html, Size: 3815 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Debugfs + nfs-utils-client + ipkg
  2016-12-02  3:19 Debugfs + nfs-utils-client + ipkg Michael Gloff
@ 2016-12-02  7:17 ` Robert Yang
  2016-12-03  5:09   ` Michael Gloff
  0 siblings, 1 reply; 3+ messages in thread
From: Robert Yang @ 2016-12-02  7:17 UTC (permalink / raw)
  To: Michael Gloff, OE Core

Hi Michael,

On 12/02/2016 11:19 AM, Michael Gloff wrote:
> I've run into an issue recently when trying to build an image along with the
> companion debugfs. This error only occurs if 'nfs-utils-client' is added to
> IMAGE_INSTALL and ipkg packages are selected. I don't get the error with RPM or
> with removing nfs-utils-client. Also, I can see the missing files are present at
> some point during do_rootfs, but then must be getting wiped out? I noticed this
> in Krogoth first, but can reproduce in latest master. Any ideas?

Maybe something is wrong with opkg, it only happens when files are in 
/var/lib/foo, here is a *workaround*:

diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
index a348b97..ba072c0 100644
--- a/meta/lib/oe/rootfs.py
+++ b/meta/lib/oe/rootfs.py
@@ -951,7 +951,7 @@ class OpkgRootfs(DpkgOpkgRootfs):
          if self.progress_reporter:
              self.progress_reporter.next_stage()

-        self._setup_dbg_rootfs(['/etc', '/var/lib/opkg', '/usr/lib/ssl'])
+        self._setup_dbg_rootfs(['/etc', '/var/lib/opkg', '/usr/lib/ssl', 
'/var/lib/nfs'])

          execute_pre_post_process(self.d, opkg_post_process_cmds)


This is not a regular fix, you can file a bug here:
https://bugzilla.yoctoproject.org/

We may fix it later.

// Robert

>
> developer@OEBuilder:~/oe/recipes/poky/build$ bitbake core-image-minimal
> Loading cache: 100%
> |##########################################################################################################################################################|
> Time: 0:00:00
> Loaded 1304 entries from dependency cache.
> NOTE: Resolving any missing task queue dependencies
>
> Build Configuration:
> BB_VERSION        = "1.32.0"
> BUILD_SYS         = "x86_64-linux"
> NATIVELSBSTRING   = "universal"
> TARGET_SYS        = "i586-poky-linux"
> MACHINE           = "qemux86"
> DISTRO            = "poky"
> DISTRO_VERSION    = "2.2"
> TUNE_FEATURES     = "m32 i586"
> TARGET_FPU        = ""
> meta
> meta-poky
> meta-yocto-bsp    = "master:9e63f81c78e284c9b325fe04a1b59e61c7ad8a1a"
>
> Initialising tasks: 100%
> |#####################################################################################################################################################|
> Time: 0:00:03
> NOTE: Executing SetScene Tasks
> NOTE: Executing RunQueue Tasks
> ERROR: core-image-minimal-1.0-r0 do_rootfs: Cannot get the installed packages
> list. Command
> '/home/developer/oe/recipes/poky/build/tmp/sysroots/x86_64-linux/usr/bin/opkg -f
> /home/developer/oe/recipes/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/opkg.conf
> -o
> /home/developer/oe/recipes/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs
> --force_postinstall --prefer-arch-to-version   status' returned 0 and stderr:
> Collected errors:
>  * file_md5sum_alloc: Failed to open file
> /home/developer/oe/recipes/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/var/lib/nfs/etab:
> No such file or directory.
>  * file_md5sum_alloc: Failed to open file
> /home/developer/oe/recipes/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/var/lib/nfs/rmtab:
> No such file or directory.
>  * file_md5sum_alloc: Failed to open file
> /home/developer/oe/recipes/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/var/lib/nfs/xtab:
> No such file or directory.
>  * file_md5sum_alloc: Failed to open file
> /home/developer/oe/recipes/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/var/lib/nfs/statd/state:
> No such file or directory.
>
> ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs
> ERROR: Logfile of failure stored in:
> /home/developer/oe/recipes/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.5361
> ERROR: Task
> (/home/developer/oe/recipes/poky/meta/recipes-core/images/core-image-minimal.bb:do_rootfs)
> failed with exit code '1'
> NOTE: Tasks Summary: Attempted 2168 tasks of which 2167 didn't need to be rerun
> and 1 failed.
>
> Summary: 1 task failed:
>
> /home/developer/oe/recipes/poky/meta/recipes-core/images/core-image-minimal.bb:do_rootfs
> Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
>
> Thanks,
>
> Michael Gloff
> mgloff@emacinc.com <mailto:mgloff@emacinc.com>
>
>


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: Debugfs + nfs-utils-client + ipkg
  2016-12-02  7:17 ` Robert Yang
@ 2016-12-03  5:09   ` Michael Gloff
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Gloff @ 2016-12-03  5:09 UTC (permalink / raw)
  To: Robert Yang; +Cc: OE Core

[-- Attachment #1: Type: text/plain, Size: 4855 bytes --]

Thanks Robert!
Bug filed:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10761

Michael

On Fri, Dec 2, 2016 at 1:17 AM, Robert Yang <liezhi.yang@windriver.com>
wrote:

> Hi Michael,
>
> On 12/02/2016 11:19 AM, Michael Gloff wrote:
>
>> I've run into an issue recently when trying to build an image along with
>> the
>> companion debugfs. This error only occurs if 'nfs-utils-client' is added
>> to
>> IMAGE_INSTALL and ipkg packages are selected. I don't get the error with
>> RPM or
>> with removing nfs-utils-client. Also, I can see the missing files are
>> present at
>> some point during do_rootfs, but then must be getting wiped out? I
>> noticed this
>> in Krogoth first, but can reproduce in latest master. Any ideas?
>>
>
> Maybe something is wrong with opkg, it only happens when files are in
> /var/lib/foo, here is a *workaround*:
>
> diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
> index a348b97..ba072c0 100644
> --- a/meta/lib/oe/rootfs.py
> +++ b/meta/lib/oe/rootfs.py
> @@ -951,7 +951,7 @@ class OpkgRootfs(DpkgOpkgRootfs):
>          if self.progress_reporter:
>              self.progress_reporter.next_stage()
>
> -        self._setup_dbg_rootfs(['/etc', '/var/lib/opkg', '/usr/lib/ssl'])
> +        self._setup_dbg_rootfs(['/etc', '/var/lib/opkg', '/usr/lib/ssl',
> '/var/lib/nfs'])
>
>          execute_pre_post_process(self.d, opkg_post_process_cmds)
>
>
> This is not a regular fix, you can file a bug here:
> https://bugzilla.yoctoproject.org/
>
> We may fix it later.
>
> // Robert
>
>
>> developer@OEBuilder:~/oe/recipes/poky/build$ bitbake core-image-minimal
>> Loading cache: 100%
>> |###########################################################
>> ############################################################
>> ###################################|
>> Time: 0:00:00
>> Loaded 1304 entries from dependency cache.
>> NOTE: Resolving any missing task queue dependencies
>>
>> Build Configuration:
>> BB_VERSION        = "1.32.0"
>> BUILD_SYS         = "x86_64-linux"
>> NATIVELSBSTRING   = "universal"
>> TARGET_SYS        = "i586-poky-linux"
>> MACHINE           = "qemux86"
>> DISTRO            = "poky"
>> DISTRO_VERSION    = "2.2"
>> TUNE_FEATURES     = "m32 i586"
>> TARGET_FPU        = ""
>> meta
>> meta-poky
>> meta-yocto-bsp    = "master:9e63f81c78e284c9b325fe04a1b59e61c7ad8a1a"
>>
>> Initialising tasks: 100%
>> |###########################################################
>> ############################################################
>> ##############################|
>> Time: 0:00:03
>> NOTE: Executing SetScene Tasks
>> NOTE: Executing RunQueue Tasks
>> ERROR: core-image-minimal-1.0-r0 do_rootfs: Cannot get the installed
>> packages
>> list. Command
>> '/home/developer/oe/recipes/poky/build/tmp/sysroots/x86_64-linux/usr/bin/opkg
>> -f
>> /home/developer/oe/recipes/poky/build/tmp/work/qemux86-poky-
>> linux/core-image-minimal/1.0-r0/opkg.conf
>> -o
>> /home/developer/oe/recipes/poky/build/tmp/work/qemux86-poky-
>> linux/core-image-minimal/1.0-r0/rootfs
>> --force_postinstall --prefer-arch-to-version   status' returned 0 and
>> stderr:
>> Collected errors:
>>  * file_md5sum_alloc: Failed to open file
>> /home/developer/oe/recipes/poky/build/tmp/work/qemux86-poky-
>> linux/core-image-minimal/1.0-r0/rootfs/var/lib/nfs/etab:
>> No such file or directory.
>>  * file_md5sum_alloc: Failed to open file
>> /home/developer/oe/recipes/poky/build/tmp/work/qemux86-poky-
>> linux/core-image-minimal/1.0-r0/rootfs/var/lib/nfs/rmtab:
>> No such file or directory.
>>  * file_md5sum_alloc: Failed to open file
>> /home/developer/oe/recipes/poky/build/tmp/work/qemux86-poky-
>> linux/core-image-minimal/1.0-r0/rootfs/var/lib/nfs/xtab:
>> No such file or directory.
>>  * file_md5sum_alloc: Failed to open file
>> /home/developer/oe/recipes/poky/build/tmp/work/qemux86-poky-
>> linux/core-image-minimal/1.0-r0/rootfs/var/lib/nfs/statd/state:
>> No such file or directory.
>>
>> ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs
>> ERROR: Logfile of failure stored in:
>> /home/developer/oe/recipes/poky/build/tmp/work/qemux86-poky-
>> linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.5361
>> ERROR: Task
>> (/home/developer/oe/recipes/poky/meta/recipes-core/images/co
>> re-image-minimal.bb:do_rootfs)
>> failed with exit code '1'
>> NOTE: Tasks Summary: Attempted 2168 tasks of which 2167 didn't need to be
>> rerun
>> and 1 failed.
>>
>> Summary: 1 task failed:
>>
>> /home/developer/oe/recipes/poky/meta/recipes-core/images/cor
>> e-image-minimal.bb:do_rootfs
>> Summary: There were 2 ERROR messages shown, returning a non-zero exit
>> code.
>>
>> Thanks,
>>
>> Michael Gloff
>> mgloff@emacinc.com <mailto:mgloff@emacinc.com>
>>
>>
>>

[-- Attachment #2: Type: text/html, Size: 6205 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-12-03  5:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-02  3:19 Debugfs + nfs-utils-client + ipkg Michael Gloff
2016-12-02  7:17 ` Robert Yang
2016-12-03  5:09   ` Michael Gloff

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.