How to bug a local site (never do this)

All,

I’m working locally on what will eventually be an alternate membership path. So I hooked Stripe up to my local install. (Done with ghost install local, on WSL. I didn’t know that worked. Ok, cool.

Later, I needed some logging, so I stopped Ghost and tried ghost run -D. Ghost threw me an error:

[2023-10-20 19:06:59] ERROR Cannot read properties of undefined (reading 'members')

Cannot read properties of undefined (reading 'members')

Error ID:
    d7f78ed0-6f7b-11ee-8f77-5dfa27828c43

----------------------------------------

TypeError: Cannot read properties of undefined (reading 'members')
    at bootGhost (/home/cathy/ghost5.69/versions/5.69.0/core/boot.js:560:32)
    at EmailServiceWrapper.init (/home/cathy/ghost5.69/versions/5.69.0/core/server/services/email-service/EmailServiceWrapper.js:26:54)
    at initServices (/home/cathy/ghost5.69/versions/5.69.0/core/boot.js:358:22)
    at async bootGhost (/home/cathy/ghost5.69/versions/5.69.0/core/boot.js:529:9)

[2023-10-20 19:06:59] WARN Ghost is shutting down
[2023-10-20 19:06:59] ERROR Unhandled rejection: Cannot use live stripe keys in development. Please restart in production mode.

Cannot use live stripe keys in development. Please restart in production mode.

Huh. Yeah, I did somehow miss that I was linking live keys. Whoops. OK, well, I’ll unlink and relink in test mode (what I’d intended originally). So I ran ghost start but now I’m getting an error:

Message: Ghost was able to start, but errored during boot with: Cannot read properties of undefined (reading 'members')

I’m not sure what happened to tmembers, but that doesn’t look good.

I /think/ that attempting ghost run -D with live Stripe keys just corrupted my Ghost install.

No harm no big foul here, since it’s just a local install with test data, but it might be worth testing to see if it’ll replicate with a production (non-local) install, because bugging an install is baaaad.

And obviously, I shouldn’t have linked live keys (even for a throwaway Stripe account), but it’s apparently been a long week!

1 Like