Official Repository does not run github actions

For anyone currently having trouble with GitHub Actions in the official or in your own OpenEMS-GitHub repository:

I provided a new PR #3725 providing at least a workaround for the issue.

The reason is the maven repository, which is behind a Cloudflare server and the Cloudflare server is blocking requests (see PR comment).

Hope this helps someone.

I’m not going to mention, how long it took me to find this out today ;-(.


For the sake of completeness: Error looked like that:

..
/home/runner/work/xxx/io.openems.wrapper/tribuo.bnd:0: error: io.openems.wrapper.tribuo: Can not find JAR file 'tribuo-math-4.3.2.jar'
/home/runner/work/xxx/io.openems.wrapper/tribuo.bnd:0: error: io.openems.wrapper.tribuo: Can not find JAR file 'tribuo-regression-core-4.3.2.jar'
/home/runner/work/xxx/io.openems.wrapper/tribuo.bnd:0: error: io.openems.wrapper.tribuo: Can not find JAR file 'tribuo-regression-tree-4.3.2.jar'
/home/runner/work/xxx/io.openems.wrapper/tribuo.bnd:0: error: io.openems.wrapper.tribuo: Can not find JAR file 'tribuo-util-onnx-4.3.2.jar'
/home/runner/work/xxx/io.openems.wrapper/tribuo.bnd:0: error: io.openems.wrapper.tribuo: Can not find JAR file 'tribuo-util-tokenization-4.3.2.jar'

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':io.openems.wrapper:jar' (registered by plugin 'org.gradle.java').
> io.openems.wrapper has errors, 120 errors were reported

Thank you Christian,

me and our team also spent hours yesterday on that problem… I did not read about anybody else in the world having problems with Maven Central on OSGi/bndtools builds.

Thank you for providing a workaround. We came up with something similar eventually (self-hosted NGINX proxy…)

I will not merge immediately because I would prefer staying with the defaults; but might do so before the next release on 01st of June.

It seems the problem is caused by an invalid User-Agent header. bndtools is sending a different User-Agent than the original maven. Afterwards, the IP address from this request gets blocked.

Original maven is overriding the USER_AGENT for the maven-resolver, which leads to a User-Agent “Apache-Maven…”

Bndtools is not providing this key in the maven-resolver session, which leads to default “Aether”. I think we are not able to override this User-Agent without changing bndtools Sourcecode. We would need to add the Maven User-Agent here: bnd/biz.aQute.bnd.maven/src/aQute/bnd/maven/lib/resolve/RemotePostProcessor.java at master · bndtools/bnd · GitHub

Currently I see the following solutions:

  1. Use a reverse proxy to modify the User-Agent before sending the request to Maven
  2. Hope that Maven or Cloudflare is removing the User-Agent checks again
  3. Modify bndtools source and add the User-Agent
  4. Use a different maven central repository or host our own

@stefan.feilmeier I too face the similar issue in the git action workflows.
Then I wanted to check local docker build, but problem persist, then I checked from the openems develop branch, still same issue I guess:

When I do - docker build -t oems-edge -f tools/docker/edge/Dockerfile . (in the locals)
I see this:


87.17 error  : io.openems.wrapper.sdnotify: Unexpected ProjectBuilder init,  error A Jar can only accept a file or directory that exists: java.io.IOException: Could not fetch com.github.rzymek:opczip:1.2.0: null
87.17 /src/io.openems.wrapper/sdnotify.bnd:0: error: io.openems.wrapper.sdnotify: Can not find JAR file ‘SDNotify-1.6.jar’
87.17 error  : io.openems.wrapper.tribuo: Exception: java.lang.IllegalArgumentException: A Jar can only accept a file or directory that exists: java.io.IOException: Could not fetch com.github.rzymek:opczip:1.2.0: null
87.17   at aQute.bnd.osgi.Jar.(Jar.java:144)
87.17   at aQute.bnd.osgi.Jar.(Jar.java:240)
87.17   at aQute.bnd.build.ProjectBuilder.addClasspath(ProjectBuilder.java:256)
87.17   at aQute.bnd.build.ProjectBuilder.init(ProjectBuilder.java:208)
87.17   at aQute.bnd.osgi.Builder.build(Builder.java:131)
87.17   at aQute.bnd.osgi.Builder.builds(Builder.java:1501)
87.17   at aQute.bnd.build.ProjectBuilder.builds(ProjectBuilder.java:875)
87.17   at aQute.bnd.build.Project.buildLocal(Project.java:1905)
87.17   at aQute.bnd.build.Project.build(Project.java:1716)
87.17   at aQute.bnd.build.Project.build(Project.java:2496)
87.17   at aQute.bnd.gradle.BndPlugin$3.execute(BndPlugin.java:553)
87.17   at aQute.bnd.gradle.BndPlugin$3.execute(BndPlugin.java:548)
87.17   at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:850)
87.17   at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:823)
87.17   at org.gradle.api.internal.tasks.execution.TaskExecution$3.run(TaskExecution.java:259)
87.17   at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:30)
87.17   at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:27)
87.17   at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:67)
87.17   at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:60)
87.17   at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:167)
87.17   at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:60)
87.17   at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:48)
87.17   at org.gradle.api.internal.tasks.execution.TaskExecution.executeAction(TaskExecution.java:244)
87.17   at org.gradle.api.internal.tasks.execution.TaskExecution.executeActions(TaskExecution.java:227)
87.17   at org.gradle.api.internal.tasks.execution.TaskExecution.executeWithPreviousOutputFiles(TaskExecution.java:210)
87.17   at org.gradle.api.internal.tasks.execution.TaskExecution.execute(TaskExecution.java:176)
87.17   at org.gradle.internal.execution.steps.ExecuteStep.executeInternal(ExecuteStep.java:167)
87.17   at org.gradle.internal.execution.steps.ExecuteStep.access$000(ExecuteStep.java:47)
87.17   at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:137)
87.17   at org.gradle.internal.execution.steps.ExecuteStep$1.call(ExecuteStep.java:134)
87.17   at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:210)
87.17   at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:205)
87.17   at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:67)
87.17   at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:60)
87.17   at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:167)
87.17   at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:60)
87.17   at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:54)
87.17   at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:134)
87.17   at org.gradle.internal.execution.steps.ExecuteStep$Mutable.execute(ExecuteStep.java:80)
87.17   at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:42)
87.17   at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:75)
87.17   at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:55)
87.17   at org.gradle.internal.execution.steps.PreCreateOutputParentsStep.execute(PreCreateOutputParentsStep.java:51)
87.17   at org.gradle.internal.execution.steps.PreCreateOutputParentsStep.execute(PreCreateOutputParentsStep.java:29)
87.17   at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.executeMutable(RemovePreviousOutputsStep.java:67)
87.17   at org.gradle.internal.execution.steps.RemovePreviousOutputsStep.executeMutable(RemovePreviousOutputsStep.java:39)
87.17   at org.gradle.internal.execution.steps.MutableStep.execute(MutableStep.java:26)
87.17   at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:42)
87.17   at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:24)
87.17   at org.gradle.internal.execution.steps.CaptureOutputsAfterExecutionStep.execute(CaptureOutputsAfterExecutionStep.java:69)
87.17   at org.gradle.internal.execution.steps.CaptureOutputsAfterExecutionStep.execute(CaptureOutputsAfterExecutionStep.java:46)
87.17   at org.gradle.internal.execution.steps.ResolveInputChangesStep.executeMutable(ResolveInputChangesStep.java:39)
87.17   at org.gradle.internal.execution.steps.ResolveInputChangesStep.executeMutable(ResolveInputChangesStep.java:28)
87.17   at org.gradle.internal.execution.steps.MutableStep.execute(MutableStep.java:26)
87.17   at org.gradle.internal.execution.steps.BuildCacheStep.executeWithoutCache(BuildCacheStep.java:189)
87.17   at org.gradle.internal.execution.steps.BuildCacheStep.lambda$execute$1(BuildCacheStep.java:76)
87.17   at org.gradle.internal.Either$Right.fold(Either.java:176)
87.17   at org.gradle.internal.execution.caching.CachingState.fold(CachingState.java:62)
87.17   at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:74)
87.17   at org.gradle.internal.execution.steps.BuildCacheStep.execute(BuildCacheStep.java:49)
87.17   at org.gradle.internal.execution.steps.StoreExecutionStateStep.executeMutable(StoreExecutionStateStep.java:46)
87.17   at org.gradle.internal.execution.steps.StoreExecutionStateStep.executeMutable(StoreExecutionStateStep.java:35)
87.17   at org.gradle.internal.execution.steps.MutableStep.execute(MutableStep.java:26)
87.17   at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:75)
87.17   at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$2(SkipUpToDateStep.java:53)
87.17   at java.base/java.util.Optional.orElseGet(Optional.java:364)
87.17   at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:53)
87.17   at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:35)
87.17   at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:37)
87.17   at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:27)
87.17   at org.gradle.internal.execution.steps.ResolveMutableCachingStateStep.executeDelegate(ResolveMutableCachingStateStep.java:70)
87.17   at org.gradle.internal.execution.steps.ResolveMutableCachingStateStep.executeDelegate(ResolveMutableCachingStateStep.java:32)
87.17   at org.gradle.internal.execution.steps.AbstractResolveCachingStateStep.execute(AbstractResolveCachingStateStep.java:69)
87.17   at org.gradle.internal.execution.steps.AbstractResolveCachingStateStep.execute(AbstractResolveCachingStateStep.java:37)
87.17   at org.gradle.internal.execution.steps.ResolveChangesStep.executeMutable(ResolveChangesStep.java:63)
87.17   at org.gradle.internal.execution.steps.ResolveChangesStep.executeMutable(ResolveChangesStep.java:34)
87.17   at org.gradle.internal.execution.steps.MutableStep.execute(MutableStep.java:26)
87.17   at org.gradle.internal.execution.steps.ValidateStep$Mutable.executeDelegate(ValidateStep.java:79)
87.17   at org.gradle.internal.execution.steps.ValidateStep$Mutable.executeDelegate(ValidateStep.java:65)
87.17   at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:99)
87.17   at org.gradle.internal.execution.steps.ValidateStep$Mutable.execute(ValidateStep.java:65)
87.17   at org.gradle.internal.execution.steps.CaptureMutableStateBeforeExecutionStep.executeMutable(CaptureMutableStateBeforeExecutionStep.java:86)
87.17   at org.gradle.internal.execution.steps.CaptureMutableStateBeforeExecutionStep.execute(CaptureMutableStateBeforeExecutionStep.java:65)
87.17   at org.gradle.internal.execution.steps.CaptureMutableStateBeforeExecutionStep.execute(CaptureMutableStateBeforeExecutionStep.java:45)
87.17   at org.gradle.internal.execution.steps.SkipEmptyMutableWorkStep.executeWithNonEmptySources(SkipEmptyMutableWorkStep.java:210)
87.17   at org.gradle.internal.execution.steps.SkipEmptyMutableWorkStep.executeMutable(SkipEmptyMutableWorkStep.java:90)
87.17   at org.gradle.internal.execution.steps.SkipEmptyMutableWorkStep.executeMutable(SkipEmptyMutableWorkStep.java:53)
87.17   at org.gradle.internal.execution.steps.MutableStep.execute(MutableStep.java:26)
87.17   at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:38)
87.17   at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.executeMutable(LoadPreviousExecutionStateStep.java:36)
87.17   at org.gradle.internal.execution.steps.LoadPreviousExecutionStateStep.executeMutable(LoadPreviousExecutionStateStep.java:23)
87.17   at org.gradle.internal.execution.steps.MutableStep.execute(MutableStep.java:26)
87.17   at org.gradle.internal.execution.steps.HandleStaleOutputsStep.executeMutable(HandleStaleOutputsStep.java:77)
87.17   at org.gradle.internal.execution.steps.HandleStaleOutputsStep.executeMutable(HandleStaleOutputsStep.java:43)
87.17   at org.gradle.internal.execution.steps.MutableStep.execute(MutableStep.java:26)
87.17   at org.gradle.internal.execution.steps.AssignMutableWorkspaceStep.lambda$executeMutable$0(AssignMutableWorkspaceStep.java:34)
87.17   at org.gradle.api.internal.tasks.execution.TaskExecution$4.withWorkspace(TaskExecution.java:305)
87.17   at org.gradle.internal.execution.steps.AssignMutableWorkspaceStep.executeMutable(AssignMutableWorkspaceStep.java:30)
87.17   at org.gradle.internal.execution.steps.AssignMutableWorkspaceStep.executeMutable(AssignMutableWorkspaceStep.java:21)
87.17   at org.gradle.internal.execution.steps.MutableStep.execute(MutableStep.java:26)
87.17   at org.gradle.internal.execution.steps.ChoosePipelineStep.execute(ChoosePipelineStep.java:40)
87.17   at org.gradle.internal.execution.steps.ChoosePipelineStep.execute(ChoosePipelineStep.java:23)
87.17   at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.lambda$execute$2(ExecuteWorkBuildOperationFiringStep.java:67)
87.17   at java.base/java.util.Optional.orElseGet(Optional.java:364)
87.17   at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.execute(ExecuteWorkBuildOperationFiringStep.java:67)
87.17   at org.gradle.internal.execution.steps.ExecuteWorkBuildOperationFiringStep.execute(ExecuteWorkBuildOperationFiringStep.java:39)
87.17   at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:46)
87.17   at org.gradle.internal.execution.steps.IdentityCacheStep.execute(IdentityCacheStep.java:34)
87.17   at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:56)
87.17   at org.gradle.internal.execution.steps.IdentifyStep.execute(IdentifyStep.java:38)
87.17   at org.gradle.internal.execution.impl.DefaultExecutionEngine$1.execute(DefaultExecutionEngine.java:68)
87.17   at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:132)
87.17   at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:121)
87.17   at org.gradle.api.internal.tasks.execution.ProblemsTaskPathTrackingTaskExecuter.execute(ProblemsTaskPathTrackingTaskExecuter.java:41)
87.17   at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:51)
87.17   at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
87.17   at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
87.17   at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:74)
87.17   at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
87.17   at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
87.17   at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
87.17   at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
87.17   at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:210)
87.17   at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:205)
87.17   at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:67)
87.17   at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:60)
87.17   at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:167)
87.17   at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:60)
87.17   at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:54)
87.17   at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
87.17   at org.gradle.execution.plan.DefaultNodeExecutor.executeLocalTaskNode(DefaultNodeExecutor.java:55)
87.17   at org.gradle.execution.plan.DefaultNodeExecutor.execute(DefaultNodeExecutor.java:34)
87.17   at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:355)
87.17   at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:343)
87.17   at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.lambda$execute$0(DefaultTaskExecutionGraph.java:339)
87.17   at org.gradle.internal.operations.CurrentBuildOperationRef.with(CurrentBuildOperationRef.java:84)
87.17   at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:339)
87.17   at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:328)
87.17   at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:459)
87.17   at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:376)
87.17   at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
87.17   at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:47)
87.17   at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
87.17   at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
87.17   at java.base/java.lang.Thread.run(Thread.java:1583)
87.17
87.17 error  : io.openems.wrapper.tribuo: Unexpected ProjectBuilder init,  error A Jar can only accept a file or directory that exists: java.io.IOException: Could not fetch com.github.rzymek:opczip:1.2.0: null
87.17 /src/io.openems.wrapper/tribuo.bnd:0: error: io.openems.wrapper.tribuo: Can not find JAR file ‘tribuo-common-tree-4.3.2.jar’
87.17 /src/io.openems.wrapper/tribuo.bnd:0: error: io.openems.wrapper.tribuo: Can not find JAR file ‘tribuo-core-4.3.2.jar’
87.17 /src/io.openems.wrapper/tribuo.bnd:0: error: io.openems.wrapper.tribuo: Can not find JAR file ‘tribuo-data-4.3.2.jar’
87.17 /src/io.openems.wrapper/tribuo.bnd:0: error: io.openems.wrapper.tribuo: Can not find JAR file ‘tribuo-math-4.3.2.jar’
87.17 /src/io.openems.wrapper/tribuo.bnd:0: error: io.openems.wrapper.tribuo: Can not find JAR file ‘tribuo-regression-core-4.3.2.jar’
87.17 /src/io.openems.wrapper/tribuo.bnd:0: error: io.openems.wrapper.tribuo: Can not find JAR file ‘tribuo-regression-tree-4.3.2.jar’
87.17 /src/io.openems.wrapper/tribuo.bnd:0: error: io.openems.wrapper.tribuo: Can not find JAR file ‘tribuo-util-onnx-4.3.2.jar’
87.17 /src/io.openems.wrapper/tribuo.bnd:0: error: io.openems.wrapper.tribuo: Can not find JAR file ‘tribuo-util-tokenization-4.3.2.jar’
87.17
87.17 > Task :io.openems.edge.controller.api:processResources
87.17 > Task :io.openems.edge.battery.fenecon.commercial:processResources
87.17 > Task :io.openems.edge.bridge.modbus:processResources
87.17
87.21 19 actionable tasks: 19 executedFAILURE: Build failed with an exception.
87.21
87.21 * What went wrong:
87.21 Execution failed for task ‘:io.openems.wrapper:jar’ (registered by plugin ‘org.gradle.java’).
87.21 > io.openems.wrapper has errors, 132 errors were reported
87.21
87.21 * Try:
87.21 > Run with --stacktrace option to get the stack trace.
87.21 > Run with --info or --debug option to get more log output.
87.21 > Run with --scan to get full insights from a Build Scan (powered by Develocity).
87.21 > Get more help at https://help.gradle.org.
87.21
87.21 BUILD FAILED in 1m 23s
87.21

