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/config not pupulated after ghost install fron non-root user

See original GitHub issue

There is also no info about modifying ~/.ghost/config file when doing verbose installation. It works however if I do the installation from root. How do I troubleshoot that?

[ghost@test strefadysk_prd]$ ghost ls
β”Œβ”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Name β”‚ Location β”‚ Status β”‚ Url β”‚ Port β”‚ Process Manager β”‚
β””β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
[ghost@test strefadysk_prd]$ ghost install --no-stack --pname strefadysk_prd --url 'http://test.pl'
 βœ” Checking for latest Ghost version
 βœ” Running system checks
 βœ” Setting up install directory
 βœ” Downloading and installing Ghost v1.0.0-beta.1
 βœ” Moving files
? Enter your blog URL: http://test.pl
? Enter your MySQL hostname: localhost
? Enter your MySQL username: ghost
? Enter your MySQL password: [hidden]
? Enter your Ghost database name: strefadysk_prd
βœ” Finishing setup
? Do you want to start Ghost? No
[ghost@test strefadysk_prd]$ ghost ls
β”Œβ”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Name β”‚ Location β”‚ Status β”‚ Url β”‚ Port β”‚ Process Manager β”‚
β””β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
[ghost@test strefadysk_prd]$
[ghost@test strefadysk_prd]$ ls -la  ~/.ghost/
drwxrwxr-x. 2 ghost ghost 4096 Jun 12 02:53 .
drwx------. 6 ghost ghost 4096 Jun 21 15:09 ..
-rw-rw-r--. 1 ghost ghost   17 Jun 21 16:46 config

[ghost@test strefadysk_prd]$ cat ~/.ghost/config
{"instances":[]}

Ghost Version: beta.1 OS: Centos 7.3 Database: MariaDB

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
acburdinecommented, Jun 23, 2017

So I did figure out what this was - if you have only one instance ghost uninstall sets the instances parameter in ~/.ghost/config to an empty array, rather than an empty object like it’s supposed to be. The next time you run ghost setup, it tries to set a value on an object and gets an empty array so it doesn’t work right.

Fix will be released in 1.0.0-alpha.19

0reactions
acburdinecommented, Jun 21, 2017

Oh…that makes more sense then! Must have introduced this bug when working on cleaning up the instance list after ghost uninstall 😞

Read more comments on GitHub >

github_iconTop Results From Across the Web

Root user permissions fix - Ghost
Running into trouble with root user permissions when spinning up a Ghost instance? Here's a quick guide to get things working again!
Read more >
How To Configure and Maintain Ghost from the Command Line
Hi! Do i need to run my Ghost installation as root? Can I change to another user? And how would I go about...
Read more >
How install Ghost in a subfolder - Ghostboard
Find out how to install Ghost in a subfolder like /ghost following this ... Set the URL ... Edit your Ghost config file,...
Read more >
How to update Ghost on a v15.x TurnKey Ghost appliance
So here's how to change the default TurnKey Linux Ghost install and config to bring your Ghost install ... Important note for non...
Read more >
How to install Ghost | InMotion Hosting
Installing Ghost. Note: You will need a VPS or dedicated server with root access to install Ghost. First, log into your server via...
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