rpm-software-management / microdnf

Lightweight implementation of dnf in C
GNU General Public License v2.0
220 stars 34 forks source link

microdnf update : obfuscaded error about '-1 running transaction' #120

Open llech opened 2 years ago

llech commented 2 years ago

actual

I'm getting very obfustaden error message: '-1 running transaction' when launching microdnf update in the docker build executed by kaniko.

It's not directly caused by running in kaniko context, actually it's enough to build with kaniko from image based on microdnf-based distribution, log ins image and run microdnf update.

The Dockerfile to replicate:

FROM quay.io/keycloak/keycloak:11.0.3
ENV LD_LIBRARY_PATH=/usr/lib64:/usr/lib
USER root
RUN microdnf update -y && microdnf clean all

The error message:

Cleanup: libgcc;8.3.1-5.1.el8;x86_64;installed
error: Error -1 running transaction
error building image: error building stage: failed to execute command: waiting for process to exit: exit status 1

expected

Ideally, update should work. But I assume, there's an underlying problem which I'm unable to spot because of the obfuscated error message. So I expect to get real error message.

cmoulliard commented 1 year ago

Can we get a more verbose message as this one error: Error -1 running transaction do not really help ?