Dockerfile:15

14 |     ENV OEMS_EDGE_OUTPUT=/opt/openems-edge.jar
15 | >>> RUN --mount=type=bind,target=.,readwrite 
16 | >>>     --mount=type=cache,target=/root/.gradle 
17 | >>>     ./gradlew --no-build-cache buildEdge

18

ERROR: failed to solve: process “/bin/sh -c ./gradlew --no-build-cache buildEdge” did not complete successfully: exit code: 1

Then In the git actions:

20 84.86 	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:339)


#20 84.86 	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:328)


#20 84.86 	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:459)


#20 84.86 	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:376)


#20 84.86 	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)


#20 84.86 	at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:47)


#20 84.86 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)


#20 84.86 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)


#20 84.86 	at java.base/java.lang.Thread.run(Thread.java:1583)


#20 84.86 


#20 84.86 error  : io.openems.wrapper.tribuo: Unexpected ProjectBuilder init,  error A Jar can only accept a file or directory that exists: java.io.IOException: Could not fetch com.github.rzymek:opczip:1.2.0: null


#20 84.86 /src/io.openems.wrapper/tribuo.bnd:0: error: io.openems.wrapper.tribuo: Can not find JAR file 'tribuo-common-tree-4.3.2.jar'


#20 84.86 /src/io.openems.wrapper/tribuo.bnd:0: error: io.openems.wrapper.tribuo: Can not find JAR file 'tribuo-core-4.3.2.jar'


