0

Last day in my production Debian GNU/Linux server I've updated LimeSurvey from 5.0.1 to 5.2.5 and I could no longer compile any questionnaire, because when a visitor got to the end, LimeSurvey would crash with this SodiumException:

Wrong decryption key! Decryption key has changed since this data were last saved, so data can't be decrypted. Please consult our manual at https://manual.limesurvey.org/Data_encryption#Errors

It just says that I should take care of my file secret.php but I'm sure that:

  • I have preserved application/config/security.php during the update
  • anyway I have not any encrypted question (I've double-checked every question)
  • anyway I disabled encryption in all participants "extra fields" (even if I have not any extra field and any already existing participant)
  • anyway this is a new survey (so I don't understand why it says there are problems with already existing data do be decrypted)
  • I tried to follow the official documentation but at the time of writing it does not say anything about my use case and it just says that I have lost my keys: https://manual.limesurvey.org/index.php?oldid=162387#Errors

Has this happened to you? What went wrong? What data LimeSurvey is trying to decrypt?

P.S.

1
  • Please someone add LimeSurvey and libsodium tags, since I'm not allowed to do it. Thank you! Dec 15 '21 at 7:25
0

If the ''wrong decryption key'' error happens only when LimeSurvey sends an email (e.g. when you concluded a survey), try this:

  • go in Configuration > Global Settings > E-mail settings
  • re-insert your STMP password
  • press Save (the button should be on the top of the page)

For some reason LimeSurvey encrypts the SMTP password by default. So, saving it again will force it to be encrypted again correctly.

Some references:


P.S.

I've updated the wiki to add this note, so it should be easy to troubleshoot:


Note: if that doesn't fix it for you, try debugging LimeSurvey:

In this way you should be able to understand what information is encrypted.

Also, consider recovering your application/config/security.php file from a backup, since probably you have lost it at this point if you have not already fixed.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.