[Koha] Issue logging into staff interface [Plack log complains about missing encryption key]

Martin Morris martinbmorris at gmail.com
Sat Nov 11 09:23:23 NZDT 2023


I’ve actually spotted one other error:



Error decoding what should be base32 data:
vg¥ o¯Ët©¹ìd`½Ï¯ïE¤9¯yïWŽ¼«{† at /usr/share/koha/lib/C4/Auth.pm line 886.

2023/11/10-15:12:36 Received QUIT. Running a graceful shutdown

Sending children hup signal

2023/11/10-15:12:37 Worker processes cleaned up

2023/11/10-15:12:37 Server closing!



Could this be an issue with the encryption key?  It was just randomly chosen from the options I got from pwgen 32.



Thanks again!



Martin



> - - - - - -



Hi Martin,



I believe that should have worked especially after your reboot. I would

add the key back, as you should not leave it with the placeholder string.



Maybe someone else has an idea?



Katrin



On 10.11.23 20:11, Martin Morris wrote:

> Hello Katrin,

>

>

>

> Thanks for your help.  I edited koha-conf.xml in /etc/koha/sites/<instance>/koha-conf.xml, so I think that’s the right place?

>

>

>

> I’m also using 2FA in case that helps.

>

>

>

> Martin

>

>

>

> - - - - - -

>

>

>

> Hi Martin,

>

>

>

> in which file did you replace it?

>

>

>

> You were on the right track there, but make sure to add the entry to the

>

> koha-conf.xml file used by your koha instances/sites. You might have

>

> changed the template instead of the used file.

>

>

>

> Hope this helps,

>

>

>

> Katrin

>

>

>

> On 10.11.23 16:02, Martin Morris wrote:

>

>> Hello all,

>> I’m having trouble logging into our staff interface this morning.  Here’s what’s happening:

>>     *   I’m running koha 23.05.04

>>     *   I get an Error 500 page after putting in my credentials

>>     *   The only error message I can see in any log file is in plack-error.log

>>        *   Exception 'Koha::Exceptions::MissingParameter' thrown 'No encryption_key in koha-conf.xml. Please generate a key. We recommend one of at least 32 bytes. (You might use 'pwgen 32' to do so.)'

>>     *   I currently have the following line in my koha-conf.xml file, as the last entry before </config>

>>        *   <!-- Added 1 Nov 2022 from warning in About page

>> -->

>> <encryption_key>__ENCRYPTION_KEY__</encryption_key>

>> <!-- Added 1 Nov 2022 from warning in About page

>> -->

>>     *   I’ve tried generating a password with ‘pwd 32’, copying the first entry and replacing __ENCRYPTION_KEY__ with that entry, and have rebooted, but it didn’t make any difference so I reverted.

>> Is this a bug?  A known issue?

>> Thanks in advance!

>> Martin

>> _______________________________________________

>> Koha mailing list  http://koha-community.org

>> Koha at lists.katipo.co.nz<https://lists.katipo.co.nz/mailman/listinfo/koha>

>> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha

> _______________________________________________

>

> Koha mailing list  http://koha-community.org

> Koha at lists.katipo.co.nz<https://lists.katipo.co.nz/mailman/listinfo/koha>

> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha



More information about the Koha mailing list