我已经为foreman配置了katello场景,以前配置并同步了一些存储库和内容视图(用于Red 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我搜索谷歌,社区论坛和邮件列表,没有准确的结果,也重新启动了所有包括的服务。
我如何解决或解决这个问题?
Foreman版本: foreman-1.13.2-1 Katello版本: katello-3.2.1-1
红帽企业Linux 7.2
发布于 2017-01-02 21:06:55
我发现了纸浆不能正确加载/敲打的根本问题。我发现在路径/etc/httpd/conf.d.d/中,pulp.conf被工头删除了。在添加内容并重新启动apache之后,它正常工作,我现在可以同步或安装到服务器上的任何包。
共享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>发布于 2017-05-24 01:20:43
谢谢你的工作,
# 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。
平再来
# 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: 1019mshttps://serverfault.com/questions/823469
复制相似问题