Do you use or administer OpenEMR? Take the General Satisfaction Survey to help improve the product

Decryption and Key creation issues (Blank Screen - Is Not file permissions)

I’m getting a blank page when I bring up the login screen.

I’ve already made sure that the dir/files permissions are correct by running.
find documents -type f -exec chmod 666 {} + -o -type d -exec chmod 775 {} +
Yet the problem still persist.

OpenEMR Version
I’m using OpenEMR version 6

I’m using: FireFox 85, Chrome 88

Operating System
I’m using: Ubuntu 20.04LTS

Did you check the logs? Yes
Was there anything pertinent in them? Yes

[Mon Feb 15 14:46:35.682042 2021] [mpm_prefork:notice] [pid 1340556] AH00163: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
[Mon Feb 15 14:46:35.682200 2021] [core:notice] [pid 1340556] AH00094: Command line: '/usr/sbin/apache2'
[Mon Feb 15 14:46:50.160487 2021] [php7:notice] [pid 1340557] [client :60250] OpenEMR Error : Decryption failed authentication.
[Mon Feb 15 14:46:50.160536 2021] [php7:notice] [pid 1340557] [client :60250] OpenEMR Error : Key creation is not working - Exiting.```

You can also turn on User Debugging under Administration->Globals->Logging User Debugging Options=>All

If the file keys were not generated from the database key then this can happen. Generally happens when restoring database or such.

Try deleting sites/default/documents/logs_and_misc/methods/sixa and sixb then clear browser and login.

that got rid of the white screen but on TOTP it simply spins.

Looks like I deleted the db entry for the admin in the login_mfa_registrations table. Which why this is simply spinning. How can I fix it?

There’re a couple forum threads around dealing with this issue. Check around…