Kdewallet fails to start after hibernation

Whenever I restart from hibernation kdewallet is dead, it fails to start with this error

I have to hard reset for it to work again. Everything else works after hibernation.

Some relevant data, (it seems the gnupg lock is not released in the hibernation call):

déc. 31 11:10:11 alex-b450aoruselite keyboxd[1709]: waiting for lock (held by 1679) ...
déc. 31 11:10:12 alex-b450aoruselite keyboxd[1709]: can't lock '/home/alex/.gnupg/public-keys.d/pubring.db': Connexion terminée par expiration du délai d'attente
déc. 31 11:10:12 alex-b450aoruselite keyboxd[1709]: error creating database '/home/alex/.gnupg/public-keys.d/pubring.db': Connexion terminée par expiration du délai d'attente
déc. 31 11:10:12 alex-b450aoruselite keyboxd[1709]: error during the initial search reset: Connexion terminée par expiration du délai d'attente

EDIT: Manually removing

rm /home/alex/.gnupg/public-keys.d/pubring.db.lock 

solves the issue without restarting. This is however annoying.

Perhaps check which process still holds the lock. Here it’s the one with PID 1679. You could try to check the process list next time this happens.

Perhaps a script to automate that deletion after resuming might solve that for you.

I found a better way. Activating this solves the hibernation issue:

System Settings >> KDE wallet >> Activate “when screen saver starts” (disabled by default)

I found that normal call to hibernation doesn’t trigger the error, only automatic hibernation after inactivity does it. so this is the solution.

1 Like

As this is the main English area of the forum please translate those options and type it in real text so that others can share in this epiphany. :wink:

Oh, and remove the image.

Regards.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.