Avamar:Tomcat 问题 — 客户端管理器不可访问。对 server.xml 所做的更改不是永久性的
Summary: 对 server.xml 进行了更改,但重新启动 tomcat 服务将恢复更改。 本知识库文章还讨论了由于端口 8509 无法侦听 127.0.0.1 而无法访问 tomcat 的位置。
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Symptoms
Tomcat 已启动,但 AAM (Client Manager) 网页不可访问:
/var/log/apache2/mod_jk.log 在端口 8509 上连接时显示错误。
Curl 到端口 8509 到 localhost 显示连接被拒绝。
[Tue Aug 16 17:57:01 2022] [26136:139641497630912] [info] jk_open_socket::jk_connect.c (758): connect to 127.0.0.1:8509 failed (errno=111)
[Tue Aug 16 17:57:01 2022] [26136:139641497630912] [info] ajp_connect_to_endpoint::jk_ajp_common.c (1019): Failed opening socket to (127.0.0.1:8509) (errno=111)
[Tue Aug 16 17:57:01 2022] [26136:139641497630912] [error] ajp_send_request::jk_ajp_common.c (1663): (cas) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111)
[Tue Aug 16 17:57:01 2022] [26136:139641497630912] [info] ajp_service::jk_ajp_common.c (2673): (cas) sending request to tomcat failed (recoverable), because of error during request sending (attempt=1)
[Tue Aug 16 17:57:01 2022] [26136:139641497630912] [info] jk_open_socket::jk_connect.c (758): connect to 127.0.0.1:8509 failed (errno=111)
[Tue Aug 16 17:57:01 2022] [26136:139641497630912] [info] ajp_connect_to_endpoint::jk_ajp_common.c (1019): Failed opening socket to (127.0.0.1:8509) (errno=111)
[Tue Aug 16 17:57:01 2022] [26136:139641497630912] [error] ajp_send_request::jk_ajp_common.c (1663): (cas) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111)
[Tue Aug 16 17:57:01 2022] [26136:139641497630912] [info] ajp_service::jk_ajp_common.c (2673): (cas) sending request to tomcat failed (recoverable), because of error during request sending (attempt=2)
[Tue Aug 16 17:57:01 2022] [26136:139641497630912] [error] ajp_service::jk_ajp_common.c (2693): (cas) connecting to tomcat failed.
[Tue Aug 16 17:57:01 2022] [26136:139641497630912] [info] jk_handler::mod_jk.c (2837): Service error=-3 for worker=cas
Curl 到端口 8509 到 localhost 显示连接被拒绝。
root@testlab:/usr/local/avamar-tomcat/conf/#: curl -kv https://127.0.0.1:8509
* Rebuilt URL to: https://127.0.0.1:8509/
* Trying 127.0.0.1...
* TCP_NODELAY set
* connect to 127.0.0.1 port 8509 failed: Connection refused
* Failed to connect to 127.0.0.1 port 8509: Connection refused
* Closing connection 0
curl: (7) Failed to connect to 127.0.0.1 port 8509: Connection refused
Cause
端口 8509 未侦听 localhost。
Resolution
1.以管理员用户身份登录到 Avamar Server,然后升级到 root 用户:
2.备份现有 server.xml 配置文件:
3.编辑 /usr/local/avamar-tomcat/conf/server.xml 和 /usr/local/avamar/etc/server.xml ,添加下面突出显示的行:
4.保存并关闭文件。
5.重新启动 tomcat 和 Apache:
2.备份现有 server.xml 配置文件:
cp -p /usr/local/avamar-tomcat/conf/server.xml /usr/local/avamar-tomcat/conf/server.xml-orig
cp -p /usr/local/avamar/etc/server.xml /usr/local/avamar/etc/server.xml-orig
3.编辑 /usr/local/avamar-tomcat/conf/server.xml 和 /usr/local/avamar/etc/server.xml ,添加下面突出显示的行:
5.重新启动 tomcat 和 Apache:
emwebapp.sh --restart
service apache2 restart
Article Properties
Article Number: 000203109
Article Type: Solution
Last Modified: 14 Jul 2023
Version: 2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.