Ghost Blog: I run Ghost on a Docker swarm with a shared directory on a NAS-NFS Mount on a Synology DS720+ 2Bay NAS
With my theme (ARTIXI) which seems that re-sizes large images i’ve a lot of troubles getting the image resizing done.
The error i get in the log is following one:
[2022-01-24 22:10:07] ERROR Sharp wasn’t installed
Sharp wasn’t installed
“wireless-technology.jpg / image/jpeg”
Error ID:
63a334b0-7d62-11ec-af3c-bb4e5990e242
Error Code:
SHARP_INSTALLATION
Error: Cannot find module ‘sharp’
at Object.resizeFromPath (/var/lib/ghost/versions/4.32.3/node_modules/@tryghost/image-transform/lib/transform.js:85:31)
Require stack:
- /var/lib/ghost/versions/4.32.3/node_modules/@tryghost/image-transform/lib/transform.js
- /var/lib/ghost/versions/4.32.3/node_modules/@tryghost/image-transform/index.js
- /var/lib/ghost/versions/4.32.3/core/frontend/web/middleware/handle-image-sizes.js
- /var/lib/ghost/versions/4.32.3/core/frontend/web/middleware/index.js
- /var/lib/ghost/versions/4.32.3/core/frontend/web/site.js
- /var/lib/ghost/versions/4.32.3/core/frontend/web/index.js
- /var/lib/ghost/versions/4.32.3/core/server/web/parent/frontend.js
- /var/lib/ghost/versions/4.32.3/core/boot.js
- /var/lib/ghost/versions/4.32.3/ghost.js
- /var/lib/ghost/versions/4.32.3/index.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
at Function.Module._load (internal/modules/cjs/loader.js:746:27)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:93:18)
at Object.resizeFromPath (/var/lib/ghost/versions/4.32.3/node_modules/@tryghost/image-transform/lib/transform.js:83:9)
at normalize (/var/lib/ghost/versions/4.32.3/core/server/web/api/middleware/normalize-image.js:24:20)
at Layer.handle [as handle_request] (http://blog.bernsteiner.net/var/lib/ghost/versions/4.32.3/node_modules/express/lib/router/layer.js:95:5)
at next (/var/lib/ghost/versions/4.32.3/node_modules/express/lib/router/route.js:137:13)
at uploadValidation (/var/lib/ghost/versions/4.32.3/core/server/web/api/middleware/upload.js:163:9)
at Layer.handle [as handle_request] (http://blog.bernsteiner.net/var/lib/ghost/versions/4.32.3/node_modules/express/lib/router/layer.js:95:5)
at next (/var/lib/ghost/versions/4.32.3/node_modules/express/lib/router/route.js:137:13)
at /var/lib/ghost/versions/4.32.3/core/server/web/api/middleware/upload.js:76:9
at Immediate._onImmediate (/var/lib/ghost/versions/4.32.3/node_modules/multer/lib/make-middleware.js:53:37)
at processImmediate (internal/timers.js:466:21)