Am 04.01.2018 um 09:38 schrieb Michael Mraka:
Florian Panzer - ratiokontakt GmbH:
Hi,

we're struck by the same issue. Spacewalk 2.7, Internal Server Error
when clicking on the Scheduled tasks (see Screenshot attached).

We get the following two tracebacks:

==> tomcat/localhost.2018-01-03.log <==
Jan 03, 2018 4:01:17 PM
org.apache.catalina.core.ApplicationDispatcher invoke
SCHWERWIEGEND: Servlet.service() for servlet
org.apache.jsp.WEB_002dINF.pages.schedule.completedsystems_jsp threw
exception
org.hibernate.LazyInitializationException: could not initialize
proxy - no Session
...

Hello Florian,

According to my google search this looks like a hibernate session
misconfiguration. Can you verify that your java configuration has not
been changed (`rpm -V spacewalk-java spacewalk-java-lib 
spacewalk-java-postgresql spacewalk-java-config spacewalk-taskomatic`)?
Maybe also check output of `grep hibernate /etc/rhn/rhn.conf`.


Woah, this fixed it!

[root@spacewalk ~]# rpm -V spacewalk-java spacewalkgresql spacewalk-java-config spacewalk-taskomatic ..5....T. /var/lib/tomcat/webapps/rhn/WEB-INF/pages/schedule/completedsystems.jsp
[root@spacewalk ~]# grep hibernate /etc/rhn/rhn.conf
hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
hibernate.connection.driver_class=org.postgresql.Driver
hibernate.connection.driver_proto=jdbc:postgresql



[root@spacewalk ~]# yum reinstall spacewalk-java
[...]
[root@spacewalk ~]# rpm -V spacewalk-java
[root@spacewalk ~]#

followed by spacewalk-service stop and spacewalk-service start
Problem solved -- thank you ;)


--
Für weitergehende Fragen stehen wir Ihnen gerne zur Verfügung.

Mit partnerschaftlichen Grüßen

Florian Panzer
Chief Technical Officer

AWS Certified Solutions Architect - Associate
--------------------------------------------------------
ratiokontakt GmbH
Biegenhofstr. 13
96103 Hallstadt
Telefon: +49 (0) 951 9 35 35 - 0
Telefax: +49 (0) 951 9 35 35 - 902
Internet: www.ratiokontakt.de
Geschäftsführer: Nils Kaufmann, Stefan Kraft
Amtsgericht Bamberg - HRB 3757
--------------------------------------------------------
ratiokontakt ist zertifiziert nach DIN ISO/IEC 27001

_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to