Cannot create Admin user in Dstribution wizard

There I am back again, while I had some infrastructure issues I’m now at the Distribution wizard.

At step 1 it is telling me this:
Failed to execute the [velocity] macro. Cause: ['java.util.concurrent.CompletableFuture org.xwiki.eventstream.EventStore.saveEvent(org.xwiki.eventstream.Event)'].

When I click on details I see this:

java.lang.NoSuchMethodError: 'java.util.concurrent.CompletableFuture org.xwiki.eventstream.EventStore.saveEvent(org.xwiki.eventstream.Event)'
	at org.xwiki.eventstream.store.internal.DocumentEventRecorder.recordEvent(DocumentEventRecorder.java:150)
	at org.xwiki.eventstream.store.internal.DocumentEventRecorder.recordEvent(DocumentEventRecorder.java:129)
	at org.xwiki.eventstream.store.internal.DocumentEventListener.onEvent(DocumentEventListener.java:124)
	at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:320)
	at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:285)
	at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:2055)
	at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1959)
	at com.xpn.xwiki.XWiki.createUser(XWiki.java:4190)
	at com.xpn.xwiki.XWiki.createUser(XWiki.java:4105)
	at com.xpn.xwiki.XWiki.createUser(XWiki.java:4080)
	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 org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:565)
	at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:548)
	at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:219)
	at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:369)
	at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:701)
	at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:72)
	at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:240)
	at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:144)
	at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:172)
	at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:144)
	at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:172)
	at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:423)
	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:281)
	at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:316)
	at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:131)
	at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:52)
	at org.xwiki.rendering.macro.script.AbstractScriptMacro.evaluateBlock(AbstractScriptMacro.java:286)
	at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:182)
	at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:58)
	at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:297)
	at org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)
	at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.transform(AbstractBlockAsyncRenderer.java:76)
	at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.transform(TemplateAsyncRenderer.java:209)
	at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderWiki(TemplateAsyncRenderer.java:150)
	at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:135)
	at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:53)
	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.execute(DefaultBlockAsyncRendererExecutor.java:125)
	at com.xpn.xwiki.internal.template.InternalTemplateManager.execute(InternalTemplateManager.java:857)
	at com.xpn.xwiki.internal.template.InternalTemplateManager.execute(InternalTemplateManager.java:835)
	at com.xpn.xwiki.internal.template.InternalTemplateManager.executeNoException(InternalTemplateManager.java:803)
	at com.xpn.xwiki.internal.template.DefaultTemplateManager.executeNoException(DefaultTemplateManager.java:126)
	at org.xwiki.extension.distribution.internal.job.step.AbstractDistributionStep.executeInteractive(AbstractDistributionStep.java:125)
	at org.xwiki.extension.distribution.internal.DistributionInternalScriptService.renderCurrentStepToXHTML(DistributionInternalScriptService.java:251)
	at org.xwiki.extension.distribution.internal.DistributionInternalScriptService.renderCurrentStepToXHTML(DistributionInternalScriptService.java:237)
	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 org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:565)
	at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:548)
	at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:219)
	at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:369)
	at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:701)
	at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:72)
	at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:240)
	at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:144)
	at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:423)
	at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:191)
	at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:144)
	at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:215)
	at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:328)
	at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:258)
	at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:301)
	at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:144)
	at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:423)
	at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:191)
	at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:144)
	at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:423)
	at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:191)
	at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:423)
	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:281)
	at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:316)
	at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)
	at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:217)
	at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:180)
	at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:137)
	at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:53)
	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:772)
	at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:745)
	at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:725)
	at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:711)
	at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:78)
	at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2502)
	at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:179)
	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:576)
	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:250)
	at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:122)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.xwiki.wysiwyg.filter.ConversionFilter.doFilter(ConversionFilter.java:109)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:132)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:688)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:367)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1639)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.base/java.lang.Thread.run(Thread.java:834)

I was able to configure MySQL 8 and run the deb package sudo apt-get install xwiki-tomcat9-mysql

Does anyone has an idea? Thank you

If what you have is 12.5.1+1 it’s probably the reason (this version have a bad setup) you should upgrade to 12.5.1+2.

Ahh I see, only installing it with the command doesn’t mean that you have the latest version. I’m learning a lot :slight_smile:

