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

Exec format error #151

Open
piotrblasiak opened this issue Oct 21, 2024 · 1 comment
Open

Exec format error #151

piotrblasiak opened this issue Oct 21, 2024 · 1 comment

Comments

@piotrblasiak
Copy link

I am building a docker image using the spring boot maven plugin with this config:

<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
				<configuration>
					<image>
						<name>XXXX.amazonaws.com/${project.artifactId}:${project.version}</name>
						<buildpacks>
							<buildpack>paketo-buildpacks/java</buildpack>
							<buildpack>gcr.io/paketo-buildpacks/opentelemetry</buildpack>
						</buildpacks>
						<env>
							<BP_JVM_VERSION>${java.version}</BP_JVM_VERSION>
							<BP_ARCH>amd64</BP_ARCH>
							<BP_OPENTELEMETRY_ENABLED>true</BP_OPENTELEMETRY_ENABLED>
						</env>
					</image>
				</configuration>
			</plugin>

But when deploying it in kubernetes (m7a instances) I get:

Calculated JVM Memory Configuration: -XX:MaxDirectMemorySize=10M -Xmx2526992K -XX:MaxMetaspaceSize=378975K -XX:ReservedCodeCacheSize=240M -Xss1M (Total Memory: 3417968K, Thread Count: 250, Loaded Class Count: 64495, Headroom: 0%)
Enabling Java Native Memory Tracking
Adding 146 container CA certificates to JVM truststore
Spring Cloud Bindings Enabled
ERROR: failed to launch: exec.d: failed to execute exec.d file at path '/layers/paketo-buildpacks_opentelemetry/helper/exec.d/properties': fork/exec /layers/paketo-buildpacks_opentelemetry/helper/exec.d/properties: exec format error
@dmikusa
Copy link
Contributor

dmikusa commented Oct 21, 2024

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

2 participants