#20 84.86 /src/io.openems.wrapper/tribuo.bnd:0: error: io.openems.wrapper.tribuo: Can not find JAR file 'tribuo-data-4.3.2.jar'


#20 84.86 /src/io.openems.wrapper/tribuo.bnd:0: error: io.openems.wrapper.tribuo: Can not find JAR file 'tribuo-math-4.3.2.jar'


#20 84.86 /src/io.openems.wrapper/tribuo.bnd:0: error: io.openems.wrapper.tribuo: Can not find JAR file 'tribuo-regression-core-4.3.2.jar'


#20 84.86 /src/io.openems.wrapper/tribuo.bnd:0: error: io.openems.wrapper.tribuo: Can not find JAR file 'tribuo-regression-tree-4.3.2.jar'


#20 84.86 /src/io.openems.wrapper/tribuo.bnd:0: error: io.openems.wrapper.tribuo: Can not find JAR file 'tribuo-util-onnx-4.3.2.jar'


#20 84.86 /src/io.openems.wrapper/tribuo.bnd:0: error: io.openems.wrapper.tribuo: Can not find JAR file 'tribuo-util-tokenization-4.3.2.jar'


#20 84.86 


#20 84.86 > Task :io.openems.edge.ess.voltfang:processResources


#20 84.88 > Task :io.openems.edge.core:processResources


