首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Katello/Foreman:无法同步产品或安装软件

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

Server Fault用户
提问于 2016-12-30 21:22:05
回答 2查看 3.2K关注 0票数 1

我已经为foreman配置了katello场景,以前配置并同步了一些存储库和内容视图(用于Red 5服务器)。

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

代码语言:javascript
复制
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

EN

回答 2

Server Fault用户

发布于 2017-01-02 21:06:55

我发现了纸浆不能正确加载/敲打的根本问题。我发现在路径/etc/httpd/conf.d.d/中,pulp.conf被工头删除了。在添加内容并重新启动apache之后,它正常工作,我现在可以同步或安装到服务器上的任何包。

共享pulp.conf的内容:

代码语言:javascript
复制
#
# 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>
票数 1
EN

Server Fault用户

发布于 2017-05-24 01:20:43

谢谢你的工作,

代码语言:javascript
复制
# 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

复制这个

代码语言:javascript
复制
#
# 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。

平再来

代码语言:javascript
复制
# 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
票数 1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/823469

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档