无法使用 OpenShift 构建服务构建映像:超时:请求未在 1 分钟内完成
Unable to build the image using the OpenShift build service: Timeout: request did not complete within 1m0s
我正在尝试使用以下命令构建 Syndesis:
syndesis build -m s2i -i -d -f -c --clean-cache
但是在构建了大部分项目之后,我得到了一个最终错误:
[ERROR] Failed to execute goal
io.fabric8:fabric8-maven-plugin:3.5.38:build (exec) on project s2i:
Failed to execute the build: Unable to build the image using the
OpenShift build service: Failure executing: POST at:
https://192.168.42.58:8443/apis/build.openshift.io/v1/namespaces/syndesis/buildconfigs/syndesis-s2i-s2i/instantiatebinary?commit=.
Message: Timeout: request did not complete within 1m0s. Received
status: Status(apiVersion=meta/v1, code=504,
details=StatusDetails(causes=[], group=null, kind=null, name=null,
retryAfterSeconds=null, uid=null, additionalProperties={}),
kind=Status, message=Timeout: request did not complete within 1m0s,
metadata=ListMeta(resourceVersion=null, selfLink=null,
additionalProperties={}), reason=Timeout, status=Failure,
additionalProperties={}). -> [Help 1]
完整堆栈跟踪:
Going to cache locally Syndesis 1.8-SNAPSHOT dependencies.
Installing Syndesis 1.8-SNAPSHOT dependencies to target directory...
This installation won't use a camel snapshot version
[INFO]
[INFO] --- fabric8-maven-plugin:3.5.38:build (exec) @ s2i ---
[INFO] F8: Using OpenShift build with strategy Docker
[INFO] F8: Generators:
[INFO] F8: - spring-boot
[INFO] F8: - wildfly-swarm
[INFO] F8: - karaf
[INFO] F8: - vertx
[INFO] F8: - java-exec
[INFO] F8: - webapp
[INFO] Building tar: /var/git/syndesis/app/s2i/target/docker/syndesis/syndesis-s2i/latest/tmp/docker-build.tar
[INFO] F8: [syndesis/syndesis-s2i:latest]: Created docker source tar /var/git/syndesis/app/s2i/target/docker/syndesis/syndesis-s2i/latest/tmp/docker-build.tar
[INFO] F8: Updating BuildServiceConfig syndesis-s2i-s2i for Docker strategy
[INFO] F8: Adding to ImageStream syndesis-s2i
[INFO] F8: Enrichers:
[INFO] F8: - fmp-name
[INFO] F8: - fmp-controller
[INFO] F8: - fmp-service
[INFO] F8: - fmp-image
[INFO] F8: - fmp-portname
[INFO] F8: - fmp-ianaservice
[INFO] F8: - fmp-project
[INFO] F8: - fmp-dependency
[INFO] F8: - fmp-pod-annotations
[INFO] F8: - fmp-git
[INFO] F8: - fmp-debug
[INFO] F8: - fmp-merge
[INFO] F8: - fmp-remove-build-annotations
[INFO] F8: - fmp-volume-permission
[INFO] F8: - f8-cd
[INFO] F8: - f8-cd-doc-link
[INFO] F8: - f8-cd-grafana-link
[INFO] F8: - f8-icon
[INFO] F8: - f8-expose
[INFO] F8: - fmp-openshift-route
[INFO] F8: - spring-boot-health-check
[INFO] F8: - wildfly-swarm-health-check
[INFO] F8: - karaf-health-check
[INFO] F8: - vertx-health-check
[INFO] F8: - docker-health-check
[INFO] F8: - f8-prometheus
[INFO] F8: - f8-maven-scm
[INFO] F8: - f8-maven-issue-mgmt
[INFO] F8: - f8-watch
[INFO] F8: - fmp-revision-history
[INFO] F8: - fmp-docker-registry-secret
[INFO] F8: Starting Build syndesis-s2i-s2i
[ERROR] F8: OpenShift Error: [504 Failure] [Timeout] Timeout: request did not complete within 1m0s
[ERROR] F8: Failed to execute the build [Unable to build the image using the OpenShift build service]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:31 min
[INFO] Finished at: 2019-08-05T10:29:58+02:00
[INFO] Final Memory: 39M/130M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.fabric8:fabric8-maven-plugin:3.5.38:build (exec) on project s2i: Failed to execute the build: Unable to build the image using the OpenShift build service: Failure executing: POST at: https://192.168.42.58:8443/apis/build.openshift.io/v1/namespaces/syndesis/buildconfigs/syndesis-s2i-s2i/instantiatebinary?commit=. Message: Timeout: request did not complete within 1m0s. Received status: Status(apiVersion=meta/v1, code=504, details=StatusDetails(causes=[], group=null, kind=null, name=null, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=Timeout: request did not complete within 1m0s, metadata=ListMeta(resourceVersion=null, selfLink=null, additionalProperties={}), reason=Timeout, status=Failure, additionalProperties={}). -> [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: Last command exited with 1
这可能来自哪里的任何提示?
这通常发生在从 Internet 下载工件的速度非常慢或无法下载时。在构建 pod 日志中应该有指向该方向的错误。有时这只是客户端超时,这意味着构建仍在进行中,最终会完成。如果是这样,构建中使用的图像层应该被缓存,下一个构建应该花费更少的时间。
我正在尝试使用以下命令构建 Syndesis:
syndesis build -m s2i -i -d -f -c --clean-cache
但是在构建了大部分项目之后,我得到了一个最终错误:
[ERROR] Failed to execute goal io.fabric8:fabric8-maven-plugin:3.5.38:build (exec) on project s2i: Failed to execute the build: Unable to build the image using the OpenShift build service: Failure executing: POST at: https://192.168.42.58:8443/apis/build.openshift.io/v1/namespaces/syndesis/buildconfigs/syndesis-s2i-s2i/instantiatebinary?commit=. Message: Timeout: request did not complete within 1m0s. Received status: Status(apiVersion=meta/v1, code=504, details=StatusDetails(causes=[], group=null, kind=null, name=null, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=Timeout: request did not complete within 1m0s, metadata=ListMeta(resourceVersion=null, selfLink=null, additionalProperties={}), reason=Timeout, status=Failure, additionalProperties={}). -> [Help 1]
完整堆栈跟踪:
Going to cache locally Syndesis 1.8-SNAPSHOT dependencies.
Installing Syndesis 1.8-SNAPSHOT dependencies to target directory...
This installation won't use a camel snapshot version
[INFO]
[INFO] --- fabric8-maven-plugin:3.5.38:build (exec) @ s2i ---
[INFO] F8: Using OpenShift build with strategy Docker
[INFO] F8: Generators:
[INFO] F8: - spring-boot
[INFO] F8: - wildfly-swarm
[INFO] F8: - karaf
[INFO] F8: - vertx
[INFO] F8: - java-exec
[INFO] F8: - webapp
[INFO] Building tar: /var/git/syndesis/app/s2i/target/docker/syndesis/syndesis-s2i/latest/tmp/docker-build.tar
[INFO] F8: [syndesis/syndesis-s2i:latest]: Created docker source tar /var/git/syndesis/app/s2i/target/docker/syndesis/syndesis-s2i/latest/tmp/docker-build.tar
[INFO] F8: Updating BuildServiceConfig syndesis-s2i-s2i for Docker strategy
[INFO] F8: Adding to ImageStream syndesis-s2i
[INFO] F8: Enrichers:
[INFO] F8: - fmp-name
[INFO] F8: - fmp-controller
[INFO] F8: - fmp-service
[INFO] F8: - fmp-image
[INFO] F8: - fmp-portname
[INFO] F8: - fmp-ianaservice
[INFO] F8: - fmp-project
[INFO] F8: - fmp-dependency
[INFO] F8: - fmp-pod-annotations
[INFO] F8: - fmp-git
[INFO] F8: - fmp-debug
[INFO] F8: - fmp-merge
[INFO] F8: - fmp-remove-build-annotations
[INFO] F8: - fmp-volume-permission
[INFO] F8: - f8-cd
[INFO] F8: - f8-cd-doc-link
[INFO] F8: - f8-cd-grafana-link
[INFO] F8: - f8-icon
[INFO] F8: - f8-expose
[INFO] F8: - fmp-openshift-route
[INFO] F8: - spring-boot-health-check
[INFO] F8: - wildfly-swarm-health-check
[INFO] F8: - karaf-health-check
[INFO] F8: - vertx-health-check
[INFO] F8: - docker-health-check
[INFO] F8: - f8-prometheus
[INFO] F8: - f8-maven-scm
[INFO] F8: - f8-maven-issue-mgmt
[INFO] F8: - f8-watch
[INFO] F8: - fmp-revision-history
[INFO] F8: - fmp-docker-registry-secret
[INFO] F8: Starting Build syndesis-s2i-s2i
[ERROR] F8: OpenShift Error: [504 Failure] [Timeout] Timeout: request did not complete within 1m0s
[ERROR] F8: Failed to execute the build [Unable to build the image using the OpenShift build service]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:31 min
[INFO] Finished at: 2019-08-05T10:29:58+02:00
[INFO] Final Memory: 39M/130M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.fabric8:fabric8-maven-plugin:3.5.38:build (exec) on project s2i: Failed to execute the build: Unable to build the image using the OpenShift build service: Failure executing: POST at: https://192.168.42.58:8443/apis/build.openshift.io/v1/namespaces/syndesis/buildconfigs/syndesis-s2i-s2i/instantiatebinary?commit=. Message: Timeout: request did not complete within 1m0s. Received status: Status(apiVersion=meta/v1, code=504, details=StatusDetails(causes=[], group=null, kind=null, name=null, retryAfterSeconds=null, uid=null, additionalProperties={}), kind=Status, message=Timeout: request did not complete within 1m0s, metadata=ListMeta(resourceVersion=null, selfLink=null, additionalProperties={}), reason=Timeout, status=Failure, additionalProperties={}). -> [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: Last command exited with 1
这可能来自哪里的任何提示?
这通常发生在从 Internet 下载工件的速度非常慢或无法下载时。在构建 pod 日志中应该有指向该方向的错误。有时这只是客户端超时,这意味着构建仍在进行中,最终会完成。如果是这样,构建中使用的图像层应该被缓存,下一个构建应该花费更少的时间。