Error Cannot Upload Image on My Ghost v6.0.7 VPS Server

Hello, I have a problem with a website that uses Ghost CMS with the following problem details below:

But the steps I’ve taken to fix the issue haven’t resolved it, and the same issue keeps recurring.

What should I do? And does anyone have a solution to the problem I’m facing? Thank you.

  • What’s your URL?
    = https://amerikanight.club
  • What version of Ghost are you using?
    = Ghost-CLI version: 1.28.3
    = Ghost version: 6.0.7 (at /var/www/cms-ghost)

And

  • How was Ghost installed and configured?
    = sudo npm install ghost-cli@latest -g & ghost install on /var/www/cms-ghost/
    = Using Nginx Web Server
  • What Node version, database, OS & browser are you using?
    = Node v22.19.0 & Npm v10.9.3
  • What errors or information do you see in the console?

 {

      "name": "Log",

  "hostname": "server1.amerikanight.club",

  "pid": 149246,

  "level": 50,

  "version": "6.0.7",

  "req": {

  "meta": {

  "requestId": "37723e4f-f9ea-45d2-a2c0-da78269ed580",

  "userId": "68bb6ff883a3649a410eae83"

          },

  "url": "/images/upload/",

  "method": "POST",

  "originalUrl": "/ghost/api/admin/images/upload/",

  "params": {},

  "headers": {

  "x-forwarded-for": "222.124.53.115",

  "x-forwarded-proto": "https",

  "x-real-ip": "222.124.53.115",

  "host": "amerikanight.club",

  "connection": "close",

  "content-length": "75983",

  "x-ghost-version": "6.0",

  "sec-ch-ua-platform": "\\"Linux\\"",

  "sec-ch-ua": "\\"Chromium\\";v=\\"140\\", \\"Not=A?Brand\\";v=\\"24\\", \\"Google Chrome\\";v=\\"140\\"",

  "app-pragma": "no-cache",

  "sec-ch-ua-mobile": "?0",

  "x-requested-with": "XMLHttpRequest",

  "user-agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36",

  "accept": "text/plain, \*/\*; q=0.01",

  "content-type": "multipart/form-data; boundary=----WebKitFormBoundaryJmfcB1AsxPeCMIrK",

  "origin": "https://amerikanight.club",

  "sec-fetch-site": "same-origin",

  "sec-fetch-mode": "cors",

  "sec-fetch-dest": "empty",

  "referer": " https://amerikanight.club/ghost/ ",

  "accept-encoding": "gzip, deflate, br, zstd",

  "accept-language": "id,en-US;q=0.9,en;q=0.8,id-ID;q=0.7",

  "priority": "u=1, i",

  "cookie": "\*\*REDACTED\*\*"

          },

  "query": {}

      },

  "res": {

  "\_headers": {

  "x-powered-by": "Express",

  "content-version": "v6.0",

  "vary": "Accept-Version, Origin, Accept-Encoding",

  "cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",

  "access-control-allow-origin": "https://amerikanight.club",

  "content-type": "application/json; charset=utf-8",

  "content-length": "317",

  "etag": "W/\\"13d-7glicXvQ4Gu1s1WOEwKzbjqk3a4\\""

          },

  "statusCode": 400,

  "responseTime": "24ms"

      },

  "err": {

  "id": "b60f2640-8bab-11f0-a844-0375723823f8",

  "domain": "https://amerikanight.club",

  "code": null,

  "name": "BadRequestError",

  "statusCode": 400,

  "level": "normal",

  "message": "Image processing failed",

  "context": "\\"Sharp wasn't installed\\"",

  "help": "\\"Please verify that the image is valid\\"",

  "stack": "BadRequestError: Image processing failed\\n    at Object.query (/var/www/cms-ghost/versions/6.0.7/core/server/api/endpoints/images.js:43:27)\\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\\n    at async getResponse (/var/www/cms-ghost/versions/6.0.7/node_modules/@tryghost/api-framework/lib/pipeline.js:259:34)\\n    at async ImplWrapper (/var/www/cms-ghost/versions/6.0.7/node_modules/@tryghost/api-framework/lib/pipeline.js:264:30)\\n    at async Http (/var/www/cms-ghost/versions/6.0.7/node_modules/@tryghost/api-framework/lib/http.js:70:28)",

  "hideStack": false

      },

  "msg": "Image processing failed",

  "time": "2025-09-07T05:30:05.863Z",

  "v": 0

  }

  • What steps did I take to fix the problem?
    = npm install --production on var/www/cms-ghost/
    = npm i --verbose sharp@latest
    = npm install sharp on /var/www/cms-ghost/
    = ghost restart

Please Help me, Thank you