Cabal: Failed to build openapi3-3.2.2

Hello everybody

I’ve been going through the stake pool course, setting up a test node on AWS, with the recommended parameters from the course, and now want to set up the wallet, as per the instructions on Installing cardano-wallet | Cardano Developer Portal.

Following the “cabal build all” instruction, I receive the error message:
“cabal: Failed to build openapi3-3.2.2 (which is required by test:unit from
cardano-wallet-core-2022.5.27). The build process was killed (i.e. SIGKILL).
The typical reason for this is that there is not enough memory available (e.g.
the OS killed a process using lots of memory).”

See also attached screenshot. Any ideas?

Kind regards,
Pfannenstiel

image

type free -m, as u can see could be an issue with insufficient RAM

Thanks, yes, about 2 of 4 GB used, 1 GB free, 1 GB for buff / cache. Which, I suppose, means 4 GB total is not enough.

you can try to activate/configure 3G SWAP file

sudo fallocate -l 3G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile

now to make it permanently type
sudo nano /etc/fstab

and add to the end, as a new line
/swapfile swap swap defaults 0 0
save the file (Ctrl + x then Y then ENTER)

check if the configuration was successfully

free -m

but will not be enough to run a node on mainnet with this setup (not enough RAM)… the server should have at least 8G RAM + 3-4G swap file