[ovirt-users] Re: 500 - Internal Server Error after engine-setup oVirt 4.4 on CentOS Stream 8

2022-05-16 Thread Sandro Bonazzola
Il giorno lun 16 mag 2022 alle ore 12:41 Alessio B. <
alessio.battaglia.1...@gmail.com> ha scritto:

> Dear community,
>
> after a fresh installation of CentOS Stream 8 and oVirt 4.4 the web portal
> send a 500 error.
>

Just a note that oVirt 4.4 reached End Of Life and oVirt 4.5.0 includes
several security fixes.
As this is a new deployment I would strongly recommend to use oVirt 4.5
from the beginning.

-- 

Sandro Bonazzola

MANAGER, SOFTWARE ENGINEERING, EMEA R&D RHV

Red Hat EMEA 

sbona...@redhat.com


*Red Hat respects your work life balance. Therefore there is no need to
answer this email out of your office hours.*
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/4H6OZLXMROO6UEJ3K43OCLSE7UQZOBGW/


[ovirt-users] Re: 500 - Internal Server Error after engine-setup oVirt 4.4 on CentOS Stream 8

2022-05-16 Thread Alessio B.
Dear Arthur,
this article solved my issue, thank you, now the engine is OK!
Best regards!
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/KY2LVZAEREYGPCNIXD3LBOYG3ACTTIQN/


[ovirt-users] Re: 500 - Internal Server Error after engine-setup oVirt 4.4 on CentOS Stream 8

2022-05-16 Thread Artur Socha
Hi Alessio,
I suspect that is a known issue with postgresql-jdbc version
incompatibility. Please see this thread:
https://lists.ovirt.org/archives/list/de...@ovirt.org/message/SBCWNXLFLJBKTA3TFJARE7QCYZQ6QMMH/

Artur

On Mon, May 16, 2022 at 12:40 PM Alessio B. <
alessio.battaglia.1...@gmail.com> wrote:

> Dear community,
>
> after a fresh installation of CentOS Stream 8 and oVirt 4.4 the web portal
> send a 500 error.
>
> This is the history:
>
> 3  yum check-update
> 4  dnf install
> https://resources.ovirt.org/pub/yum-repo/ovirt-release44.rpm
> 5  dnf module -y enable javapackages-tools
> 6  dnf module -y enable pki-deps
> 7  dnf module -y enable postgresql:12
> 8  dnf module -y enable mod_auth_openidc:2.3
> 9  dnf distro-sync --nobest
>10  reboot
>11  yum install langpacks-en.noarch
>12  localectl set-locale LANG=en_US.UTF-8
>13  dnf upgrade --nobest
>14  dnf install ovirt-engine
>15  engine-setup
>16  systemctl restart ovirt-engine
>
> This is the error in /var/log/ovirt-engine/server.log after the
> engine-setup
>
> 2022-05-16 12:33:42,931+02 ERROR [org.jboss.msc.service.fail]
> (ServerService Thread Pool -- 56) MSC01: Failed to start service
> jboss.deployment.subunit."engine.ear"."bll.jar".component.Backend.START:
> org.jboss.msc.service.StartException in service
> jboss.deployment.subunit."engine.ear"."bll.jar".component.Backend.START:
> java.lang.IllegalStateException: WFLYEE0042: Failed to construct component
> instance
> at org.jboss.as.ee@23.0.2.Final
> //org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:57)
> at
> java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
> at
> java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
> at org.jboss.threads@2.4.0.Final
> //org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> at org.jboss.threads@2.4.0.Final
> //org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
> at org.jboss.threads@2.4.0.Final
> //org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
> at org.jboss.threads@2.4.0.Final
> //org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
> at java.base/java.lang.Thread.run(Thread.java:829)
> at org.jboss.threads@2.4.0.Final
> //org.jboss.threads.JBossThread.run(JBossThread.java:513)
> Caused by: java.lang.IllegalStateException: WFLYEE0042: Failed to
> construct component instance
> at org.jboss.as.ee@23.0.2.Final
> //org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:163)
> at org.jboss.as.ee@23.0.2.Final
> //org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:134)
> at org.jboss.as.ee@23.0.2.Final
> //org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:88)
> at org.jboss.as.ejb3@23.0.2.Final
> //org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:127)
> at org.jboss.as.ejb3@23.0.2.Final
> //org.jboss.as.ejb3.component.singleton.SingletonComponent.start(SingletonComponent.java:141)
> at org.jboss.as.ee@23.0.2.Final
> //org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:54)
> ... 8 more
> Caused by: javax.ejb.EJBException:
> org.jboss.weld.exceptions.WeldException: WELD-49: Unable to invoke
> protected void org.ovirt.engine.core.bll.TagsDirector.init() on
> org.ovirt.engine.core.bll.TagsDirector@2d479b8
> at org.jboss.as.ejb3@23.0.2.Final
> //org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInNoTx(CMTTxInterceptor.java:239)
> at org.jboss.as.ejb3@23.0.2.Final
> //org.jboss.as.ejb3.tx.CMTTxInterceptor.supports(CMTTxInterceptor.java:446)
> at org.jboss.as.ejb3@23.0.2.Final
> //org.jboss.as.ejb3.tx.LifecycleCMTTxInterceptor.processInvocation(LifecycleCMTTxInterceptor.java:70)
> at org.jboss.invocation@1.6.0.
> Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.weld@23.0.2.Final
> //org.jboss.as.weld.injection.WeldInjectionContextInterceptor.processInvocation(WeldInjectionContextInterceptor.java:43)
> at org.jboss.invocation@1.6.0.
> Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ejb3@23.0.2.Final
> //org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
> at org.jboss.invocation@1.6.0.
> Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
> at org.jboss.as.ee@23.0.2.Final
> //org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:4

