Replies: 4 comments 4 replies
-
| See why the webapp returns the error - try bumping the Tomcat/OpenGrok log level in Another piece of advice would be to set this up standalone first, i.e. not in Docker. |
Beta Was this translation helpful? Give feedback.
-
| Looking at the Dockerfile, these lines stick out: What the which is meant to get fresh configuration from the web app so that the indexer has information about projects and repositories. It should be sufficient to use just the Lines 521 to 543 in 52ef487 |
Beta Was this translation helpful? Give feedback.
-
| Thanks for looking into this. Unfortunately, removing the |
Beta Was this translation helpful? Give feedback.
-
|
I can see that the added
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I have made minor modifications to
Dockerfileanddocker/start.pyfrom release 1.6.9 in order to enable authentication/authorization as described here.Docker images in which
start.pyhave been modified to useinsert.xmlas the insert file when deploying the.warfile will fail to display OpenGrok in the browser:Looking at the debug logs and comparing them to the unmodified image, it looks like we keep getting status 500 in
wait_for_tomcat(), and we never start the sync.To Reproduce
Create a directory on your machine to act as the source directory for Opengrok projects and add a
fooproject:$ mkdir -p ~/projects-opengrok/foo; echo "Hello, world" > ~/projects-opengrok/foo/READMEGo to the opengrok repository and checkout release tag 1.6.9:
$ git checkout -b 1.6.9Apply the following (fairly minor) patch: 0001-Enable_auth.txt
Build the docker image:
$ docker build -t opengrok-auth .Run a container on that image, with the right volume mapping:
$ docker run -d -v ~/projects-opengrok/:/opengrok/src -p 8080:8080 -e OPENGROK_LOG_LEVEL=DEBUG opengrok-authOpen the browser, go to
localhost:8080and see the error message about the missing webapp configuration.Additional information
Here are some debug logs from
docker logs: logs.txtBeta Was this translation helpful? Give feedback.
All reactions