Docker Compose 部署后登陆时弹窗报网络错误并不能登陆
- Dominant language
- Java
- Stars
- 7.2k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
- [x] 我已经在 [issues](https://github.com/didi/KnowStreaming/issues) 搜索过相关问题了,并没有重复的。
你是否希望来认领这个Bug。
「 Y / N 」
### 环境信息
* KnowStreaming version : 3.2
* Operating System version : RockyLinux 9.1
* Docker version : 20.10.22
* Docker Compose version : 2.14.1
### 重现该问题的步骤
1. 按说明文档进行容器化部署,因为时内网环境,所以只是修改了 image 仓库地址参数。
2. 防火墙添加暴露端口
```
sudo firewall-cmd --add-port=80/tcp --permanent
sudo firewall-cmd --reload
```
### 预期结果
输入默认的用户名后应该进入初始界面
### 实际结果
在登陆界面出现网络错误弹窗
首先查看knowstreaming-ui日志(docker logs knowstreaming-ui),报错:
```
...[error] 20#20: *1 connect() failed (111: Connection refused) while connecting to up stream
```
再查看knowstreaming-manager日志(docker logs knowstreaming-manager),报错:
```
Cause by: org.apache.ibatis.exceptions.PersistenceExceptions:
### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLNonTransientConnectionException: Socket fail to connect to host:address=(host=knowstreaming-mysql)(port=3306)(type=primary). Connection refused (Connection refused)
### The error my exist in com/xiaojukeji/know/streaming/km/persistence/mysql/km/KmNodeDAO.java (best guess)
### The error my involve com.xiaojukeji.know.streaming.km.persistence.mysql.km.KmNodeDAO.selectList
### The error occurred while executing a query
......
```
Contributor guide
Assessment
This issue has not been assessed yet.