I’m using ubuntu server with Cloudpanel to host the ghost. Everything is working fine but the image upload is not working. When I try to upload my logo I’m getting the following error.
m using Ghost cms. I’m trying to upload an image but it is giving an error. This is a server side error
{"name":"Log","hostname":"srv497581","pid":194036,"level":50,"version":"5.95.0","req":{"meta":{"requestId":"a11cab26-f7f3-4641-ac81-6964df6bc33b","userId":"1"},"url":"/images/upload/","method":"POST","originalUrl":"/ghost/api/admin/images/upload/","params":{},"headers":{"x-forwarded-host":"www.thefreelancingguy.me","x-forwarded-server":"www.thefreelancingguy.me","x-real-ip":"183.182.88.146","x-forwarded-for":"183.182.88.146","x-forwarded-proto":"https","host":"www.thefreelancingguy.me","connection":"Upgrade","content-length":"79813","x-ghost-version":"5.95","sec-ch-ua-platform":"\"Windows\"","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0","sec-ch-ua":"\"Microsoft Edge\";v=\"129\", \"Not=A?Brand\";v=\"8\", \"Chromium\";v=\"129\"","content-type":"multipart/form-data; boundary=----WebKitFormBoundaryApbNKJrxsT08edFs","app-pragma":"no-cache","sec-ch-ua-mobile":"?0","accept":"*/*","origin":"https://www.thefreelancingguy.me","sec-fetch-site":"same-origin","sec-fetch-mode":"cors","sec-fetch-dest":"empty","referer":"https://www.thefreelancingguy.me/ghost/","accept-encoding":"gzip, deflate, br, zstd","accept-language":"en-US,en;q=0.9,en-IN;q=0.8","priority":"u=1, i","cookie":"**REDACTED**"},"query":{}},"res":{"_headers":{"x-powered-by":"Express","content-version":"v5.95","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://www.thefreelancingguy.me","content-type":"application/json; charset=utf-8","content-length":"317","etag":"W/\"13d-5J+kjVgsyXI0GsLtu/2UxoWXVj0\""},"statusCode":400,"responseTime":"17ms"},"err":{"id":"9fb033d0-8062-11ef-9bce-2d62924098a2","domain":"https://www.thefreelancingguy.me","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 (/home/tfg/htdocs/https:/www.thefreelancingguy.me/versions/5.95.0/core/server/api/endpoints/images.js:43:27)\n at async getResponse (/home/tfg/htdocs/https:/www.thefreelancingguy.me/versions/5.95.0/node_modules/@tryghost/api-framework/lib/pipeline.js:259:34)\n at async ImplWrapper (/home/tfg/htdocs/https:/www.thefreelancingguy.me/versions/5.95.0/node_modules/@tryghost/api-framework/lib/pipeline.js:264:30)\n at async Http (/home/tfg/htdocs/https:/www.thefreelancingguy.me/versions/5.95.0/node_modules/@tryghost/api-framework/lib/http.js:70:28)","hideStack":false},"msg":"Image processing failed","time":"2024-10-02T02:04:14.608Z","v":0}```