Cannot connect to the balenaEngine daemon at unix:///var/run/balena-engine.sock. Is the balenaEngine daemon running?

I have a device that was working and now it only shows the message Online (VPN only) so I can’t access servcices exposed.

I tied to disconnect and plug it in again but still same behaviour.

Any feedback appreciated. Thanks in advance!

Attached Diagnostics
89e0ed4adedc5b2d4b85115ae8d58c6a_diagnostics_2023.05.31_06.33.22+0000.txt (1.2 MB)

Hey, according to the logs the containerd service is not able to start, so the engine is not starting and so are the supervisor and other containers.

If there is no user data that you need to keep, I would stop engine and supervisor and manually purge the engine storage see if it solves the issue. If that does not work, you can try to reset the data partition by removing /mnt/data/remove_me_to_reset and reboot. That will remove all of the storage engine, including containers and user volumes, so on the next boot the engine should start the supervisor and the applications will be re-downloaded.

1 Like

Thanks for your reply.

Finally I checked that the problem was caused by the sd corruption data. I solved it running e2fsck on the partition.

[Wed May 31 05:37:01 2023] EXT4-fs error (device mmcblk0p6): __ext4_find_entry:1623: inode #12: comm balena-engine-c: checksumming directory block 0
[Wed May 31 05:37:01 2023] EXT4-fs warning (device mmcblk0p6): ext4_dirblock_csum_verify:376: inode #12: comm balena-engine-c: No space for directory leaf checksum. Please run e2fsck -D.
[Wed May 31 05:37:01 2023] EXT4-fs error (device mmcblk0p6): __ext4_find_entry:1623: inode #12: comm balena-engine-c: checksumming directory block 0
[Wed May 31 05:37:01 2023] EXT4-fs warning (device mmcblk0p6): ext4_dirblock_csum_verify:376: inode #12: comm balena-engine-c: No space for directory leaf checksum. Please run e2fsck -D.
[Wed May 31 05:37:01 2023] EXT4-fs error (device mmcblk0p6): __ext4_find_entry:1623: inode #12: comm balena-engine-c: checksumming directory block 0
[Wed May 31 05:37:33 2023] EXT4-fs warning (device mmcblk0p6): ext4_dirblock_csum_verify:376: inode #12: comm balena-engine-c: No space for directory leaf checksum. Please run e2fsck -D.
[Wed May 31 05:37:33 2023] EXT4-fs error (device mmcblk0p6): __ext4_find_entry:1623: inode #12: comm balena-engine-c: checksumming directory block 0
[Wed May 31 05:37:33 2023] EXT4-fs warning (device mmcblk0p6): ext4_dirblock_csum_verify:376: inode #12: comm balena-engine-c: No space for directory leaf checksum. Please run e2fsck -D.
[Wed May 31 05:37:33 2023] EXT4-fs error (device mmcblk0p6): __ext4_find_entry:1623: inode #12: comm balena-engine-c: checksumming directory block 0
[Wed May 31 05:37:33 2023] EXT4-fs warning (device mmcblk0p6): ext4_dirblock_csum_verify:376: inode #12: comm balena-engine-c: No space for directory leaf checksum. Please run e2fsck -D.
[Wed May 31 05:37:33 2023] EXT4-fs error (device mmcblk0p6): __ext4_find_entry:1623: inode #12: comm balena-engine-c: checksumming directory block 0
[Wed May 31 05:37:33 2023] EXT4-fs warning (device mmcblk0p6): ext4_dirblock_csum_verify:376: inode #12: comm balena-engine-c: No space for directory leaf checksum. Please run e2fsck -D.
[Wed May 31 05:37:33 2023] EXT4-fs error (device mmcblk0p6): __ext4_find_entry:1623: inode #12: comm balena-engine-c: checksumming directory block 0