Katello 4.5 foreman 3.3 is broken by rubygem-foreman_vault

This was an upgrade from foreman 3.2 with rubygem-foreman_vault

If I install rubygem-foreman_vault get a db_migration fault and foreman won’t start

it installs correctly

Foreman and Proxy versions:
katello-4.5.0-1.el8.noarch
foreman-3.3.0-1.el8.noarch

Foreman and Proxy plugin versions:
rubygem-foreman_vault-1.1.0-3.fm3_3.el8.noarch

Distribution and version:
AlmaLinux release 8.6 (Sky Tiger)
Other relevant data:
2022-08-16 12:15:19 [ERROR ] [configure] ‘/usr/sbin/foreman-rake db:migrate’ returned 1 instead of one of [0]
2022-08-16 12:15:19 [ERROR ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns: change from ‘notrun’ to [‘0’] failed: ‘/usr/sbin/foreman-rake db:migrate’ returned 1 instead of one of [0]

Got a new release from the developer and merged already the PR for packaging including backports, so a fixed package should be available soon.

I can confirm that the updated rubygem-foreman_vault-1.2.0-1.fm3_3.el8.noarch works. Thanks for the fast work

1 Like

Error After the installation- version of katello 4.5 foreman 3.3-


          └─172173 /usr/lib/jvm/jre-11/bin/java -Xms1024m -Xmx4096m -Dcom.redhat.fips=false -Djava.security.auth.login.config=/usr/share/tomcat/conf/login.config -classpath /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar:/usr/share/java/ant.jar:/usr/share/java/ant-launcher.jar:/usr/lib/jvm/java/lib/tools.jar -Dcatalina.base=/usr/share/tomcat -Dcatalina.home=/usr/share/tomcat -Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat/temp -Djava.util.logging.config.file=/usr/share/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager org.apache.catalina.startup.Bootstrap start

Sep 11 19:41:36 sdl-foreman server[172173]: 11-Sep-2022 19:41:36.293 WARNING [main] com.google.inject.internal.ProxyFactory.<init> Method [public void org.candlepin.model.CdnCurator.delete(org.candlepin.model.Persisted)] is synthetic and is being intercepted by [com.google.inject.persist.jpa.JpaLocalTxnInterceptor@5b2dc580]. This could indicate a bug.  The method may be intercepted twice, or may not be intercepted at all.
Sep 11 19:41:36 sdl-foreman server[172173]: 11-Sep-2022 19:41:36.330 WARNING [main] com.google.inject.internal.ProxyFactory.<init> Method [public void org.candlepin.model.PoolCurator.delete(org.candlepin.model.Persisted)] is synthetic and is being intercepted by [com.google.inject.persist.jpa.JpaLocalTxnInterceptor@5b2dc580]. This could indicate a bug.  The method may be intercepted twice, or may not be intercepted at all.
Sep 11 19:41:36 sdl-foreman server[172173]: 11-Sep-2022 19:41:36.445 WARNING [main] com.google.inject.internal.ProxyFactory.<init> Method [public void org.candlepin.model.RulesCurator.delete(org.candlepin.model.Persisted)] is synthetic and is being intercepted by [com.google.inject.persist.jpa.JpaLocalTxnInterceptor@5b2dc580]. This could indicate a bug.  The method may be intercepted twice, or may not be intercepted at all.
Sep 11 19:41:36 sdl-foreman server[172173]: 11-Sep-2022 19:41:36.446 WARNING [main] com.google.inject.internal.ProxyFactory.<init> Method [public org.candlepin.model.Persisted org.candlepin.model.RulesCurator.create(org.candlepin.model.Persisted)] is synthetic and is being intercepted by [com.google.inject.persist.jpa.JpaLocalTxnInterceptor@5b2dc580]. This could indicate a bug.  The method may be intercepted twice, or may not be intercepted at all.
Sep 11 19:41:36 sdl-foreman server[172173]: 11-Sep-2022 19:41:36.572 WARNING [main] com.google.inject.internal.ProxyFactory.<init> Method [public void org.candlepin.model.ContentCurator.delete(org.candlepin.model.Persisted)] is synthetic and is being intercepted by [com.google.inject.persist.jpa.JpaLocalTxnInterceptor@5b2dc580]. This could indicate a bug.  The method may be intercepted twice, or may not be intercepted at all.
Sep 11 19:41:36 sdl-foreman server[172173]: 11-Sep-2022 19:41:36.632 WARNING [main] com.google.inject.internal.ProxyFactory.<init> Method [public void org.candlepin.model.EntitlementCertificateCurator.delete(org.candlepin.model.Persisted)] is synthetic and is being intercepted by [com.google.inject.persist.jpa.JpaLocalTxnInterceptor@5b2dc580]. This could indicate a bug.  The method may be intercepted twice, or may not be intercepted at all.
Sep 11 19:41:36 sdl-foreman server[172173]: 11-Sep-2022 19:41:36.679 WARNING [main] com.google.inject.internal.ProxyFactory.<init> Method [public java.lang.Iterable org.candlepin.resource.OwnerResource.createBatchContent(java.lang.String,java.util.List)] is synthetic and is being intercepted by [com.google.inject.persist.jpa.JpaLocalTxnInterceptor@5b2dc580]. This could indicate a bug.  The method may be intercepted twice, or may not be intercepted at all.
Sep 11 19:41:45 sdl-foreman server[172173]: 11-Sep-2022 19:41:45.710 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/var/lib/tomcat/webapps/candlepin] has finished in [20,342] ms
Sep 11 19:41:45 sdl-foreman server[172173]: 11-Sep-2022 19:41:45.714 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["https-jsse-nio-127.0.0.1-23443"]
Sep 11 19:41:45 sdl-foreman server[172173]: 11-Sep-2022 19:41:45.800 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [21,047] milliseconds

type or paste code here