Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.9.5 breaks ghost install #834

Closed
4 tasks done
MaskyS opened this issue Oct 2, 2018 · 3 comments · Fixed by #835
Closed
4 tasks done

Release 1.9.5 breaks ghost install #834

MaskyS opened this issue Oct 2, 2018 · 3 comments · Fixed by #835
Assignees
Labels

Comments

@MaskyS
Copy link

MaskyS commented Oct 2, 2018

Summary

The script on DigitalOcean's one-click Ghost app no longer works, returning ENOENT: no such file or directory, lstat '/home/ghost-mgr/.config'' ghost Manually running ghost install from /var/www/ghost gave the same error.

Steps to Reproduce

Note: Keep in mind I did this on a droplet that, when created, came with ghost-cli 1.9.4. I then rebuilt the droplet today, at which point I started getting the error. I'm not sure what effect this may have had, but mentioning it anyway.

  1. Create a 1-click ghost app on DigitalOcean
  2. SSH into the droplet, setup will start and install ghost-cli
  3. Press enter when prompted to do so

Following error message:

✖ Ensuring correct ~/.config folder ownership
An error occurred.
Message: 'ENOENT: no such file or directory, lstat '/home/ghost-mgr/.config''


Debug Information:
    OS: Ubuntu, v18.04
    Node Version: v8.10.0
    Ghost-CLI Version: 1.9.5
    Environment: production
    Command: 'ghost install --auto --db=mysql --dbhost=localhost --dbname=ghost_production --dbuser=ghost --dbpass=ce5d7f42ea7ac28d219d0def04a48e12c7fca6077ecfb944 --dir=/var/www/ghost --start'

Log file

Debug Information:
    OS: Ubuntu, v18.04
    Node Version: v8.10.0
    Ghost-CLI Version: 1.9.5
    Environment: production
    Command: 'ghost install --auto --db=mysql --dbhost=localhost --dbname=ghost$
An error occurred.
Message: 'ENOENT: no such file or directory, lstat '/home/ghost-mgr/.config''

Stack: Error: ENOENT: no such file or directory, lstat '/home/ghost-mgr/.config'
Code: ENOENT
Path: /home/ghost-mgr/.config


Bug submission checklist

Please fill out this checklist to acknowledge that you followed the requirements to submit a bug report.

  • Tried to find help in the forum & docs
  • Checked for existing issues
  • Attached log file
  • Provided technical details incl. operating system

Resolving error

  1. Install ghost-cli 1.9.4: sudo npm i -g [email protected]
  2. Follow through with this guide to obtain MySQL details, etc
  3. Switch user using sudo -i -u ghost-mgr
  4. Go to where you want to install ghost: cd /var/www/ghost
  5. Run ghost install and enter details collected from Step 2
@acburdine
Copy link
Member

@MaskyS confirmed, am working on a fix.

@acburdine acburdine self-assigned this Oct 2, 2018
@acburdine acburdine added the bug label Oct 2, 2018
acburdine added a commit to acburdine/Ghost-CLI that referenced this issue Oct 2, 2018
closes TryGhost#834
- add fs.existsSync check to task `enabled` fn
acburdine added a commit that referenced this issue Oct 2, 2018
closes #834
- add fs.existsSync check to task `enabled` fn
@acburdine
Copy link
Member

@MaskyS Just released [email protected] which fixes the issue. Sorry for the trouble!

@MaskyS
Copy link
Author

MaskyS commented Oct 3, 2018

Awesome, thanks for the prompt fix 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants