forntend yarn build:prod failed

759 views
Skip to first unread message

A H

unread,
Sep 1, 2023, 10:15:58 AM9/1/23
to DSpace Technical Support
Hi!

I want to compile dspace-angular to set up the front end. All requirements are installed successfully. When I enter

yarn build:prod

the process fails after aprox. 3-4 min (after setup, building and sealing) and exits with the following:

⠙ Generating server application bundles (phase: setup)...    [webpack.cache.PackFileCacheStrategy] acb35c433252878e0d45638aac56ea6b5.pack: Error: ENOENT: no such file or directory, stat '/dspace-anga6b5/index.pack'
<t> [webpack.cache.PackFileCacheStrategy] restore cache container: 17.47242 ms
error Command failed with signal "SIGKILL".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

any ideas on what is the actuall problem and how to fix it?
Thanks in advance

All the best
Anna

DSpace Technical Support

unread,
Sep 1, 2023, 11:03:43 AM9/1/23
to DSpace Technical Support
Hi Anna,

Try running a clean, reinstall and then recompile.  It sounds like the compilation is complaining that an expected file isn't found.  That may imply that you need to do this:

# Clean out everything from last install/build
yarn clean
# Install all dependencies
yarn install
# Build again
yarn build:prod

If that doesn't work, you may want to verify you are using a supported version of Yarn and Node: https://wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace#InstallingDSpace-FrontendRequirements

Tim

A H

unread,
Sep 4, 2023, 8:54:13 AM9/4/23
to DSpace Technical Support
Hi Tim,

thanks for the input.
I ran your suggestions with

yarn cache clean

(since just yarn clean was  not an option) and nothing changed.
Both Yarn and Node are installed in the supported versions and I still get the same error message.

Do you have any further advise?

All the best
Anna

DSpace Technical Support

unread,
Sep 6, 2023, 11:56:38 AM9/6/23
to DSpace Technical Support
Hi Anna,

This error is very confusing to me & not one I've seen before in a build.

What platform (Operating System) are you using?  Do you have a decent amount of available memory? (say 4-6GB?) 

What version of DSpace did you download to install?  Could you try downloading it again to make sure the original download wasn't somehow corrupted?

What does "yarn -v" return?  What does "node -v" return?

Something seems "off" and I'm not sure what it could be.  You could try giving Node.js more memory explicitly as described here: https://wiki.lyrasis.org/display/DSDOC7x/Performance+Tuning+DSpace#PerformanceTuningDSpace-GiveNode.jsmorememory  

 But, the error you are sharing doesn't sound like a memory error to me.  So, I'm not exactly sure what is going on. I think we need more information about your setup to understand what might have gone wrong.

Tim

Reply all
Reply to author
Forward
0 new messages