openshift online3

时间:2017-06-29 07:10:15

标签: eclipse github openshift

每当我尝试将Java应用程序从GitHub部署到openshift时,我都会遇到授权问题。这是我在尝试将图像从git推送到openshift时获得的日志文件:

Cloning "https://github.com/niladri3/niladritest2.git" ...
Commit: aa3e9851141def47bb9e93d15e5e1ff80224f63e ((commited))
Author: niladri3 <1993niladri@gmail.com>
Date:   Wed Jun 28 12:30:22 2017 +0530
Pulling image "registry.access.redhat.com/jboss-webserver-3/webserver30-tomcat8-openshift@sha256:37672e770d6ad5697fffc6fec6eae09108664bb34e8b01768ee58f381d80454a" ...
Pulling image "registry.access.redhat.com/jboss-webserver-3/webserver30-tomcat8-openshift@sha256:37672e770d6ad5697fffc6fec6eae09108664bb34e8b01768ee58f381d80454a" ...
Found pom.xml... attempting to build with 'mvn -e -Popenshift -DskipTests -Dcom.redhat.xpaas.repo.redhatga package -Djava.net.preferIPv4Stack=true '
Picked up JAVA_TOOL_OPTIONS: -Duser.home=/home/jboss -Duser.name=jboss
Using Apache Maven 3.0.5 (Red Hat 3.0.5-17)
Maven home: /usr/share/maven
Java version: 1.8.0_131, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-2.b11.el7_3.x86_64/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "3.10.0-514.25.2.el7.x86_64", arch: "amd64", family: "unix"
Picked up JAVA_TOOL_OPTIONS: -Duser.home=/home/jboss -Duser.name=jboss
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Dashboard Maven Webapp 0.0.1-SNAPSHOT

Downloaded: https://repo1.maven.org/maven2/org/apache/maven/shared/maven-filtering/1.0-beta-2/maven-filtering-1.0-beta-2.jar (33 KB at 437.9 KB/sec

Downloaded: https://repo1.maven.org/maven2/com/thoughtworks/xstream/xstream/1.3.1/xstream-1.3.1.jar (422 KB at 1839.7 KB/sec)
[INFO] Packaging webapp
[INFO] Assembling webapp [Dashboard] in [/home/jboss/source/target/ROOT]
[INFO] Processing war project
[INFO] Copying webapp resources [/home/jboss/source/src/main/webapp]
[INFO] Webapp assembled in [196 msecs]
[INFO] Building war: /home/jboss/source/target/ROOT.war
[INFO] WEB-INF/web.xml already added, skipping
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 36.622s
[INFO] Finished at: Thu Jun 29 06:13:56 UTC 2017
[INFO] Final Memory: 16M/307M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "openshift" could not be activated because it does not exist.
Copying all target war artifacts from /home/jboss/source/target directory into /opt/webserver/webapps for later deployment...
'/home/jboss/source/target/ROOT.war' -> '/opt/webserver/webapps/ROOT.war'

Pushing image 172.30.254.23:5000/jd-dashboardcheck/tomcat:latest ...
error: build error: Failed to push image: unauthorized: authentication required

最后,它说要进行身份验证,即使早些时候我曾经以同样的方式推送并且图像总是用来加载。

Things I have used:
Eclipse: Maven--In the POM.xml i have changed the filename directory to ROOT
Pushed the project in the GitHub.
Getting error at the time of pushing it from github to Openshift online 3.

如果您知道我收到此错误的原因,请提供帮助。提前谢谢。

1 个答案:

答案 0 :(得分:0)

当推送图像时,在starter-us-east-1上的构建失败存在一些当前问题。请注意:

详细信息:

查看是否符合您的问题。