[uyuni-users] proxy_ajp:error - service / connector missing
Hi, I just installed the newest Uyuni stable 2020.01 according to the installation instructiions at https://www.uyuni-project.org/pages/stable-version.html on openSUSE 15.1 During the installation procedure of Yast2 I saw two errors / warnings: Wrong "hostname -f" (which is not true according to manual "hostname -f"at the console) and finally an " ERROR: spacewalk-setup failed". There was an additional notice " Please check /var/log/tomcat/catalina.out or /var/log/tomcat/catalina.$(date +%Y-%m-%d).log" but these files contained no errors or warnings - only "informational" messages. Calling https://<FQDN>/ the webbrowser shows an Apache return code 503. Looking at the Apache logs I see proxy errors referring to 127.0.0.1:8009 . According to "ss -lnt" there is no tcp listener at 8009/tcp. Restarting the services "susemanager" and "tomcat" made no difference. Same with restarting the whole machine. In Tomcat's configuration file /usr/share/tomcat/conf/server.xml all connector definitions except a definition for port 8080 are commented including the ajp connector at port 8009. I hesitate to change the server.sml manually. Actually I'm not sure if Apache wants to connect to Tomcat as there are 2 other Java applications. Any hints welcome! Regards, Tobias.
On 3/17/20 4:40 PM, Crefeld, Tobias LKV Bayern e.V. wrote:
I just installed the newest Uyuni stable 2020.01 according to the installation instructiions at https://www.uyuni-project.org/pages/stable-version.html on openSUSE 15.1
During the installation procedure of Yast2 I saw two errors / warnings: Wrong "hostname -f" (which is not true according to manual "hostname -f"at the console) and finally an " ERROR: spacewalk-setup failed".
There was an additional notice " Please check /var/log/tomcat/catalina.out or /var/log/tomcat/catalina.$(date +%Y-%m-%d).log" but these files contained no errors or warnings - only "informational" messages.
Calling https://<FQDN>/ the webbrowser shows an Apache return code 503. Looking at the Apache logs I see proxy errors referring to 127.0.0.1:8009 . According to "ss -lnt" there is no tcp listener at 8009/tcp. Restarting the services "susemanager" and "tomcat" made no difference. Same with restarting the whole machine.
In Tomcat's configuration file /usr/share/tomcat/conf/server.xml all connector definitions except a definition for port 8080 are commented including the ajp connector at port 8009.
I hesitate to change the server.sml manually. Actually I'm not sure if Apache wants to connect to Tomcat as there are 2 other Java applications.
This is caused by the latest Tomcat security update which disabled the AJP connector by default. The setup script `spacewalk-setup` relied on the AJP connector being enabled. A fix is included in the next Uyuni version 2020.03 (to be released tomorrow). In the meantime, enabling the AJP connector manually should be fine. I have this on my devel machine in server.xml: <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" URIEncoding="UTF-8" address="127.0.0.1" maxThreads="150" connectionTimeout="20000"/> <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" URIEncoding="UTF-8" address="::1" maxThreads="150" connectionTimeout="20000"/> HTH, -- --- Matei Albu SUSE Manager Development Team -- To unsubscribe, e-mail: uyuni-users+unsubscribe@opensuse.org To contact the owner, e-mail: uyuni-users+owner@opensuse.org
-----Ursprüngliche Nachricht----- Von: Matei Albu [mailto:malbu@suse.de] Gesendet: Dienstag, 17. März 2020 18:13
This is caused by the latest Tomcat security update which disabled the AJP connector by default. The setup script `spacewalk-setup` relied on the AJP connector being enabled. A fix is included in the next Uyuni version 2020.03 (to be released tomorrow). In the meantime, enabling the AJP connector manually should be fine. I have this on my devel machine in server.xml:
Hi Matei, Thanks for clarification! Regards, Tobias.
participants (2)
-
Crefeld, Tobias LKV Bayern e.V.
-
Matei Albu