Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maven buildpack hanging on step-build-mvn-deploy #103

Open
felixk opened this issue Apr 7, 2020 · 0 comments
Open

Maven buildpack hanging on step-build-mvn-deploy #103

felixk opened this issue Apr 7, 2020 · 0 comments

Comments

@felixk
Copy link

felixk commented Apr 7, 2020

I created a new spring boot web project with the following pom:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>2.2.6.RELEASE</version>
		<relativePath/> <!-- lookup parent from repository -->
	</parent>
	<groupId>com.example</groupId>
	<artifactId>TestWebDeployment</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<name>TestWebDeployment</name>
	<description>Demo project for Spring Boot</description>

	<properties>
		<java.version>1.8</java.version>
	</properties>

	<dependencies>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-web</artifactId>
		</dependency>

		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-test</artifactId>
			<scope>test</scope>
			<exclusions>
				<exclusion>
					<groupId>org.junit.vintage</groupId>
					<artifactId>junit-vintage-engine</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
			</plugin>
		
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-deploy-plugin</artifactId>
        <version>2.8.2</version></plugin>
    
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>3.0.0-M1</version></plugin>
    </plugins>
	</build>

</project>

I proceeded to import it with the following command:

jx import

The pipeline starts to run and hangs here:

Showing logs for build example/TestWebDeployment/master #1 stage from-build-pack and container step-build-mvn-deploy
Picked up _JAVA_OPTIONS:
[INFO] Scanning for projects...
[INFO]
[INFO] --------------< com.example.TestWebDeployment >--------------
[INFO] Building TestWebDeployment 0.0.1
[INFO] --------------------------------[ jar ]---------------------------------

After about an hour or so i get the following:

Showing logs for build example/TestWebDeployment/master #1 stage from-build-pack and container step-build-skaffold-version
error: failed to obtain the logs for build example/TestWebDeployment/master #1 and stage from-build-pack: couldn't fetch logs into the logs channel: there was an error creating the logs stream for pod example-TestWebDeployment-8mht8-1-from-build-pack-f6gpv-pod-818e20: container "step-build-skaffold-version" in pod "example-TestWebDeployment-8mht8-1-from-build-pack-f6gpv-pod-818e20" is terminated
ERROR: there was an error creating the logs stream for pod example-TestWebDeployment-8mht8-1-from-build-pack-f6gpv-pod-818e20: container "step-build-skaffold-version" in pod "example-TestWebDeployment-8mht8-1-from-build-pack-f6gpv-pod-818e20" is terminated

I check kubectl get pods, and the pod is gone. No error status nothing, just gone from the list.

My versions:

NAME               VERSION
jx                 2.0.1261
jenkins x platform 2.0.2112
Kubernetes cluster v1.15.11+IKS
kubectl            v1.15.5
helm client        2.16.5
git                2.24.1 (Apple Git-126)
Operating System   Mac OS X 10.15.4 build 19E266

I am running my cluster on IBM's cloud.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant