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.

Ghost-CLI failing on: Checking folder permissions

See original GitHub issue

This issue is a bug report.

Summary

While following the Install & Setup (production) tutorial, the installation fails at: Checking folder permissions

Steps to Reproduce (for a bug report)

Follow the instructions for the Install & Setup (production) tutorial.

I follow the steps in the Installing on Linux tutorial and fail at ghost install, ghost setup, and ghost doctor at the exact same point: when Checking folder permissions. I receive a very uninformative (maybe give details about which user needs what access to where) message that states:

One or more errors occurred.

1) Checking folder permissions

Then it proceeds to list out each and every file/folder inside of the following folders:

  • content
  • versions
  • system

Here’s my ls -al output just to verify everything has the right permissions (at least based on the tutorial):

snarlynarwhal@halfhuman:/var/www/dwerve.com/html/ghost$ ls -al
total 28
drwxrwsr-x 5 snarlynarwhal snarlynarwhal 4096 May 17 22:20 .
drwxrwsr-x 3 www           www           4096 May 17 22:17 ..
-rw-rw-r-- 1 snarlynarwhal snarlynarwhal  517 May 17 22:20 config.production.json
drwxrwsr-x 8 ghost         ghost         4096 May 17 22:18 content
lrwxrwxrwx 1 snarlynarwhal snarlynarwhal   46 May 17 22:18 current -> /var/www/dwerve.com/html/ghost/versions/1.22.8
-rw-rw-r-- 1 snarlynarwhal snarlynarwhal   88 May 17 22:19 .ghost-cli
drwxrwsr-x 3 snarlynarwhal snarlynarwhal 4096 May 17 22:20 system
drwxrwsr-x 3 snarlynarwhal snarlynarwhal 4096 May 17 22:18 versions
snarlynarwhal@halfhuman:/var/www/dwerve.com/html/ghost$

Log file (for a bug report)

✔ Checking system Node.js version
✔ Checking logged in user
✔ Ensuring user is not logged in as ghost user
✔ Checking if logged in user is directory owner
✔ Checking current folder permissions
✔ Checking operating system compatibility
✔ Checking for a MySQL installation
Running sudo command: systemctl is-active ghost_blog-dwerve-com
✔ Validating config
✖ Checking folder permissions
✔ Checking file permissions
✔ Checking content folder ownership
✔ Checking memory availability
One or more errors occurred.

1) Checking folder permissions

Message: Your installation folder contains some directories or files with incorrect permissions:
- ./
- ./content
- ./content/images
- ./content/data
...
- ./versions/1.22.8/content/settings
- ./system
- ./system/files
Run sudo find ./ -type d -exec chmod 775 {} \; and try again.

Debug Information:
    OS: Ubuntu, v16.04
    Node Version: v6.14.2
    Ghost-CLI Version: 1.7.3
    Environment: production
    Command: 'ghost update'

Try running ghost doctor to check your system for known issues.

Please refer to https://docs.ghost.org/v1/docs/troubleshooting#section-cli-errors for troubleshooting.

Technical details (for a bug report)

The exact recommended stack.

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (12 by maintainers)

github_iconTop GitHub Comments

13reactions
aileencommented, May 18, 2018

Hey @snarlynarwhal 👋

I receive a very uninformative (maybe give details about which user needs what access to where) message that states

I’m not sure I understand, the output tells you to run a command:

Run sudo find ./ -type d -exec chmod 775 {} ; and try again.

When you created the installation folder, after setting the ownership to your user, did you also run the command to change the permissions?

sudo chmod 775 /var/www/dwerve.com/html/ghost

I am closing this as I don’t believe this is a bug in the CLI. Please come over to our forum if you need help. If it turns out to be a bug indeed, we can always reopen this issue.

1reaction
snarlynarwhalcommented, May 24, 2018

Okay cool 👍 I can go ahead and create a pr later today

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ghost-CLI failing on: Checking folder permissions - Installation
I set these permission modes on my var/www folder for another reason and creating a new folder in this directory seemed to carry...
Read more >
Ghost Blog - How to Update - Infoitech
I copied the ghost folder to a backup folder: ... folder permissions ✓ Checking folder permissions ✓ Checking file permissions ✓ Checking ......
Read more >
502 Bad Gateway After Ghost Upgrade - DigitalOcean
– To solve I made the dir manually. When trying ghost update --force I get the error Message: 'EACCES: permission denied, rmdir '/var/www/ghost/ ......
Read more >
When I Install ghost with ghost-cli I get this error - Stack Overflow
Checking system Node.js version - found v14.18.3 ✓ Checking logged in user ✓ Checking current folder permissions System checks failed with ...
Read more >
Nginx missing when installing ghost - ubuntu - Super User
Checking current folder permissions. System checks failed with message: 'Missing package(s): Nginx Some features of Ghost-CLI may not work ...
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