- What’s your URL?
https://dursuncanpoyraz.com.tr
- What version of Ghost are you using?
Ghost-CLI version: 1.15.3
Ghost version: 3.40.2 (at /var/www/ghost)
- What configuration?
Nginx 1.16 , Ubuntu 18.04
- What browser?
Chrome
- What errors or information do you see in the console?
Failed to load resource: the server responded with a status of 502 (Bad Gateway)
- What steps could someone else take to reproduce the issue you’re having? -
dursuncan@localhost:/var/www/ghost$ ghost setup
? Enter your blog URL: https://dursuncanpoyraz.com.tr
? Enter your MySQL hostname: localhost
? Enter your MySQL username: websites
? Enter your MySQL password (skip to keep current password): [hidden]
? Enter your Ghost database name: websites
✔ Configuring Ghost
+ sudo chown -R ghost:ghost /var/www/ghost/content
✔ Setting up "ghost" system user
ℹ Setting up "ghost" mysql user [skipped]
? Do you wish to set up Nginx? Yes
+ sudo mv /tmp/ghost-local/dursuncanpoyraz.com.tr.conf /etc/nginx/sites-available/dursuncanpoyraz.com.tr.conf
+ sudo ln -sf /etc/nginx/sites-available/dursuncanpoyraz.com.tr.conf /etc/nginx/sites-enabled/dursuncanpoyraz.com.tr.conf
+ sudo nginx -s reload
✔ Setting up Nginx
? Do you wish to set up SSL? Yes
? Enter your email (For SSL Certificate) poyrazdursuncan@gmail.com
+ sudo /etc/letsencrypt/acme.sh --issue --home /etc/letsencrypt --domain dursuncanpoyraz.com.tr --webroot /var/www/ghost/system/nginx-root --reloadcmd "nginx -s reload" --accountemail poyrazdursuncan@gmail.com
+ sudo openssl dhparam -dsaparam -out /etc/nginx/snippets/dhparam.pem 2048
+ sudo mv /tmp/ssl-params.conf /etc/nginx/snippets/ssl-params.conf
+ sudo mv /tmp/ghost-local/dursuncanpoyraz.com.tr-ssl.conf /etc/nginx/sites-available/dursuncanpoyraz.com.tr-ssl.conf
+ sudo ln -sf /etc/nginx/sites-available/dursuncanpoyraz.com.tr-ssl.conf /etc/nginx/sites-enabled/dursuncanpoyraz.com.tr-ssl.conf
+ sudo nginx -s reload
✔ Setting up SSL
Systemd service has already been set up. Skipping Systemd setup
ℹ Setting up Systemd [skipped]
ℹ Starting Ghost [skipped]
------------------------------------------------------------------------------
Ghost was installed successfully! To complete setup of your publication, visit:
/ghost/
I am using Cloudflare. The links to https://dursuncanpoyraz.com.tr/ghost fails.
https://dursuncanpoyraz.com.tr:2369/ghost link is not accessible.
dursuncan@localhost:/var/www/ghost$ ghost doctor
✔ 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 system compatibility
✔ Checking for a MySQL installation
+ sudo systemctl is-active ghost_ghost-local
? Sudo Password [hidden]
Instance is currently running
ℹ Validating config [skipped]
✔ Checking folder permissions
✔ Checking file permissions
✔ Checking content folder ownership
✔ Checking memory availability
✔ Checking binary dependencies
✔ Checking free space
dursuncan@localhost:/var/www/ghost$ ghost start
+ sudo systemctl is-active ghost_ghost-local
✔ Ensuring user is not logged in as ghost user
✔ Checking if logged in user is directory owner
✔ Checking current folder permissions
+ sudo systemctl is-active ghost_ghost-local
✔ Validating config
✔ Checking folder permissions
✔ Checking file permissions
✔ Checking content folder ownership
✔ Checking memory availability
✔ Checking binary dependencies
+ sudo systemctl start ghost_ghost-local
+ sudo systemctl stop ghost_ghost-local
✖ Starting Ghost: ghost-local
A GhostError occurred.
Message: Could not communicate with Ghost
Suggestion: journalctl -u ghost_ghost-local -n 50
Debug Information:
OS: Ubuntu, v18.04.5 LTS
Node Version: v12.20.1
Ghost Version: 3.40.2
Ghost-CLI Version: 1.15.3
Environment: production
Command: 'ghost start'
Additional log info available in: /home/dursuncan/.ghost/logs/ghost-cli-debug-2021-01-05T08_01_17_340Z.log
Try running ghost doctor to check your system for known issues.
You can always refer to https://ghost.org/docs/api/ghost-cli/ for troubleshooting.
dursuncan@localhost:/var/www/ghost$ cat /home/dursuncan/.ghost/logs/ghost-cli-debug-2021-01-05T08_01_17_340Z.log
Debug Information:
OS: Ubuntu, v18.04.5 LTS
Node Version: v12.20.1
Ghost Version: 3.40.2
Ghost-CLI Version: 1.15.3
Environment: production
Command: 'ghost start'
Message: Could not communicate with Ghost
Suggestion: journalctl -u ghost_ghost-local -n 50
Stack: Error: Could not communicate with Ghost
at Server.<anonymous> (/usr/lib/node_modules/ghost-cli/lib/utils/port-polling.js:56:20)
at Object.onceWrapper (events.js:420:28)
at Server.emit (events.js:314:20)
at emitCloseNT (net.js:1657:8)
at processTicksAndRejections (internal/process/task_queues.js:83:21)