Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

500: Internal Server Error "Wrong decryption key!" - cannot send e-mail

  • jlhollowell
  • jlhollowell's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 5 months ago - 3 years 5 months ago #219154 by jlhollowell
Hello,

I'm gradually getting closer to getting Limesurvey to work but...have now stumbled when trying to send an invitation e-mail to my participant list. I am using:

Limesurvey 5.1.4 Build 210824 (just updated yesterday 8/25/21)

On Nginx
PHP 7.4.21 (Sodium 1.0.18 is installed)
DB is Maria

E-mail sending works fine when I add new system users. (Note - last user added was prior to upgrading Limesurvey...see below)

The message I am getting is:
 

I checked  www.limesurvey.org/manual/Data_encryption#errors and see that my problem, I'm guessing, is with how I updated Limesurvey yesterday. I replaced the old directory with the new one, put my old config.php file where it goes and accessed the site. The upgrade seemed to occur without issue. I did not, however, realize that I needed to copy over the original encryption keys. Luckily I still have a copy of the old instance but...in application/config security.php of the old instance I see:

'encryptionkeypair'
'encryptionpublickey'
'encryptionsecretkey'

In the new instance I see

'encryptiononce'
'encryptionsecretboxkey'

Hmm...so which keys to copy? I tried the following:

1. Copy the three old keys to the new instance and comment out the two in the new instance but that resulted in the same 500 error.
2. Copy the three old keys into the new instance and leave the two already in the new instance (i.e. uncomment them from the previous trial) but that resulted in a 500 error as well.

Another thing I noticed...I'm trying to send the invitation in two languages and have set my participants each to one of the two languages I am using (English and Japanese). I just looked at the participant attributes and notice that, for some reason, the attributes for Japanese are all encrypted but those for English are not...I don't know how/why they got set this way but possibly that is part of my problem. I tried changing them all to 'encrypted' but that didn't change anything...I still get the 500 error. :-(

So, I'm stuck...

This prevents me from being able to administer my survey so I need to fix the situation...obviously. :-) Any advice will be most appreciated.

Jason

P.S. It is not a problem for me to delete all participants and recreate them if that will work...?
Last edit: 3 years 5 months ago by jlhollowell. Reason: Added additional information
The topic has been locked.
  • jlhollowell
  • jlhollowell's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 5 months ago #219155 by jlhollowell
Ok, I managed to figure out how to fix this per the information found here:

forums.limesurvey.org/forum/installation...on-keys-after-update

I resaved my smtp password and everything works. :-)

Also, I left the encryption keys (all of them as is)...hopefully this does not cause a problem. (fingers crossed)

Jason
The following user(s) said Thank You: DenisChenu
The topic has been locked.
Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose