How to solve this ghost installation error ?

Hello, I am trying to install Ghost droplet but i am facing problem about ssl configuration. Here is the command line execution :

 ssh root@

The authenticity of host ' (' can't be established.

ECDSA key fingerprint is SHA256:VgOjIvic+j5B73UEg9EojDK1jkeyEALwtTe1GkaeXTg.

Are you sure you want to continue connecting (yes/no/[fingerprint])? yes

Warning: Permanently added '' (ECDSA) to the list of known hosts.

"System is booting up. Unprivileged users are not permitted to log in yet. Please come back later. For technical details, see pam_nologin(8)."

"System is booting up. Unprivileged users are not permitted to log in yet. Please come back later. For technical details, see pam_nologin(8)."


Configuring DigitalOcean 1-Click Ghost installation.

Please wait a minute while your 1-Click is configured.

Once complete, you are encouraged to run mysql_secure_installation to ready

your server for production. The root MySQL password has been saved to:



Ensuring Ghost-CLI is up-to-date...

+ sudo npm i -g ghost-cli@latest

added 2 packages, removed 1 package, and changed 597 packages in 1m

156 packages are looking for funding

  run `npm fund` for details

npm notice

npm notice New major version of npm available! 9.6.7 -> 10.2.1

npm notice Changelog:

npm notice Run npm install -g npm@10.2.1 to update!

npm notice

Ghost will prompt you for two details:

1. Your domain

 - Add an A Record -> & ensure the DNS has fully propagated

 - Or alternatively enter

2. Your email address (only used for SSL)

Press enter when you're ready to get started!

Love open source? We’re hiring JavaScript Engineers to work on Ghost full-time.

✔ Checking system Node.js version - found v18.17.1

✔ Checking current folder permissions

✔ Checking memory availability

✔ Checking free space

✔ Checking for latest Ghost version

✔ Setting up install directory

✔ Downloading and installing Ghost v5.70.1

✔ Finishing install process

? **Enter your blog URL:**

✔ Configuring Ghost

✔ Setting up instance

+ sudo useradd --system --user-group ghost

+ sudo chown -R ghost:ghost /var/www/ghost/content

✔ Setting up "ghost" system user

✔ Setting up "ghost" mysql user

+ sudo mv /tmp/entrepreneursfrancophones-fr/ /etc/nginx/sites-available/

+ sudo ln -sf /etc/nginx/sites-available/ /etc/nginx/sites-enabled/

+ sudo nginx -s reload

✔ Setting up Nginx

✖ Setting up SSL

+ sudo mv /tmp/entrepreneursfrancophones-fr/ghost_entrepreneursfrancophones-fr.service /lib/systemd/system/ghost_entrepreneursfrancophones-fr.service

+ sudo systemctl daemon-reload

✔ Setting up Systemd

+ sudo systemctl is-active ghost_entrepreneursfrancophones-fr

+ sudo systemctl start ghost_entrepreneursfrancophones-fr

+ sudo systemctl is-enabled ghost_entrepreneursfrancophones-fr

+ sudo systemctl enable ghost_entrepreneursfrancophones-fr --quiet

✔ Starting Ghost

One or more errors occurred.

1) CliError

Message: Error trying to lookup DNS for ''

Debug Information:

    OS: Ubuntu, v22.04.3 LTS

    Node Version: v18.17.1

    Ghost Version: 5.70.1

    Ghost-CLI Version: 1.25.3

    Environment: production

    Command: 'ghost install --auto --db=mysql --dbhost= --dbport=3306 --dbname=ghost_production --dbuser=root --dbpass=e02ab77eeef5b7fc0877bbf3fdee83187ceb9bf264785aec --dir=/var/www/ghost --start'

Additional log info available in: /home/ghost-mgr/.ghost/logs/ghost-cli-debug-2023-10-22T08_59_14_253Z.log

Try running ghost doctor to check your system for known issues.

You can always refer to for troubleshooting.


For any further commands, please switch to the ghost-mgr user to manage Ghost.

    sudo -i -u ghost-mgr


Here how i configure my dns in and on DigitalOcean as explained ont the following link

What i am missing please ? Thanks

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Site Moderator
Site Moderator badge
October 24, 2023


The issue seemed to come from Message: Error trying to lookup DNS for '

This is due to your DNS not being correct and your case the Nameservers are and so on. You’ll need to fix the typo, you’ve forgetten n infront. They should be like so

Bobby Iliev
Site Moderator
Site Moderator badge
October 23, 2023


It appears that you’ve set your nameservers to This is incorrect as there is a missing n in the beginning. The correct nameservers for DigitalOcean are as follows:


You would need to correct your nameservers and then give it another try.

Let me know how it goes!



Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel