The proxy server could not handle the request
Reason: Error reading from remote server"
and in the pm2 logs this error message shows up.
0|dspace-ui | GET / - - ms - -
0|dspace-ui | 1 rules skipped due to selector errors:
0|dspace-ui | .custom-file-input:lang(en)~.custom-file-label -> unmatched pseudo-class :lang
/dspace-ui-deploy$ node ./dist/server/main.js
Building production app config
Overriding app config with /dspace-ui-deploy/config/config.yml
Overriding app config with /dspace-ui-deploy/config/config.prod.yml
Angular config.json file generated correctly at /dspace-ui-deploy/dist/browser/assets/config.json
Environment extended with app config
dspace-angular
Version: 7.5.0
Environment: Production
[HPM] Proxy created: / -> https://<nameOfMyServer>/server/sitemaps
[08:20:25 GMT+0200 (Mitteleuropäische Sommerzeit)] Listening at http://localhost:4000/
wget -v http://localhost:4000
--2023-05-23 08:33:09-- http://localhost:4000/
Auflösen des Hostnamens localhost (localhost) … ::1, 127.0.0.1
Verbindungsaufbau zu localhost (localhost)|::1|:4000 … fehlgeschlagen: Verbindungsaufbau abgelehnt.
Verbindungsaufbau zu localhost (localhost)|127.0.0.1|:4000 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet …
GET / - - ms - -
Lesefehler (Die Wartezeit für die Verbindung ist abgelaufen) beim Vorspann (header).
Erneuter Versuch.
--2023-05-23 08:48:10-- (Versuch: 2) http://localhost:4000/
Verbindungsaufbau zu localhost (localhost)|127.0.0.1|:4000 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet …
dspace-angular$ yarn test:rest
yarn run v1.22.19
$ ts-node --project ./tsconfig.ts-node.json scripts/test-rest.ts
Building production app config
Overriding app config with /home/dspace/dspace-angular/config/config.yml
Overriding app config with /home/dspace/dspace-angular/config/config.prod.yml
...Testing connection to REST API at https://<nameOfMyServer>/server/api...
RESPONSE: 200 200
Checking JSON returned for validity...
"dspaceVersion" = DSpace 7.5
"dspaceUI" = https://<nameOfMyAngularServer>
"dspaceServer" = https://<nameOfMyServer>/server
"dspaceServer" property matches UI's "rest" config? true
Does "/api" endpoint have HAL links ("_links" section)? true
Done in 5.38s.