-
-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gpg: waiting for lock #1021
Comments
@Niklas-Nitrokey This is what you get directly at boot? Prior of having |
Call tree:
Anything funky in that /etc/distro directory on your side for the rom you are using @Niklas-Nitrokey ? Which platform? Which commit id? Which fork? |
Wiping the error redirections (2> /dev/null) on your platform/fork should give useful input to troubleshoot this issue I unfortunately cannot replicate on my side on x230 with latest commit ID. Not sure I understand what is happening here, but it seems that gpg waits a child to exit, which never happens. @Niklas-Nitrokey : You say it happens randomly 1/5 times?
|
The problem has already occurred for x230s and t430s. How can I change the key-init so that the changes are saved for the reboot? |
@Niklas-Nitrokey The simplest solution is to edit the sources directly and build a new rom to be flashed internally with only changes under key-init as shown in previous post to give output of what is going on prior of looping for something locked for what we don't know why (I can't replicate). A more complicated approach would be to inject modified key-init with cbfs tool from within heads, in a rom previously backed up with flash.sh tool. Here is an example of how the file /etc/config.user is injected inside of the rom, which is then extracted back in place by cbfs-init at boot. |
@Niklas-Nitrokey still relevant on master? Please close otherwise. |
Please reopen otherwise |
Sorry for the late reply we installed the new version last week on the corresponding laptops with this "lock problem" and it seems to have fixed the problem completely. |
@Niklap97 I'm having this issue right now on a x230 test laptop without a battery connected for a while and which was disconnected from power adapter in the last days. That laptop has a clock skew issue (its in year 2145! Welcome to the future) and first message on top of the screen boot (before Heads banner) I get is "rtc_cmos: 00:03: hctosys: unable to read the hardware clock". If I reboot and hit r to hit recovery console early, and reboot, the same rtc_cmos error above appears but I do not have the "gpg: waiting for lock" issue anymore. This happened directly after a maximized -> maximized internal flash upgrade keeping settings, so I my gpg pubring and trustdb have been migrated. On firmware upgrade, there is MRC cache that is rewritten on SPI flash.... Unfortunately, I cannot replicate further, since going early recovery shell fixed the issue (why is the unanswered question here... since I am still in 2145 at this point) But the hint here is that RTC clock is skew, and if the laptop has issues keeping time, RTC battery (button battery under keyboard) should probably be replaced. Also, before booting, it is recommended (if time skew) to call
This is less error prone then setting date and proper input format, and will set time in UTC as Heads requires, leaving no room for user error. On reboot, until Hope that helps. |
@tlaurion i also have the same issue, the complete issue is in ticket Starting new kernel takes long time |
Hit Otherwise, you would have to set time manually. Just searched through osresearch.net with the search tool, and was not able to find any reference to data nor skew, so that got lost somehow ?!?
Ethernet cable only. There is nothing to deal with WPA keys (wpa-supplicant depending on mbetls instead of openssl per space constraints) nor anything that fancy under Heads to deal with WIFI card. Could most probably be done though, but an integration project in itself where no use-case actually justifies requiring wifi internet access through Heads for the moment. |
Hi, This indicates the presence of a If you run Here are the steps to fix the issue
Here are some other approaches to prevent this error:
Hope this helps! |
In my case, just kill the .lock works
Reference: https://superuser.com/questions/1811518/gpg-stops-doing-anything-on-mac |
This was fixed a while ago no? Was linked to cmos system kept time being either way in the past compared to kept under repo public keys, and was thought to be fixed with early boot detection of date being < 2024 recently, and forcing the end user to set time with added helper, before those keys are loaded from firmware. Is this still an issue for someone here? If so please open a new issue with proper screenshots. This was resolved with PR pointing here see above and this issue is closed for that reason. Was surprised seeing a comment here :) |
About every 5 times when starting my Lenovo T430 the message "gpg: waiting for lock (held by x)" comes up and heads does not start. i remain stuck in an endless loop.
The text was updated successfully, but these errors were encountered: