SMB won't start, linked to BTRFS error?

  • Hello all,


    My Odroid HC2 has been working fine, but recently the SMB service won't start.


    I tried to restart the service, no dice. This was the result from sudo journalctl -xe



    Code
    -- Unit smbd.service has begun starting up.
    May 11 23:58:23 odroidhc2 smbd[4154]: /usr/sbin/smbd: error while loading shared libraries: /usr/lib/arm-linux-gnueabihf/libldap_r-2.4.so.2: cannot read file data: Inpu
    May 11 23:58:23 odroidhc2 kernel: BTRFS warning (device mmcblk1p2): csum failed root 5 ino 72834 off 1167896576 csum 0xe36288ed expected csum 0x23718ab7 mirror 1
    May 11 23:58:23 odroidhc2 systemd[1]: smbd.service: Main process exited, code=exited, status=127/n/a
    May 11 23:58:23 odroidhc2 systemd[1]: Failed to start Samba SMB Daemon.
    -- Subject: Unit smbd.service has failed

    Can anyone suggest how I go about fixing this?


    Thanks for your time.

    OMV 5 on Raspberry Pi 3, Odroid C2 + HC2 and two cobbled together x64 boxes running Snapraid.

  • BTRFS warning (device mmcblk1p2): csum failed root 5 ino 72834 off 1167896576 csum 0xe36288ed expected csum 0x23718ab7 mirror 1

    This is data corruption on your rootfs resulting in a corrupted library. Most probably the sign of a dying SD card.


    You can try to workaround this by reinstalling the affected package. But I would check first whether other files are affected as well. Do an armbianmonitor -v as root for a package verification check. If a lot of files are affected you need a backup of your installation or need to start over from scratch.

  • Thanks tkaiser, the card is a new SanDisk one so I hope it's not that.


    I did sudo apt-get install -reinstall for 3 packages that were flagged when cycling through journalctl -xe and restarting smbd


    Seems OK now but I'll RMA the card if it keeps throwing errors.

    OMV 5 on Raspberry Pi 3, Odroid C2 + HC2 and two cobbled together x64 boxes running Snapraid.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!