Onpremise: ./install.sh Failed: 'system-key' Must be set.

Created on 9 Jan 2020  ·  8Comments  ·  Source: getsentry/onpremise

For beginners, follow the tutorial to install!

environment:
MacOS: 10.15.2
Docker: 19.03.5
Docker-Compose: 1.24.1

Steps:

1 - git clone https://github.com/getsentry/onpremise.git

2 - cd onpremise && ./install.sh

Finally the error like the image:

图片

Error info: !! Configuration error: system.secret-key MUST be set. Use 'sentry config generate-secret-key' to get one.

Any idea?

Bug

Most helpful comment

Thanks,./install.sh is very convenient, but in my environment, it is not always successful, it needs to install several times to succeed

Yup, submitted a potential fix: #338. Feel free to try that branch for now.

Thank you. I'll try and give you feedback

All 8 comments

Can you share the full install logs that are automatically generated?

@BYK Hi, the complete file is here: sentry install log

@BYK And I find a strange thing.Install several times(change some config reinstall), one of which will succeed and the others will fail

It is the automatic secret key generation. Since it is random, a second run simply generates a new secret that is actually valid:

Generating secret key...
tr: Illegal byte sequence

I'll investigate this but have never encountered this before on the systems I worked with (WSL, Google Cloud Build and TravisCI) so if you can share your system details, it may help me identify what's going wrong there. -- just saw it is MacOS, will investigate.

It is the automatic secret key generation. Since it is random, a second run simply generates a new secret that is actually valid:

Generating secret key...
tr: Illegal byte sequence

I'll investigate this but have never encountered this before on the systems I worked with (WSL, Google Cloud Build and TravisCI) ~so if you can share your system details, it may help me identify what's going wrong there.~ -- just saw it is MacOS, will investigate.

Thanks,./install.sh is very convenient, but in my environment, it is not always successful, it needs to install several times to succeed

Thanks,./install.sh is very convenient, but in my environment, it is not always successful, it needs to install several times to succeed

Yup, submitted a potential fix: #338. Feel free to try that branch for now.

Thanks,./install.sh is very convenient, but in my environment, it is not always successful, it needs to install several times to succeed

Yup, submitted a potential fix: #338. Feel free to try that branch for now.

Thank you. I'll try and give you feedback

@BYK Great job~I installed twice,both succeed!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eandersons picture eandersons  ·  5Comments

wodCZ picture wodCZ  ·  5Comments

adrielliu picture adrielliu  ·  3Comments

TheRatG picture TheRatG  ·  4Comments

meriturva picture meriturva  ·  6Comments