Out of memory trying to install glitch-soc

My YunoHost server

Hardware: VPS bought online
YunoHost version: 11.0.6
I have access to my server : Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

Looks like it’s running out of memory trying to install glitch-soc - I have 1 GB of memory.

A snippet of the logs are below, the full logs are here.

2022-05-07 22:57:44,210: DEBUG - FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
2022-05-07 22:57:44,210: DEBUG -  1: 0xa1ae50 node::Abort() [node]
2022-05-07 22:57:44,210: DEBUG -  2: 0xa1b25c node::OnFatalError(char const*, char const*) [node]
2022-05-07 22:57:44,210: DEBUG -  3: 0xb9b20e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
2022-05-07 22:57:44,210: DEBUG -  4: 0xb9b589 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
2022-05-07 22:57:44,211: DEBUG -  5: 0xd58815  [node]
2022-05-07 22:57:44,211: DEBUG -  6: 0xd58ea6 v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [node]
2022-05-07 22:57:44,211: DEBUG -  7: 0xd65765 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [node]
2022-05-07 22:57:44,211: DEBUG -  8: 0xd66615 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
2022-05-07 22:57:44,211: DEBUG -  9: 0xd690cc v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
2022-05-07 22:57:44,211: DEBUG - 10: 0xd2faeb v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [node]
2022-05-07 22:57:44,211: DEBUG - 11: 0x10720be v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [node]
2022-05-07 22:57:44,211: DEBUG - 12: 0x140e819  [node]
2022-05-07 22:57:44,212: DEBUG - 
2022-05-07 22:57:51,626: DEBUG - + ynh_exit_properly
2022-05-07 22:57:52,153: DEBUG - + ynh_clean_setup
2022-05-07 22:57:52,153: DEBUG - + ynh_clean_check_starting
2022-05-07 22:57:52,154: DEBUG - + '[' -n '' ']'
2022-05-07 22:57:52,154: DEBUG - + '[' -n '' ']'
2022-05-07 22:57:53,201: ERROR - Unable to install glitchsoc: An error occurred inside the app installation script

Let me know if I can provide any other details!

You can add a temporary (or not) swap partition to use your disk/ssd space for memory. In the command line:

(I put 2G, for 2GB. Reduce it if you are tight on space, like 1G)

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

Confirm it’s working with: sudo swapon --show and free -mh

Let’s make it permanent:

echo "/swapfile swap swap defaults 0 0" | sudo tee -a /etc/fstab

You can then retry installing the app. Be wary, it will still take quite some time.

2 Likes

Thanks for your reply! I created a 2GB swap partition (it did take a while!), but unfortunately I’m still running into the exact same error message. :frowning_face: :face_with_diagonal_mouth:

I upgraded my VPS to 2 GB memory and after quite some time, the installation worked!! :raised_hands: :tada: :smile:

3 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.