首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法使用OpenShift构建服务构建映像: Timeout:请求在1mps内未完成

无法使用OpenShift构建服务构建映像: Timeout:请求在1mps内未完成
EN

Stack Overflow用户
提问于 2019-08-05 08:39:38
回答 1查看 1.3K关注 0票数 1

我试图使用以下命令构建Syndesis:

syndesis build -m s2i -i -d -f -c --clean-cache

但是在建造了大部分的项目之后,我得到了一个最后的错误:

错误未能在项目s2i上执行目标io.works 8:work8-maven-plugin:3.5.38: build (exec):未能执行构建:无法使用OpenShift构建服务构建映像:失败执行: POST:https://192.168.42.58:8443/apis/build.openshift.io/v1/namespaces/syndesis/buildconfigs/syndesis-s2i-s2i/instantiatebinary?commit=。消息:超时:请求没有在1mps内完成。接收状态: Status(apiVersion=meta/v1,code=504,details=StatusDetails(causes=[],group=null,kind=null,name=null,retryAfterSeconds=null,uid=null,additionalProperties={}),kind=Status,message=Timeout:请求在1mps内未完成,metadata=ListMeta(resourceVersion=null,selfLink=null,additionalProperties={}),reason=Timeout,status=Failure,additionalProperties={})。->帮助1

完全堆栈跟踪:

代码语言:javascript
复制
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

有什么线索吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-08-06 06:44:18

通常,当从Internet下载工件的速度非常慢或无法下载它们时,就会发生这种情况。在构建荚日志中指向这个方向应该有一个错误。有时这只是客户端超时,这意味着构建仍然在进行,并且最终会完成。如果是这样的话,在构建中使用的映像层应该被缓存,下一个构建应该花费更少的时间。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57354931

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档