OPAC points to staff interface
The symptom is that the OPAC interface links to the staff interface. It usually means that apache has not been reloaded/restarted at the right time.
I initially thought it was coming from the newly pushed yarn js:build
added to misc4dev, that could make ktd startup slower than the 2 minutes we expect.
So I run service apache2 reload
and it fixes the problem.
However, the problem still appears for new sandbox, and I notice the following error in the log:
TASK [Checkout origin/master in docker container] ******************************
fatal: [localhost -> koha-test]: FAILED! => {"changed": true, "cmd": "cd /kohadevbox/koha && git checkout origin/master", "delta": "0:00:00.008724", "end": "2023-02-14 14:19:09.107820", "msg": "non-zero return code", "rc": 128, "start": "2023-02-14 14:19:09.099096", "stderr": "fatal: detected dubious ownership in repository at '/kohadevbox/koha'\nTo add an exception for this directory, call:\n\n\tgit config --global --add safe.directory /kohadevbox/koha", "stderr_lines": ["fatal: detected dubious ownership in repository at '/kohadevbox/koha'", "To add an exception for this directory, call:", "", "\tgit config --global --add safe.directory /kohadevbox/koha"], "stdout": "", "stdout_lines": []}
which may be a rabbit hole, see https://stackoverflow.com/questions/72978485/git-submodule-update-failed-with-fatal-detected-dubious-ownership-in-repositor
It's not clear to me what we need to do to fix it properly. Ideally I would like to tell the ansible rule to run the checkout with the koha user. Can we do that?