So i added Timeout directive in httpd.conf, then test script worked : 
python test_cobbler_sw_login.py 
aaa
Satellite auth.checkAuthToken (should be 1): 
1
Trying cobbler login (should be a random token): 
saBuCS6HT28ZdjMg59kr1ZHQv/47DX6ceg==

But spacewalkweb ui always show "service unavailable"


No more error in cobbler.log but in taskomatic.log now there is : 

INFO   | jvm 1    | 2019/03/15 15:56:07 | 2019-03-15 15:56:07,748 
[DefaultQuartzScheduler_Worker-4] ERROR 
com.redhat.rhn.taskomatic.task.CobblerSyncTask - RuntimeExceptionError trying 
to sync to cobbler: XmlRpcException calling cobbler.
INFO   | jvm 1    | 2019/03/15 15:56:07 | java.lang.RuntimeException: 
XmlRpcException calling cobbler.
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
com.redhat.rhn.manager.kickstart.cobbler.CobblerXMLRPCHelper.invokeMethod(CobblerXMLRPCHelper.java:72)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
com.redhat.rhn.manager.kickstart.cobbler.CobblerLoginCommand.login(CobblerLoginCommand.java:52)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
com.redhat.rhn.frontend.integration.IntegrationService.authorize(IntegrationService.java:114)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
com.redhat.rhn.frontend.integration.IntegrationService.getAuthToken(IntegrationService.java:67)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
com.redhat.rhn.manager.kickstart.cobbler.CobblerCommand.<init>(CobblerCommand.java:68)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
com.redhat.rhn.manager.kickstart.cobbler.CobblerDistroSyncCommand.<init>(CobblerDistroSyncCommand.java:52)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
com.redhat.rhn.taskomatic.task.CobblerSyncTask.execute(CobblerSyncTask.java:78)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
com.redhat.rhn.taskomatic.task.RhnJavaJob.execute(RhnJavaJob.java:88)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
com.redhat.rhn.taskomatic.TaskoJob.execute(TaskoJob.java:186)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
org.quartz.core.JobRunShell.run(JobRunShell.java:216)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
INFO   | jvm 1    | 2019/03/15 15:56:07 | Caused by: 
redstone.xmlrpc.XmlRpcException: The response could not be parsed.
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
redstone.xmlrpc.XmlRpcClient.handleResponse(XmlRpcClient.java:435)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
redstone.xmlrpc.XmlRpcClient.endCall(XmlRpcClient.java:376)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
redstone.xmlrpc.XmlRpcClient.invoke(XmlRpcClient.java:165)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
com.redhat.rhn.manager.kickstart.cobbler.CobblerXMLRPCHelper.invokeMethod(CobblerXMLRPCHelper.java:69)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   ... 10 more
INFO   | jvm 1    | 2019/03/15 15:56:07 | Caused by: java.io.IOException: 
Server returned HTTP response code: 502 for URL: http://FQDN:80/cobbler_api
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1894)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
redstone.xmlrpc.XmlRpcClient.handleResponse(XmlRpcClient.java:420)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   ... 13 more
INFO   | jvm 1    | 2019/03/15 15:56:07 | 2019-03-15 15:56:07,756 
[DefaultQuartzScheduler_Worker-4] ERROR 
com.redhat.rhn.taskomatic.task.CobblerSyncTask - re-throwing exception since we 
havent yet.
INFO   | jvm 1    | 2019/03/15 15:56:07 | 2019-03-15 15:56:07,758 
[DefaultQuartzScheduler_Worker-4] ERROR 
com.redhat.rhn.taskomatic.task.CobblerSyncTask - Executing a task threw an 
exception: java.lang.RuntimeException
INFO   | jvm 1    | 2019/03/15 15:56:07 | 2019-03-15 15:56:07,758 
[DefaultQuartzScheduler_Worker-4] ERROR 
com.redhat.rhn.taskomatic.task.CobblerSyncTask - Message: XmlRpcException 
calling cobbler.
INFO   | jvm 1    | 2019/03/15 15:56:07 | 2019-03-15 15:56:07,759 
[DefaultQuartzScheduler_Worker-4] ERROR 
com.redhat.rhn.taskomatic.task.CobblerSyncTask - Cause: 
redstone.xmlrpc.XmlRpcException: The response could not be parsed.
INFO   | jvm 1    | 2019/03/15 15:56:07 | 2019-03-15 15:56:07,759 
[DefaultQuartzScheduler_Worker-4] ERROR 
com.redhat.rhn.taskomatic.task.CobblerSyncTask - Stack 
trace:java.lang.RuntimeException: XmlRpcException calling cobbler.
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
com.redhat.rhn.manager.kickstart.cobbler.CobblerXMLRPCHelper.invokeMethod(CobblerXMLRPCHelper.java:72)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
com.redhat.rhn.manager.kickstart.cobbler.CobblerLoginCommand.login(CobblerLoginCommand.java:52)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
com.redhat.rhn.frontend.integration.IntegrationService.authorize(IntegrationService.java:114)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
com.redhat.rhn.frontend.integration.IntegrationService.getAuthToken(IntegrationService.java:67)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
com.redhat.rhn.manager.kickstart.cobbler.CobblerCommand.<init>(CobblerCommand.java:68)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
com.redhat.rhn.manager.kickstart.cobbler.CobblerDistroSyncCommand.<init>(CobblerDistroSyncCommand.java:52)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
com.redhat.rhn.taskomatic.task.CobblerSyncTask.execute(CobblerSyncTask.java:78)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
com.redhat.rhn.taskomatic.task.RhnJavaJob.execute(RhnJavaJob.java:88)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
com.redhat.rhn.taskomatic.TaskoJob.execute(TaskoJob.java:186)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
org.quartz.core.JobRunShell.run(JobRunShell.java:216)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
INFO   | jvm 1    | 2019/03/15 15:56:07 | Caused by: 
redstone.xmlrpc.XmlRpcException: The response could not be parsed.
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
redstone.xmlrpc.XmlRpcClient.handleResponse(XmlRpcClient.java:435)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
redstone.xmlrpc.XmlRpcClient.endCall(XmlRpcClient.java:376)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
redstone.xmlrpc.XmlRpcClient.invoke(XmlRpcClient.java:165)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
com.redhat.rhn.manager.kickstart.cobbler.CobblerXMLRPCHelper.invokeMethod(CobblerXMLRPCHelper.java:69)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   ... 10 more
INFO   | jvm 1    | 2019/03/15 15:56:07 | Caused by: java.io.IOException: 
Server returned HTTP response code: 502 for URL: http:/FQDN:80/cobbler_api
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1894)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   at 
redstone.xmlrpc.XmlRpcClient.handleResponse(XmlRpcClient.java:420)
INFO   | jvm 1    | 2019/03/15 15:56:07 |   ... 13 more
INFO   | jvm 1    | 2019/03/15 15:56:07 | 



----- Mail original -----
De: "Robert Paschedag" <robert.pasche...@web.de>
À: "spacewalk-list" <spacewalk-list@redhat.com>
Cc: "spacewalk-list" <spacewalk-list@redhat.com>
Envoyé: Vendredi 15 Mars 2019 13:33:18
Objet: Re: [Spacewalk-list] Really slow unresponsive GUI

Ahh.....then we might hunt the "wrong error". Try to increase the timeout in 
httpd.

Try this. Maybe it helps. Conf file should be in /etc/httpd/conf/httpd.conf

https://www.rcannings.com/cobbler-proxy-502/

Robert


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Spacewalk-list mailing list
Spacewalk-list@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to