jbom
jbom copied to clipboard
Working with containers
I having a karaf running inside a rootless container with my user. How do i get jbom working?
i get:
nable to attach with regular provider: java.lang.IllegalStateException: Error during attachment using: net.bytebuddy.agent.ByteBuddyAgent$AttachmentProvider$Compound@3b938003 at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:639) at net.bytebuddy.agent.ByteBuddyAgent.attach(ByteBuddyAgent.java:299) at com.contrastsecurity.Jbom.attachWithFallback(Jbom.java:443) at com.contrastsecurity.Jbom.attach(Jbom.java:429) at com.contrastsecurity.Jbom.doLocalProcess(Jbom.java:164) at com.contrastsecurity.Jbom.run(Jbom.java:117) at picocli.CommandLine.executeUserObject(CommandLine.java:1939) at picocli.CommandLine.access$1300(CommandLine.java:145) at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358) at picocli.CommandLine$RunLast.handle(CommandLine.java:2352) at picocli.CommandLine$RunLast.handle(CommandLine.java:2314) at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179) at picocli.CommandLine$RunLast.execute(CommandLine.java:2316) at picocli.CommandLine.execute(CommandLine.java:2078) at com.contrastsecurity.Jbom.main(Jbom.java:73) Caused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at net.bytebuddy.agent.Attacher.install(Attacher.java:102) at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:634) ... 14 more Caused by: java.io.IOException: Permission denied at java.base/java.io.UnixFileSystem.createFileExclusively(Native Method) at java.base/java.io.File.createNewFile(File.java:1035) at jdk.attach/sun.tools.attach.VirtualMachineImpl.createAttachFile(VirtualMachineImpl.java:298) at jdk.attach/sun.tools.attach.VirtualMachineImpl.<init>(VirtualMachineImpl.java:76) at jdk.attach/sun.tools.attach.AttachProviderImpl.attachVirtualMachine(AttachProviderImpl.java:58) at jdk.attach/com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:207) ... 20 more Unable to attach with fallback provider: java.lang.IllegalStateException: No compatible attachment provider is available at net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:628) at net.bytebuddy.agent.ByteBuddyAgent.attach(ByteBuddyAgent.java:299) at com.contrastsecurity.Jbom.attachWithFallback(Jbom.java:449) at com.contrastsecurity.Jbom.attach(Jbom.java:429) at com.contrastsecurity.Jbom.doLocalProcess(Jbom.java:164) at com.contrastsecurity.Jbom.run(Jbom.java:117) at picocli.CommandLine.executeUserObject(CommandLine.java:1939) at picocli.CommandLine.access$1300(CommandLine.java:145) at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358) at picocli.CommandLine$RunLast.handle(CommandLine.java:2352) at picocli.CommandLine$RunLast.handle(CommandLine.java:2314) at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179) at picocli.CommandLine$RunLast.execute(CommandLine.java:2316) at picocli.CommandLine.execute(CommandLine.java:2078) at com.contrastsecurity.Jbom.main(Jbom.java:73) 2022-06-14 21:47:26:686 TRACE --- [jbom] Saving SBOM to /home/mleinweber/Downloads/jbom/jbom/jbom-13503.json 2022-06-14 21:47:26:686 TRACE --- [jbom] 2022-06-14 21:47:26:686 TRACE --- [jbom] jbom complete