Hi All.
I am experiencing a weird problem on DSpace 7.6.1. This site went live two weeks ago and has been running fine until this morning when I suddenly started getting errors. Observing the PM2 logs, I saw requests to the backend being made to http://localhost:8080/api. This is not how the site is configured.
My [dspace-ui]/conf/config.prod.yaml is configured as such:
# The REST
API server settings
# NOTE: these settings
define which (publicly available) REST API to use. They are
usually
# 'synced'
with the 'dspace.server.url' setting in your backend's
local.cfg.
rest:
ssl: true
host:
univendspace.univen.ac.za
port: 443
# NOTE: Space is
capitalized because 'namespace' is a reserved string in
TypeScript
nameSpace: /server
As you can see, the url for the site is
https://univendspace.univen.ac.za and for the backend includes
/server. If I go to
https://univendspace.univen.ac.za/server/api, I get the expected
API.
But trying to access the frontend I get a 500 error. The PM2 logs show:
5|dspace-ui |
{
5|dspace-ui
| statusCode:
0,
5|dspace-ui
| statusText:
'Unknown Error',
5|dspace-ui
| message:
'Http failure response for http://localhost:8080/api: 0
Unknown Error'
5|dspace-ui
| }
5|dspace-ui
| No _links
section found at http://localhost:8080/api
5|dspace-ui
| No _links
section found at http://localhost:8080/api
Why is node suddenly trying to
access a different URL and how do I fix it?
Kind Regards.
Shaun