RuntimeError (can not encrypt Stripe keys, add app_encryption_key to config/config.yml)

Hi folks,

Just trying to enable Stripe in Sharetribe 7.2. I get this error when i try to save the 2 keys and the browser redirects to the home page. In my config/config.yml I have the following:

production:
secret_key_base:
stripe_private_key_pattern: “sk_(test|live).{24}"
stripe_publishable_key_pattern: "pk
(test|live)_.{24}”
app_encryption_key:
mail_delivery_method: “sendmail”
google_maps_key:

I’ve followed the steps again at https://github.com/sharetribe/sharetribe/blob/master/README.md#payments but no change. Seems for some reason, it cannot encrypt the keys and they are not saved in the admin panel.

Thanks

Further investigation - appears that my config/config.yml is being ignored. Earlier I had made some changes to config/config.defaults.yml which i have now restored to default. I moved all my changes into config/config.yml as is recommended.

Any ideas why config/config.yml would be ignored?

Any progress on this? I’m getting the same error trying to save Stripe keys.

My config.yml seems to be used for all other settings, but I still get the message: “add app_encryption_key to config/config.yml” even though it is definitely there already.

:frowning:

Anybody? I’m dead in the water here. I’ve tried everything I can think of… putting app_encryption_key under production, at the top of the file, different values, enclosed in quotes, not enclosed… same error… always.

Help!