Katello / Foreman:无法同步产品或安装软件

我已经configuration了带有katello场景的foreman ,以前configuration和同步了一些存储库和内容视图(对于Red Hat 5服务器)。

突然,在运行一些同步任务之后,日志返回:

 2016-12-30 17:12:14 0b8fc582 [app] [E] RuntimeError: There was an issue with the backend service pulp: 404 Resource Not Found. # hammer ping candlepin: Status: ok Server Response: Duration: 112ms candlepin_auth: Status: ok Server Response: Duration: 79ms pulp: Status: FAIL Server Response: foreman_tasks: Status: ok Server Response: Duration: 40ms 

我search谷歌,社区论坛和邮件列表没有准确的结果,也重新启动所有包括的服务。

我该如何解决或解决这个问题?

软件信息:

工头版本:foreman-1.13.2-1 Katello版本:katello-3.2.1-1

红帽企业Linux 7.2

感谢这项工作,

 # hammer ping candlepin: Status: ok Server Response: Duration: 49ms candlepin_auth: Status: ok Server Response: Duration: 48ms pulp: Status: FAIL Server Response: foreman_tasks: Status: ok Server Response: Duration: 583ms 

复制这个

 # # WARNING: THIS CONFIGURATION WAS GENERATED BY KATELLO-CONFIGURE TOOL, # CHANGES WILL LIKELY BE OVERWRITTEN. # # Apache configuration file for pulp web services and repositories AddType application/x-pkcs7-crl .crl AddType application/x-x509-ca-cert .crt # allow older yum clients to connect, see bz 647828 SSLInsecureRenegotiation on WSGIProcessGroup pulp WSGIApplicationGroup pulp WSGIDaemonProcess pulp user=apache group=apache processes=3 display-name=%{GROUP} # DEBUG - uncomment the next 2 lines to enable debugging #WSGIRestrictStdin Off #WSGIRestrictStdout Off WSGISocketPrefix run/wsgi WSGIScriptAlias /pulp/api /usr/share/pulp/wsgi/webservices.wsgi WSGIImportScript /usr/share/pulp/wsgi/webservices.wsgi process-group=pulp application-group=pulp <Directory /usr/share/pulp/wsgi> Require all granted </Directory> <Files webservices.wsgi> WSGIPassAuthorization On WSGIProcessGroup pulp WSGIApplicationGroup pulp SSLRenegBufferSize 1048576 SSLRequireSSL SSLVerifyDepth 3 SSLOptions +StdEnvVars +ExportCertData SSLVerifyClient optional </Files> Alias /pulp/static /var/lib/pulp/static <Location /pulp/static> SSLRequireSSL Options +Indexes Require all granted </Location> 

重启后,systemctl重启httpd

再次ping

 # hammer ping candlepin: Status: ok Server Response: Duration: 46ms candlepin_auth: Status: ok Server Response: Duration: 48ms pulp: Status: ok Server Response: Duration: 204ms foreman_tasks: Status: ok Server Response: Duration: 1019ms 

我发现纸浆的根本问题没有正确加载/ ping。 我发现在工具/etc/httpd/conf.d/的path中,pulp.conf被工头删除了。 添加内容后,也重新启动apache httpd,它工作正常,我现在可以同步或安装任何包到服务器。

共享pulp.conf的内容:

 # # WARNING: THIS CONFIGURATION WAS GENERATED BY KATELLO-CONFIGURE TOOL, # CHANGES WILL LIKELY BE OVERWRITTEN. # # Apache configuration file for pulp web services and repositories AddType application/x-pkcs7-crl .crl AddType application/x-x509-ca-cert .crt # allow older yum clients to connect, see bz 647828 SSLInsecureRenegotiation on WSGIProcessGroup pulp WSGIApplicationGroup pulp WSGIDaemonProcess pulp user=apache group=apache processes=3 display-name=%{GROUP} # DEBUG - uncomment the next 2 lines to enable debugging #WSGIRestrictStdin Off #WSGIRestrictStdout Off WSGISocketPrefix run/wsgi WSGIScriptAlias /pulp/api /usr/share/pulp/wsgi/webservices.wsgi WSGIImportScript /usr/share/pulp/wsgi/webservices.wsgi process-group=pulp application-group=pulp <Directory /usr/share/pulp/wsgi> Require all granted </Directory> <Files webservices.wsgi> WSGIPassAuthorization On WSGIProcessGroup pulp WSGIApplicationGroup pulp SSLRenegBufferSize 1048576 SSLRequireSSL SSLVerifyDepth 3 SSLOptions +StdEnvVars +ExportCertData SSLVerifyClient optional </Files> Alias /pulp/static /var/lib/pulp/static <Location /pulp/static> SSLRequireSSL Options +Indexes Require all granted </Location>