Pm2 error

165 views
Skip to first unread message

Gladys Vanesa Fernandez

unread,
Jan 17, 2024, 8:40:02 AM1/17/24
to DSpace Technical Support
Hello everyone!: I have this problem
Context: Dspace 7.6.1 - Ubuntu 22.04

Dspace is ok, but is slow and with 503 error frecuently in frontend, backend is ok

Reading the pm2 logs, this is the problem:

1|dspace-ui  | Error in server-side rendering (SSR)
1|dspace-ui  | Error details :  TypeError: Invalid URL
1|dspace-ui  |     at new NodeError (node:internal/errors:387:5)
1|dspace-ui  |     at URL.onParseError (node:internal/url:565:9)
1|dspace-ui  |     at parse (<anonymous>)
1|dspace-ui  |     at new URL (node:internal/url:641:5)
1|dspace-ui  |     at /home/dspace/dspace-angular-dspace-7.6.1/dist/server/main.js:7:5653054
1|dspace-ui  |     at Generator.next (<anonymous>)
1|dspace-ui  |     at asyncGeneratorStep (/home/dspace/dspace-angular-dspace-7.6.1/dist/server/main.js:7:4231577)
1|dspace-ui  |     at _next (/home/dspace/dspace-angular-dspace-7.6.1/dist/server/main.js:7:4231880)
1|dspace-ui  |     at /home/dspace/dspace-angular-dspace-7.6.1/dist/server/main.js:7:4232076
1|dspace-ui  |     at new ZoneAwarePromise (/home/dspace/dspace-angular-dspace-7.6.1/dist/server/main.js:7:2201164) {
1|dspace-ui  |   input: 'http:///',
1|dspace-ui  |   code: 'ERR_INVALID_URL'
1|dspace-ui  | }
1|dspace-ui  | Falling back to serving direct client-side rendering (CSR).

I need your help. Regards

DSpace Technical Support

unread,
Jan 17, 2024, 1:16:50 PM1/17/24
to DSpace Technical Support
Hi,

That looks to be saying that you have a URL that starts with "http:///" (notice that there are *3* slashes instead of 2) somewhere in your configuration?  Or maybe there's an empty or unconfigured URL that is defaulting to "http:///"?    

It's unclear to me where exactly it might be coming from, but you may want to check both the frontend and backend configurations.  You also might want to check your PM2 configuration.  Somewhere, you likely have a missing/invalid URL in your configuration.

Tim

Gladys Vanesa Fernandez

unread,
Jan 18, 2024, 1:53:00 PM1/18/24
to DSpace Technical Support

Hello Tim, I actually reviewed all the configuration files: local.cfg, config.prod.yml, and dspace.json, and there are no errors. I don't know where this could be happening.
Reply all
Reply to author
Forward
0 new messages