incubator-devlake-helm-chart icon indicating copy to clipboard operation
incubator-devlake-helm-chart copied to clipboard

Encryption Secret error

Open Zachnjue opened this issue 1 year ago • 8 comments

i am experiencing this error from the devlake pod, the pod keeps crashing in a loop.

time="2024-02-20 11:11:06" level=info msg="\x1b[31;1m/app/impls/dalgorm/dalgorm.go:209 \x1b[35;1minvalid encryptionSecret; invalid encryptionSecret; invalid encryptionSecret; invalid encryptionSecret; invalid encryptionSecret; invalid encryptionSecret; invalid encryptionSecret; invalid encryptionSecret; invalid encryptionSecret\n\x1b[0m\x1b[33m[0.934ms] \x1b[34;1m[rows:3]\x1b[0m SELECT * FROM _devlake_blueprints WHERE enable = true AND is_manual = false ORDER BY id DESC" panic: invalid encryptionSecret; invalid encryptionSecret; invalid encryptionSecret; invalid encryptionSecret; invalid encryptionSecret; invalid encryptionSecret; invalid encryptionSecret; invalid encryptionSecret; invalid encryptionSecret (500)"

Zachnjue avatar Feb 20 '24 13:02 Zachnjue

hi @Zachnjue, how did you install the devlake, how did you generate the encrytion secret?

ZhangNing10 avatar Feb 21 '24 05:02 ZhangNing10

I installed the devlake using helm. I generated the encryption secret using this command: ENCRYPTION_SECRET=$(openssl rand -base64 2000 | tr -dc 'A-Z' | fold -w 128 | head -n 1)

Zachnjue avatar Feb 21 '24 06:02 Zachnjue

hi @Zachnjue , is it a new setup or a upgrade? did you try to install multiple times or upgrade? from the error invalid encryptionSecret, it seems it's not a clean setup

ZhangNing10 avatar Feb 22 '24 05:02 ZhangNing10

hi @Zachnjue , is it a new setup or a upgrade? did you try to install multiple times or upgrade? from the error invalid encryptionSecret, it seems it's not a clean setup

ZhangNing10 avatar Feb 22 '24 05:02 ZhangNing10

I tried to install it multiple times. what's the workaround or solution in this case?

Zachnjue avatar Feb 22 '24 05:02 Zachnjue

@Zachnjue I think you need to wipe out the database before installation. Either delete the related MySQL volume or connect to the database and ensure there is no table in the database. DISCLAIMER: do it at your own risk.

klesh avatar Feb 23 '24 06:02 klesh