[ovirt-users] Re: 500 - Internal Server Error

2022-04-27 Thread José Ferradeira via Users
It worked, thanks 


De: "John"  
Para: users@ovirt.org 
Enviadas: Quarta-feira, 27 De Abril de 2022 12:11:19 
Assunto: [ovirt-users] Re: 500 - Internal Server Error 



downgrade postgresql-jdbc package 

dnf downgrade postgresql-jdbc 

That should fix the problem 
On 27/04/2022 11:36, José Ferradeira via Users wrote: 



When upgrading from 4.5 to 4.5.0.5 have this 500 - Internal Server Error 

Engine service is running, postgresql service is running. Maybe wrong 
postgresql version? 

# rpm -qa |grep postgr* 
postgresql-contrib-12.9-3.module_el8.6.0+1043+60b632d3.x86_64 
postgresql-server-12.9-3.module_el8.6.0+1043+60b632d3.x86_64 
postgresql-jdbc-42.2.14-1.el8.noarch 
postgresql-12.9-3.module_el8.6.0+1043+60b632d3.x86_64 
collectd-postgresql-5.12.0-7.el8s.x86_64 

Found this error on /var/log/ovirt-engine/server.log 

2022-04-27 11:20:16,003+01 INFO 
[org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (ServerService 
Thread Pool -- 47) Loading XML bean definitions from class path resource 
[org/springframework/jdbc/support/sql-error-codes.xml] 
2022-04-27 11:20:16,078+01 WARN 
[org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (ServerService 
Thread Pool -- 58) IJ000407: No lazy enlistment available for DWHDataSource 
2022-04-27 11:20:16,103+01 INFO [org.wildfly.extension.undertow] (ServerService 
Thread Pool -- 58) WFLYUT0021: Registered web context: '/ovirt-engine/webadmin' 
for server 'default-server' 
2022-04-27 11:20:16,302+01 INFO 
[org.springframework.jdbc.support.SQLErrorCodesFactory] (ServerService Thread 
Pool -- 47) SQLErrorCodes loaded: [DB2, Derby, H2, HSQL, Informix, MS-SQL, 
MySQL, Oracle, PostgreSQL, Sybase, Hana] 
2022-04-27 11:20:16,418+01 INFO [org.wildfly.extension.undertow] (ServerService 
Thread Pool -- 57) WFLYUT0021: Registered web context: '/ovirt-engine/sso' for 
server 'default-server' 
2022-04-27 11:20:16,479+01 ERROR [org.jboss.msc.service.fail] (ServerService 
Thread Pool -- 47) MSC01: Failed to start service 
jboss.deployment.subunit."engine.ear"."bll.jar".component.Backend.START: 
org.jboss.msc.service.StartException in service 
jboss.deployment.subunit."engine.ear"."bll.jar".component.Backend.START: 
java.lang.IllegalStateException: WFLYEE0042: Failed to construct component 
instance 
at 
org.jboss.as.ee@24.0.1.Final//org.jboss.as.ee.component.ComponentStartService$1.run
 (ComponentStartService.java:57) 
at 
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
 
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 
at 
org.jboss.threads@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run
 (ContextClassLoaderSavingRunnable.java:35) 
at 
org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun 
(EnhancedQueueExecutor.java:1990) 
at 
org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask
 (EnhancedQueueExecutor.java:1486) 
at 
org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run
 (EnhancedQueueExecutor.java:1377) 
at java.base/java.lang.Thread.run(Thread.java:829) 
at org.jboss.threads@2.4.0.Final//org.jboss.threads.JBossThread.run 
(JBossThread.java:513) 
Caused by: java.lang.IllegalStateException: WFLYEE0042: Failed to construct 
component instance 
at 
org.jboss.as.ee@24.0.1.Final//org.jboss.as.ee.component.BasicComponent.constructComponentInstance
 (BasicComponent.java:170) 
at 
org.jboss.as.ee@24.0.1.Final//org.jboss.as.ee.component.BasicComponent.constructComponentInstance
 (BasicComponent.java:141) 
at 
org.jboss.as.ee@24.0.1.Final//org.jboss.as.ee.component.BasicComponent.createInstance
 (BasicComponent.java:88) 
at 
org.jboss.as.ejb3@24.0.1.Final//org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance
 (SingletonComponent.java:127) 
at 
org.jboss.as.ejb3@24.0.1.Final//org.jboss.as.ejb3.component.singleton.SingletonComponent.start
 (SingletonComponent.java:141) 
at 
org.jboss.as.ee@24.0.1.Final//org.jboss.as.ee.component.ComponentStartService$1.run
 (ComponentStartService.java:54) 
... 8 more 
Caused by: javax.ejb.EJBException: org.jboss.weld.exceptions.WeldException: 
WELD-49: Unable to invoke protected void 
org.ovirt.engine.core.bll.TagsDirector.init() on 
org.ovirt.engine.core.bll.TagsDirector@c153250 
at 
org.jboss.as.ejb3@24.0.1.Final//org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInNoTx
 (CMTTxInterceptor.java:239) 
at 
org.jboss.as.ejb3@24.0.1.Final//org.jboss.as.ejb3.tx.CMTTxInterceptor.supports 
(CMTTxInterceptor.java:446) 
at 
org.jboss.as.ejb3@24.0.1.Final//org.jboss.as.ejb3.tx.LifecycleCMTTxInterceptor.processInvocation
 (LifecycleCMTTxInterceptor.java:70) 
at 
org.jboss.invocation@1.6.0.Final//org.jboss.invocation.InterceptorContext.proceed
 (InterceptorContext.java:422) 
at 
org.jboss.as.weld@24.0.1.Final//org.jboss.as.weld.injection.WeldIn

[ovirt-users] Re: 500 - Internal Server Error

2022-04-27 Thread John

downgrade postgresql-jdbc package

dnf downgrade postgresql-jdbc

That should fix the problem

On 27/04/2022 11:36, José Ferradeira via Users wrote:

When upgrading from 4.5 to 4.5.0.5 have this 500 - Internal Server Error

Engine service is running, postgresql service is running. Maybe wrong 
postgresql version?


# rpm -qa |grep postgr*
postgresql-contrib-12.9-3.module_el8.6.0+1043+60b632d3.x86_64
postgresql-server-12.9-3.module_el8.6.0+1043+60b632d3.x86_64
postgresql-jdbc-42.2.14-1.el8.noarch
postgresql-12.9-3.module_el8.6.0+1043+60b632d3.x86_64
collectd-postgresql-5.12.0-7.el8s.x86_64

Found this error on /var/log/ovirt-engine/server.log

2022-04-27 11:20:16,003+01 INFO 
[org.springframework.beans.factory.xml.XmlBeanDefinitionReader] 
(ServerService Thread Pool -- 47) Loading XML bean definitions from 
class path resource [org/springframework/jdbc/support/sql-error-codes.xml]
2022-04-27 11:20:16,078+01 WARN 
[org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] 
(ServerService Thread Pool -- 58) IJ000407: No lazy enlistment 
available for DWHDataSource
2022-04-27 11:20:16,103+01 INFO [org.wildfly.extension.undertow] 
(ServerService Thread Pool -- 58) WFLYUT0021: Registered web context: 
'/ovirt-engine/webadmin' for server 'default-server'
2022-04-27 11:20:16,302+01 INFO 
[org.springframework.jdbc.support.SQLErrorCodesFactory] (ServerService 
Thread Pool -- 47) SQLErrorCodes loaded: [DB2, Derby, H2, HSQL, 
Informix, MS-SQL, MySQL, Oracle, PostgreSQL, Sybase, Hana]
2022-04-27 11:20:16,418+01 INFO [org.wildfly.extension.undertow] 
(ServerService Thread Pool -- 57) WFLYUT0021: Registered web context: 
'/ovirt-engine/sso' for server 'default-server'
2022-04-27 11:20:16,479+01 ERROR [org.jboss.msc.service.fail] 
(ServerService Thread Pool -- 47) MSC01: Failed to start service 
jboss.deployment.subunit."engine.ear"."bll.jar".component.Backend.START: 
org.jboss.msc.service.StartException in service 
jboss.deployment.subunit."engine.ear"."bll.jar".component.Backend.START: 
java.lang.IllegalStateException: WFLYEE0042: Failed to construct 
component instance
at 
org.jboss.as.ee@24.0.1.Final//org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:57)
at 
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)

at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at 
org.jboss.threads@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at 
org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
at 
org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at 
org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)