#20 84.88 > Task :io.openems.edge.ess.scu:processResources


#20 84.97 


#20 84.99 106 actionable tasks: 106 executed


#20 84.99 FAILURE: Build failed with an exception.


#20 84.99 


#20 84.99 * What went wrong:


#20 84.99 Execution failed for task ':io.openems.wrapper:jar'.


#20 84.99 > io.openems.wrapper has errors, 136 errors were reported


#20 84.99 


#20 84.99 * Try:


#20 84.99 > Run with --stacktrace option to get the stack trace.


#20 84.99 > Run with --info or --debug option to get more log output.


#20 84.99 > Run with --scan to get full insights from a Build Scan (powered by Develocity).


#20 84.99 > Get more help at https://help.gradle.org.


#20 84.99 


#20 84.99 BUILD FAILED in 1m 24s


#20 ERROR: process "/bin/sh -c ./gradlew --no-build-cache buildEdge" did not complete successfully: exit code: 1


------


 > [linux/amd64 build_edge 6/6] RUN --mount=type=bind,target=.,readwrite     --mount=type=cache,target=/root/.gradle     ./gradlew --no-build-cache buildEdge:


84.99 Execution failed for task ':io.openems.wrapper:jar'.


84.99 > io.openems.wrapper has errors, 136 errors were reported


