The officially official Devuan Forum!

You are not logged in.

#1 2020-06-27 19:55:57

kuleszdl
Member
Registered: 2018-11-03
Posts: 107  

Dropbear-initramfs: cryptroot-unlock says "Try again later" forever

Hi,

after installing the dropbear-initramfs package, everything looked fine. However, after SSH'ing into the busybox environment, each call to

cryptroot-unlock

resulted in the following message:

Try again later

it seems like the following check in cryptroot-unlock never passes:

if [ ! -f "$TABFILE" ] || [ "$TABFILE" -ot "/proc/1" ]; then
        # Too early, init-top/cryptroot hasn't finished yet
        echo "Try again later" >&2
        exit 1
fi

Workaround: Uncomment the line with "exit 1", then everything should work.

Is this check systemd-related?

Offline

#2 2020-06-28 18:56:24

bgstack15
Member
Registered: 2018-02-04
Posts: 205  

Re: Dropbear-initramfs: cryptroot-unlock says "Try again later" forever

The logic says this:
If (file $TABFILE does not exist) or ( $TABFILE is older than /proc/1) then,
display the error message
return a non-zero result
end-if.

So the creation date of process number 1 (the init, so most likely sysvinit, but doesn't really matter for merely checking the date) is when that process started. So if the tab file (I'm assuming crypttab, as in encrypted filesystem table, but I could be wrong) is older than the current init, then that is a failure state for your check. So it sounds like, in conjunction with the comment, that we need something else to happen first before cryptroot-unlock will work successfully.

So it's not systemd-related. But I don't know the specifics of cyrptroot or dropbear so that's probably all I can help you with.


This space intentionally left blank.

Offline

#3 2020-07-05 19:53:09

kuleszdl
Member
Registered: 2018-11-03
Posts: 107  

Re: Dropbear-initramfs: cryptroot-unlock says "Try again later" forever

Thanks, well the issue here was that I tried to move from an unencrypted to an encrypted system which resulted in a inproper initramfs.

Offline

#4 2023-11-15 18:21:39

Danielsan
Member
Registered: 2020-07-14
Posts: 164  

Re: Dropbear-initramfs: cryptroot-unlock says "Try again later" forever

I hope any of you can help me here...

I have the same issue, I'd like to try your workaround but I can't find the cryptroot-script in the first place!

find: ‘cryptroot’: No such file or directory

Thanks!

Offline

#5 2023-11-16 00:53:01

Danielsan
Member
Registered: 2020-07-14
Posts: 164  

Re: Dropbear-initramfs: cryptroot-unlock says "Try again later" forever

kuleszdl wrote:

Hi,

if [ ! -f "$TABFILE" ] || [ "$TABFILE" -ot "/proc/1" ]; then
        # Too early, init-top/cryptroot hasn't finished yet
        echo "Try again later" >&2
        exit 1
fi

Workaround: Uncomment the line with "exit 1", then everything should work.

Is this check systemd-related?

Commenting exit 1 did not solve the issue, unless I misunderstood the fix!

Offline

Board footer