Ghost-CLI failing on: Checking folder permissions
See original GitHub issueThis 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:
- Created 5 years ago
- Comments:14 (12 by maintainers)
Top GitHub Comments
Hey @snarlynarwhal 👋
I’m not sure I understand, the output tells you to run a command:
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.
Okay cool 👍 I can go ahead and create a pr later today