84.99 


84.99 * Try:


84.99 > Run with --stacktrace option to get the stack trace.


84.99 > Run with --info or --debug option to get more log output.


84.99 > Run with --scan to get full insights from a Build Scan (powered by Develocity).


84.99 > Get more help at https://help.gradle.org.


84.99 


84.99 BUILD FAILED in 1m 24s


------


WARNING: No output specified with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load


Dockerfile:15


--------------------


  14 |     ENV OEMS_EDGE_OUTPUT=/opt/openems-edge.jar


  15 | >>> RUN --mount=type=bind,target=.,readwrite \


  16 | >>>     --mount=type=cache,target=/root/.gradle \


  17 | >>>     ./gradlew --no-build-cache buildEdge


  18 |     


--------------------


ERROR: failed to build: failed to solve: process "/bin/sh -c ./gradlew --no-build-cache buildEdge" did not complete successfully: exit code: 1


Error: buildx failed with: ERROR: failed to build: failed to solve: process "/bin/sh -c ./gradlew --no-build-cache buildEdge" did not complete successfully: exit code: 1

It was good until yesterday.

I created a Issue at bndtools: Maven Central is blocking our IP address when we use maven via bndtools · Issue #7228 · bndtools/bnd · GitHub

Hi,

Any solution to this ?
Atleast from the local build I wish to build it successfully,
Should I take the cnf folder from the recent build ? How to fix this both locally and on the git actions ?

