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

SystemError: Directory is not readable by other users on the system #1532

Closed
Fanna1119 opened this issue Aug 3, 2021 · 2 comments
Closed

Comments

@Fanna1119
Copy link

Issue Summary

After ghost install local it would initially run fine and load up the server.
then ghost stop then ghost start it would fail with
SystemError

Message: The directory /home/fanna/ is not readable by other users on the system.
This can cause issues with the CLI, you must either make this directory readable by others or install node and Ghost-CLI in another location.

home/ is ofcourse read and writable considering the generated ./ghost directory

To Reproduce

  1. install ghost globally npm install ghost-cli@latest -g
  2. install ghost locally in newly created empty directory. ghost install local
ghost install local                                                                                                      ✔ 
✔ Checking system Node.js version - found v14.17.0
✔ Checking current folder permissions
✔ Checking memory availability
✔ Checking free space
✔ Checking for latest Ghost version
✔ Setting up install directory
✔ Downloading and installing Ghost v4.10.2
✔ Finishing install process
✔ Configuring Ghost
✔ Setting up instance
✔ Starting Ghost

Ghost was installed successfully! To complete setup of your publication, visit: 

    http://localhost:2369/ghost/
  1. run ghost stop (in created directory)
✔ Stopping Ghost: ghost-local
  1. run ghost start (in created directory)
Found a development config but not a production config, running in development mode instead
✖ Checking system Node.js version - found v14.17.0
ℹ Ensuring user is not logged in as ghost user [skipped]
ℹ Checking if logged in user is directory owner [skipped]
✔ Checking current folder permissions
✔ Validating config
✔ Checking memory availability
✔ Checking binary dependencies
One or more errors occurred.

1) SystemError

Message: The directory /home/fanna/ is not readable by other users on the system.
This can cause issues with the CLI, you must either make this directory readable by others or install node and Ghost-CLI in another location.

Debug Information:
    OS: ManjaroLinux, v21.0.7
    Node Version: v14.17.0
    Ghost Version: 4.10.2
    Ghost-CLI Version: 1.17.3
    Environment: development
    Command: 'ghost start'

  1. run ghost doctor
ghost doctor                                                           1 ✘ 
Found a development config but not a production config, running in development mode instead
✖ Checking system Node.js version - found v14.17.0
ℹ Ensuring user is not logged in as ghost user [skipped]
ℹ Checking if logged in user is directory owner [skipped]
✔ Checking current folder permissions
✔ Validating config
✔ Checking memory availability
✔ Checking binary dependencies
✔ Checking free space
One or more errors occurred.

1) SystemError

Message: The directory /home/fanna/ is not readable by other users on the system.
This can cause issues with the CLI, you must either make this directory readable by others or install node and Ghost-CLI in another location.

Debug Information:
    OS: ManjaroLinux, v21.0.7
    Node Version: v14.17.0
    Ghost Version: 4.10.2
    Ghost-CLI Version: 1.17.3
    Environment: development
    Command: 'ghost doctor'

Try running ghost doctor to check your system for known issues.
  1. ghost log
Found a development config but not a production config, running in development mode instead
[2021-08-03 08:41:25] INFO Creating table: tokens
[2021-08-03 08:41:25] INFO Creating table: snippets
[2021-08-03 08:41:25] INFO Model: Product
[2021-08-03 08:41:25] INFO Model: Tag
[2021-08-03 08:41:25] INFO Model: Role
[2021-08-03 08:41:25] INFO Model: Permission
[2021-08-03 08:41:25] INFO Model: User
[2021-08-03 08:41:25] INFO Model: Post
[2021-08-03 08:41:26] INFO Model: Integration
[2021-08-03 08:41:26] INFO Relation: Role to Permission
[2021-08-03 08:41:26] INFO Relation: Post to Tag
[2021-08-03 08:41:26] INFO Relation: User to Role
[2021-08-03 08:41:26] INFO Database is in a ready state.
[2021-08-03 08:41:26] INFO Ghost database ready in 3.962s
[2021-08-03 08:41:29] INFO Ghost booted in 6.785s
[2021-08-03 08:41:29] INFO Adding offloaded job to the queue
[2021-08-03 08:41:29] INFO Scheduling job update-check at 22 20 14 * * *. Next run on: Tue Aug 03 2021 14:20:22 GMT+0200 (South Africa Standard Time)
[2021-08-03 08:43:21] WARN Ghost is shutting down
[2021-08-03 08:43:21] WARN Ghost has shut down
[2021-08-03 08:43:21] WARN Ghost was running for 2 minutes

Technical details:

  • nvm Version: 0.38.0
  • OS: ManjaroLinux, v21.0.7
  • Node Version: v14.17.0
  • Ghost Version: 4.10.2
  • Ghost-CLI Version: 1.17.3
  • Environment: development
  • database: sqlite (ghost local defaults)

.ghost/config

{
  "instances": {
    "ghost-local": {
      "cwd": "/home/fanna/Documents/ghost1"
    }
  }
}

ghost ls

ghost ls                                                                 ✔ 
┌─────────────┬────────────────────┬─────────┬─────────┬─────┬──────┬─────────────────┐
│ Name        │ Location           │ Version │ Status  │ URL │ Port │ Process Manager │
├─────────────┼────────────────────┼─────────┼─────────┼─────┼──────┼─────────────────┤
│ ghost-local │ ~/Documents/ghost1 │ 4.10.2  │ stopped │ n/a │ n/a  │ n/a             │
└─────────────┴────────────────────┴─────────┴─────────┴─────┴──────┴─────────────────┘
ghost run                                                                ✔ 
The `ghost run` command is used by the configured Ghost process manager and for debugging. If you're not running this to debug something, you should run `ghost start` instead.
TypeError: Cannot read property 'connection' of undefined
    at Object.sanitizeDatabaseProperties (/home/fanna/Documents/ghost1/versions/4.10.2/core/shared/config/utils.js:62:25)
    at Object.loadNconf (/home/fanna/Documents/ghost1/versions/4.10.2/core/shared/config/loader.js:53:16)
    at Object.<anonymous> (/home/fanna/Documents/ghost1/versions/4.10.2/core/shared/config/index.js:3:25)
    at Module._compile (internal/modules/cjs/loader.js:1068:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
    at Module.load (internal/modules/cjs/loader.js:933:32)
    at Function.Module._load (internal/modules/cjs/loader.js:774:14)
    at Module.require (internal/modules/cjs/loader.js:957:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at bootGhost (/home/fanna/Documents/ghost1/versions/4.10.2/core/boot.js:275:18)
@ronaldlangeveld
Copy link
Member

Similar issue here:

#711

@ErisDS ErisDS transferred this issue from TryGhost/Ghost Aug 12, 2021
@vikaspotluri123
Copy link
Member

closing as a duplicate of #711

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

No branches or pull requests

3 participants