I used the same domain name and email address to install ghost
on 103.107.8.152
old machine before, and now I want to use this domain name and email address on the new machine, but Setting up SSL
failed and reported an error Connection refused
, the old machine has expired and cannot be connected, how should I solve this problem?
Love open source? We’re hiring JavaScript Engineers to work on Ghost full-time.
✔ Downloading and installing Ghost v5.30.1
✔ Finishing install process
? Enter your blog URL: https://ifree.love
? Enter your MySQL hostname: localhost
? Enter your MySQL username: ghostuser
? Enter your MySQL password: [hidden]
? Enter your Ghost database name: ghostdb
✔ Configuring Ghost
✔ Setting up instance
✔ Setting up "ghost" system user
ℹ Setting up "ghost" mysql user [skipped]
? Do you wish to set up Nginx? Yes
+ sudo mv /tmp/ifree-love/ifree.love.conf /etc/nginx/sites-available/ifree.love.conf
+ sudo ln -sf /etc/nginx/sites-available/ifree.love.conf /etc/nginx/sites-enabled/ifree.love.conf
+ sudo nginx -s reload
✔ Setting up Nginx
? Do you wish to set up SSL? Yes
? Enter your email (For SSL Certificate) kevin1258@foxmail.com
+ sudo /etc/letsencrypt/acme.sh --upgrade --home /etc/letsencrypt
+ sudo /etc/letsencrypt/acme.sh --issue --home /etc/letsencrypt --server letsencrypt --domain ifree.love --webroot /var/www/ifree.love/system/nginx-root --reloadcmd "nginx -s reload" --accountemail kevin1258@foxmail.com
✖ Setting up SSL
? Do you wish to set up Systemd? Yes
+ sudo mv /tmp/ifree-love/ghost_ifree-love.service /lib/systemd/system/ghost_ifree-love.service
+ sudo systemctl daemon-reload
✔ Setting up Systemd
+ sudo systemctl is-active ghost_ifree-love
? Do you want to start Ghost? Yes
+ sudo systemctl start ghost_ifree-love
+ sudo systemctl is-enabled ghost_ifree-love
+ sudo systemctl enable ghost_ifree-love --quiet
✔ Starting Ghost
One or more errors occurred.
1) ProcessError
Message: Command failed: /bin/sh -c sudo -S -p '#node-sudo-passwd#' /etc/letsencrypt/acme.sh --issue --home /etc/letsencrypt --server letsencrypt --domain ifree.love --webroot /var/www/ifree.love/system/nginx-root --reloadcmd "nginx -s reload" --accountemail kevin1258@foxmail.com
[Thu 19 Jan 2023 10:39:45 PM CST] ifree.love:Verify error:103.107.8.152: Fetching http://ifree.love/.well-known/acme-challenge/gHIYEz-3AqX2hha772WQElELmKj5l0Rzl4JRVHH9lFk: Connection refused
[Thu 19 Jan 2023 10:39:45 PM CST] Please add '--debug' or '--log' to check more details.
[Thu 19 Jan 2023 10:39:45 PM CST] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh
[Thu 19 Jan 2023 10:39:40 PM CST] Using CA: https://acme-v02.api.letsencrypt.org/directory
[Thu 19 Jan 2023 10:39:40 PM CST] Single domain='ifree.love'
[Thu 19 Jan 2023 10:39:40 PM CST] Getting domain auth token for each domain
[Thu 19 Jan 2023 10:39:42 PM CST] Getting webroot for domain='ifree.love'
[Thu 19 Jan 2023 10:39:42 PM CST] Verifying: ifree.love
[Thu 19 Jan 2023 10:39:43 PM CST] Pending, The CA is processing your order, please just wait. (1/30)
Exit code: 1
Debug Information:
OS: Ubuntu, v20.04.4 LTS
Node Version: v16.19.0
Ghost Version: 5.30.1
Ghost-CLI Version: 1.24.0
Environment: production
Command: 'ghost install'
Additional log info available in: /home/kevin/.ghost/logs/ghost-cli-debug-2023-01-19T14_40_01_616Z.log
Try running ghost doctor to check your system for known issues.