It seems builds are working again now - see Workflow runs · OpenEMS/openems · GitHub

@stefan.feilmeier
Thank you so much for a quick response.

Yes I saw,
I made recent change, I took the cnf/build.bnd from the recent build.
And the build actually failed with these:

#20 381.4 > Task :io.openems.wrapper:jar


#20 381.4 /src/io.openems.wrapper/auth0-auth0.bnd:0: warning: io.openems.wrapper.auth0-auth0: Export com.auth0.client.mgmt,  has 1,  private references [com.auth0.client.mgmt.groups]


#20 381.4 /src/io.openems.wrapper/auth0-auth0.bnd:0: warning: io.openems.wrapper.auth0-auth0: Export com.auth0.client.mgmt.actions,  has 1,  private references [com.auth0.client.mgmt.actions.modules]


#20 381.5 


#20 381.5 > Task :io.openems.wrapper:assemble


#20 382.8 


#20 382.8 > Task :io.openems.common:compileJava FAILED


#20 382.8 /src/io.openems.common/bnd.bnd:0: error: com.google.guava;version=33.6.0.jre Not found in [bnd-cache [/src/cnf/cache/7.2.1/bnd-cache           r/w=false], BndPomRepository [name=Maven Central, localRepo=/root/.m2/repository, location=cnf/cache/pom-Maven Central.xml], Templates, Release]


#20 382.8 /src/io.openems.common/bnd.bnd:0: error: com.google.gson;version=2.14.0 Not found in [bnd-cache [/src/cnf/cache/7.2.1/bnd-cache           r/w=false], BndPomRepository [name=Maven Central, localRepo=/root/.m2/repository, location=cnf/cache/pom-Maven Central.xml], Templates, Release]


#20 382.8 /src/io.openems.common/bnd.bnd:0: error: junit-jupiter-engine;version=6.0.3 Not found in [bnd-cache [/src/cnf/cache/7.2.1/bnd-cache           r/w=false], BndPomRepository [name=Maven Central, localRepo=/root/.m2/repository, location=cnf/cache/pom-Maven Central.xml], Templates, Release]


#20 382.8 /src/io.openems.common/bnd.bnd:0: error: junit-jupiter-params;version=6.0.3 Not found in [bnd-cache [/src/cnf/cache/7.2.1/bnd-cache           r/w=false], BndPomRepository [name=Maven Central, localRepo=/root/.m2/repository, location=cnf/cache/pom-Maven Central.xml], Templates, Release]


#20 382.8 /src/io.openems.common/bnd.bnd:0: error: junit-platform-engine;version=6.0.3 Not found in [bnd-cache [/src/cnf/cache/7.2.1/bnd-cache           r/w=false], BndPomRepository [name=Maven Central, localRepo=/root/.m2/repository, location=cnf/cache/pom-Maven Central.xml], Templates, Release]


#20 382.8 /src/io.openems.common/bnd.bnd:0: error: junit-platform-launcher;version=6.0.3 Not found in [bnd-cache [/src/cnf/cache/7.2.1/bnd-cache           r/w=false], BndPomRepository [name=Maven Central, localRepo=/root/.m2/repository, location=cnf/cache/pom-Maven Central.xml], Templates, Release]


#20 382.8 /src/io.openems.common/bnd.bnd:0: error: junit-vintage-engine;version=6.0.3 Not found in [bnd-cache [/src/cnf/cache/7.2.1/bnd-cache           r/w=false], BndPomRepository [name=Maven Central, localRepo=/root/.m2/repository, location=cnf/cache/pom-Maven Central.xml], Templates, Release]


#20 382.8 /src/io.openems.common/bnd.bnd:0: error: org.mockito.mockito-core;version=5.23.0 Not found in [bnd-cache [/src/cnf/cache/7.2.1/bnd-cache           r/w=false], BndPomRepository [name=Maven Central, localRepo=/root/.m2/repository, location=cnf/cache/pom-Maven Central.xml], Templates, Release]


#20 382.8 /src/io.openems.common/bnd.bnd:0: error: org.mockito.junit-jupiter;version=5.23.0 Not found in [bnd-cache [/src/cnf/cache/7.2.1/bnd-cache           r/w=false], BndPomRepository [name=Maven Central, localRepo=/root/.m2/repository, location=cnf/cache/pom-Maven Central.xml], Templates, Release]


#20 382.8 /src/io.openems.common/bnd.bnd:0: error: net.bytebuddy.byte-buddy;version=1.18.8 Not found in [bnd-cache [/src/cnf/cache/7.2.1/bnd-cache           r/w=false], BndPomRepository [name=Maven Central, localRepo=/root/.m2/repository, location=cnf/cache/pom-Maven Central.xml], Templates, Release]


#20 382.8 /src/io.openems.common/bnd.bnd:0: error: net.bytebuddy.byte-buddy-agent;version=1.18.8 Not found in [bnd-cache [/src/cnf/cache/7.2.1/bnd-cache           r/w=false], BndPomRepository [name=Maven Central, localRepo=/root/.m2/repository, location=cnf/cache/pom-Maven Central.xml], Templates, Release]


#20 382.8 /src/io.openems.common/bnd.bnd:0: error: org.objenesis;version=3.5 Not found in [bnd-cache [/src/cnf/cache/7.2.1/bnd-cache           r/w=false], BndPomRepository [name=Maven Central, localRepo=/root/.m2/repository, location=cnf/cache/pom-Maven Central.xml], Templates, Release]


#20 382.9 


#20 382.9 FAILURE: Build failed with an exception.


#20 382.9 


#20 382.9 * What went wrong:


#20 382.9 Execution failed for task ':io.openems.common:compileJava'.


#20 382.9 > io.openems.common has errors, 12 errors were reported


#20 382.9 


#20 382.9 * Try:


#20 382.9 > Run with --stacktrace option to get the stack trace.


#20 382.9 > Run with --info or --debug option to get more log output.


#20 382.9 > Run with --scan to get full insights from a Build Scan (powered by Develocity).


#20 382.9 > Get more help at https://help.gradle.org.


#20 382.9 207 actionable tasks: 207 executed


#20 382.9 


#20 382.9 BUILD FAILED in 6m 22s


#20 ERROR: process "/bin/sh -c ./gradlew --no-build-cache buildEdge" did not complete successfully: exit code: 1


------


 > [linux/amd64 build_edge 6/6] RUN --mount=type=bind,target=.,readwrite     --mount=type=cache,target=/root/.gradle     ./gradlew --no-build-cache buildEdge:


382.9 > io.openems.common has errors, 12 errors were reported


382.9 


382.9 * Try:


382.9 > Run with --stacktrace option to get the stack trace.


382.9 > Run with --info or --debug option to get more log output.


382.9 > Run with --scan to get full insights from a Build Scan (powered by Develocity).


382.9 > Get more help at https://help.gradle.org.


382.9 207 actionable tasks: 207 executed


382.9 


382.9 BUILD FAILED in 6m 22s


------


WARNING: No output specified with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load


Dockerfile:15


--------------------


  14 |     ENV OEMS_EDGE_OUTPUT=/opt/openems-edge.jar


  15 | >>> RUN --mount=type=bind,target=.,readwrite \


  16 | >>>     --mount=type=cache,target=/root/.gradle \


  17 | >>>     ./gradlew --no-build-cache buildEdge


  18 |     


--------------------


ERROR: failed to build: failed to solve: process "/bin/sh -c ./gradlew --no-build-cache buildEdge" did not complete successfully: exit code: 1


Error: buildx failed with: ERROR: failed to build: failed to solve: process "/bin/sh -c ./gradlew --no-build-cache buildEdge" did not complete successfully: exit code: 1

How to get this resolved from my locals and the build ? Please could you guide me.