question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Image building fails in creator on secure Linux

See original GitHub issue

Set up a simple project following the documentation at https://docs.spring.io/spring-native/docs/current/reference/htmlsingle/#getting-started

Run ./gradlew bootBuildImage and observe this failure:

$ ./gradlew bootBuildImage

> Task :generateAot
Failed verification check: this type was requested to be added to configuration but is not resolvable: org.springframework.data.jpa.repository.support.EntityManagerBeanDefinitionRegistrarPostProcessor it will be skipped
Failed verification check: this type was requested to be added to configuration but is not resolvable: org.springframework.security.config.annotation.web.configuration.AutowiredWebSecurityConfigurersIgnoreParents it will be skipped
Failed verification check: this type was requested to be added to configuration but is not resolvable: org.springframework.messaging.handler.annotation.MessageMapping it will be skipped
Failed verification check: this type was requested to be added to configuration but is not resolvable: org.springframework.transaction.annotation.Transactional it will be skipped
Failed verification check: this type was requested to be added to configuration but is not resolvable: javax.transaction.Transactional it will be skipped
Failed verification check: this type was requested to be added to configuration but is not resolvable: org.springframework.transaction.annotation.Propagation it will be skipped
Failed verification check: this type was requested to be added to configuration but is not resolvable: org.springframework.web.bind.annotation.ExceptionHandler it will be skipped
Failed verification check: this type was requested to be added to configuration but is not resolvable: org.springframework.web.bind.annotation.RequestMethod[] it will be skipped
Failed verification check: this type was requested to be added to configuration but is not resolvable: org.springframework.web.bind.annotation.ModelAttribute it will be skipped
Failed verification check: this type was requested to be added to configuration but is not resolvable: org.springframework.web.bind.annotation.InitBinder it will be skipped
Failed verification check: this type was requested to be added to configuration but is not resolvable: org.springframework.web.bind.annotation.RequestMethod it will be skipped
Failed verification check: this type was requested to be added to configuration but is not resolvable: org.springframework.web.bind.annotation.ResponseBody it will be skipped
Failed verification check: this type was requested to be added to configuration but is not resolvable: org.springframework.web.bind.annotation.RequestBody it will be skipped
Failed verification check: this type was requested to be added to configuration but is not resolvable: org.springframework.web.bind.annotation.RequestHeader it will be skipped
Failed verification check: this type was requested to be added to configuration but is not resolvable: org.springframework.web.bind.annotation.RestController it will be skipped
Failed verification check: this type was requested to be added to configuration but is not resolvable: org.springframework.web.bind.annotation.RequestParam it will be skipped
Failed verification check: this type was requested to be added to configuration but is not resolvable: org.springframework.web.bind.annotation.PathVariable it will be skipped
Failed verification check: this type was requested to be added to configuration but is not resolvable: org.springframework.web.bind.annotation.Mapping it will be skipped
Failed verification check: this type was requested to be added to configuration but is not resolvable: org.springframework.web.bind.annotation.RequestMapping it will be skipped
Failed verification check: this type was requested to be added to configuration but is not resolvable: org.springframework.web.bind.annotation.GetMapping it will be skipped
Failed verification check: this type was requested to be added to configuration but is not resolvable: org.springframework.web.bind.annotation.PostMapping it will be skipped
Failed verification check: this type was requested to be added to configuration but is not resolvable: org.springframework.web.bind.annotation.PutMapping it will be skipped
Failed verification check: this type was requested to be added to configuration but is not resolvable: org.springframework.web.bind.annotation.DeleteMapping it will be skipped
Failed verification check: this type was requested to be added to configuration but is not resolvable: org.springframework.web.bind.annotation.PatchMapping it will be skipped
Failed verification check: this type was requested to be added to configuration but is not resolvable: org.springframework.web.bind.annotation.ResponseStatus it will be skipped
Failed verification check: this type was requested to be added to configuration but is not resolvable: org.springframework.http.HttpStatus it will be skipped
Failed verification check: this type was requested to be added to configuration but is not resolvable: org.springframework.web.reactive.socket.server.upgrade.UndertowRequestUpgradeStrategy it will be skipped
Failed verification check: this type was requested to be added to configuration but is not resolvable: org.springframework.web.reactive.socket.server.upgrade.JettyRequestUpgradeStrategy it will be skipped

> Task :compileAotJava
Note: /home/candrews/projects/demo/build/generated/sources/aot/org/springframework/aot/StaticSpringFactories.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :bootBuildImage
Building image 'docker.io/library/demo:0.0.1-SNAPSHOT'

 > Pulling builder image 'docker.io/paketobuildpacks/builder:base' ..................................................
 > Pulled builder image 'paketobuildpacks/builder@sha256:1ac94f392f25db5d2d52a6c0f1ede01cb63f1bd92908e78afb720c1e2cd32baa'
 > Pulling run image 'docker.io/paketobuildpacks/run:base-cnb' ..................................................
 > Pulled run image 'paketobuildpacks/run@sha256:0bf521429c5fac06616ef542da735f9e34c4997cc5d5987242eb7199b04ac923'
 > Executing lifecycle version v0.10.2
 > Using build cache volume 'pack-cache-96f12fa81ff5.build'

 > Running creator
    [creator]     ERROR: failed to initialize docker client: failed to connect to docker socket: dial unix /var/run/docker.sock: connect: permission denied

> Task :bootBuildImage FAILED

FAILURE: Build failed with an exception.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
snicollcommented, Apr 6, 2021

Good catch, once again, @izeye. Thanks!

1reaction
izeyecommented, Apr 6, 2021

Looking at the last comment from @scottfrederick and the label, this seems to be meant to be closed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot EC2 Image Builder - AWS Documentation
If an Image Builder pipeline build fails, Image Builder returns an error message that describes the failure. Image Builder also returns a Systems...
Read more >
Post Build OpenSSL Error in Secure Image Project in PSoC Creator ...
Question: Secure Image project post-build fails in PSoC ® Creator™ with OpenSSL error. How can I resolve this? Answer: When the Secure Image...
Read more >
Docker hub image fails but building its Dockerfile works. What ...
The image you are pulling has only been built for a single architecture: amd64. The resulting binaries and libraries are not usable on...
Read more >
Image-building best practices - Docker Documentation
When you have built an image, it is a good practice to scan it for security vulnerabilities using the docker scan command. Docker...
Read more >
Top 20 Dockerfile best practices for security - Sysdig
Building on top of untrusted or unmaintained images will inherit all of the problems and vulnerabilities from that image into your containers.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found