-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ghost fails with error when r2 adapter is integrated #1
Comments
Hi @bonysimon007 , thank you for the feedback! There seems to be some issue with the 'sharp' package not being installed. What steps did you follow to install the plugin? I will try to replicate the issue, maybe I missed something in the documentation. |
Hello @egeldenhuys ` cd content/adapters/storage git clone https://github.com/egeldenhuys/ghost-cloudflare-r2 cd ghost-cloudflare-r2 git checkout v0.1.0 ./build-in-docker.sh ` Finally docker compose up -d The configurations were added inside docker-compose.yml |
I tried using the adapter but it failed with the below error. I never worked on TS hence was not able to debug and fix it.
My deployment environment is as follows.
OS: ubuntu 22.04
Ghost : Latest Ghost with docker
Cloudflare already configured
[2023-04-19 00:36:33] INFO Ghost is running in production...
[2023-04-19 00:36:33] INFO Your site is now available on https://sitename.tld/
[2023-04-19 00:36:33] INFO Ctrl+C to shut down
[2023-04-19 00:36:33] INFO Ghost server started in 1.285s
[2023-04-19 00:36:33] INFO Database is in a ready state.
[2023-04-19 00:36:34] INFO Ghost database ready in 1.677s
[2023-04-19 00:36:37] ERROR We detected a misuse. Please read the stack trace.
We detected a misuse. Please read the stack trace.
Error ID:
3e7c67c0-de4a-11ed-9324-3587dc794858
Error:
at AdapterManager.getAdapter (/var/lib/ghost/versions/5.43.0/node_modules/@tryghost/adapter-manager/lib/AdapterManager.js:114:27)
Something went wrong installing the "sharp" module
Cannot find module '../build/Release/sharp-linux-x64.node'
Require stack:
Possible solutions:
at Object. (/var/lib/ghost/content/adapters/storage/ghost-cloudflare-r2/node_modules/sharp/lib/sharp.js:34:9)
at Module._compile (node:internal/modules/cjs/loader:1196:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1250:10)
at Module.load (node:internal/modules/cjs/loader:1074:32)
at Function.Module._load (node:internal/modules/cjs/loader:909:12)
at Module.require (node:internal/modules/cjs/loader:1098:19)
at require (node:internal/modules/cjs/helpers:108:18)
at Object. (/var/lib/ghost/content/adapters/storage/ghost-cloudflare-r2/node_modules/sharp/lib/constructor.js:8:1)
at Module._compile (node:internal/modules/cjs/loader:1196:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1250:10)
at Module.load (node:internal/modules/cjs/loader:1074:32)
at Function.Module._load (node:internal/modules/cjs/loader:909:12)
at Module.require (node:internal/modules/cjs/loader:1098:19)
at require (node:internal/modules/cjs/helpers:108:18)
at Object. (/var/lib/ghost/content/adapters/storage/ghost-cloudflare-r2/node_modules/sharp/lib/index.js:3:15)
at Module._compile (node:internal/modules/cjs/loader:1196:14)
Thanks in advance
The text was updated successfully, but these errors were encountered: