ODK Central Installation Does Not Complete (Digital Ocean)

Hello, I am trying to complete the installation of ODK Central, but after running docker-compose build presents the error below, not completing the installation.

<--- JS stacktrace --->
Cannot get stack trace in GC.
FATAL ERROR: NewSpace::Rebalance Allocation failed - process out of memory
1: node::Abort() [node]
2: 0x8cd49c [node]
3: v8::Utils::ReportOOMFailure(char const*, bool) [node]
4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [node]
5: 0xa6812b [node]
6: v8::internal::MarkCompactCollector::Evacuate() [node]
7: v8::internal::MarkCompactCollector::CollectGarbage() [node]
8: v8::internal::Heap::MarkCompact() [node]
9: v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [node]
10: v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
11: v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationSpace) [node]
12: v8::internal::Runtime_AllocateInTargetSpace(int, v8::internal::Object**, v8::internal::Isolate*) [node]
13: 0xd597d6042fd
 ERROR  Error: Command failed: /client/node_modules/@vue/cli-service/bin/vue-cli-sevice.js build --modern
Error: Command failed: /client/node_modules/@vue/cli-service/bin/vue-cli-service.js build --modern
  at makeError (/client/node_modules/execa/index.js:174:9)
  at Promise.all.then.arr (/client/node_modules/execa/index.js:278:16)
  at <anonymous>
  at process._tickCallback (internal/process/next_tick.js:189:7)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! odk-central-frontend@0.1.0 build: `vue-cli-service build --modern`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the odk-central-frontend@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-09-18T10_45_29_818Z-debug.log
ERROR: Service 'nginx' failed to build: The command '/bin/sh -c files/prebuild/build-frontend.sh' returned a non-zero code: 1
root@odkbrasil:~/central#

hi @Wellington_Fonseca: which droplet configuration did you choose?

1 Like

Hi @issa,
Of all the step-by-step cited in ODK Docs Central, the only difference was that the document looks like Docker 5: 18.09.6 ~ 3 on 18.04 and Digital only has the option of Docker 5: 19.03.1 ~ 3 on 18.04 :blush:

okay, but which droplet size did you choose? the documentation makes suggestions but does not firmly specify.

1 Like

@issa

so, we recently changed how we build the frontend web application, and it looks like the new webpack solution consumes a great deal more memory than the old method. i just ran it on a bigger machine and it consumes a bit over 1GB to build the frontend files (!). @Matthew_White is there any way we can slim it down?

for now, i would recommend going to the Resize option in the digitalocean control panel and bump the size up to 2GB just for the install process, then drop it back down. please let me know if you need more detail there, or if it doesn't work!

1 Like

Hello @issa ,
The problem mentioned above was successfully resolved, I adjusted it to 3GB as a precaution. But I think it would be very useful to add this to the document. :blush:

1 Like

hello! i agree for sure if we can't solve the problem. but i'm hoping that there will be an answer that doesn't involve allocating such a large amount of memory just to build some javascript files..

2 Likes

As an update to this topic, we have modified our Frontend build process so that it requires less memory. Users should now again be able to install ODK Central on a 1 GB droplet. We have released a new patch version, v0.6.1, that includes the new build process.

1 Like