question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Better error handling when system runs out of memory

See original GitHub issue

Trying to run ghost install --no-setup I got this error:

$ ghost install --no-setup $ cat ghost-cli-debug-xxx.log

Debug Information:
    Node Version: v6.10.3
    Ghost-CLI Version: 1.0.0-alpha.16
    Environment: production
    Command: 'ghost install --no-setup'
An error occurred.
Message: 'Command failed: yarn install --no-emoji --no-progress
yarn install v0.21.3
[1/4] Resolving packages...
[2/4] Fetching packages...
'

Stack: Error: Command failed: yarn install --no-emoji --no-progress
yarn install v0.21.3
[1/4] Resolving packages...
[2/4] Fetching packages...

    at Promise.all.then.arr (/usr/lib/node_modules/ghost-cli/node_modules/execa/index.js:210:11)
    at process._tickCallback (internal/process/next_tick.js:109:7)

Not sure what caused this?

Trying to run the installer again results in:

$ ghost install --no-setup

A SystemError occured.

Message: Current directory is not empty, Ghost cannot be installed here.

Debug Information:
    Node Version: v6.10.3
    Ghost-CLI Version: 1.0.0-alpha.16
    Environment: production
    Command: 'ghost install --no-setup'

I understand why this is, but it’s not very helpful 😁 - if the installer fails, I should be able to try again I think?

First issue is something I want to get to the bottom of, clean re-installs is something for later.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:28 (14 by maintainers)

github_iconTop GitHub Comments

11reactions
chansslcommented, Jul 17, 2017

@acburdine Thank you. Look like my system was running out of memory. I will try again after I upgrade the vps .

update : It can be successfully installed after I configured the swap. thanks

dd if=/dev/zero of=/var/swap bs=1k count=1024k mkswap /var/swap swapon /var/swap echo ‘/var/swap swap swap default 0 0’ >> /etc/fstab

2reactions
arvindvenkataramanicommented, Jul 17, 2017

Definitely an out of memory exception (Ubuntu 16.04.2 with node 6.11.1 installing Ghost 1 RC); I have 512M on a droplet – adding a 1G swap file fixed it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

“Your system has run out of application memory” Mac Error
“Your system as run out of application memory” is an error message encountered by some Mac users, often seemingly out of nowhere.
Read more >
Troubleshoot Out of Memory issues - ASP.NET - Microsoft Learn
This article helps you troubleshoot Out of Memory errors in ASP.NET. Original product version: ASP.NET Original KB number: 2020006 ...
Read more >
Do you handle Out-Of-Memory conditions?
If something returns an error condition, then it has to be handled by your program. Even if it is a message that says...
Read more >
How to Fix JavaScript Heap Out of Memory Error - MakeUseOf
Open the Start menu, search for Advanced System Settings, and select the Best match. · From the dialog box, click on Environment Variables,...
Read more >
Understanding The Out Of Memory Error In Java - Xperti
Out of memory error is one of the most consequential runtime errors in Java. Find out the reasons behind it and how you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found