at java.base/java.lang.Thread.run(Thread.java:829)
at 
org.jboss.threads@2.4.0.Final//org.jboss.threads.JBossThread.run(JBossThread.java:513)
Caused by: java.lang.IllegalStateException: WFLYEE0042: Failed to 
construct component instance
at 
org.jboss.as.ee@24.0.1.Final//org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:170)
at 
org.jboss.as.ee@24.0.1.Final//org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:141)
at 
org.jboss.as.ee@24.0.1.Final//org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:88)
at 
org.jboss.as.ejb3@24.0.1.Final//org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:127)
at 
org.jboss.as.ejb3@24.0.1.Final//org.jboss.as.ejb3.component.singleton.SingletonComponent.start(SingletonComponent.java:141)
at 
org.jboss.as.ee@24.0.1.Final//org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:54)

... 8 more
Caused by: javax.ejb.EJBException: 
org.jboss.weld.exceptions.WeldException: WELD-49: Unable to invoke 
protected void org.ovirt.engine.core.bll.TagsDirector.init() on 
org.ovirt.engine.core.bll.TagsDirector@c153250
at 
org.jboss.as.ejb3@24.0.1.Final//org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInNoTx(CMTTxInterceptor.java:239)
at 
org.jboss.as.ejb3@24.0.1.Final//org.jboss.as.ejb3.tx.CMTTxInterceptor.supports(CMTTxInterceptor.java:446)
at 
org.jboss.as.ejb3@24.0.1.Final//org.jboss.as.ejb3.tx.LifecycleCMTTxInterceptor.processInvocation(LifecycleCMTTxInterceptor.java:70)
at 
org.jboss.invocation@1.6.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at 
org.jboss.as.weld@24.0.1.Final//org.jboss.as.weld.injection.WeldInjectionContextInterceptor.processInvocation(WeldInjectionContextInterceptor.java:43)
at 
org.jboss.invocation@1.6.0.Final//org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at 
org.jboss.as.ejb3@24.0.1.Final//org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationC