MSC000001: Failed to start service org.wildfly.undertow.listener.default:Address already in use /127.0.0.1:8081

huangapple go评论79阅读模式
英文:

MSC000001: Failed to start service org.wildfly.undertow.listener.default:Address already in use /127.0.0.1:8081

问题

错误:

MSC000001: 无法启动服务 org.wildfly.undertow.listener.default: org.jboss.msc.service.StartException 在服务 org.wildfly.undertow.listener.default 中: 地址已在使用 /127.0.0.1:8081

当我启动 Keycloak 时,遇到了这个问题。

如果有人遇到类似的问题,最好提供一些建议。

英文:

ERROR:

MSC000001: Failed to start service org.wildfly.undertow.listener.default: org.jboss.msc.service.StartException in service org.wildfly.undertow.listener.default: Address already in use /127.0.0.1:8081

When I started the keycloak, faced this issue.

If anyone comes across the same kind of issue, it's best to provide some suggestions.

答案1

得分: 0

Step-1: 首先验证/etc/hosts文件中的无效映射。
在我的情况下,存在以下无效映射。

127.0.0.1  localhost
::1   localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
fe00::0 ip6-mcastprefix
fe00::1 ip6-allnodes
fe00::2 ip6-allrouters
10.32.12.25    keycloak-f744f7965-lg7hj

我尝试从hosts文件中删除最后一行,但由于权限问题不允许。

最后,我重新启动了同一Pod,然后问题得以解决。

英文:

After spending a lot of time, I finally found the resolution:

Step-1: first verify the /etc/hosts file for invalid mappings.
In my case, the below invalid mappings are there.

127.0.0.1  localhost
::1   localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
fe00::0 ip6-mcastprefix
fe00::1 ip6-allnodes
fe00::2 ip6-allrouters
10.32.12.25    keycloak-f744f7965-lg7hj

I tried to remove this last line from the hosts file, but it is not allowed due to permission.

I finally restarted the same pod and then it got resolved.

huangapple
  • 本文由 发表于 2023年1月6日 13:18:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/75027187.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定