web-proxy 已停止运行,但 pid 文件存在

web-proxy 已停止运行,但 pid 文件存在

当尝试设置一个与 OpenShift Origin 一起使用的节点并尝试启动服务 openshift-node-web-proxy 时,我收到以下错误,提示 web 代理已死亡:

# service openshift-node-web-proxy start
web-proxy dead but pid file exists
Starting node-web-proxy: /opt/rh/nodejs010//enable: line 5: scl_source: No such file or directory

通过检查服务状态我得到:

# service openshift-node-web-proxy status
web-proxy dead but pid file exists

答案1

对于我来说,让它工作起来的解决方案是运行:

yum clean all
yum -y update

之后我就可以启动服务了,没有任何错误

yum -y update 的输出对我来说如下所示:

# yum -y update
Loaded plugins: fastestmirror, security
Determining fastest mirrors
epel/metalink                                            |  28 kB     00:00     
 * base: centos.copahost.com
 * epel: be.mirror.eurid.eu
 * extras: centos.bio.lmu.de
 * updates: centos.bio.lmu.de
base                                                     | 3.7 kB     00:00     
base/primary_db                                          | 4.4 MB     00:00     
epel                                                     | 4.4 kB     00:00     
epel/primary_db                                          | 6.3 MB     00:00     
extras                                                   | 3.3 kB     00:00     
extras/primary_db                                        |  19 kB     00:00     
openshift-origin                                         | 2.9 kB     00:00     
openshift-origin/primary_db                              |  44 kB     00:00     
openshift-origin-deps                                    | 2.9 kB     00:00     
openshift-origin-deps/primary_db                         | 481 kB     00:00     
updates                                                  | 3.4 kB     00:00     
updates/primary_db                                       | 5.4 MB     00:00     
vmware-tools-collection                                  |  951 B     00:00     
vmware-tools-collection/primary                          |  18 kB     00:00     
vmware-tools-collection                                                   40/40
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package scl-utils.x86_64 0:20120927-8.el6 will be updated
---> Package scl-utils.x86_64 0:20120927-9.el6oso will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package       Arch       Version               Repository                 Size
================================================================================
Updating:
 scl-utils     x86_64     20120927-9.el6oso     openshift-origin-deps      16 k

Transaction Summary
================================================================================
Upgrade       1 Package(s)

Total download size: 16 k
Downloading Packages:
scl-utils-20120927-9.el6oso.x86_64.rpm                   |  16 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : scl-utils-20120927-9.el6oso.x86_64                           1/2 
  Cleanup    : scl-utils-20120927-8.el6.x86_64                              2/2 
  Verifying  : scl-utils-20120927-9.el6oso.x86_64                           1/2 
  Verifying  : scl-utils-20120927-8.el6.x86_64                              2/2 

Updated:
  scl-utils.x86_64 0:20120927-9.el6oso                                          

Complete!

因此,如果在执行清理和更新后仍然无法运行该服务,您可以尝试安装:

scl-utils.x86_64 0:20120927-9.el6oso

或者其他人在另一个网站上报告说他需要安装以下软件包才能使其正常工作:

yum -y install scl-utils-20120927-9.el6oso.x86_64

如果您无法成功更新或安装,也许您需要检查您的存储库设置是否正确,它们在 OpenShift Origin 综合部署指南的开头列出。

http://openshift.github.io/documentation/oo_deployment_guide_comprehensive.html

相关内容