I am upgrading the version just with apt update and apt upgrade. After a few minutes i get this error:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  xwiki-common xwiki-mysql-common xwiki-tomcat9-common xwiki-tomcat9-mysql
4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 286 MB of archives.
After this operation, 63.4 MB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://maven.xwiki.org stable/ xwiki-tomcat9-mysql 12.5.1+2 [1,476 B]
Get:2 http://maven.xwiki.org stable/ xwiki-mysql-common 12.5.1+2 [5,616 B]
Get:3 http://maven.xwiki.org stable/ xwiki-tomcat9-common 12.5.1+2 [3,402 B]
Get:4 http://maven.xwiki.org stable/ xwiki-common 12.5.1+2 [286 MB]
Fetched 286 MB in 5min 17s (903 kB/s)
Reading changelogs... Done
(Reading database ... 35890 files and directories currently installed.)
Preparing to unpack .../xwiki-tomcat9-mysql_12.5.1+2_all.deb ...
Unpacking xwiki-tomcat9-mysql (12.5.1+2) over (12.5.1+1) ...
Preparing to unpack .../xwiki-mysql-common_12.5.1+2_all.deb ...
Unpacking xwiki-mysql-common (12.5.1+2) over (12.5.1+1) ...
Preparing to unpack .../xwiki-tomcat9-common_12.5.1+2_all.deb ...
Unpacking xwiki-tomcat9-common (12.5.1+2) over (12.5.1+1) ...
Preparing to unpack .../xwiki-common_12.5.1+2_all.deb ...
Unpacking xwiki-common (12.5.1+2) over (12.5.1+1) ...
dpkg-deb (subprocess): decompressing archive member: internal gzip read error: '<fd:4>: incorrect data check'
**dpkg-deb: error: <decompress> subprocess returned error exit status 2**
**dpkg: error processing archive /var/cache/apt/archives/xwiki-common_12.5.1+2_all.deb (--unpack):**

** cannot copy extracted data for ‘./usr/lib/xwiki/WEB-INF/lib/lucene-analyzers-kuromoji-8.5.1.jar’ to ‘/usr/lib/xwiki/WEB-INF/lib/lucene-analyzers-kuromoji-8.5.1.jar.dpkg-new’: unexpected end of file or stream**
** Errors were encountered while processing:**
** /var/cache/apt/archives/xwiki-common_12.5.1+2_all.deb**
** E: Sub-process /usr/bin/dpkg returned an error code (1)**

Do you know about this?

No it’s just because you installed it just between 12.5.1+1 and 12.5.1+2 deployments.

Looks like you got a corrupted deb file, maybe a network issue since people reported installing 12.5.1+2 just fine.

I was cleaning apt cache and stuff afterwards it did work, but now the instance is starting but it doesn’t run the distribution wizard again. Any advice how to bring the wizard to show up again?

It’s possible the creation of the admin user actually worked previously in which case you will need to authenticate since the DW only shows up if your are admin or if there is no user.

You are right. Is there any way to start the DW again? To finish configuration because it is totally empty now.

You could uninstall the xwiki-* Debian packages with purge and make sur the “xwiki” MySQL database is removed (I think purge is taking care of that but not sure).

I made the safe way and installed the whole VM new. But now I am hanging on Step 2 installing flavor. It keeps repeating the step where it installs the dependency packages.

The system is behind a proxy and I set a proxy config in these files
/etc/profile.d/proxy.sh (running source /etc/profile.d/proxy.sh afterwards)
/etc/apt/apt.conf.d/proxy.conf
nano /etc/wgetrc

After this I ran, like described in the installation guide

  1. wget -q “http://maven.xwiki.org/public.gpg” -O- | sudo apt-key add -
  2. sudo wget “http://maven.xwiki.org/stable/xwiki-stable.list” -P /etc/apt/sources.list.d/
  3. sudo apt-get install xwiki-tomcat9-mysql (manual connection to MySQL 8 databse)

In my tomcat9 config I made these changes:
JAVA_HOME=/usr/lib/jvm/java-8-openjdk
JAVA_OPTS=“-Djava.awt.headless=true -Xmx1024m”
JAVA_OPTS=“${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom”

After this I can proceed to step 2 and at the dependencies it keeps telling me continue and Install
I would like to provide you with some error messages but there is no error message. It’s just in a loop between continue and install.

Then I read something about setting the proxy config on Apache httpclient but I couldn’t find out how. Do you have any suggestions how to get this work?