Ghost-storage-cloudinary installed, but storage adapter in wrong directory?

Hi,

Problem and question right below. Thank you in advance for your help.

  • What errors or information do you see in the console?
    Sep 10 01:59:14 gbox node[2941]: “We cannot find your adapter in: /var/www/ghost/content/adapters/storage/ or: /var/www/ghost/versions/2.31.0/core/server/adapters/storage/”

So nothing is pushed on Cloudinary. I think the problem may come from how ghost-storage-cloudinary is installed . Doc says :
yarn add ghost-storage-cloudinary mv node_modules/ghost-storage-cloudinary core/server/adapters/storage

and it seems I shouldn’t have moved that /ghost-storage-cloudinary there, because it’s not found.
But I’m not sure and I don’t want to mess up my current config. See below content of the actual directories.

What should be done to correct the situation ?

ls -l  core/server/adapters/storage/
-rw-rw-r-- 1 pi pi    665 Oct 26  1985  configuration.sample.json
-rw-rw-r-- 1 pi pi    169 Oct 26  1985  errors.js
drwxr-xr-x 5 pi pi   4096 Sep  9 05:26  ghost-storage-cloudinary
-rw-rw-r-- 1 pi pi   5797 Oct 26  1985  index.js
-rw-rw-r-- 1 pi pi   2379 Sep  9 03:18  package.json
drwxr-xr-x 2 pi pi   4096 Sep  9 03:18  plugins
-rw-rw-r-- 1 pi pi   5015 Oct 26  1985  README.md
drwxr-xr-x 4 pi pi   4096 Sep  9 03:18  tests
-rw-rw-r-- 1 pi pi 178320 Oct 26  1985  yarn.lock

contains a mix of old and new files.

/var/www/ghost/content/adapters/storage/ doesn’t exist.

ls -l versions/2.31.0/core/server/adapters/storage/
-rw-r--r-- 1 pi pi 3605 Oct 26  1985 index.js
-rw-r--r-- 1 pi pi 6165 Oct 26  1985 LocalFileStorage.js
-rw-r--r-- 1 pi pi 1684 Oct 26  1985 utils.js

Host OS Raspbian GNU/Linux 10 (buster)

  • What’s your URL? This is the easiest way for others to debug your issue
    https://www.chienlit.com

  • What version of Ghost are you using?
    Ghost version: 2.31.0

  • What configuration?

    "url": "https://www.chienlit.com",
    "server": {
      "port": 2368,
      "host": "127.0.0.1"
    

    “database”: {
    “client”: “mysql”,
    “storage”: {
    “active”: “ghost-storage-cloudinary”,
    “ghost-storage-cloudinary”: {
    “useDatedFolder”: false,
    “auth”: {
    “cloud_name”: “xxx”,
    “api_key”: “xxx”,
    “api_secret”: “xxx”
    },
    “upload”: {
    “use_filename”: true,
    “unique_filename”: false,
    “overwrite”: false,
    “folder”: “chienlit-images”,
    “tags”: [
    “chienlit”
    ]
    },
    “fetch”: {
    “quality”: “auto”,
    “secure”: true,
    “cdn_subdomain”: true
    }
    }
    }

  • What browser?
    Version 77.0.3865.75 (Build officiel) beta (64 bits)

Thank you
Stéphane

The correct location is content/adapters/storage

Documentation:

1 Like

I reinstalled ghost-storage-cloudinary (just to be sure) and cp -r the ghost-storage-cloudinary to the correct path, and it works perfectly.
THANK YOU !