Re: [Spacewalk-list] Tomcat exception on SW 2.7

2018-02-15 Thread Michael Mraka
Brian Long:
> I've setup a fresh SW 2.7 instance on CentOS 7 and I used
> spacewalk-common-channels to create the CentOS 7 repositories and
> channels.  I also manually created RHEL 7 repos (using mrepo) and
> channels.  I can use spacewalk-repo-sync -c [channel-name] to sync channels
> properly, but when I visit the following link in the web UI, I get a
> traceback.
> https://hostname.domain/rhn/channels/manage/Sync.do?cid=125
> 
> SEVERE: Servlet.service() for servlet [action] in context with path [/rhn]
> threw exception [java.lang.RuntimeException: File not found:
> /var/log/rhn/reposync/rhel7-x86_64.log] with root cause
> java.lang.RuntimeException: File not found:
> /var/log/rhn/reposync/rhel7-x86_64.log
...
> The file mentioned does exist and is readable by apache.  I'm running the
> following packages above SW 2.7 (to fix a taskomatic bug):
> spacewalk-java-lib-2.7.116-1.git.6.5e61c4a.el7.centos.noarch
> spacewalk-java-config-2.7.116-1.git.6.5e61c4a.el7.centos.noarch
> spacewalk-java-2.7.116-1.git.6.5e61c4a.el7.centos.noarch
> spacewalk-java-postgresql-2.7.116-1.git.6.5e61c4a.el7.centos.noarch
> 
> I've been subscribed to this list for a few months and I do not see any
> threads mentioning this particular traceback.  Any ideas what to try next?

Is the file also readable by tomcat user?
Does it have correct selinux label, i.e. aren't there any selinux AVCs?

> /Brian/

--
Michael Mráka
System Management Engineering, Red Hat

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

[Spacewalk-list] Tomcat exception on SW 2.7

2018-02-13 Thread Brian Long
I've setup a fresh SW 2.7 instance on CentOS 7 and I used
spacewalk-common-channels to create the CentOS 7 repositories and
channels.  I also manually created RHEL 7 repos (using mrepo) and
channels.  I can use spacewalk-repo-sync -c [channel-name] to sync channels
properly, but when I visit the following link in the web UI, I get a
traceback.
https://hostname.domain/rhn/channels/manage/Sync.do?cid=125

SEVERE: Servlet.service() for servlet [action] in context with path [/rhn]
threw exception [java.lang.RuntimeException: File not found:
/var/log/rhn/reposync/rhel7-x86_64.log] with root cause
java.lang.RuntimeException: File not found:
/var/log/rhn/reposync/rhel7-x86_64.log
at
com.redhat.rhn.common.util.FileUtils.readStringFromFile(FileUtils.java:101)
at
com.redhat.rhn.frontend.action.channel.manage.SyncRepositoriesAction.getLastSyncLog(SyncRepositoriesAction.java:215)
at
com.redhat.rhn.frontend.action.channel.manage.SyncRepositoriesAction.parseSyncLog(SyncRepositoriesAction.java:227)
at
com.redhat.rhn.frontend.action.channel.manage.SyncRepositoriesAction.execute(SyncRepositoriesAction.java:84)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
at
com.redhat.rhn.frontend.struts.RhnRequestProcessor.process(RhnRequestProcessor.java:105)


The file mentioned does exist and is readable by apache.  I'm running the
following packages above SW 2.7 (to fix a taskomatic bug):
spacewalk-java-lib-2.7.116-1.git.6.5e61c4a.el7.centos.noarch
spacewalk-java-config-2.7.116-1.git.6.5e61c4a.el7.centos.noarch
spacewalk-java-2.7.116-1.git.6.5e61c4a.el7.centos.noarch
spacewalk-java-postgresql-2.7.116-1.git.6.5e61c4a.el7.centos.noarch

I've been subscribed to this list for a few months and I do not see any
threads mentioning this particular traceback.  Any ideas what to try next?

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