DSpace Segmentation fault (core dumped)

54 views
Skip to first unread message

Precious Kapfunde

unread,
Jan 8, 2025, 8:22:22 AM1/8/25
to DSpace Technical Support
Good day everyone,

I am kindly asking for assistant on the problem I am currently facing. I am installing dspace 7 on ubuntu 22.04 and I got the following error when trying to run yarn run build:prod. My server has 4gb RAM

yarn run v1.22.22
$ cross-env NODE_ENV=production yarn run build:ssr
$ ng build --configuration production && ng run dspace-angular:server:production
Segmentation fault (core dumped)
error Command failed with exit code 139.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 139.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Nicholas Woodward

unread,
Jan 30, 2025, 4:57:46 PM1/30/25
to DSpace Technical Support
Hello,
When I build the DSpace 7 frontend I set the environment parameter "NODE_OPTIONS=--max_old_space_size=4096" to avoid Javascript out of memory errors. So the yarn build command becomes "NODE_OPTIONS=--max_old_space_size=4096 yarn run build:prod". There is more information in the DSpace documentation at: https://wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace#InstallingDSpace-Javascriptheapoutofmemory.

Nick
Reply all
Reply to author
Forward
0 new messages