PrivacyDevel/nitter

Build failing with no reason listed?

Closed this issue · 2 comments

Hi, I'm trying to build this fork to set up my instance, and am getting the following output when running nimble build -d:release --verbose:

  Verifying dependencies for nitter@0.1.0
    Reading official package list
   Checking for jester@#baca3f
      Info: Dependency on jester@#baca3f already satisfied
  Verifying dependencies for jester@#baca3f
    Reading official package list
   Checking for httpbeast@>= 0.3.0
      Info: Dependency on httpbeast@>= 0.3.0 already satisfied
  Verifying dependencies for httpbeast@0.4.1
    Reading official package list
   Checking for asynctools@#0e6bdc3ed5bae8c7cc9
      Info: Dependency on asynctools@#0e6bdc3ed5bae8c7cc9 already satisfied
  Verifying dependencies for asynctools@#0e6bdc3ed5bae8c7cc9
    Reading official package list
   Checking for https://github.com/timotheecour/asynctools@#pr_fix_compilation
      Info: Dependency on https://github.com/timotheecour/asynctools@#pr_fix_compilation already satisfied
  Verifying dependencies for asynctools@#pr_fix_compilation
    Reading official package list
   Checking for karax@#5cf360c
      Info: Dependency on karax@#5cf360c already satisfied
  Verifying dependencies for karax@#5cf360c
    Reading official package list
   Checking for ws@any version
      Info: Dependency on ws@any version already satisfied
  Verifying dependencies for ws@0.5.0
    Reading official package list
   Checking for dotenv@>= 2.0.0
      Info: Dependency on dotenv@>= 2.0.0 already satisfied
  Verifying dependencies for dotenv@2.0.1
    Reading official package list
   Checking for sass@#7dfdd03
      Info: Dependency on sass@#7dfdd03 already satisfied
  Verifying dependencies for sass@#7dfdd03
    Reading official package list
   Checking for nimcrypto@#4014ef9
      Info: Dependency on nimcrypto@#4014ef9 already satisfied
  Verifying dependencies for nimcrypto@#4014ef9
    Reading official package list
   Checking for markdown@#158efe3
      Info: Dependency on markdown@#158efe3 already satisfied
  Verifying dependencies for markdown@#158efe3
    Reading official package list
   Checking for packedjson@#9e6fbb6
      Info: Dependency on packedjson@#9e6fbb6 already satisfied
  Verifying dependencies for packedjson@#9e6fbb6
    Reading official package list
   Checking for supersnappy@#6c94198
      Info: Dependency on supersnappy@#6c94198 already satisfied
  Verifying dependencies for supersnappy@#6c94198
    Reading official package list
   Checking for redpool@#8b7c1db
      Info: Dependency on redpool@#8b7c1db already satisfied
  Verifying dependencies for redpool@#8b7c1db
    Reading official package list
   Checking for https://github.com/zedeus/redis@#d0a0e6f
      Info: Dependency on https://github.com/zedeus/redis@#d0a0e6f already satisfied
  Verifying dependencies for redis@#d0a0e6f
    Reading official package list
   Checking for https://github.com/zedeus/redis@#d0a0e6f
      Info: Dependency on https://github.com/zedeus/redis@#d0a0e6f already satisfied
  Verifying dependencies for redis@#d0a0e6f
    Reading official package list
   Checking for zippy@#ca5989a
      Info: Dependency on zippy@#ca5989a already satisfied
  Verifying dependencies for zippy@#ca5989a
    Reading official package list
   Checking for flatty@#e668085
      Info: Dependency on flatty@#e668085 already satisfied
  Verifying dependencies for flatty@#e668085
    Reading official package list
   Checking for jsony@#ea811be
      Info: Dependency on jsony@#ea811be already satisfied
  Verifying dependencies for jsony@#ea811be
   Building nitter/nitter using c backend
  Executing /home/nitter/.nimble/bin/nim c --colors:on --noNimblePath -d:release -d:NimblePkgVersion=0.1.0 --path:'/home/nitter/.nimble/pkgs/jester-#baca3f' --path:/home/nitter/.nimble/pkgs/httpbeast-0.4.1 --path:'/home/nitter/.nimble/pkgs/asynctools-#0e6bdc3ed5bae8c7cc9' --path:'/home/nitter/.nimble/pkgs/asynctools-#pr_fix_compilation' --path:'/home/nitter/.nimble/pkgs/karax-#5cf360c' --path:/home/nitter/.nimble/pkgs/ws-0.5.0 --path:/home/nitter/.nimble/pkgs/dotenv-2.0.1 --path:'/home/nitter/.nimble/pkgs/sass-#7dfdd03' --path:'/home/nitter/.nimble/pkgs/nimcrypto-#4014ef9' --path:'/home/nitter/.nimble/pkgs/markdown-#158efe3' --path:'/home/nitter/.nimble/pkgs/packedjson-#9e6fbb6' --path:'/home/nitter/.nimble/pkgs/supersnappy-#6c94198' --path:'/home/nitter/.nimble/pkgs/redpool-#8b7c1db' --path:'/home/nitter/.nimble/pkgs/redis-#d0a0e6f' --path:'/home/nitter/.nimble/pkgs/redis-#d0a0e6f' --path:'/home/nitter/.nimble/pkgs/zippy-#ca5989a' --path:'/home/nitter/.nimble/pkgs/flatty-#e668085' --path:'/home/nitter/.nimble/pkgs/jsony-#ea811be' -o:/home/nitter/nitter/nitter /home/nitter/nitter/src/nitter.nim
