Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on Dockerfile using CentOS 8 as base image: with 1) RPM database, and 2) JRE #2113

Open
mapedraza opened this issue Nov 19, 2021 · 4 comments

Comments

@mapedraza
Copy link
Collaborator

mapedraza commented Nov 19, 2021

When migrating the Dockerfiles from centos7 to centos8, the result of the Docker build process gives an error:

error: failed to replace old database with new database!
error: replace files in /var/lib/rpm with files from /var/lib/rpmrebuilddb.468 to recover

This is due to the command rpm --rebuilddb

Note that this also happened when migrating Orion from Centos7 to Centos8

@mapedraza
Copy link
Collaborator Author

In order to keep building the images using centos8, a new PR was added: #2114

This PR does not fix the problem, but let the image builds

It replaces this line:

  yum clean all && rpm --rebuilddb && rm -rf /var/lib/yum/yumdb && rm -rf /var/lib/yum/history && \

With this new one:

  yum clean all && rm -rf /var/lib/yum/yumdb && rm -rf /var/lib/yum/history && \

@mapedraza
Copy link
Collaborator Author

After merging #2114, new errors related with JRE were found. The image was not able to run printing the following message on the log:

fiware-cygnus  | Warning: JAVA_HOME is not set!
fiware-cygnus  | Error: Unable to find java executable. Is it in your PATH?
fiware-cygnus exited with code 0

This is related with the following lines on the Dockerfile:

unset JAVA_HOME && \
yum erase -y git java-${JAVA_VERSION}-openjdk-devel python2 && \

@mapedraza mapedraza changed the title Error on Dockerfile when rebuilding RPM database (rpm --rebuilddb) Error on Dockerfile when with RPM database and JRE Nov 23, 2021
@fgalan fgalan changed the title Error on Dockerfile when with RPM database and JRE Error on Dockerfile using CentOS 8 as base image: with 1) RPM database, and 2) JRE Nov 23, 2021
@AlvaroVega
Copy link
Member

Can we close this issue @mapedraza @fgalan ?

@fgalan
Copy link
Member

fgalan commented Dec 2, 2021

Can we close this issue @mapedraza @fgalan ?

Not yet... there are a couple of FIXMEs that need to be fixed first (https://github.com/telefonicaid/fiware-cygnus/search?q=FIXME+2113)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants