muzix / ghost-s3

MIT License
47 stars 60 forks source link

Not working after an upgrade to ghost-0.10.1 #21

Open lyn5466 opened 7 years ago

lyn5466 commented 7 years ago

Excuse me. This package works perfect before I did an upgrade to ghost-0.10.1. Now, I got the following error. Could anyone help me? By the way, I built my ghost on Heroku.

start /app
> node index

Migrations: Creating database backup

ERROR: Your storage adapter does not inherit from the Storage Base. 

 Error
    at Error.IncorrectUsage (/app/core/server/errors/
    at Object.getStorage (/app/core/server/storage/index.js:54:15)
    at setupMiddleware (/app/core/server/middleware/index.js:126:44)
    at /app/core/server/index.js:131:9
    at tryCatcher (/app/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/app/node_modules/bluebird/js
    at Promise._settlePromise (/app/node_modules/bluebird/js/release/
    at Promise._settlePromise0 (/app/node_modules/bluebird/js/release/
    at Promise._settlePromises (/app/node_modules/bluebird/js/release/
    at Promise._fulfill (/app/node_modules/bluebird/js/release/
    at PromiseArray._resolve (/app/node_modules/bluebird/js/release/
    at PromiseArray._promiseFulfilled (/app/node_modules/bluebird/js/
    at Promise._settlePromise (/app/node_modules/bluebird/js/release/
    at Promise._settlePromise0 (/app/node_modules/bluebird/js/release/
    at Promise._settlePromises (/app/node_modules/bluebird/js/release/
    at Async._drainQueue (/app/node_modules/bluebird/js/release/
    at Async._drainQueues (/app/node_modules/bluebird/js/release/
    at Immediate.Async.drainQueues [as _onImmediate] (/app/node_modules
    at processImmediate [as _immediateCallback] (timers.js:383:17) 
 State changed from starting to crashed
matitalatina commented 7 years ago

There are some breaking changes in 0.10.0 for custom storage module. This repo should be updated in order to work on 0.10.0

pascalandy commented 7 years ago

I was scared about this. Is this project still maintained ? Will stay on Ghost 0.9 for now.

Thanks!

sunkaflek commented 7 years ago

Same problem. This worked for me: https://github.com/aorcsik/ghost-s3-storage-adapter

pascalandy commented 7 years ago

Seriously @snakeyak !? OK I guess something is wrong in my setup ... grhhh. Thanks for letting me know.

sunkaflek commented 7 years ago

@pascalandy I did remove the ghost peer dependency from its package.json, and removed the npm-shrinkwrap.json in ghost itself. Don't know if both are necessary, but it's how I got to a working ghost on heroku :) Hope that helps

ZiiX commented 7 years ago

Can someone help me figure out how to change the hard-coded credential check against amazon? I used my custom bucket domain but it still wants to ping amazon. I'm using minio.io as my storage. It's s3 compatible & the credentials work elsewhere s3 credentials are used. Thanks so much for your time! I tried the ghost-s3-storage-adapter one too and it doesn't work.