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/7f9f15ba-6441-4b14-8a8a-c95ef9f329dc%40ub.uni-mainz.de.

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

Reply via email to