-
Notifications
You must be signed in to change notification settings - Fork 38
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
使用docker启动起来了,只是无法接口报502 #42
Comments
使用下面命令,获取实时日志最后50行: |
java.net.ConnectException: [NACOS HTTP-GET] The maximum number of tolerable server reconnection errors has been reached erd-system | Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. |
看起来像是服务没有连接到nacos,导致获取不到数据库配置 |
检查下mysql、nacos是否正常。http://192.168.144.16:8848/nacos,可以访问你本地的nacos。 |
进入docker容器后什么命令都不识别,如何查看? 刚接触docker [root@k1 docker]# docker exec -it erd-nacos sh ip addrsh: 3: ip: not found pssh: 4: ps: not found yumsh: 6: yum: not found |
不用进docker排查,在外面用docker-compose命令基本上就可以排查出问题了 |
mysql远程都可以连接,不知道nacos容器在哪里,就是好多连接不上nacos异常。哎。 |
搭了好几遍 ,都是这个问题 502 nacos 问题 |
需要更多的日志信息,才能帮助你排查问题 |
可以按照以下顺序,逐步定位: |
单独启动mysql报这个错误 |
1、应该是重复创建erd数据库了,解决办法如下,注意命令后面有个点: |
nacos数据库连接需要在URL中加上参数 &serverTimezone=UTC,否则nacos一直报No DataSource set |
: 502 Bad Gateway
请求网址: http://192.168.144.16:9669/ncnb/project/recent?page=1&limit=6&order=updateTime
请求方法: GET
状态代码: 502 Bad Gateway
远程地址: 192.168.144.16:9669
The text was updated successfully, but these errors were encountered: