> Message: 3 > Date: Tue, 19 Dec 2017 15:23:31 +0100 > From: Michael Mraka <[email protected]> > To: [email protected] > Subject: Re: [Spacewalk-list] yup update/install gives 404 error > Message-ID: <[email protected]> > Content-Type: text/plain; charset=utf-8 > > Clouse, Raymond: > > We're having a vexing issue with a new Spacewalk 2.6 installation. > > Hello Raymond, > > Is there a specific reason why to use Spacewalk 2.6 and not the latest 2.7? [Clouse, Ray]
2.6 was the latest when we began this process a couple of months ago. It's been a long road. We're syncing from a 2.4 Spacewalk so one option we're considering is to roll back to that and hope that solves it. > > > We've made it a slave to a master (security reasons; only one SW is > exposed to the Internet) and have everything synchronized and > communicating successfully. But when we try to do an update or install with > yum, we get a 404 error like this: > > > > Error downloading packages: > > nss-tools-3.28.4-8.el7.x86_64: failed to retrieve > > getPackage/nss-tools-3.28.4-8.el7.x86_64.rpm from our_repo > > > > I find errors get logged in /var/log/httpd/error_log simultaneously like > > this: > > > > [Mon Dec 18 20:02:31.638648 2017] [:error] [pid 53696] Spacewalk 53696 > > 2017/12/18 20:02:31 +01:00: WARNING: log path not found; attempting to > > create /var/log/rhn [Mon Dec 18 20:02:31.638680 2017] [:error] [pid > > 53696] Spacewalk 53696 2017/12/18 20:02:31 +01:00: (None, None) [Mon > > Dec 18 20:02:31.638810 2017] [:error] [pid 53696] Spacewalk 53696 > > 2017/12/18 20:02:31 +01:00: ERROR: unable to create log file path > > /var/log/rhn [Mon Dec 18 20:02:31.638837 2017] [:error] [pid 53696] > > Spacewalk 53696 2017/12/18 20:02:31 +01:00: (<type > > 'exceptions.OSError'>, OSError(13, 'Permission denied')) > > > > Of course, /var/log/rhn exists and has proper permissions. I even set > permissions to 777 just in case with no positive effect. > > Except for standard permissions it may also mean a selinux error. > Any AVC in /var/log/audit/audit.log? [Clouse, Ray] None. > > > One other possible clue: in /var/log/rhn/rhn_taskomatic_daemon.log I > found this: > > > > INFO | jvm 1 | 2017/12/18 20:06:32 | > com.mchange.v2.cfg.DelayedLogItem [ level -> FINE, text -> "The > configuration file for resource identifier '/mchange-commons.properties' > could not be found. Skipping.", exception -> java.io.FileNotFoundException: > Resource not found at path '/mchange-commons.properties'.] > > > > And in Googling that I found an unreplied post here that says: > > -- > > Tomcat6 is having a problem finding mchange-commons when it's starting > up which causes the web / api interface to fail, causing other parts of > spacewalk to fail to initialize. > > > > How / where can I get the mchange-commons installed and linked properly > so that tomcat will be able to start? > > I vaguely remeber there were issues with 2.6 and java package upgrades in > EPEL which moved jars from /usr/share/java to a subdirectory. And the > solution was to create symlinks back in /usr/share/java. > [Clouse, Ray] Looks like there are a lot of symlinks so I don't think that's it. Wall of text incoming: # ls -al | grep "\->" lrwxrwxrwx 1 root root 23 Nov 22 21:54 annotation.jar -> geronimo-annotation.jar lrwxrwxrwx 1 root root 21 Nov 22 21:54 ant-bootstrap.jar -> ant/ant-bootstrap.jar lrwxrwxrwx 1 root root 11 Nov 22 21:54 ant.jar -> ant/ant.jar lrwxrwxrwx 1 root root 20 Nov 22 21:54 ant-launcher.jar -> ant/ant-launcher.jar lrwxrwxrwx 1 root root 28 Nov 22 21:54 apache-commons-beanutils-bean-collections.jar -> apache-commons-beanutils.jar lrwxrwxrwx 1 root root 28 Nov 22 21:54 apache-commons-beanutils-core.jar -> apache-commons-beanutils.jar lrwxrwxrwx 1 root root 15 Nov 22 21:54 apache-commons-cli.jar -> commons-cli.jar lrwxrwxrwx 1 root root 20 Nov 22 21:54 apache-commons-compress.jar -> commons-compress.jar lrwxrwxrwx 1 root root 25 Nov 22 21:54 apache-commons-configuration.jar -> commons-configuration.jar lrwxrwxrwx 1 root root 18 Nov 22 21:54 apache-commons-daemon.jar -> commons-daemon.jar lrwxrwxrwx 1 root root 21 Nov 22 21:54 apache-commons-discovery.jar -> commons-discovery.jar lrwxrwxrwx 1 root root 14 Nov 22 21:54 apache-commons-io.jar -> commons-io.jar lrwxrwxrwx 1 root root 18 Nov 22 21:54 apache-commons-jxpath.jar -> commons-jxpath.jar lrwxrwxrwx 1 root root 19 Nov 22 21:54 apache-commons-logging.jar -> commons-logging.jar lrwxrwxrwx 1 root root 15 Nov 22 21:54 apache-commons-net.jar -> commons-net.jar lrwxrwxrwx 1 root root 21 Nov 22 21:54 apache-commons-validator.jar -> commons-validator.jar lrwxrwxrwx 1 root root 41 Nov 22 21:54 avalon-framework.jar -> /usr/share/java/avalon-framework-impl.jar lrwxrwxrwx 1 root root 28 Nov 22 21:54 commons-beanutils-bean-collections.jar -> apache-commons-beanutils.jar lrwxrwxrwx 1 root root 28 Nov 22 21:54 commons-beanutils-core.jar -> apache-commons-beanutils.jar lrwxrwxrwx 1 root root 28 Nov 22 21:54 commons-beanutils.jar -> apache-commons-beanutils.jar lrwxrwxrwx 1 root root 24 Nov 22 21:54 commons-chain.jar -> apache-commons-chain.jar lrwxrwxrwx 1 root root 24 Nov 22 21:54 commons-codec.jar -> apache-commons-codec.jar lrwxrwxrwx 1 root root 30 Nov 22 21:54 commons-collections.jar -> apache-commons-collections.jar lrwxrwxrwx 1 root root 23 Nov 22 21:54 commons-dbcp.jar -> apache-commons-dbcp.jar lrwxrwxrwx 1 root root 27 Nov 22 21:54 commons-digester.jar -> apache-commons-digester.jar lrwxrwxrwx 1 root root 21 Nov 22 21:54 commons-el.jar -> apache-commons-el.jar lrwxrwxrwx 1 root root 29 Nov 22 21:54 commons-fileupload.jar -> apache-commons-fileupload.jar lrwxrwxrwx 1 root root 30 Nov 22 21:54 commons-httpclient3.jar -> jakarta-commons-httpclient.jar lrwxrwxrwx 1 root root 30 Nov 22 21:54 commons-httpclient.jar -> jakarta-commons-httpclient.jar lrwxrwxrwx 1 root root 23 Nov 22 21:54 commons-lang.jar -> apache-commons-lang.jar lrwxrwxrwx 1 root root 35 Nov 22 21:54 commons-logging-adapters.jar -> apache-commons-logging-adapters.jar lrwxrwxrwx 1 root root 30 Nov 22 21:54 commons-logging-api.jar -> apache-commons-logging-api.jar lrwxrwxrwx 1 root root 23 Nov 22 21:54 commons-pool.jar -> apache-commons-pool.jar lrwxrwxrwx 1 root root 15 Nov 22 21:54 dom4j.jar -> dom4j/dom4j.jar lrwxrwxrwx 1 root root 14 Nov 22 21:54 dwr.jar -> dwr-3.0rc2.jar lrwxrwxrwx 1 root root 17 Nov 22 21:54 easymock2-2.5.2.jar -> easymock2-2.4.jar lrwxrwxrwx 1 root root 7 Nov 22 21:54 eclipse-ecj.jar -> ecj.jar lrwxrwxrwx 1 root root 24 Nov 22 21:53 elspec.jar -> /etc/alternatives/elspec lrwxrwxrwx 1 root root 16 Nov 22 21:54 geronimo-jms_1.1_spec.jar -> geronimo-jms.jar lrwxrwxrwx 1 root root 16 Nov 22 21:54 geronimo-jta_1.1_spec.jar -> geronimo-jta.jar lrwxrwxrwx 1 root root 22 Nov 22 21:54 google-guice.jar -> guice/google-guice.jar lrwxrwxrwx 1 root root 29 Nov 22 21:54 google-guice-no_aop.jar -> guice/google-guice-no_aop.jar lrwxrwxrwx 1 root root 20 Nov 22 21:54 jaxp13.jar -> xml-commons-apis.jar lrwxrwxrwx 1 root root 20 Nov 22 21:54 jaxp.jar -> xml-commons-apis.jar lrwxrwxrwx 1 root root 34 Nov 22 21:54 jaxp_parser_impl.jar -> /etc/alternatives/jaxp_parser_impl lrwxrwxrwx 1 root root 37 Nov 22 21:54 jaxp_transform_impl.jar -> /etc/alternatives/jaxp_transform_impl lrwxrwxrwx 1 root root 7 Nov 22 21:54 jdtcore.jar -> ecj.jar lrwxrwxrwx 1 root root 16 Nov 22 21:54 jms.jar -> geronimo-jms.jar lrwxrwxrwx 1 root root 12 Nov 22 21:54 jpam.jar -> jpam-0.4.jar lrwxrwxrwx 1 root root 21 Nov 22 21:53 jsp.jar -> /etc/alternatives/jsp lrwxrwxrwx 1 root root 16 Nov 22 21:54 jta.jar -> geronimo-jta.jar lrwxrwxrwx 1 root root 25 Nov 22 21:54 junit4.jar -> /usr/share/java/junit.jar lrwxrwxrwx 1 root root 45 Nov 22 21:53 ojdbc14.jar -> ../../lib64/oracle/11.2/client/lib/ojdbc6.jar lrwxrwxrwx 1 root root 15 Nov 22 21:53 oro.jar -> jakarta-oro.jar lrwxrwxrwx 1 root root 16 Nov 22 21:54 quartz.jar -> quartz-1.8.4.jar lrwxrwxrwx 1 root root 23 Nov 22 21:54 quartz-oracle.jar -> quartz-oracle-1.8.4.jar lrwxrwxrwx 1 root root 39 Nov 22 21:54 redstone-xmlrpc-client.jar -> redstone-xmlrpc-client-1.1_20071120.jar lrwxrwxrwx 1 root root 32 Nov 22 21:54 redstone-xmlrpc.jar -> redstone-xmlrpc-1.1_20071120.jar lrwxrwxrwx 1 root root 6 Nov 22 21:54 rhino.jar -> js.jar lrwxrwxrwx 1 root root 25 Nov 22 21:53 servlet.jar -> /etc/alternatives/servlet lrwxrwxrwx 1 root root 21 Nov 22 21:54 simple-core.jar -> simple-core-3.1.3.jar lrwxrwxrwx 1 root root 20 Nov 22 21:54 simple-xml.jar -> simple-xml-2.6.7.jar lrwxrwxrwx 1 root root 18 Nov 22 21:53 sitemesh.jar -> sitemesh-2.4.2.jar lrwxrwxrwx 1 root root 25 Nov 22 21:55 stringtree-json.jar -> stringtree-json-2.0.9.jar lrwxrwxrwx 1 root root 32 Nov 22 21:54 susestudio-java-client.jar -> susestudio-java-client-0.1.4.jar lrwxrwxrwx 1 root root 23 Nov 22 21:53 tanukiwrapper.jar -> tanukiwrapper-3.2.3.jar lrwxrwxrwx 1 root root 21 Nov 22 21:53 tomcat-el-api.jar -> tomcat-el-2.2-api.jar lrwxrwxrwx 1 root root 22 Nov 22 21:53 tomcat-jsp-api.jar -> tomcat-jsp-2.2-api.jar lrwxrwxrwx 1 root root 26 Nov 22 21:53 tomcat-servlet-api.jar -> tomcat-servlet-3.0-api.jar lrwxrwxrwx 1 root root 20 Nov 22 21:54 xml-commons-jaxp-1.3-apis.jar -> xml-commons-apis.jar lrwxrwxrwx 1 root root 11 Nov 22 21:54 xz.jar -> xz-java.jar Does that look normal? > > -- > > So, in summary: > > - Spacewalk set up as slave > > - Clients can see SW > > - SW knows which systems need upgrades > > - Upgrades or installs fail with 404 error > > Regards, > > -- > Michael Mr?ka > System Management Engineering, Red Hat _______________________________________________ Spacewalk-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/spacewalk-list
