I am facing error in yarn test:rest and also error 500 in opening http://localhost:4000

62 views
Skip to first unread message

DVC Library

unread,
Apr 2, 2025, 7:25:19 AM4/2/25
to DSpace Technical Support
Hello Experts
I am installing Dspace 7.5 on window 10, I faced yarn test:rest issue which shows error 404
but I contined further steps and finaly opend the dspace http://localhost:4000. It succeed. But when I cloased all the commands window and I refresh it. It was not loading edit community and subcommunity, when I restarted solr, topcat, and also run pm2 start dspace-angular.json. But its not started again.
for reference, I have attached some screenshots.
Pls help me in this regard.

dspace error2.png
Error 404 in yarn test rest.png
dspace angular json.png
config prod yml setting.png

Hoang Loc Guitar - Tự học đàn cổ nhạc Việt Nam

unread,
Apr 3, 2025, 5:23:03 AM4/3/25
to DVC Library, DSpace Technical Support
Dear  DVC Library,

I looked at the error images you attached. I found that the path you set to run the yarn test:rest command is incorrect. Please double check your path before running the yarn test:rest command. In particular, your dspace-angular.json file has an incorrect path. You should reset, in my opinion it is like this:
{
"apps": [
{
"name": "dspace-ui",
"cwd": "C:\\build\\dspace-angular-dspace-7.5",
"script": "dist\\server\\main.js",
"instances": "max",
"exec_mode": "cluster",
"env": {
"NODE_ENV": "production"
}
}
]
}
And the path for you to run the yarn test:rest command is as follows:
C:\build\dspace-angular-dspace-7.5>yarn test:rest
Good luck with your dspace 7.5.
Best regards!

--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
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 dspace-tech...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dspace-tech/1eb280f9-2395-4efc-8fc2-b4d03f386a21n%40googlegroups.com.

DVC Library

unread,
Apr 4, 2025, 5:21:57 AM4/4/25
to Hoang Loc Guitar - Tự học đàn cổ nhạc Việt Nam, DSpace Technical Support
Thank you very much sir for your instant support and expertise. 
The script you have given is pasted in the dspace-angular.json file, 
and happy to say that the yarn test:rest was successful. 
But I facing another problem, Pls support
before open dspace, I start the solr first (solr start -p 8983)
then it works and opens the localhost:4000
But when I close the CMD window of solr start commands, the Dspace also stops showing the communities-subcommunitities that I have created. If tomcat restarted, it showed an error 500. 
When I start the solr again and after tomcat, It works, but every time the same practice is not convenient. I know there may be a solution. Pls guide me. 

Hoang Loc Guitar - Tự học đàn cổ nhạc Việt Nam

unread,
Apr 4, 2025, 6:18:54 AM4/4/25
to DVC Library, DSpace Technical Support

For your dspace project to work properly, you must ensure that all the following services are running: solr, tomcat9, pm2. However, on a windows environment, you must set the solr, pm2 services to automatically start with windows when the computer is powered on.


Vào 16:21, T.6, 4 Th4, 2025 DVC Library <mtesdvc...@gmail.com> đã viết:
Reply all
Reply to author
Forward
0 new messages