Hi,

just a follow-up:

While investigating further into that issue I disabled server-side rendering in config.prod.yml
ssr:
  enabled: false

After restarting the frontend the login modal is shown and I can login.

After that I enabled general SSR again and checked the ssl.excludePathPatterns defined in config.yml.

I recognized I get the login modal and be able to login from all these excluded URLs (like https://my.server/community-list or /search) but not from others (like /home)

So it seems to be an issue with SSR because all URLs that use CSR are doing fine. Does that ring any bell?


On 2026-03-24 14:55, Armin Wenz wrote:
Hi all,

I am testing DSpace 9.2 (no CRIS) with anubis in front of it. I  use apache as proxy.

When running the back- and frontend without anubis in front everything works fine.

When I put anubis between the proxy and the frontend I encounter a different behaviour when running the frontend in development or in production mode.

For development mode I build the frontend via 'npm run build:dev' and start it via
NODE_ENV="development" node ./dist/server/main.js

In this case everything is working as expected. I got no relevant errors (apart from 404 for google-analytics we don't use). When clicking on the Login Button I see the modal showing the options for password or OIDC Login. I can login as expected and everything's fine.

When I build the frontend via 'npm run build:prod' and start it via
NODE_ENV="production" node ./dist/server/main.js
at first everything seems to be fine. The frontend is loading, I can browse just fine.
In the terminal I got errors saying

ERROR Error: undefined doesn't contain the link sites
     at /opt/local/openscience-ui/dist/server/main.js:1:1622049
     at /opt/local/openscience-ui/dist/server/main.js:1:4685635
    at OperatorSubscriber2._this._next (/opt/local/openscience-ui/dist/ server/main.js:1:309020)     at OperatorSubscriber2.Subscriber2.next (/opt/local/openscience-ui/ dist/server/main.js:1:3771406)
     at /opt/local/openscience-ui/dist/server/main.js:1:4685622
    at OperatorSubscriber2._this._next (/opt/local/openscience-ui/dist/ server/main.js:1:309020)     at OperatorSubscriber2.Subscriber2.next (/opt/local/openscience-ui/ dist/server/main.js:1:3771406)
     at /opt/local/openscience-ui/dist/server/main.js:1:4200924
    at OperatorSubscriber2._this._next (/opt/local/openscience-ui/dist/ server/main.js:1:309020)     at OperatorSubscriber2.Subscriber2.next (/opt/local/openscience-ui/ dist/server/main.js:1:3771406)

which doesn't tell me much.

I see a similar error in the browser console

ERROR Error: undefined doesn't contain the link authn


After clicking on the Login button I only get a white rectangle. The Login options do not show. In the browser console no errors are shown. Same in the terminal.

Because neither the apache nor the anubis config is changed while running the frontend in dev or prod mode I assume there are some differences in dev and prod I do not know or understand. Or maybe a missing Header in apache I need for prod mode but not for dev mode.

Does anybody have a glue where to look or can point me to any documentation I may find a solution? Or you may already have a solution?
If you need any configs I use, just tell me.

Thanks so far



--
Armin Wenz
Universitätsbibliothek Mainz
Leitung Bibliotheksanwendungen
Jakob-Welder-Weg 12
55128 Mainz
Tel.: +49 6131 39-29830
http://www.ub.uni-mainz.de

--
All messages to this mailing list should adhere to the Code of Conduct: 
https://lyrasis.org/code-of-conduct/
--- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/dspace-tech/d265eeac-cdbc-4487-95a4-7cfb468f8e40%40ub.uni-mainz.de.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to