Hint: used config file '/home/nitter/.choosenim/toolchains/nim-1.6.14/config/nim.cfg' [Conf]
Hint: used config file '/home/nitter/.choosenim/toolchains/nim-1.6.14/config/config.nims' [Conf]
Hint: used config file '/home/nitter/nitter/config.nims' [Conf]
.............................................................................................................................................................................................................................................................     Error: Build failed for package: nitter
        ... Execution failed with exit code 137
        ... Command: /home/nitter/.nimble/bin/nim c --colors:on --noNimblePath -d:release -d:NimblePkgVersion=0.1.0 --path:'/home/nitter/.nimble/pkgs/jester-#baca3f' --path:/home/nitter/.nimble/pkgs/httpbeast-0.4.1 --path:'/home/nitter/.nimble/pkgs/asynctools-#0e6bdc3ed5bae8c7cc9' --path:'/home/nitter/.nimble/pkgs/asynctools-#pr_fix_compilation' --path:'/home/nitter/.nimble/pkgs/karax-#5cf360c' --path:/home/nitter/.nimble/pkgs/ws-0.5.0 --path:/home/nitter/.nimble/pkgs/dotenv-2.0.1 --path:'/home/nitter/.nimble/pkgs/sass-#7dfdd03' --path:'/home/nitter/.nimble/pkgs/nimcrypto-#4014ef9' --path:'/home/nitter/.nimble/pkgs/markdown-#158efe3' --path:'/home/nitter/.nimble/pkgs/packedjson-#9e6fbb6' --path:'/home/nitter/.nimble/pkgs/supersnappy-#6c94198' --path:'/home/nitter/.nimble/pkgs/redpool-#8b7c1db' --path:'/home/nitter/.nimble/pkgs/redis-#d0a0e6f' --path:'/home/nitter/.nimble/pkgs/redis-#d0a0e6f' --path:'/home/nitter/.nimble/pkgs/zippy-#ca5989a' --path:'/home/nitter/.nimble/pkgs/flatty-#e668085' --path:'/home/nitter/.nimble/pkgs/jsony-#ea811be' -o:/home/nitter/nitter/nitter /home/nitter/nitter/src/nitter.nim

Is there something I'm missing? I followed the instructions in the README, substituting the repo URL for this fork.

I assume your machine ran out of memory? That's what "exit code 137" seems to signify. If you can't give it more memory, maybe add some swap and try again.

Yup, that was the problem. I was using the bottom of the barrel droplet on DigitalOcean with 512 MB of RAM. Resizing the droplet fixed it. Thanks @PrivacyDevel !

For anybody trying to build on a droplet: you need to use at least the "Basic" droplet with 2 GB of RAM that costs $12 per month. I think you can create a droplet with the cheapest option, then resize just the CPU and RAM portion of it, then build, then resize it back (although whether Nitter will run on such a small instance or not I don't know).