-
-
Notifications
You must be signed in to change notification settings - Fork 227
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
Can't connect to the bootstrap socket (localhost 8000) ECONNREFUSED #1017
Comments
@cooervo this might be related to #805, but would you be able to try removing the The error that's occurring is that either Ghost, or the CLI can't connect to the bootstrap socket on port 8000, so either the config.production.json is messing with things or there's a permissions issue preventing Ghost/Ghost-CLI from connecting to port 8000. |
@acburdine Thanks removing
|
based on your |
@acburdine this is what nginx.conf looks like:
Output:
|
the nginx configuration i'm interested in should be |
@acburdine there are 4 files: 1 for ssl with www. the other without www. and the same without ssl.
Since the website was working on https I'll paste ssl content let me know if you need the other files content:
Output:
Output:
|
ok, I see what the problem is 😄 not sure why it happened, but it does appear that the port configuration in your production configuration and the one in the nginx configuration got out of sync. What you'll need to do is update |
@acburdine oh man you don't know how relieved I am to finally fix this. :D x 1'000.000 Thanks for your enormous patience and help. You made my day, my week! 😃 |
Glad to help 😄 Going to close this issue as the problem's been resolved. In the future, the forum (https://forum.ghost.org) is probably the best spot for these types of requests, as it will have greater visibility. |
yup I tried the forum before as linked in my original post. But thanks anyways ! |
ah whoops - didn't realize the link above was a link to the forum 😅 |
This was the fix for me. I had to remove the following section from the prod config. "bootstrap-socket": {
"port": 8000,
"host": "localhost"
}, Once removed it all started working again. |
I have the same issue of bootstrap sockets while doing |
Any workaround on this? I spent several days and nothing, except upgrading nodejs version, which is not an option for me. |
In case anyone else gets this, this happened to me when changing the domain name for a ghost site. Since config set was called while the server was running, it seems to have detected the port was in use and changed the port to a new number automatically. Compiling the confusion of this, there's two "port:" keys in the config file - the one in the 'server' block seems to be the correct one to edit. |
In my case, it was happening because I had
to:
and chmod from Another error I initially made was to install Hope it will help someone one day, because I spent countless hours on this. |
Hi ghost team,
I have tried to debug this issue since September 26, 2019. Sadly I haven't had much progress. This my own Digital Ocean Server, with Ubuntu and Ghost which has worked without problems since approximately 6months ago (July 2019), until very recently, One day I just logged in and ran
ghost stop
and thenghost start
and after that it hasn't worked again.Steps to reproduce
ssh root@mywebsite.com
sudo -i -u ghost-mgr
cd /var/www/ghost
ghost run
output:Permissions of
/var/www/ghost/ dir after running
ls -la`:Are the permissions okay?
Contents of my
config.production.json
:Is the config file okay?
Log file
cat ~/var/www/ghost/content/logs/https___www_mywebsite_com_production.log]
contents:Technical details
Bug submission checklist
Please fill out this checklist to acknowledge that you followed the requirements to submit a bug report.
The text was updated successfully, but these errors were encountered: