Sentry upgrade fails

Hello,

I am fairly new to sentry and I’m having trouble upgrading (and installing plugins). When I execute sudo sentry --config=/etc/sentry/sentry.conf.py upgrade it fails and says

sentry.runner.importer.ConfigurationError: system.secret-key MUST be set. Use ‘sentry config generate-secret-key’ to get one.

But in config.yml the system.secret-key is set, what am I doing wrong?

Thank you for any hint(s).

cheers

You need to point sentry --config=/etc/sentry/ instead. Otherwise it’s not even reading the config.yml file. This changed a while ago and you’re expected to point at the folder of config files rather than a file explicitly.