96boards / oe-rpb-manifest

RPB development environment setup using Android repo tool
MIT License
17 stars 58 forks source link

Postinstall intercept hooks failed #143

Closed JohannCOSTE closed 3 years ago

JohannCOSTE commented 3 years ago

Hello, I'm facing an issue when I try to generate images. I followed those instructions https://github.com/96boards/oe-rpb-manifest/blob/qcom/dunfell/README.md. All is going well but in the do_rootfs part, the building process is interupted due to errors in postinstall hooks.

I tried:

MACHINE=dragonboard-410c DISTRO=rpb bitbake core-image-minimal

And:

MACHINE=dragonboard-410c DISTRO=rpb bitbake bitbake rpb-console-image

I also tried to -c clean and -c cleansstate and but each time I get the followings errors:


The first one is with update_mime_database, the logs are:

ERROR: rpb-console-image-1.0-r0 do_rootfs: The postinstall intercept hook 'update_mime_database' failed, details in /home/user/sources/build-rpb/tmp-rpb-glibc/work/dragonboard_410c-linaro-linux/rpb-console-image/1.0-r0/temp/log.do_rootfs
ERROR: Logfile of failure stored in: /home/user/sources/build-rpb/tmp-rpb-glibc/work/dragonboard_410c-linaro-linux/rpb-console-image/1.0-r0/temp/log.do_rootfs.13668
ERROR: Task (/home/user/sources/build-rpb/conf/../../layers/meta-rpb/recipes-samples/images/rpb-console-image.bb:do_rootfs) failed with exit code '1'
...
NOTE: Running intercept scripts:
NOTE: > Executing update_mime_database intercept ...
NOTE: Exit code 1. Output:
Updating MIME database... this may take a while.
Directory '/home/user/sources/build-rpb/tmp-rpb-glibc/work/dragonboard_410c-linaro-linux/rpb-console-image/1.0-r0/rootfs/packages' does not exist!

If I create manually this directory, another problem occures with update_pixbuf_cache :

ERROR: rpb-console-image-1.0-r0 do_rootfs: The postinstall intercept hook 'update_pixbuf_cache' failed, details in /home/user/sources/build-rpb/tmp-rpb-glibc/work/dragonboard_410c-linaro-linux/rpb-console-image/1.0-r0/temp/log.do_rootfs
ERROR: Logfile of failure stored in: /home/user/sources/build-rpb/tmp-rpb-glibc/work/dragonboard_410c-linaro-linux/rpb-console-image/1.0-r0/temp/log.do_rootfs.29623
ERROR: Task (/home/user/sources/build-rpb/conf/../../layers/meta-rpb/recipes-samples/images/rpb-console-image.bb:do_rootfs) failed with exit code '1'
...
NOTE: > Executing update_pixbuf_cache intercept ...
NOTE: Exit code 2. Output:
/home/user/sources/build-rpb/tmp-rpb-glibc/work/dragonboard_410c-linaro-linux/rpb-console-image/1.0-r0/intercept_scripts-c092f5cf390bd321ac9ae423876023b69236fda615991903080eb574b8eff74d/update_pixbuf_cache: 11: /home/user/sources/build-rpb/tmp-rpb-glibc/work/dragonboard_410c-linaro-linux/rpb-console-image/1.0-r0/intercept_scripts-c092f5cf390bd321ac9ae423876023b69236fda615991903080eb574b8eff74d/update_pixbuf_cache: cannot create /home/user/sources/build-rpb/tmp-rpb-glibc/work/dragonboard_410c-linaro-linux/rpb-console-image/1.0-r0/rootfs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/../loaders.cache: Directory nonexistent

I'm new to Yocto so maybe I do something wrong. I will be very grateful if you can help me. Don't hesitate if you need more info about my build system or more logs.

Thanks in advance!

ndechesne commented 3 years ago

I have not seen this issue.. @alimon any idea? Can you please provide the whole build log as well?

JohannCOSTE commented 3 years ago

Thanks for the fast reply! Here are the logs:

I'm building inside a container, here the Dockerfile:

FROM ubuntu:16.04

RUN adduser --disabled-password --gecos "" user
RUN usermod -a -G sudo user
WORKDIR /home/user

# Update packages
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get install -y openssl
RUN apt-get install -y gawk
RUN apt-get install -y wget
RUN apt-get install -y git
RUN apt-get install -y git-core
RUN apt-get install -y diffstat
RUN apt-get install -y texinfo
RUN apt-get install -y gcc-multilib
RUN apt-get install -y build-essential
RUN apt-get install -y chrpath
RUN apt-get install -y socat
RUN apt-get install -y cpio
RUN apt-get install -y libsqlite3-dev
RUN apt-get install -y python
RUN apt-get install -y python3
RUN apt-get install -y python3-pip
RUN apt-get install -y python3-pexpect
RUN apt-get install -y xz-utils
RUN apt-get install -y debianutils
RUN apt-get install -y iputils-ping
RUN apt-get install -y phablet-tools
RUN apt-get install -y android-tools-fastboot
RUN apt-get install -y android-tools-fsutils
RUN apt-get install -y dosfstools
RUN apt-get install -y gdisk
RUN apt-get install -y zip
RUN apt-get install -y dialog
RUN apt-get install -y locales
RUN apt-get install -y nano
RUN apt-get install -y vim

RUN usermod --password $(echo user | openssl passwd -1 -stdin) user

RUN locale-gen en_US.UTF-8

USER user

# Git : access to git.linaro.org must be done with HTTP instead of HTTPS because of tsl handshake incompatibility (bad_mac_address error)
RUN git config --global url."http://git.linaro.org/".insteadOf https://git.linaro.org/

WORKDIR /home/user/source/

Then I run it with:

docker run --tty --interactive --privileged --volume $PWD/sources/:/home/user/source yocto_dragonboard

Where sources is the content of the repository initialized with repo command. I already used the same kind of Dockerfile and Docker run command and it worked well.

JohannCOSTE commented 3 years ago

Hi, I started a new build from scratch and this time it worked! I don't know what happened.

I'm closing the issue, thanks for your support.