Better error handling when system runs out of memory
See original GitHub issueTrying 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:
- Created 6 years ago
- Comments:28 (14 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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
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.