Permanent Image upload error after upgrade

Hello everybody, I have some problems with ghost upload images after upgrade a couples of days ago.

First at all, when I update ghost it crash when so many error and famous message “We’ll be right back” after this I make a fresh ghost install and import my /content/images folder for new one. I reinstall node, ghost-cli, nvm, …

Now my blog works perfectly but I can’t upload images anyway in may posts… ghost error log show:

  • ERROR “GET /ghost/api/canary/admin/notifications/” 500 223ms

NAME: InternalServerError
MESSAGE: allNotifications.forEach is not a function

My nginx error log show:
2021/05/06 14:17:23 [error] 30072#30072: *4997 upstream prematurely closed connection while reading response header from upstream, client: X, server: blog.manuelfnavas.es, request: "POST /ghost/api/canary/admin/imag$

2021/05/06 14:17:52 [error] 30072#30072: *4997 connect() failed (111: Connection refused) while connecting to upstream, client: X, server: blog.manuelfnavas.es, request: "POST /ghost/api/canary/admin/images/upload/ $

2021/05/06 14:35:34 [error] 30072#30072: *5086 upstream prematurely closed connection while reading response header from upstream, client: X, server: blog.manuelfnavas.es, request: "POST /ghost/api/canary/admin/imag$

2021/05/06 14:35:38 [error] 30072#30072: *5086 connect() failed (111: Connection refused) while connecting to upstream, client:X, server: blog.manuelfnavas.es, request: "GET /ghost/api/canary/admin/posts/?limit=30&$

Any ideas? Thanks in advance

Hi, everybody, I’m trying to resolve this issue with so many different solutions I’m founding in internet.

And I get working upload images if I disable Image optimization in config.production.json adding

“imageOptimization”: {
“resize”: false
}

Any ideas?

Thanks in advance

EDITED: Further information. Disabled image optimization works for post image but not for images in post body which follow crashing site :frowning:

EDITED 2: Absolutely incredible… trying with removed the /my/path/versions/4.4.0/node_modules/sharp directory then reinstalled sharp via:

npm install sharp

Not working…

Uninstall ghost, delete directory, create new directory and install ghost from 0 and after that import /content/images… same problem :scream: