-
Notifications
You must be signed in to change notification settings - Fork 438
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部署失败404错误 #8
Comments
服务端启动失败,可能是你的mysql连接有问题。 |
可以通过docker命令查看容器日志,找到具体原因。 |
和这位同学遇到相同问题,docker-compose 完成部署,发现java的容器没有成功启动,日志如下,详细错误日志请看附件,麻烦看下主要是什么问题,谢谢 Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failureThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. The error may exist in URL [jar:file:/server.jar!/BOOT-INF/lib/fastbee-system-service-3.8.5.jar!/mapper/system/SysConfigMapper.xml]The error may involve com.fastbee.system.mapper.SysConfigMapper.selectConfigListThe error occurred while executing a queryCause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failureThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure |
数据库连接失败了,后端重新打包上传到/var/data/java 目录下面 |
如图所示:
![image](https://user-images.githubusercontent.com/1421582/176816879-784f9499-b5bd-4470-81b6-6fe422b94145.png)
The text was updated successfully, but these errors were encountered: