Kroki Macro doesn't work

Hi,

I’ve seen the comment from the user in Kroki topic, who inform there about the error. I installed the extension and also received same error in the page after inserting the example code
Invalid macro: kroki. Cause: [\\.\pipe\docker_engine]. Click on this message for details.
In the extension manager during installation there’s one failure.
Failed to install optional dependency [org.xwiki.rendering:xwiki-rendering-syntax-event-[14.4.3-SNAPSHOT]] with error: ExtensionNotFoundException: Could not find extension dependency [org.xwiki.rendering:xwiki-rendering-syntax-event-[14.4.3-SNAPSHOT]]

The full log

org.xwiki.rendering.macro.MacroLookupException: Macro [kroki/xwiki/2.1] failed to be instantiated.

 at org.xwiki.rendering.internal.macro.DefaultMacroManager.getMacro(DefaultMacroManager.java:137)

 at org.xwiki.rendering.internal.transformation.macro.MacroTransformation$PriorityMacroBlockMatcher.match(MacroTransformation.java:150)

 at org.xwiki.rendering.block.match.BlockNavigator.getFirstBlock(BlockNavigator.java:253)

 at org.xwiki.rendering.block.match.BlockNavigator.getFirstBlock(BlockNavigator.java:258)

 at org.xwiki.rendering.block.match.BlockNavigator.getFirstBlock(BlockNavigator.java:258)

 at org.xwiki.rendering.block.AbstractBlock.getFirstBlock(AbstractBlock.java:585)

 at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:237)

 at org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)

 at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:88)

 at org.xwiki.display.internal.DocumentContentAsyncExecutor.executeInCurrentExecutionContext(DocumentContentAsyncExecutor.java:395)

 at org.xwiki.display.internal.DocumentContentAsyncExecutor.execute(DocumentContentAsyncExecutor.java:268)

 at org.xwiki.display.internal.DocumentContentAsyncRenderer.execute(DocumentContentAsyncRenderer.java:107)

 at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.render(AbstractBlockAsyncRenderer.java:157)

 at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.render(AbstractBlockAsyncRenderer.java:54)

 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:273)

 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)

 at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.execute(DefaultBlockAsyncRendererExecutor.java:125)

 at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:67)

 at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:43)

 at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)

 at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:39)

 at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:123)

 at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:52)

 at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:68)

 at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:42)

 at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:1350)

 at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1487)

 at com.xpn.xwiki.doc.XWikiDocument.displayDocument(XWikiDocument.java:1436)

 at com.xpn.xwiki.doc.XWikiDocument.displayDocument(XWikiDocument.java:1405)

 at com.xpn.xwiki.api.Document.displayDocument(Document.java:798)

 at jdk.internal.reflect.GeneratedMethodAccessor533.invoke(Unknown Source)

 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

 at java.base/java.lang.reflect.Method.invoke(Method.java:566)

 at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)

 at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)

 at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)

 at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)

 at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:704)

 at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:75)

 at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:242)

 at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)

 at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)

 at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:190)

 at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)

 at org.xwiki.velocity.internal.directive.TryCatchDirective.render(TryCatchDirective.java:86)

 at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304)

 at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)

 at org.apache.velocity.Template.merge(Template.java:358)

 at org.apache.velocity.Template.merge(Template.java:262)

 at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)

 at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)

 at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)

 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:222)

 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:177)

 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:138)

 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:54)

 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:267)

 at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)

 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:267)

 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)

 at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)

 at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:773)

 at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:746)

 at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:726)

 at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:712)

 at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:91)

 at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:85)

 at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2536)

 at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:2514)

 at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:997)

 at jdk.internal.reflect.GeneratedMethodAccessor177.invoke(Unknown Source)

 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

 at java.base/java.lang.reflect.Method.invoke(Method.java:566)

 at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)

 at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)

 at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)

 at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)

 at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:492)

 at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)

 at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:218)

 at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:331)

 at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:261)

 at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304)

 at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)

 at org.apache.velocity.Template.merge(Template.java:358)

 at org.apache.velocity.Template.merge(Template.java:262)

 at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)

 at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)

 at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)

 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:222)

 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:177)

 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:138)

 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:54)

 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:267)

 at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)

 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:267)

 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)

 at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)

 at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:773)

 at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:746)

 at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:726)

 at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:712)

 at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:91)

 at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:85)

 at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2536)

 at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:2514)

 at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:997)

 at jdk.internal.reflect.GeneratedMethodAccessor177.invoke(Unknown Source)

 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

 at java.base/java.lang.reflect.Method.invoke(Method.java:566)

 at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:571)

 at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:554)

 at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:221)

 at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:368)

 at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:492)

 at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)

 at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:218)

 at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:331)

 at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:261)

 at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:304)

 at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)

 at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:171)

 at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:147)

 at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)

 at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:190)

 at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:439)

 at org.apache.velocity.Template.merge(Template.java:358)

 at org.apache.velocity.Template.merge(Template.java:262)

 at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:280)

 at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:321)

 at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)

 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:222)

 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:177)

 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:138)

 at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:54)

 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:267)

 at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)

 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:267)

 at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)

 at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)

 at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:773)

 at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:746)

 at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:726)

 at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:712)

 at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:91)

 at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:85)

 at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2536)

 at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:179)

 at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:601)

 at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:289)

 at com.xpn.xwiki.web.LegacyActionServlet.service(LegacyActionServlet.java:114)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:590)

 at org.eclipse.jetty.servlet.ServletHolder$NotAsync.service(ServletHolder.java:1419)

 at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:764)

 at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1624)

 at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:122)

 at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)

 at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)

 at org.xwiki.wysiwyg.filter.ConversionFilter.doFilter(ConversionFilter.java:61)

 at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)

 at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)

 at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)

 at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)

 at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)

 at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)

 at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)

 at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)

 at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)

 at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)

 at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)

 at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:132)

 at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:210)

 at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)

 at org.eclipse.jetty.websocket.servlet.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:164)

 at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)

 at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)

 at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:506)

 at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:131)

 at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:578)

 at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)

 at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:223)

 at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1571)

 at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221)

 at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1378)

 at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176)

 at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:463)

 at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1544)

 at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174)

 at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1300)

 at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129)

 at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:192)

 at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:51)

 at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)

 at org.eclipse.jetty.server.Server.handle(Server.java:562)

 at org.eclipse.jetty.server.HttpChannel.lambda$handle$0(HttpChannel.java:418)

 at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:675)

 at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:410)

 at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:282)

 at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:319)

 at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100)

 at org.eclipse.jetty.io.SocketChannelEndPoint$1.run(SocketChannelEndPoint.java:101)

 at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:412)

 at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:381)

 at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:268)

 at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.lambda$new$0(AdaptiveExecutionStrategy.java:138)

 at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:407)

 at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:894)

 at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1038)

 at java.base/java.lang.Thread.run(Thread.java:834)

Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.contrib.kroki.internal.macro.KrokiMacro] identified by type [interface org.xwiki.rendering.macro.Macro] and hint [kroki]

 at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:204)

 at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:210)

 at org.xwiki.component.internal.multi.DelegateComponentManager.getInstance(DelegateComponentManager.java:83)

 at org.xwiki.component.internal.multi.DelegateComponentManager.getInstance(DelegateComponentManager.java:83)

 at org.xwiki.component.internal.multi.DelegateComponentManager.getInstance(DelegateComponentManager.java:83)

 at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:210)

 at org.xwiki.component.internal.multi.DelegateComponentManager.getInstance(DelegateComponentManager.java:83)

 at org.xwiki.component.internal.multi.DelegateComponentManager.getInstance(DelegateComponentManager.java:83)

 at org.xwiki.rendering.internal.macro.DefaultMacroManager.getMacro(DefaultMacroManager.java:131)

 ... 208 more

Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.contrib.kroki.internal.rendrer.KrokiDiagramRenderer] identified by type [interface org.xwiki.contrib.kroki.renderer.DiagramRenderer] and hint [default]

 at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:204)

 at org.xwiki.component.embed.EmbeddableComponentManager.getDependencyInstance(EmbeddableComponentManager.java:406)

 at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:355)

 at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:451)

 at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:201)

 ... 216 more

