ufm httpd 启动失败

在安装mellanox ufm时提示: Restarting httpd: [FAILED] 定位分析, 它程序里首先需要调用service httpd start 发现这个启动服务失败, 在shell中也确实提示这个错误:

应用介绍

在安装mellanox  ufm时提示:

Restarting httpd:                                          [FAILED]

定位分析, 它程序里首先需要调用service httpd start

发现这个启动服务失败, 在shell中也确实提示这个错误:

Redirecting to /bin/systemctl start httpd.service

Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

[root@g01r1n00 conf]# vim httpd.conf 

[root@g01r1n00 conf]# journalctl -xe

-- Subject: Session 171 has been terminated

-- Defined-By: systemd

-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/multiseat

-- 

-- A session with the ID 171 has been terminated.

Mar 27 16:47:39 g01r1n00 ntpd[92325]: 0.0.0.0 c016 06 restart

Mar 27 16:47:39 g01r1n00 ntpd[92325]: 0.0.0.0 c012 02 freq_set kernel 42.251 PPM

Mar 27 16:47:51 g01r1n00 polkitd[56191]: Registered Authentication Agent for unix-process:92327:2419410 (system bus name :1.561 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /or

Mar 27 16:47:51 g01r1n00 systemd[1]: Starting The Apache HTTP Server...

-- Subject: Unit httpd.service has begun start-up

-- Defined-By: systemd

-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

-- 

-- Unit httpd.service has begun starting up.

Mar 27 16:47:51 g01r1n00 httpd[92343]: [Fri Mar 27 16:47:51.622625 2020] [so:warn] [pid 92343] AH01574: module ssl_module is already loaded, skipping

Mar 27 16:47:51 g01r1n00 httpd[92343]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 10.7.1.1. Set the 'ServerName' directive globally to suppre

Mar 27 16:47:51 g01r1n00 httpd[92343]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:8020

Mar 27 16:47:51 g01r1n00 httpd[92343]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:8020

Mar 27 16:47:51 g01r1n00 httpd[92343]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:8443

Mar 27 16:47:51 g01r1n00 httpd[92343]: no listening sockets available, shutting down

Mar 27 16:47:51 g01r1n00 httpd[92343]: AH00015: Unable to open logs

Mar 27 16:47:51 g01r1n00 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE

Mar 27 16:47:51 g01r1n00 kill[92345]: kill: cannot find process ""

Mar 27 16:47:51 g01r1n00 systemd[1]: httpd.service: control process exited, code=exited status=1

Mar 27 16:47:51 g01r1n00 systemd[1]: Failed to start The Apache HTTP Server.

-- Subject: Unit httpd.service has failed

-- Defined-By: systemd

-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

按照提示:地址已经bind了, 最后分析发现

启动httpd服务,会启动以下配置文件,都会加载

/etc/httpd/conf

/etc/httpd/conf.d

发现里面有

ufm.conf  配置文件有错误,现这个ufm.conf配置文件在卸载老版本ufm的时候是不会删除掉,安装新的ufm的时候,直接往里面写, 导致这个ufm配置文件出错。最终直接删掉,重新安装。正确的ufm配置文件如下:

Alias /ufmui /opt/ufm/media
Alias /ufm_web /opt/ufm/media
<Directory "/opt/ufm/media">
Options Indexes MultiViews
Options Indexes FollowSymLinks
AllowOverride None
SSLRequireSSL
Require all granted
</Directory>
ProxyRequests Off
<Proxy *>
    Order deny,allow
    Allow from all
</Proxy>

<Location /ufm>
    ProxyPass http://127.0.0.1:8088 retry=1
    ProxyPassReverse http://127.0.0.1:8088
    AuthType Basic
    AuthName "UFM server"
    AuthUserFile /opt/ufm/conf/ufm.passwd
    Require valid-user
    SSLRequireSSL
</Location>

<Location /ufmRest>
    ProxyPass http://127.0.0.1:8000 retry=1
    ProxyPassReverse http://127.0.0.1:8000
    RequestHeader add X-Script-Name "/ufmRest"
    AuthType Basic
    AuthName "UFM model rest server"
    AuthUserFile /opt/ufm/conf/ufm.passwd
    Require valid-user
    SSLRequireSSL
</Location>

<Location /ufmStats>
    ProxyPass http://127.0.0.1:8005/ufmStats
    ProxyPassReverse http://127.0.0.1:8005/ufmStats
</Location>

<Location /fcRest/services>
    ProxyPass http://127.0.0.1:8083/services
    ProxyPassReverse http://127.0.0.1:8083/services
</Location>

Timeout 720

文件列表(部分)

名称 大小 修改日期

立即下载

相关下载

[UFM license] UFM 是mellanox 推出的一个网络监控工具,可以监控infiniband网络和以太网络, 根据根据实际需要下载对应的版本,当前推出了AI版本,docker版本
[ufm httpd 启动失败] 在安装mellanox ufm时提示: Restarting httpd: [FAILED] 定位分析, 它程序里首先需要调用service httpd start 发现这个启动服务失败, 在shell中也确实提示这个错误:

评论列表 共有 0 条评论

暂无评论

微信捐赠

微信扫一扫体验

立即
上传
发表
评论
返回
顶部