【问题标题】:Quarkus Maven Plugin not building anymoreQuarkus Maven 插件不再构建
【发布时间】:2021-05-11 08:59:37
【问题描述】:

由于某种原因,我们的应用程序的后端没有正确构建:

错误信息

虽然使用mvn clean install 仍然有效mvn compile quarkus:dev -pl web 无效,但在构建quarkus-maven-plugin:1.11.3.Final:dev 期间抛出以下错误消息:

10:26:50,438 WARN  [io.agr.pool] (agroal-11) Datasource '<default>': Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
10:26:50,440 WARN  [org.fly.cor.int.jdb.JdbcUtils] (Quarkus Main Thread) Connection error: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. (Caused by No appropriate protocol (protocol is disabled or cipher suites are inappropriate)) Retrying in 1 sec...
10:26:51,445 WARN  [io.agr.pool] (agroal-11) Datasource '<default>': Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
10:26:51,445 WARN  [org.fly.cor.int.jdb.JdbcUtils] (Quarkus Main Thread) Connection error: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. (Caused by No appropriate protocol (protocol is disabled or cipher suites are inappropriate)) Retrying in 2 sec...
10:26:53,450 WARN  [io.agr.pool] (agroal-11) Datasource '<default>': Communications link failure

这会随着时间间隔的增加而继续。

采取的步骤

我已经检查过 SQL Docker 容器是否处于离线状态,但它按预期启动并且可以使用 telnet localhost 3306。 由于该项目是使用相同的提交为我的同事构建的,因此我尝试从我们的版本控制中进行全新安装。无济于事。

上周该项目正常运行,项目没有任何变化。两者之间应用的唯一系统范围更改是安装新的 nvidia 驱动程序、cuda 和 cudNN。 GPU 驱动程序应该不会对 Web 应用程序产生任何影响?

有没有人遇到过类似的问题并且知道如何解决?

【问题讨论】:

    标签: java maven quarkus


    【解决方案1】:

    我们在 Quarkus CI 中遇到了类似的问题,解决方法是更新 MySQL 容器,因为使用的版本太旧并且使用了 JDK 不再支持的密码。

    找不到 JDK 和 MySQL 实例之间的通用密码,因此无法正常工作。

    您能否尝试使用更新版本的 MySQL(或 MariaDB)映像?通常,来自 Testcontainers 的默认容器太旧了。

    【讨论】:

    • 谢谢!在我们的 docker-compose 中将 MySQL 版本从 5.7.23 推送到 5.7.34,然后瞧:maven 构建再次运行。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-11-25
    • 1970-01-01
    • 2010-10-07
    • 1970-01-01
    • 1970-01-01
    • 2019-03-30
    • 2016-02-20
    相关资源
    最近更新 更多