Hello konsta,
I have another boot failure issue on raspberry Pi 4 model B when it try to run lineageOS 22.2, serial log show there are errors from keystore/vold and apex, due apex is "reboot_on_failure" so it trigger reboot abnormally, paste some critical boot logs as below:
[ 10.538903] DEBUG: LineageOS Version: '22.2-20250514-UNOFFICIAL-KonstaKANG-rpi4'
[ 10.546521] DEBUG: Build fingerprint: 'Raspberry/lineage_rpi4/rpi4:15/BP1A.250505.005/rpi4:user/release-keys'
[ 10.554015] DEBUG: Revision: '0'
[ 10.563958] DEBUG: ABI: 'arm64'
[ 10.567220] DEBUG: Timestamp: 1970-01-01 00:00:10.412443290+0000
[ 10.570402] DEBUG: Process uptime: 3s
[ 10.576449] DEBUG: Cmdline: /system/bin/keystore2 /data/misc/keystore
[ 10.580134] DEBUG: pid: 256, tid: 276, name: binder:256_3 >>> /system/bin/keystore2 <<<
[ 10.586611] DEBUG: uid: 1017
[ 10.594733] DEBUG: tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE)
[ 10.597643] DEBUG: signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
[ 10.604850] DEBUG: Abort message: 'Failed to open database: Failed to attach database persistent.\12\12Caused by:\12 0: unable to open database: file:/data/misc/keystore/persistent.sqlite?journal_mode=DELETE\12 1: Error code 14: Unable to open the database file'
[ 10.722190] DEBUG: backtrace:
[ 10.725685] DEBUG: #00 pc 000000000005c684 /apex/com.android.runtime/lib64/bionic/libc.so (abort+156) (BuildId: eca311be6d6b7e135c90a13dfcde31c5)
[ 10.728745] DEBUG: #01 pc 00000000001a6ee8 /system/bin/keystore2 (_RNvNvCs6k2EbaIPuLc_11panic_abort18___rust_start_panic5abort.llvm.10009702947989585488+8) (BuildId: 4e61f49cd9805a0dc71b196d70b5274d)
[ 10.742497] DEBUG: #02 pc 00000000001a6edc /system/bin/keystore2 (__rust_start_panic+16) (BuildId: 4e61f49cd9805a0dc71b196d70b5274d)
[ 10.760879] DEBUG: #03 pc 00000000001c4f00 /system/bin/keystore2 (rust_panic+8) (BuildId: 4e61f49cd9805a0dc71b196d70b5274d)
[ 10.773524] DEBUG: #04 pc 00000000001c4ec4 /system/bin/keystore2 (_RNvNtCsgp4I0abyUOj_3std9panicking20rust_panic_with_hook+608) (BuildId: 4e61f49cd9805a0dc71b196d70b5274d)
[ 10.785297] DEBUG: #05 pc 00000000001c4c60 /system/bin/keystore2 (_RNCNvNtCsgp4I0abyUOj_3std9panicking19begin_panic_handler0B5_.llvm.5059547087676845492+124) (BuildId: 4e61f49cd9805a0dc71b196d70b5274d)
[ 10.801234] DEBUG: #06 pc 00000000001c4900 /system/bin/keystore2 (rust_begin_unwind+40) (BuildId: 4e61f49cd9805a0dc71b196d70b5274d)
[ 10.819855] DEBUG: #07 pc 00000000000b4b08 /system/bin/keystore2 (_RNvNtCshH862Nx9UH7_4core9panicking9panic_fmt+44) (BuildId: 4e61f49cd9805a0dc71b196d70b5274d)
[ 10.832427] DEBUG: #08 pc 00000000000b4d48 /system/bin/keystore2 (_RNvNtCshH862Nx9UH7_4core6result13unwrap_failed+88) (BuildId: 4e61f49cd9805a0dc71b196d70b5274d)
[ 10.847364] DEBUG: #09 pc 00000000000e4f48 /system/bin/keystore2 (_RNSNvYNCINvMNtCs9ptU6mBMVLy_9keystore22gcNtBa_2Gc13new_init_withNCNCNvNtBc_7globals2GC00E0INtNtNtCshH862Nx9UH7_4core3ops8function6FnOnceTQNtNtBc_10async_task5ShelfEE9call_once6vtableBc_+1248) (BuildId: 4e61f49cd9805a0dc71b196d70b5274d)
[ 10.862532] DEBUG: #10 pc 00000000000e56c4 /system/bin/keystore2 (_RNSNvYNCINvMNtCsgp4I0abyUOj_3std6threadNtBa_7Builder16spawn_unchecked_NCNvMs0_NtCs9ptU6mBMVLy_9keystore210async_taskNtB1e_9AsyncTask12spawn_thread0uEs_0INtNtNtCshH862Nx9UH7_4core3ops8function6FnOnceuE9call_once6vtableB1g_+1796) (BuildId: 4e61f49cd9805a0dc71b196d70b5274d)
[ 10.889913] DEBUG: #11 pc 00000000001c61fc /system/bin/keystore2 (_RNvNvMs0_NtNtNtNtCsgp4I0abyUOj_3std3sys3pal4unix6threadNtB7_6Thread3new12thread_start+32) (BuildId: 4e61f49cd9805a0dc71b196d70b5274d)
[ 10.920426] DEBUG: #12 pc 000000000006cd58 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+184) (BuildId: eca311be6d6b7e135c90a13dfcde31c5)
[ 10.938939] DEBUG: #13 pc 000000000005fcb8 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: eca311be6d6b7e135c90a13dfcde31c5)
[ 10.964327] binder: release 256:270 transaction 224 in, still active
[ 10.985052] binder: send failed reply for transaction 224 to 238:238
[ 10.991730] vold: keystore2 Communication with Keystore earlyBootEnded failed error: -129
[ 11.040448] apexd: Started. subcommand = (null)
[ 11.045565] apexd: Failed to stat /metadata/apex/sessions: No such file or directory
[ 11.053660] apexd: Failed to stat /data/apex/sessions: No such file or directory
[ 11.066090] init: Service 'apexd' (pid 286) received signal 6 oneshot service took 0.053000 seconds in background
[ 11.076493] init: Sending signal 9 to service 'apexd' (pid 286) process group...
[ 11.084353] libprocessgroup: Removed cgroup /sys/fs/cgroup/uid_0/pid_286
[ 11.091122] init: Service apexd has 'reboot_on_failure' option and failed, shutting down system.
[ 11.100659] init: Got shutdown_command 'reboot,apexd-failed' Calling HandlePowerctlMessage()
[ 11.109151] init: Clear action queue and start shutdown trigger
[ 11.115131] init: Entering shutdown mode
[ 11.119167] init: processing action (shutdown_done) from (<Builtin Action>:0)
[ 11.126423] init: Reboot start, reason: reboot,apexd-failed, reboot_target: apexd-failed
[ 11.134532] init: Shutdown timeout: 6000 ms
[ 11.173592] kvm: exiting hardware virtualization
[ 11.178228] reboot: Restarting system with command 'apexd-failed'
I noticed that "Encrypting userdata is not supported" is known issue for lineageOS 22.2, not sure above error is connected to it.
Br Lewis
I have another boot failure issue on raspberry Pi 4 model B when it try to run lineageOS 22.2, serial log show there are errors from keystore/vold and apex, due apex is "reboot_on_failure" so it trigger reboot abnormally, paste some critical boot logs as below:
[ 10.538903] DEBUG: LineageOS Version: '22.2-20250514-UNOFFICIAL-KonstaKANG-rpi4'
[ 10.546521] DEBUG: Build fingerprint: 'Raspberry/lineage_rpi4/rpi4:15/BP1A.250505.005/rpi4:user/release-keys'
[ 10.554015] DEBUG: Revision: '0'
[ 10.563958] DEBUG: ABI: 'arm64'
[ 10.567220] DEBUG: Timestamp: 1970-01-01 00:00:10.412443290+0000
[ 10.570402] DEBUG: Process uptime: 3s
[ 10.576449] DEBUG: Cmdline: /system/bin/keystore2 /data/misc/keystore
[ 10.580134] DEBUG: pid: 256, tid: 276, name: binder:256_3 >>> /system/bin/keystore2 <<<
[ 10.586611] DEBUG: uid: 1017
[ 10.594733] DEBUG: tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE)
[ 10.597643] DEBUG: signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
[ 10.604850] DEBUG: Abort message: 'Failed to open database: Failed to attach database persistent.\12\12Caused by:\12 0: unable to open database: file:/data/misc/keystore/persistent.sqlite?journal_mode=DELETE\12 1: Error code 14: Unable to open the database file'
[ 10.722190] DEBUG: backtrace:
[ 10.725685] DEBUG: #00 pc 000000000005c684 /apex/com.android.runtime/lib64/bionic/libc.so (abort+156) (BuildId: eca311be6d6b7e135c90a13dfcde31c5)
[ 10.728745] DEBUG: #01 pc 00000000001a6ee8 /system/bin/keystore2 (_RNvNvCs6k2EbaIPuLc_11panic_abort18___rust_start_panic5abort.llvm.10009702947989585488+8) (BuildId: 4e61f49cd9805a0dc71b196d70b5274d)
[ 10.742497] DEBUG: #02 pc 00000000001a6edc /system/bin/keystore2 (__rust_start_panic+16) (BuildId: 4e61f49cd9805a0dc71b196d70b5274d)
[ 10.760879] DEBUG: #03 pc 00000000001c4f00 /system/bin/keystore2 (rust_panic+8) (BuildId: 4e61f49cd9805a0dc71b196d70b5274d)
[ 10.773524] DEBUG: #04 pc 00000000001c4ec4 /system/bin/keystore2 (_RNvNtCsgp4I0abyUOj_3std9panicking20rust_panic_with_hook+608) (BuildId: 4e61f49cd9805a0dc71b196d70b5274d)
[ 10.785297] DEBUG: #05 pc 00000000001c4c60 /system/bin/keystore2 (_RNCNvNtCsgp4I0abyUOj_3std9panicking19begin_panic_handler0B5_.llvm.5059547087676845492+124) (BuildId: 4e61f49cd9805a0dc71b196d70b5274d)
[ 10.801234] DEBUG: #06 pc 00000000001c4900 /system/bin/keystore2 (rust_begin_unwind+40) (BuildId: 4e61f49cd9805a0dc71b196d70b5274d)
[ 10.819855] DEBUG: #07 pc 00000000000b4b08 /system/bin/keystore2 (_RNvNtCshH862Nx9UH7_4core9panicking9panic_fmt+44) (BuildId: 4e61f49cd9805a0dc71b196d70b5274d)
[ 10.832427] DEBUG: #08 pc 00000000000b4d48 /system/bin/keystore2 (_RNvNtCshH862Nx9UH7_4core6result13unwrap_failed+88) (BuildId: 4e61f49cd9805a0dc71b196d70b5274d)
[ 10.847364] DEBUG: #09 pc 00000000000e4f48 /system/bin/keystore2 (_RNSNvYNCINvMNtCs9ptU6mBMVLy_9keystore22gcNtBa_2Gc13new_init_withNCNCNvNtBc_7globals2GC00E0INtNtNtCshH862Nx9UH7_4core3ops8function6FnOnceTQNtNtBc_10async_task5ShelfEE9call_once6vtableBc_+1248) (BuildId: 4e61f49cd9805a0dc71b196d70b5274d)
[ 10.862532] DEBUG: #10 pc 00000000000e56c4 /system/bin/keystore2 (_RNSNvYNCINvMNtCsgp4I0abyUOj_3std6threadNtBa_7Builder16spawn_unchecked_NCNvMs0_NtCs9ptU6mBMVLy_9keystore210async_taskNtB1e_9AsyncTask12spawn_thread0uEs_0INtNtNtCshH862Nx9UH7_4core3ops8function6FnOnceuE9call_once6vtableB1g_+1796) (BuildId: 4e61f49cd9805a0dc71b196d70b5274d)
[ 10.889913] DEBUG: #11 pc 00000000001c61fc /system/bin/keystore2 (_RNvNvMs0_NtNtNtNtCsgp4I0abyUOj_3std3sys3pal4unix6threadNtB7_6Thread3new12thread_start+32) (BuildId: 4e61f49cd9805a0dc71b196d70b5274d)
[ 10.920426] DEBUG: #12 pc 000000000006cd58 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+184) (BuildId: eca311be6d6b7e135c90a13dfcde31c5)
[ 10.938939] DEBUG: #13 pc 000000000005fcb8 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: eca311be6d6b7e135c90a13dfcde31c5)
[ 10.964327] binder: release 256:270 transaction 224 in, still active
[ 10.985052] binder: send failed reply for transaction 224 to 238:238
[ 10.991730] vold: keystore2 Communication with Keystore earlyBootEnded failed error: -129
[ 11.040448] apexd: Started. subcommand = (null)
[ 11.045565] apexd: Failed to stat /metadata/apex/sessions: No such file or directory
[ 11.053660] apexd: Failed to stat /data/apex/sessions: No such file or directory
[ 11.066090] init: Service 'apexd' (pid 286) received signal 6 oneshot service took 0.053000 seconds in background
[ 11.076493] init: Sending signal 9 to service 'apexd' (pid 286) process group...
[ 11.084353] libprocessgroup: Removed cgroup /sys/fs/cgroup/uid_0/pid_286
[ 11.091122] init: Service apexd has 'reboot_on_failure' option and failed, shutting down system.
[ 11.100659] init: Got shutdown_command 'reboot,apexd-failed' Calling HandlePowerctlMessage()
[ 11.109151] init: Clear action queue and start shutdown trigger
[ 11.115131] init: Entering shutdown mode
[ 11.119167] init: processing action (shutdown_done) from (<Builtin Action>:0)
[ 11.126423] init: Reboot start, reason: reboot,apexd-failed, reboot_target: apexd-failed
[ 11.134532] init: Shutdown timeout: 6000 ms
[ 11.173592] kvm: exiting hardware virtualization
[ 11.178228] reboot: Restarting system with command 'apexd-failed'
I noticed that "Encrypting userdata is not supported" is known issue for lineageOS 22.2, not sure above error is connected to it.
Br Lewis
Statistics: Posted by lewiszi — Mon Jun 30, 2025 7:13 am