Install Katello podman ver 1.0.0 - Error Candlepin container

I’m launching playbook version 1.0.0 foremanctl/src/playbooks/deploy/deploy.yaml at 1.0.0 · theforeman/foremanctl · GitHub

Error Candepin container:

Dec 01 19:28:55 katello candlepin[9882]: Error: Could not find or load main class org.apache.catalina.startup.Bootstrap
Dec 01 19:28:55 katello candlepin[9882]: Caused by: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstrap

image

Hi,

how are you launching the playbook? Can you show us the contents of /etc/containers/systemd/candlepin.container?

I think systemctl cat candlepin should also show the information. In the X-Container section we’ll have all the required info, right?

Yes that would also work

Hi

Information output: candlepinout.log

candlepinout.log (3.4 KB)

I ran version 0.0.4 a couple of months ago and had no problems.

We recently released 1.1.0 – would you mind re-trying it with this version?

Hi,

I’m working in a Windows environment in Visual Studio, so this might be the problem. I didn’t change any configuration files, though.
The problem was only in the tomcat.conf file.

I fixed the file:
sed -i ‘s/\r//g’ tomcat.conf

“The error message /tomcat.conf: line 13: $'\r': command not found indicates that the shell script has Windows-style line endings (CRLF) instead of the required Unix-style line endings (LF). “

After fixing it, Candlepin started working.

1 Like

Oh interesting! Thanks for digging into this.

Can you tell me more about the environment? You got me curious.
You’re using a windows machine and remotely deploy onto a Linux VM?
Or is that Podman Desktop or something similar?

Hi!

I use a Windows machine with the Visual Studio code editor. Next, an Ansible Linux machine with Ansible AWX runs the roles for installation on a remote VM.

The main task is to run katello on Opensuse or Ubuntu and migrate from redhat katello to OS Opensuse.