# Why am I getting an error while installing?

**URL:** <https://forum.ghost.org/t/why-am-i-getting-an-error-while-installing/39418>\
**Category:** Installation\
**Created:** [June 23, 2023, 7:14pm UTC](https://forum.ghost.org/t/why-am-i-getting-an-error-while-installing/39418 "2023-06-23T19:14:50Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![EchoBilisim](https://avatars.discourse-cdn.com/v4/letter/e/bc8723/32.png) [@EchoBilisim](https://forum.ghost.org/u/EchoBilisim)\
**Post date:** [June 23, 2023, 7:14pm UTC](https://forum.ghost.org/t/why-am-i-getting-an-error-while-installing/39418/1 "2023-06-23T19:14:50Z")

</div>

Hello everyone, I’m using ghost on my 3 sites, I haven’t had any problems with the installation in any of them, but I made a new installation, I installed via vds, I get this error, I don’t understand why it gives such an error. As I said, I have installed 3 sites on my site, I have never encountered such a problem, I wonder why it does this.

---

<div class="post-metadata">

**Author:** ![mjw](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mjw/32/30781_2.png) [@mjw](https://forum.ghost.org/u/mjw)\
**Post date:** [June 23, 2023, 7:48pm UTC](https://forum.ghost.org/t/why-am-i-getting-an-error-while-installing/39418/2 "2023-06-23T19:48:10Z")

</div>

Have you tried running `ghost doctor` or `journalctl`?

---

<div class="post-metadata">

**Author:** ![EchoBilisim](https://avatars.discourse-cdn.com/v4/letter/e/bc8723/32.png) [@EchoBilisim](https://forum.ghost.org/u/EchoBilisim)\
**Post date:** [June 26, 2023, 5:41pm UTC](https://forum.ghost.org/t/why-am-i-getting-an-error-while-installing/39418/3 "2023-06-26T17:41:38Z")

</div>

yes i tried but no results.

but tell me i saw something i added the screenshot below

```auto
sudo npm install ghost-cli@latest -g

```

When installing this process, does it do the event in the screenshot below?

---

<div class="post-metadata">

**Author:** ![mjw](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mjw/32/30781_2.png) [@mjw](https://forum.ghost.org/u/mjw)\
**Post date:** [June 26, 2023, 6:16pm UTC](https://forum.ghost.org/t/why-am-i-getting-an-error-while-installing/39418/4 "2023-06-26T18:16:42Z")

</div>

Please avoid screenshots, and paste as pre-formatted text using the gear icon in the forum editor toolbar. I can’t see the images clearly on mobile devices.

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [June 27, 2023, 1:54pm UTC](https://forum.ghost.org/t/why-am-i-getting-an-error-while-installing/39418/5 "2023-06-27T13:54:19Z")

</div>

> [@EchoBilisim](#):
>
> yes i tried but no results.

We need the diagnostic information provided by running those commands. They aren’t going to fix your problem; they’re going to tell you (or us) how to fix your problem. Be sure to paste them in with the code `</>` tag, not as screenshots. :)

---

<div class="post-metadata">

**Author:** ![EchoBilisim](https://avatars.discourse-cdn.com/v4/letter/e/bc8723/32.png) [@EchoBilisim](https://forum.ghost.org/u/EchoBilisim)\
**Post date:** [June 29, 2023, 7:00pm UTC](https://forum.ghost.org/t/why-am-i-getting-an-error-while-installing/39418/6 "2023-06-29T19:00:25Z")

</div>

I’m sorry, okay, I’ll do that next time.

Installation is done without SSL certificate. But when it is installed with an ssl certificate, the installation does not happen.

Site: [http://deletetusu.com](http://deletetusu.com)

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [June 29, 2023, 7:03pm UTC](https://forum.ghost.org/t/why-am-i-getting-an-error-while-installing/39418/7 "2023-06-29T19:03:46Z")

</div>

Glad to hear you got it working without ssl. That’s something, at least.

If you decide you want to fix your ssl, please provide enough information that we can help. A good start if this is an nginx problem would be to share your nginx configuration files (found in /etc/nginx/sites-enabled) and to check that the certificates referenced in those configuration files are ACTUALLY where the configuration file says they are.

---

<div class="post-metadata">

**Author:** ![EchoBilisim](https://avatars.discourse-cdn.com/v4/letter/e/bc8723/32.png) [@EchoBilisim](https://forum.ghost.org/u/EchoBilisim)\
**Post date:** [June 29, 2023, 7:38pm UTC](https://forum.ghost.org/t/why-am-i-getting-an-error-while-installing/39418/8 "2023-06-29T19:38:44Z")

</div>

It gives this warning during installation, is this a problem?

```auto
added 484 packages, and audited 485 packages in 43s

44 packages are looking for funding
  run `npm fund` for details

16 vulnerabilities (12 moderate, 4 high)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
npm notice
npm notice New major version of npm available! 8.19.4 -> 9.7.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.7.2
npm notice Run npm install -g npm@9.7.2 to update!
npm notice
root@sunucu:~#

```

kurulum bittikten sonra bu hatayı veriyor

```auto
Starting Ghost
One or more errors occurred.

1) CliError

Message: Failed to restart Nginx.

Debug Information:
    OS: Ubuntu, v20.04.6 LTS
    Node Version: v16.20.1
    Ghost Version: 5.53.1
    Ghost-CLI Version: 1.24.0
    Environment: production
    Command: 'ghost install'

Additional log info available in: /home/deletetusu/.ghost/logs/ghost-cli-debug-2023-06-27T21_52_58_784Z.log

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

You can always refer to https://ghost.org/docs/ghost-cli/ for troubleshooting.
deletetusu@sunucu:/var/www/deletetusu$

```

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [June 29, 2023, 7:43pm UTC](https://forum.ghost.org/t/why-am-i-getting-an-error-while-installing/39418/9 "2023-06-29T19:43:14Z")

</div>

The top messages are probably not a problem. The bottom messages are. Please inspect the log file referenced here:

```auto
Additional log info available in: /home/deletetusu/.ghost/logs/ghost-cli-debug-2023-06-27T21_52_58_784Z.log

```

What does that tell you?

---

<div class="post-metadata">

**Author:** ![EchoBilisim](https://avatars.discourse-cdn.com/v4/letter/e/bc8723/32.png) [@EchoBilisim](https://forum.ghost.org/u/EchoBilisim)\
**Post date:** [June 29, 2023, 7:45pm UTC](https://forum.ghost.org/t/why-am-i-getting-an-error-while-installing/39418/10 "2023-06-29T19:45:10Z")

</div>

> [@Cathy\_Sarisky](#):
>
> ```auto
> Additional log info available in: /home/deletetusu/.ghost/logs/ghost-cli-debug-2023-06-27T21_52_58_784Z.log
> 
> ```
> 
> What does that tell you?

I looked there, there are no files there

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [June 29, 2023, 7:46pm UTC](https://forum.ghost.org/t/why-am-i-getting-an-error-while-installing/39418/11 "2023-06-29T19:46:23Z")

</div>

That’s surprising. You’re looking in .ghost, not ghost, right?

---

<div class="post-metadata">

**Author:** ![EchoBilisim](https://avatars.discourse-cdn.com/v4/letter/e/bc8723/32.png) [@EchoBilisim](https://forum.ghost.org/u/EchoBilisim)\
**Post date:** [June 29, 2023, 8:43pm UTC](https://forum.ghost.org/t/why-am-i-getting-an-error-while-installing/39418/12 "2023-06-29T20:43:43Z")

</div>

sorry i couldn’t see it because it is hidden error message in log file

```auto
Debug Information:
    OS: Ubuntu, v20.04.6 LTS
    Node Version: v16.20.1
    Ghost Version: 5.53.1
    Ghost-CLI Version: 1.24.0
    Environment: production
    Command: 'ghost setup ssl'
Message: Failed to restart Nginx.
Stack: Error: Failed to restart Nginx.
    at NginxExtension.restartNginx (/usr/lib/node_modules/ghost-cli/extensions/nginx/index.js:262:19)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Original Error Message:
Message: Command failed: /bin/sh -c sudo -S -p '#node-sudo-passwd#' nginx -s reload
nginx: [emerg] cannot load certificate "/etc/letsencrypt/deletetusu.com/fullchain.cer": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/deletetusu.com/fullchain.cer','r') error:2006D080:BIO routines:BIO_new_file:no such file)

Stack: Error: Command failed: /bin/sh -c sudo -S -p '#node-sudo-passwd#' nginx -s reload
nginx: [emerg] cannot load certificate "/etc/letsencrypt/deletetusu.com/fullchain.cer": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/deletetusu.com/fullchain.cer','r') error:2006D080:BIO routines:BIO_new_file:no such file)

    at makeError (/usr/lib/node_modules/ghost-cli/node_modules/execa/index.js:174:9)
    at /usr/lib/node_modules/ghost-cli/node_modules/execa/index.js:278:16
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async NginxExtension.restartNginx (/usr/lib/node_modules/ghost-cli/extensions/nginx/index.js:260:13)

```

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [June 29, 2023, 8:47pm UTC](https://forum.ghost.org/t/why-am-i-getting-an-error-while-installing/39418/13 "2023-06-29T20:47:20Z")

</div>

> [@EchoBilisim](#):
>
> `"/etc/letsencrypt/deletetusu.com/fullchain.cer`

Well, there’s your problem! Your configuration is looking for certificates at `"/etc/letsencrypt/deletetusu.com/fullchain.cer` . Could you please do `ls /etc/letsencrypt` and `ls /etc/letsencrypt/deleteusu.com` ? I’m guessing that your certificate is not where your configuration file says it should be. If that’s the case, you’ll need to edit /etc/nginx/sites-enabled/whatever-your-site-is-named-ssl.conf to match the actual location.

---

<div class="post-metadata">

**Author:** ![EchoBilisim](https://avatars.discourse-cdn.com/v4/letter/e/bc8723/32.png) [@EchoBilisim](https://forum.ghost.org/u/EchoBilisim)\
**Post date:** [June 29, 2023, 11:11pm UTC](https://forum.ghost.org/t/why-am-i-getting-an-error-while-installing/39418/14 "2023-06-29T23:11:55Z")

</div>

> [@Cathy\_Sarisky](#):
>
> Well, there’s your problem! Your configuration is looking for certificates at `"/etc/letsencrypt/deletetusu.com/fullchain.cer` . Could you please do `ls /etc/letsencrypt` and `ls /etc/letsencrypt/deleteusu.com` ? I’m guessing that your certificate is not where your configuration file says it should be. If that’s the case, you’ll need to edit /etc/nginx/sites-enabled/whatever-your-site-is-named-ssl.conf to match the actual location.

When I looked at the file I gave here, he did it like this, he created a folder like /etc/letsencrypt/deletetsu.com\_ecc/, I changed its name, I did the editing from the place you said didn’t work, and it still didn’t work.

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [June 29, 2023, 11:33pm UTC](https://forum.ghost.org/t/why-am-i-getting-an-error-while-installing/39418/15 "2023-06-29T23:33:25Z")

</div>

Can you please try restarting nginx?

---

<div class="post-metadata">

**Author:** ![mjw](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mjw/32/30781_2.png) [@mjw](https://forum.ghost.org/u/mjw)\
**Post date:** [June 30, 2023, 9:40am UTC](https://forum.ghost.org/t/why-am-i-getting-an-error-while-installing/39418/16 "2023-06-30T09:40:17Z")

</div>

I note that you have two spellings for `deletetusu` and `deleteusu`. Make sure these are correct throughout, and then test the Nginx configuration: `sudo nginx -t`.

---

<div class="post-metadata">

**Author:** ![EchoBilisim](https://avatars.discourse-cdn.com/v4/letter/e/bc8723/32.png) [@EchoBilisim](https://forum.ghost.org/u/EchoBilisim)\
**Post date:** [June 30, 2023, 12:13pm UTC](https://forum.ghost.org/t/why-am-i-getting-an-error-while-installing/39418/17 "2023-06-30T12:13:32Z")

</div>

> [@mjw](#):
>
> `deletetusu` and `deleteusu`.

misspelled it [Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky) otherwise they are correct

---

<div class="post-metadata">

**Author:** ![mjw](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mjw/32/30781_2.png) [@mjw](https://forum.ghost.org/u/mjw)\
**Post date:** [June 30, 2023, 12:41pm UTC](https://forum.ghost.org/t/why-am-i-getting-an-error-while-installing/39418/18 "2023-06-30T12:41:35Z")

</div>

So, what’s the output from `sudo nginx -t`?

---

<div class="post-metadata">

**Author:** ![EchoBilisim](https://avatars.discourse-cdn.com/v4/letter/e/bc8723/32.png) [@EchoBilisim](https://forum.ghost.org/u/EchoBilisim)\
**Post date:** [June 30, 2023, 1:10pm UTC](https://forum.ghost.org/t/why-am-i-getting-an-error-while-installing/39418/19 "2023-06-30T13:10:14Z")

</div>

When I do sudo nginx -t it says below

```auto
nginx: [emerg] cannot load certificate "/etc/letsencrypt/deletetusu.com/fullchain.cer": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/deletetusu.com/fullchain.cer','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /etc/nginx/nginx.conf test failed

```

---

<div class="post-metadata">

**Author:** ![mjw](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mjw/32/30781_2.png) [@mjw](https://forum.ghost.org/u/mjw)\
**Post date:** [June 30, 2023, 1:13pm UTC](https://forum.ghost.org/t/why-am-i-getting-an-error-while-installing/39418/20 "2023-06-30T13:13:29Z")

</div>

So, the certificate isn’t present in the folder specified in you Nginx config file.

Therefore, double-check paths and filename etc. Exactly what @Cathy_Sarisky suggested.

If the certificates do not exist, that’s another matter, but please check the basics first.

[Next page](https://forum.ghost.org/t/why-am-i-getting-an-error-while-installing/39418.md?page=2)
