镜像构建报错

Blade 未结 1 12

一、该问题的重现步骤是什么?

[INFO] BladeX-Links ....................................... SUCCESS [  1.360 s]

[INFO] blade-core ......................................... SUCCESS [  0.219 s]

[INFO] blade-links-core ................................... SUCCESS [  8.524 s]

[INFO] blade-links-base ................................... SUCCESS [  0.760 s]

[INFO] blade-demo ......................................... SUCCESS [  0.200 s]

[INFO] device-simulator ................................... FAILURE [ 19.975 s]

[INFO] relay-amqp ......................................... SKIPPED

[INFO] relay-mqtt ......................................... SKIPPED

[INFO] blade-broker-core .................................. SKIPPED

[INFO] blade-tsdb-api ..................................... SKIPPED

[INFO] blade-data-core .................................... SKIPPED

[INFO] blade-engine-core .................................. SKIPPED

[INFO] blade-mq-api ....................................... SKIPPED

[INFO] blade-broker-local ................................. SKIPPED

[INFO] blade-broker-cluster ............................... SKIPPED

[INFO] blade-mq-kafka ..................................... SKIPPED

[INFO] blade-tsdb-influxdb ................................ SKIPPED

[INFO] blade-tsdb-influxdb2 ............................... SKIPPED

[INFO] blade-tsdb-iotdb ................................... SKIPPED

[INFO] blade-tsdb-tdengine ................................ SKIPPED

[INFO] blade-service ...................................... SKIPPED

[INFO] blade-broker ....................................... SKIPPED

[INFO] blade-emqx ......................................... SKIPPED

[INFO] blade-data ......................................... SKIPPED

[INFO] blade-server ....................................... SKIPPED

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time:  31.574 s

[INFO] Finished at: 2026-03-12T03:17:00Z

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.42.0:build (default-cli) on project device-simulator: Unable to pull 'bladex/alpine-java:openjdk17_cn_slim' from registry '192.168.0.1' : {"message":"Get \"https://192.168.0.1/v2/\": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"} (Internal Server Error: 500) -> [Help 1]

[ERROR] 

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR] 

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

[ERROR] 

[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <args> -rf :device-simulator

image.png

二、你期待的结果是什么?实际看到的又是什么?


三、你正在使用的是什么产品,什么版本?在什么操作系统上?


四、请提供详细的错误堆栈信息,这很重要。


五、若有更多详细信息,请在下面提供。

1条回答
  • 错误是这个,是网络问题导致的:

    Unable to pull 'bladex/alpine-java:openjdk17_cn_slim' from registry '192.168.0.1' : {"message":"Get \"https://192.168.0.1/v2/\": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"}

    如果解决不了网络问题,可以把镜像改成国内访问的,比如这个

    registry.cn-hangzhou.aliyuncs.com/bladex-repo/alpine-java:openjdk17_cn_slim


    0 讨论(0)
提交回复