Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: openim-docker deployment, chat service error #167

Closed
OPENCZ opened this issue Aug 25, 2023 · 7 comments
Closed

Bug: openim-docker deployment, chat service error #167

OPENCZ opened this issue Aug 25, 2023 · 7 comments
Labels
bug Categorizes issue or PR as related to a bug. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Comments

@OPENCZ
Copy link

OPENCZ commented Aug 25, 2023

What happened?

使用 [openim-docker](https://github.com/OpenIMSDK/openim-docker) 部署的,启动不了

What did you expect to happen?

错误日志:

zk get config connected to 127.0.0.1:2181
zk get config connected to 127.0.0.1:2181
zk get config authentication failed: read tcp 127.0.0.1:52454->127.0.0.1:2181: read: connection reset by peer
zk get config authentication failed: read tcp 127.0.0.1:52434->127.0.0.1:2181: read: connection reset by peer
zk get config close zk called
zk get config close zk called
err  ==> github.com/OpenIMSDK/chat/pkg/common/config.InitConfig()@73: conn zk error : zk: could not connect to a server
panic: ==> github.com/OpenIMSDK/chat/pkg/common/config.InitConfig()@73: conn zk error : zk: could not connect to a server

goroutine 1 [running]:
main.main()
	/openim/openim-chat/cmd/api/admin-api/main.gopanic: :==> github.com/OpenIMSDK/chat/pkg/common/config.InitConfig()@73: conn zk error : zk: could not connect to a server48
 +
0x8afgoroutine 
1 [running]:
main.main()
	/openim/openim-chat/cmd/api/chat-api/main.go:52 +0x946
zk get config connected to 127.0.0.1:2181
zk get config connected to 127.0.0.1:2181
zk get config authentication failed: read tcp 127.0.0.1:52496->127.0.0.1:2181: read: connection reset by peer
zk get config close zk called
panic: ==> github.com/OpenIMSDK/chat/pkg/common/config.InitConfig()@73: conn zk error : zk: could not connect to a server

goroutine 1 [running]:
main.main()
	/openim/openim-chat/cmd/rpc/chat-rpc/main.go:39 +0x28e
zk get config authentication failed: read tcp 127.0.0.1:52470->127.0.0.1:2181: read: connection reset by peer
zk get config close zk called
panic: ==> github.com/OpenIMSDK/chat/pkg/common/config.InitConfig()@73: conn zk error : zk: could not connect to a server

goroutine 1 [running]:
main.main()
	/openim/openim-chat/cmd/rpc/admin-rpc/main.go:39 +0x28e

How can we reproduce it (as minimally and precisely as possible)?

image

Anything else we need to know?

No response

version

```console $ {v1.2} version ```

Cloud provider

阿里云ECS

OS version

``` NAME="CentOS Stream" VERSION="9" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="9" PLATFORM_ID="platform:el9" PRETTY_NAME="CentOS Stream 9" ANSI_COLOR="0;31" LOGO="fedora-logo-icon" CPE_NAME="cpe:/o:centos:centos:9" HOME_URL="https://centos.org/" BUG_REPORT_URL="https://bugzilla.redhat.com/" REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 9" REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"
</details>


### Install tools

<details>
</details>
@OPENCZ OPENCZ added the bug Categorizes issue or PR as related to a bug. label Aug 25, 2023
@OPENCZ OPENCZ changed the title Bug: <> Bug: <openim-docker部署,chat服务报错> Aug 25, 2023
Copy link
Contributor

cubxxw commented Aug 25, 2023

zk problem. Check the log

@cubxxw cubxxw changed the title Bug: <openim-docker部署,chat服务报错> Bug: openim-docker deployment, chat service error Aug 25, 2023
@OPENCZ
Copy link
Author

OPENCZ commented Aug 25, 2023

zk problem. Check the log


zookeeper  | ZooKeeper JMX enabled by default
zookeeper  | Using config: /opt/zookeeper-3.4.13/bin/../conf/zoo.cfg
zookeeper  | library initialization failed - unable to allocate file descriptor table - out of memory/usr/bin/start-zk.sh: line 4:    12 Aborted                 (core dumped) /opt/zookeeper-3.4.13/bin/zkServer.sh start-foreground
zookeeper  | ZooKeeper JMX enabled by default
zookeeper  | Using config: /opt/zookeeper-3.4.13/bin/../conf/zoo.cfg
zookeeper  | library initialization failed - unable to allocate file descriptor table - out of memory/usr/bin/start-zk.sh: line 4:    12 Aborted                 (core dumped) /opt/zookeeper-3.4.13/bin/zkServer.sh start-foreground
zookeeper  | ZooKeeper JMX enabled by default
zookeeper  | Using config: /opt/zookeeper-3.4.13/bin/../conf/zoo.cfg
zookeeper  | library initialization failed - unable to allocate file descriptor table - out of memory/usr/bin/start-zk.sh: line 4:    13 Aborted                 (core dumped) /opt/zookeeper-3.4.13/bin/zkServer.sh start-foreground
zookeeper  | ZooKeeper JMX enabled by default
zookeeper  | Using config: /opt/zookeeper-3.4.13/bin/../conf/zoo.cfg
zookeeper  | library initialization failed - unable to allocate file descriptor table - out of memory/usr/bin/start-zk.sh: line 4:    11 Aborted                 (core dumped) /opt/zookeeper-3.4.13/bin/zkServer.sh start-foreground
zookeeper  | ZooKeeper JMX enabled by default
zookeeper  | Using config: /opt/zookeeper-3.4.13/bin/../conf/zoo.cfg
zookeeper  | library initialization failed - unable to allocate file descriptor table - out of memory/usr/bin/start-zk.sh: line 4:    13 Aborted                 (core dumped) /opt/zookeeper-3.4.13/bin/zkServer.sh start-foreground
zookeeper  | ZooKeeper JMX enabled by default
zookeeper  | Using config: /opt/zookeeper-3.4.13/bin/../conf/zoo.cfg
zookeeper  | library initialization failed - unable to allocate file descriptor table - out of memory/usr/bin/start-zk.sh: line 4:    12 Aborted                 (core dumped) /opt/zookeeper-3.4.13/bin/zkServer.sh start-foreground
zookeeper  | ZooKeeper JMX enabled by default
zookeeper  | Using config: /opt/zookeeper-3.4.13/bin/../conf/zoo.cfg
zookeeper  | library initialization failed - unable to allocate file descriptor table - out of memory/usr/bin/start-zk.sh: line 4:    12 Aborted                 (core dumped) /opt/zookeeper-3.4.13/bin/zkServer.sh start-foreground
zookeeper  | ZooKeeper JMX enabled by default
zookeeper  | Using config: /opt/zookeeper-3.4.13/bin/../conf/zoo.cfg
zookeeper  | library initialization failed - unable to allocate file descriptor table - out of memory/usr/bin/start-zk.sh: line 4:    11 Aborted                 (core dumped) /opt/zookeeper-3.4.13/bin/zkServer.sh start-foreground
zookeeper  | ZooKeeper JMX enabled by default
zookeeper  | Using config: /opt/zookeeper-3.4.13/bin/../conf/zoo.cfg
zookeeper  | library initialization failed - unable to allocate file descriptor table - out of memory/usr/bin/start-zk.sh: line 4:    13 Aborted                 (core dumped) /opt/zookeeper-3.4.13/bin/zkServer.sh start-foreground
zookeeper  | ZooKeeper JMX enabled by default
zookeeper  | Using config: /opt/zookeeper-3.4.13/bin/../conf/zoo.cfg
zookeeper  | library initialization failed - unable to allocate file descriptor table - out of memory/usr/bin/start-zk.sh: line 4:    11 Aborted                 (core dumped) /opt/zookeeper-3.4.13/bin/zkServer.sh start-foreground
zookeeper  | ZooKeeper JMX enabled by default
zookeeper  | Using config: /opt/zookeeper-3.4.13/bin/../conf/zoo.cfg
zookeeper  | library initialization failed - unable to allocate file descriptor table - out of memory/usr/bin/start-zk.sh: line 4:    13 Aborted                 (core dumped) /opt/zookeeper-3.4.13/bin/zkServer.sh start-foreground
zookeeper  | ZooKeeper JMX enabled by default
zookeeper  | Using config: /opt/zookeeper-3.4.13/bin/../conf/zoo.cfg
zookeeper  | library initialization failed - unable to allocate file descriptor table - out of memory/usr/bin/start-zk.sh: line 4:    12 Aborted                 (core dumped) /opt/zookeeper-3.4.13/bin/zkServer.sh start-foreground
zookeeper  | ZooKeeper JMX enabled by default
zookeeper  | Using config: /opt/zookeeper-3.4.13/bin/../conf/zoo.cfg
zookeeper  | library initialization failed - unable to allocate file descriptor table - out of memory/usr/bin/start-zk.sh: line 4:    12 Aborted                 (core dumped) /opt/zookeeper-3.4.13/bin/zkServer.sh start-foreground
zookeeper  | ZooKeeper JMX enabled by default
zookeeper  | Using config: /opt/zookeeper-3.4.13/bin/../conf/zoo.cfg
zookeeper  | library initialization failed - unable to allocate file descriptor table - out of memory/usr/bin/start-zk.sh: line 4:    12 Aborted                 (core dumped) /opt/zookeeper-3.4.13/bin/zkServer.sh start-foreground
zookeeper  | ZooKeeper JMX enabled by default
zookeeper  | Using config: /opt/zookeeper-3.4.13/bin/../conf/zoo.cfg
zookeeper  | library initialization failed - unable to allocate file descriptor table - out of memory/usr/bin/start-zk.sh: line 4:    13 Aborted                 (core dumped) /opt/zookeeper-3.4.13/bin/zkServer.sh start-foreground
zookeeper  | ZooKeeper JMX enabled by default
zookeeper  | Using config: /opt/zookeeper-3.4.13/bin/../conf/zoo.cfg
zookeeper  | library initialization failed - unable to allocate file descriptor table - out of memory/usr/bin/start-zk.sh: line 4:    12 Aborted                 (core dumped) /opt/zookeeper-3.4.13/bin/zkServer.sh start-foreground
zookeeper  | ZooKeeper JMX enabled by default
zookeeper  | Using config: /opt/zookeeper-3.4.13/bin/../conf/zoo.cfg
zookeeper  | library initialization failed - unable to allocate file descriptor table - out of memory/usr/bin/start-zk.sh: line 4:    12 Aborted                 (core dumped) /opt/zookeeper-3.4.13/bin/zkServer.sh start-foreground
zookeeper  | ZooKeeper JMX enabled by default
zookeeper  | Using config: /opt/zookeeper-3.4.13/bin/../conf/zoo.cfg
zookeeper  | library initialization failed - unable to allocate file descriptor table - out of memory/usr/bin/start-zk.sh: line 4:    12 Aborted                 (core dumped) /opt/zookeeper-3.4.13/bin/zkServer.sh start-foreground
zookeeper  | ZooKeeper JMX enabled by default
zookeeper  | Using config: /opt/zookeeper-3.4.13/bin/../conf/zoo.cfg
zookeeper  | library initialization failed - unable to allocate file descriptor table - out of memory/usr/bin/start-zk.sh: line 4:    12 Aborted                 (core dumped) /opt/zookeeper-3.4.13/bin/zkServer.sh start-foreground
zookeeper  | ZooKeeper JMX enabled by default
zookeeper  | Using config: /opt/zookeeper-3.4.13/bin/../conf/zoo.cfg
zookeeper  | library initialization failed - unable to allocate file descriptor table - out of memory/usr/bin/start-zk.sh: line 4:    12 Aborted                 (core dumped) /opt/zookeeper-3.4.13/bin/zkServer.sh start-foreground
zookeeper  | ZooKeeper JMX enabled by default
zookeeper  | Using config: /opt/zookeeper-3.4.13/bin/../conf/zoo.cfg
zookeeper  | library initialization failed - unable to allocate file descriptor table - out of memory/usr/bin/start-zk.sh: line 4:    13 Aborted                 (core dumped) /opt/zookeeper-3.4.13/bin/zkServer.sh start-foreground
zookeeper  | ZooKeeper JMX enabled by default
zookeeper  | Using config: /opt/zookeeper-3.4.13/bin/../conf/zoo.cfg
zookeeper  | library initialization failed - unable to allocate file descriptor table - out of memory/usr/bin/start-zk.sh: line 4:    11 Aborted                 (core dumped) /opt/zookeeper-3.4.13/bin/zkServer.sh start-foreground
zookeeper  | ZooKeeper JMX enabled by default
zookeeper  | Using config: /opt/zookeeper-3.4.13/bin/../conf/zoo.cfg
zookeeper  | library initialization failed - unable to allocate file descriptor table - out of memory/usr/bin/start-zk.sh: line 4:    11 Aborted                 (core dumped) /opt/zookeeper-3.4.13/bin/zkServer.sh start-foreground
zookeeper  | ZooKeeper JMX enabled by default
zookeeper  | Using config: /opt/zookeeper-3.4.13/bin/../conf/zoo.cfg
zookeeper  | library initialization failed - unable to allocate file descriptor table - out of memory/usr/bin/start-zk.sh: line 4:    12 Aborted                 (core dumped) /opt/zookeeper-3.4.13/bin/zkServer.sh start-foreground
zookeeper  | ZooKeeper JMX enabled by default
zookeeper  | Using config: /opt/zookeeper-3.4.13/bin/../conf/zoo.cfg
zookeeper  | library initialization failed - unable to allocate file descriptor table - out of memory/usr/bin/start-zk.sh: line 4:    13 Aborted                 (core dumped) /opt/zookeeper-3.4.13/bin/zkServer.sh start-foreground
zookeeper  | ZooKeeper JMX enabled by default
zookeeper  | Using config: /opt/zookeeper-3.4.13/bin/../conf/zoo.cfg
zookeeper  | library initialization failed - unable to allocate file descriptor table - out of memory/usr/bin/start-zk.sh: line 4:    12 Aborted                 (core dumped) /opt/zookeeper-3.4.13/bin/zkServer.sh start-foreground
zookeeper  | ZooKeeper JMX enabled by default
zookeeper  | Using config: /opt/zookeeper-3.4.13/bin/../conf/zoo.cfg
zookeeper  | library initialization failed - unable to allocate file descriptor table - out of memory/usr/bin/start-zk.sh: line 4:    12 Aborted                 (core dumped) /opt/zookeeper-3.4.13/bin/zkServer.sh start-foreground

@cubxxw
Copy link
Contributor

cubxxw commented Aug 25, 2023

Maybe you need to change your env or config configuration

@cubxxw
Copy link
Contributor

cubxxw commented Aug 25, 2023

Refer to the README.md of openim-server
https://github.com/OpenIMSDK/Open-IM-Server/blob/main/README.md

@OPENCZ
Copy link
Author

OPENCZ commented Aug 25, 2023

也许您需要更改您的 env 或 config 配置

我尝试过两种情况:
1.直接拉取,使用默认配置构建结果如上
2.修改数据库相关配置,然后构建,但结果还是如上
请问,是哪里出了问题呢?

@kubbot
Copy link
Contributor

kubbot commented Oct 24, 2023

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@kubbot kubbot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 24, 2023
@kubbot
Copy link
Contributor

kubbot commented Nov 1, 2023

This issue was closed because it has been stalled for 7 days with no activity.

@kubbot kubbot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Categorizes issue or PR as related to a bug. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

No branches or pull requests

3 participants