I’ve installed xwiki:mariadb-tomcat using the docker image. When I first ran it, it took me straight to the wizard and eventually crashed while installing the standard flavor. I restarted the docker image and it took me to the wiki, but when I log in, it resumes the wizard where it left off. I might make a little progress on installing the flavor each time, but it keeps crashing and I have to try again and again. My hope is to demo this to my employer as a possible CMS, but I’m a little worried about reliability at this point without understanding the problem.
I’m relatively new to docker, so I’m not even sure where I’d find xwiki’s logs. docker logs doesn’t seem to be getting the debug output from the flavor installation.
I can, yes, but it’s not going to be very informative, as it never outputs anything new after it’s done booting. And by crashes, I means the docker container exits with no further output to logs.
It’s worth noting, btw, that I have tried installing the .deb package as well and run into a different problem there. Not sure whether I should address that in a separate thread or treat this thread as “whatever it takes to get xwiki working for me”.
Note that it seems you’re not using the right way to stop XWiki. You should stop the docker image and not restart the webapp using Tomcat’s manager (see all the warnings in the logs).
I don’t see anything wrong in the logs though. The last start of the docker image has resulted in XWiki being started but no HTTP(S) request was made to it.
Note that it seems you’re not using the right way to stop XWiki. You should stop the docker image and not restart the webapp using Tomcat’s manager (see all the warnings in the logs).
I don’t see anything wrong in the logs though. The last start of the docker image has resulted in XWiki being started but no HTTP(S) request was made to it.
That’s not me stopping the webapp. I don’t even know how to do that. The container just stops on its own.
I definitely am connecting to it, though. I can log in and browse the wiki (what little there is) before I log in and resume the setup wizard.
WARNING: The XWIKI_VERSION variable is not set. Defaulting to a blank string.
Building web
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/volfied/xwiki/Dockerfile: no such file or directory
ERROR: Service 'web' failed to build : Build failed
So obviously I need a Dockerfile, even though the instructions make no mention of one. So I grab the one from github and I get this error instead:
WARNING: The XWIKI_VERSION variable is not set. Defaulting to a blank string.
Building web
Sending build context to Docker daemon 15.87kB
Error response from daemon: dockerfile parse error line 41: unknown instruction: APT-GET
ERROR: Service 'web' failed to build : Build failed
I’m fixing this to not require building an image, as it’s not necessary.
I’ll fix this too. The reason it didn’t work is because you didn’t edit the versions and kept the environment variables in the compose file. The doc us not very clear but says:
You can edit the compose file retrieved to change the default username/password and other environment variables.
I’m changing the instructions to not have this problem anymore.