Caused by: org.xwiki.component.phase.InitializationException: Failed to initialize the Docker container for diagram rendering.

 at org.xwiki.contrib.kroki.internal.rendrer.KrokiDiagramRenderer.initializeKrokiDockerContainer(KrokiDiagramRenderer.java:151)

 at org.xwiki.contrib.kroki.internal.rendrer.KrokiDiagramRenderer.initializeKrokiComponent(KrokiDiagramRenderer.java:174)

 at org.xwiki.contrib.kroki.internal.rendrer.KrokiDiagramRenderer.initialize(KrokiDiagramRenderer.java:76)

 at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39)

 at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:365)

 at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:451)

 at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:201)

 ... 220 more

Caused by: java.lang.RuntimeException: java.nio.file.NoSuchFileException: \\.\pipe\docker_engine

 at com.github.dockerjava.transport.NamedPipeSocket.connect(NamedPipeSocket.java:62)

 at org.apache.hc.client5.http.socket.PlainConnectionSocketFactory$1.run(PlainConnectionSocketFactory.java:87)

 at java.base/java.security.AccessController.doPrivileged(Native Method)

 at org.apache.hc.client5.http.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:84)

 at org.apache.hc.client5.http.impl.io.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:148)

 at org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:407)

 at org.apache.hc.client5.http.impl.classic.InternalExecRuntime.connectEndpoint(InternalExecRuntime.java:168)

 at org.apache.hc.client5.http.impl.classic.InternalExecRuntime.connectEndpoint(InternalExecRuntime.java:178)

 at org.apache.hc.client5.http.impl.classic.ConnectExec.execute(ConnectExec.java:136)

 at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)

 at org.apache.hc.client5.http.impl.classic.ExecChainElement$1.proceed(ExecChainElement.java:57)

 at org.apache.hc.client5.http.impl.classic.ProtocolExec.execute(ProtocolExec.java:165)

 at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)

 at org.apache.hc.client5.http.impl.classic.ExecChainElement$1.proceed(ExecChainElement.java:57)

 at org.apache.hc.client5.http.impl.classic.HttpRequestRetryExec.execute(HttpRequestRetryExec.java:96)

 at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)

 at org.apache.hc.client5.http.impl.classic.ExecChainElement$1.proceed(ExecChainElement.java:57)

 at org.apache.hc.client5.http.impl.classic.ContentCompressionExec.execute(ContentCompressionExec.java:133)

 at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)

 at org.apache.hc.client5.http.impl.classic.ExecChainElement$1.proceed(ExecChainElement.java:57)

 at org.apache.hc.client5.http.impl.classic.RedirectExec.execute(RedirectExec.java:115)

 at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)

 at org.apache.hc.client5.http.impl.classic.InternalHttpClient.doExecute(InternalHttpClient.java:179)

 at org.apache.hc.client5.http.impl.classic.CloseableHttpClient.execute(CloseableHttpClient.java:67)

 at com.github.dockerjava.httpclient5.ApacheDockerHttpClientImpl.execute(ApacheDockerHttpClientImpl.java:191)

 at com.github.dockerjava.httpclient5.ApacheDockerHttpClient.execute(ApacheDockerHttpClient.java:9)

 at com.github.dockerjava.core.DefaultInvocationBuilder.execute(DefaultInvocationBuilder.java:228)

 at com.github.dockerjava.core.DefaultInvocationBuilder.get(DefaultInvocationBuilder.java:202)

 at com.github.dockerjava.core.DefaultInvocationBuilder.get(DefaultInvocationBuilder.java:74)

 at com.github.dockerjava.core.exec.ListContainersCmdExec.execute(ListContainersCmdExec.java:44)

 at com.github.dockerjava.core.exec.ListContainersCmdExec.execute(ListContainersCmdExec.java:15)

 at com.github.dockerjava.core.exec.AbstrSyncDockerCmdExec.exec(AbstrSyncDockerCmdExec.java:21)

 at com.github.dockerjava.core.command.AbstrDockerCmd.exec(AbstrDockerCmd.java:35)

 at org.xwiki.contrib.kroki.internal.docker.ContainerManager.exec(ContainerManager.java:310)

 at org.xwiki.contrib.kroki.internal.docker.ContainerManager.maybeReuseContainerByName(ContainerManager.java:96)

 at org.xwiki.contrib.kroki.internal.rendrer.KrokiDiagramRenderer.initializeKrokiDockerContainer(KrokiDiagramRenderer.java:135)

 ... 226 more

