Hi DSpace Community,
I am using DSpace 8, and I am facing a serious stability issue with my installation.
The system used to work initially, but it would become unresponsive almost daily, after which I had to restart the services to get it working again. For the last 3–4 days, however, the problem has become much worse and DSpace is not working reliably even after restarting the services.
I have already tried several troubleshooting steps suggested by ChatGPT and other resources, but I have not been able to identify the root cause.
My current setup is:
The REST API appears to be responding correctly. For example:
curl -i https://dspacenew8-imu.refread.com/server/api
returns HTTP 200 and the expected DSpace HAL response.
However, the Angular UI/SSR returns HTTP 500 errors. I have also seen errors such as:
ERROR Error: undefined doesn't contain the link sites
ERROR Error: undefined doesn't contain the link systemwidealerts
and:
ERROR RangeError: Maximum call stack size exceeded
The SSR process is running through PM2 on port 4000, but:
curl -I http://127.0.0.1:4000
returns:
HTTP/1.1 500 Internal Server Error
I have also noticed that the issue seems to be related to the Angular SSR build/runtime, although I am not certain.
Could someone please help me identify what logs or configuration I should check to determine why DSpace becomes unstable and why the Angular SSR process starts returning HTTP 500?
I can provide the following if required:
Below are the relevant logs:
pm2 logs error:-
0|dspace-ui | GET /search?f.author=Jena%2C+B.+K.%2Cequals&f.dateIssued.min=2010&f.subject=Numerical+model%2Cequals&f.subject=Marginal+condition%2Cequals&f.subject=Convergence%2Cequals&f.subject=Friction%2Cequals&f.subject=Analytical+solutions%2Cequals&
spc.page=1 200 32015.718 ms - -
0|dspace-ui | GET /items/2538aa81-75ba-4b42-844c-ae4d8801fbc8 200 30483.655 ms - -
0|dspace-ui | The response for '
https://dspacenew8-imu.refread.com/server/api/discover/search?scope=83d9cff0-b069-400a-bc05-cc29824672bb&configuration=community' has the self link '
https://dspacenew8-imu.refread.com/server/api/discover/search'. These don't match. This could mean there's an issue with the REST endpoint
0|dspace-ui | ERROR RangeError: Maximum call stack size exceeded
0|dspace-ui | at DspaceRestResponseParsingService2.process (/home/dspace/dspace-angular-dspace-8.0/dist/server/main.js:1:341860)
0|dspace-ui | at /home/dspace/dspace-angular-dspace-8.0/dist/server/main.js:1:343591
0|dspace-ui | at Array.forEach (<anonymous>)
0|dspace-ui | at DspaceRestResponseParsingService2.process (/home/dspace/dspace-angular-dspace-8.0/dist/server/main.js:1:343550)
0|dspace-ui | at /home/dspace/dspace-angular-dspace-8.0/dist/server/main.js:1:343591
0|dspace-ui | at Array.forEach (<anonymous>)
0|dspace-ui | at DspaceRestResponseParsingService2.process (/home/dspace/dspace-angular-dspace-8.0/dist/server/main.js:1:343550)
0|dspace-ui | at /home/dspace/dspace-angular-dspace-8.0/dist/server/main.js:1:343591
0|dspace-ui | at Array.forEach (<anonymous>)
0|dspace-ui | at DspaceRestResponseParsingService2.process (/home/dspace/dspace-angular-dspace-8.0/dist/server/main.js:1:343550)
0|dspace-ui | ERROR RangeError: Maximum call stack size exceeded
0|dspace-ui | at DspaceRestResponseParsingService2.process (/home/dspace/dspace-angular-dspace-8.0/dist/server/main.js:1:341860)
0|dspace-ui | at /home/dspace/dspace-angular-dspace-8.0/dist/server/main.js:1:343591
0|dspace-ui | at Array.forEach (<anonymous>)
0|dspace-ui | at DspaceRestResponseParsingService2.process (/home/dspace/dspace-angular-dspace-8.0/dist/server/main.js:1:343550)
0|dspace-ui | at /home/dspace/dspace-angular-dspace-8.0/dist/server/main.js:1:343591
0|dspace-ui | at Array.forEach (<anonymous>)
0|dspace-ui | at DspaceRestResponseParsingService2.process (/home/dspace/dspace-angular-dspace-8.0/dist/server/main.js:1:343550)
0|dspace-ui | at /home/dspace/dspace-angular-dspace-8.0/dist/server/main.js:1:343591
0|dspace-ui | at Array.forEach (<anonymous>)
0|dspace-ui | at DspaceRestResponseParsingService2.process (/home/dspace/dspace-angular-dspace-8.0/dist/server/main.js:1:343550)
0|dspace-ui | ERROR RangeError: Maximum call stack size exceeded
0|dspace-ui | at DspaceRestResponseParsingService2.process (/home/dspace/dspace-angular-dspace-8.0/dist/server/main.js:1:341860)
0|dspace-ui | at /home/dspace/dspace-angular-dspace-8.0/dist/server/main.js:1:343591
0|dspace-ui | at Array.forEach (<anonymous>)
0|dspace-ui | at DspaceRestResponseParsingService2.process (/home/dspace/dspace-angular-dspace-8.0/dist/server/main.js:1:343550)
0|dspace-ui | at /home/dspace/dspace-angular-dspace-8.0/dist/server/main.js:1:343591
0|dspace-ui | at Array.forEach (<anonymous>)
0|dspace-ui | at DspaceRestResponseParsingService2.process (/home/dspace/dspace-angular-dspace-8.0/dist/server/main.js:1:343550)
0|dspace-ui | at /home/dspace/dspace-angular-dspace-8.0/dist/server/main.js:1:343591
0|dspace-ui | at Array.forEach (<anonymous>)
0|dspace-ui | at DspaceRestResponseParsingService2.process (/home/dspace/dspace-angular-dspace-8.0/dist/server/main.js:1:343550)
0|dspace-ui | ERROR RangeError: Maximum call stack size exceeded
0|dspace-ui | at DspaceRestResponseParsingService2.process (/home/dspace/dspace-angular-dspace-8.0/dist/server/main.js:1:341860)
0|dspace-ui | at /home/dspace/dspace-angular-dspace-8.0/dist/server/main.js:1:343591
0|dspace-ui | at Array.forEach (<anonymous>)
0|dspace-ui | at DspaceRestResponseParsingService2.process (/home/dspace/dspace-angular-dspace-8.0/dist/server/main.js:1:343550)
0|dspace-ui | at /home/dspace/dspace-angular-dspace-8.0/dist/server/main.js:1:343591
0|dspace-ui | at Array.forEach (<anonymous>)
0|dspace-ui | at DspaceRestResponseParsingService2.process (/home/dspace/dspace-angular-dspace-8.0/dist/server/main.js:1:343550)
0|dspace-ui | at /home/dspace/dspace-angular-dspace-8.0/dist/server/main.js:1:343591
0|dspace-ui | at Array.forEach (<anonymous>)
0|dspace-ui | at DspaceRestResponseParsingService2.process (/home/dspace/dspace-angular-dspace-8.0/dist/server/main.js:1:343550)
^C
root@imudsapce:~#
apache error-
[Fri Aug 07 08:48:21.572374 2026] [proxy:error] [pid 14550:tid 140188789495488] [client
52.4.238.8:57985] AH00898: Error reading from remote server returned by /communities/83d9cff0-b069-400a-bc05-cc29824672bb
[Fri Aug 07 08:48:27.267232 2026] [proxy_http:error] [pid 14424:tid 140188311340736] (70007)The timeout specified has expired: [client
222.252.37.129:45598] AH01102: error reading status line from remote server
127.0.0.1:4000, referer:
https://dspacenew8-imu.refread.com[Fri Aug 07 08:48:27.267337 2026] [proxy:error] [pid 14424:tid 140188311340736] [client
222.252.37.129:45598] AH00898: Error reading from remote server returned by /search, referer:
https://dspacenew8-imu.refread.com[Fri Aug 07 08:48:27.373783 2026] [proxy_http:error] [pid 14362:tid 140189368297152] (70007)The timeout specified has expired: [client
113.162.213.129:33710] AH01102: error reading status line from remote server
127.0.0.1:4000, referer:
https://dspacenew8-imu.refread.com[Fri Aug 07 08:48:27.373840 2026] [proxy:error] [pid 14362:tid 140189368297152] [client
113.162.213.129:33710] AH00898: Error reading from remote server returned by /search, referer:
https://dspacenew8-imu.refread.com[Fri Aug 07 08:48:27.599193 2026] [proxy_http:error] [pid 14395:tid 140188781102784] (70007)The timeout specified has expired: [client
72.252.37.228:37064] AH01102: error reading status line from remote server
127.0.0.1:4000, referer:
https://dspacenew8-imu.refread.com[Fri Aug 07 08:48:27.599300 2026] [proxy:error] [pid 14395:tid 140188781102784] [client
72.252.37.228:37064] AH00898: Error reading from remote server returned by /communities/83d9cff0-b069-400a-bc05-cc29824672bb, referer:
https://dspacenew8-imu.refread.com[Fri Aug 07 08:48:28.131193 2026] [proxy_http:error] [pid 14424:tid 140189493769920] (70007)The timeout specified has expired: [client
87.254.64.188:50408] AH01102: error reading status line from remote server
127.0.0.1:4000, referer:
https://dspacenew8-imu.refread.com[Fri Aug 07 08:48:28.131285 2026] [proxy:error] [pid 14424:tid 140189493769920] [client
87.254.64.188:50408] AH00898: Error reading from remote server returned by /communities/83d9cff0-b069-400a-bc05-cc29824672bb, referer:
https://dspacenew8-imu.refread.com[Fri Aug 07 08:48:28.197201 2026] [proxy_http:error] [pid 14424:tid 140188328126144] (70007)The timeout specified has expired: [client
41.238.226.216:57342] AH01102: error reading status line from remote server
127.0.0.1:4000, referer:
https://dspacenew8-imu.refread.com[Fri Aug 07 08:48:28.197279 2026] [proxy:error] [pid 14424:tid 140188328126144] [client
41.238.226.216:57342] AH00898: Error reading from remote server returned by /communities/83d9cff0-b069-400a-bc05-cc29824672bb, referer:
https://dspacenew8-imu.refread.com[Fri Aug 07 08:48:53.159269 2026] [proxy_http:error] [pid 14522:tid 140188395235008] (70007)The timeout specified has expired: [client
103.67.77.33:57042] AH01102: error reading status line from remote server
127.0.0.1:4000, referer:
https://dspacenew8-imu.refread.com[Fri Aug 07 08:48:53.159369 2026] [proxy:error] [pid 14522:tid 140188395235008] [client
103.67.77.33:57042] AH00898: Error reading from remote server returned by /search, referer:
https://dspacenew8-imu.refread.com[Fri Aug 07 08:49:00.017550 2026] [proxy_http:error] [pid 14424:tid 140189410260672] (70007)The timeout specified has expired: [client
88.187.4.136:1080] AH01102: error reading status line from remote server
127.0.0.1:4000, referer:
https://dspacenew8-imu.refread.com[Fri Aug 07 08:49:00.017687 2026] [proxy:error] [pid 14424:tid 140189410260672] [client
88.187.4.136:1080] AH00898: Error reading from remote server returned by /communities/83d9cff0-b069-400a-bc05-cc29824672bb, referer:
https://dspacenew8-imu.refread.com[Fri Aug 07 08:49:02.612271 2026] [proxy_http:error] [pid 14522:tid 140188772710080] (70007)The timeout specified has expired: [client
176.240.124.70:9588] AH01102: error reading status line from remote server
127.0.0.1:4000, referer:
https://dspacenew8-imu.refread.com[Fri Aug 07 08:49:02.612358 2026] [proxy:error] [pid 14522:tid 140188772710080] [client
176.240.124.70:9588] AH00898: Error reading from remote server returned by /communities/83d9cff0-b069-400a-bc05-cc29824672bb, referer:
https://dspacenew8-imu.refread.com[Fri Aug 07 08:49:15.427655 2026] [proxy_http:error] [pid 14488:tid 140189410260672] (104)Connection reset by peer: [client
186.72.239.7:41508] AH01102: error reading status line from remote server
127.0.0.1:4000[Fri Aug 07 08:49:15.427757 2026] [proxy:error] [pid 14488:tid 140189410260672] [client
186.72.239.7:41508] AH00898: Error reading from remote server returned by /search
"error.log" 27462L, 11111323B
tomcat error-
[2026-08-07 04:52:59] [info] at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
[2026-08-07 04:52:59] [info] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
[2026-08-07 04:52:59] [info] at java.base/java.lang.Thread.run(Thread.java:840)
[2026-08-07 04:59:42] [info] Error parsing HTTP request header
[2026-08-07 04:59:42] [info] Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.
[2026-08-07 04:59:42] [info] java.lang.IllegalArgumentException: Invalid character found in method name [SSH-2.0-PuTTY_Release_0.830x0d0x0a...]. HTTP method names must be tokens
[2026-08-07 04:59:42] [info] at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:407)
[2026-08-07 04:59:42] [info] at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:264)
[2026-08-07 04:59:42] [info] at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
[2026-08-07 04:59:42] [info] at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:896)
[2026-08-07 04:59:42] [info] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1744)
[2026-08-07 04:59:42] [info] at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
[2026-08-07 04:59:42] [info] at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
[2026-08-07 04:59:42] [info] at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
[2026-08-07 04:59:42] [info] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
[2026-08-07 04:59:42] [info] at java.base/java.lang.Thread.run(Thread.java:840)
[2026-08-07 05:57:57] [info] Error parsing HTTP request header
[2026-08-07 05:57:57] [info] Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.
[2026-08-07 05:57:57] [info] java.lang.IllegalArgumentException: Invalid character found in method name [0x160x030x010x000xee0x010x000x000xea0x030x030xa7N0x85Z0xa70xdf0xfc0xb20xec0x06ZG0xc74yHO;WW0xb90xbc0xe90xbf0x0a0xa10xce0x8bm1S0x80 ]. HTTP method names must be tokens
[2026-08-07 05:57:57] [info] at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:407)
[2026-08-07 05:57:57] [info] at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:264)
[2026-08-07 05:57:57] [info] at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
[2026-08-07 05:57:57] [info] at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:896)
[2026-08-07 05:57:57] [info] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1744)
[2026-08-07 05:57:57] [info] at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
[2026-08-07 05:57:57] [info] at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
[2026-08-07 05:57:57] [info] at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
[2026-08-07 05:57:57] [info] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
[2026-08-07 05:57:57] [info] at java.base/java.lang.Thread.run(Thread.java:840)
[2026-08-07 05:58:28] [info] Error parsing HTTP request header
[2026-08-07 05:58:28] [info] Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.
[2026-08-07 05:58:28] [info] java.lang.IllegalArgumentException: Invalid character found in method name [0x160x030x010x000xee0x010x000x000xea0x030x030xc4nf0xd60xf7W0x040x050x910xe60xbb0xf7I0xbco0x9et0x160x000xc80xab0xaf0xc7%0x1f0x010xf00x070xe60xbb0xff, ]. HTTP method names must be tokens
[2026-08-07 05:58:28] [info] at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:407)
[2026-08-07 05:58:28] [info] at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:264)
[2026-08-07 05:58:28] [info] at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
[2026-08-07 05:58:28] [info] at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:896)
[2026-08-07 05:58:28] [info] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1744)
[2026-08-07 05:58:28] [info] at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
[2026-08-07 05:58:28] [info] at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
[2026-08-07 05:58:28] [info] at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
[2026-08-07 05:58:28] [info] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
[2026-08-07 05:58:28] [info] at java.base/java.lang.Thread.run(Thread.java:840)
[2026-08-07 06:24:59] [info] Error parsing HTTP request header
[2026-08-07 06:24:59] [info] Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.
[2026-08-07 06:24:59] [info] java.lang.IllegalArgumentException: Invalid character found in method name [0x160x030x010x00{0x010x000x00w0x030x030x1cI0x140xc10x0f0x870xfe0xd7e0x090xa40x820xda0x96N0xcaY0xd60x060xcc0xaa0x000x1c0x9e0xd70x02E0xe30xba^0xd70x8a0x000x000x1a0xc0/0xc0+0xc00x110xc00x070xc00x130xc00x090xc00x140xc00x0a0x000x050x00/0x0050xc00x120x000x0a0x010x000x0040x000x050x000x050x010x000x000x000x000x000x0a0x000x080x000x060x000x170x000x180x000x190x000x0b0x000x020x010x000x000x0d0x000x100x000x0e0x040x010x040x030x020x010x020x030x040x010x050x010x060x010xff0x010x000x010x00...]. HTTP method names must be tokens
[2026-08-07 06:24:59] [info] at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:407)
[2026-08-07 06:24:59] [info] at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:264)
[2026-08-07 06:24:59] [info] at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
[2026-08-07 06:24:59] [info] at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:896)