Caused by: java.nio.file.NoSuchFileException: \\.\pipe\docker_engine

 at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)

 at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:96)

 at java.base/sun.nio.fs.WindowsChannelFactory.newAsynchronousFileChannel(WindowsChannelFactory.java:209)

 at java.base/sun.nio.fs.WindowsFileSystemProvider.newAsynchronousFileChannel(WindowsFileSystemProvider.java:145)

 at java.base/java.nio.channels.AsynchronousFileChannel.open(AsynchronousFileChannel.java:253)

 at java.base/java.nio.channels.AsynchronousFileChannel.open(AsynchronousFileChannel.java:311)

 at com.github.dockerjava.transport.NamedPipeSocket.connect(NamedPipeSocket.java:53)

 ... 261 more

Looking into it, haven’t tested the macro on another machine than the one I have written it on so unexpected things can happen

You mean you don’t have any automated test? Because if you do then it’s going to be tested on the CI agents (i.e. other machines). You should have automated tests.

No, at the moment there are only unit tests

@nikpetrenko I installed the extension and got the same error when using the macro, but no problem with the extension manager, do you have a windows or linux system?

Both, but firstly attempt on Windows. On Linux same error in extension manager

@dapostu Hi, any news on this? I’d like to check you macro: should I anyway try to install it or I’ll be better wait for an update?

The macro works for me on Linux. The error:

Caused by: java.nio.file.NoSuchFileException: \.\pipe\docker_engine

indicates that either you don’t have Docker installed or that the Docker engine is not running. @dapostu should mention clearly in the Kroki Macro documentation that:

  • Docker must be installed on the machine running XWiki
  • the OS user running XWiki must be allowed to use / access the Docker engine

Hope this helps,
Marius

1 Like

Oh! I admit I didn’t check the docs, I thought that this was an additional rendering feature that parses a custom syntax.

I don’t have chances to add Docker to the machine running XWiki ATM, so I’ll keep following the threads.