Samba shares stopped working

Since a few weeks the Samba shares on my openHABian installation do not work anymore. I try to access the Samba shares with Windows (Explorer) and iPad (App GoCoEdit), both worked until some weeks ago and now suddenly not anymore.

I am using the latest version of openhabian: Linux openhabian 5.10.103-v7l+ #1529

I also tried to reinstall samba via the openHABian Configuration Tool using menu 10 (10 Apply Improvements > 16 Samba). Below is the output I got when I did this. Unfortunately I don’t know Linux very well, so I don’t understand what this “30436” and “30485” bus errors mean.

2023-02-16_20:32:35_CET [openHABian] Setting up Samba network shares... /opt/openhabian/functions/packages.bash: line 10: 30436 Bus error               smbpasswd -e "${username:-openhab             ian}" &> /dev/null
/opt/openhabian/functions/packages.bash: line 23: 30484 Done                    ( echo "${userpw:-openhabian}"; echo "${userpw:-openhabian}" )
     30485 Bus error               | smbpasswd -s -a "${username:-openhabian}" &> /dev/null
OK
2023-02-16_20:37:05_CET [openHABian] Setting up Samba service... FAILED (enable service)
2023-02-16_20:42:04_CET [openHABian] Updating myself... 2023-02-16_20:42:28_CET [openHABian] Checking for default openHABian username:password combination... OK
2023-02-16_20:42:28_CET [openHABian] We hope you got what you came for! See you again soon ;)

Can anyone give me a hint what I can do to get Samba running again?

I would say that this is not normal behavior.
Did you do more than one trial and the same messages were shown ?
What happens if you manually enter ( assumed you use the default user openhabian ):

sudo smbpasswd -e openhabian

Do the files /var/log/syslog, /var/log/openhab/openhab.log; command sudo dmesg show any other error messages ? I would assume that the messages you posted are related to hardware e.g. memory or SD card errors but then I would expect to see also other errors.

Thanks for your reply.

Yes, I did more than one trial and I am using the default user openhabian. I run openHAB with about 50 things and 350 items. Except for Samba, I have not experienced any problems.

In openhab.log are only errors which I do understand (some stuff about rules or transformations).

In syslog I found the following lines, but I don’t know if they are Samba related:

Feb 17 06:25:01 openhabian exim4: ALERT: exim paniclog /var/log/exim4/paniclog has non-zero size, mail system possibly broken
...
Feb 17 07:06:24 openhabian systemd[1]: Started Session 4039 of user openhabian.
Feb 17 07:06:49 openhabian kernel: [2022358.986471] mmc0: Got data interrupt 0x00000002 even though no data operation was in progress.
Feb 17 07:06:58 openhabian kernel: [2022368.140471] mmc0: Got data interrupt 0x00000002 even though no data operation was in progress.
Feb 17 07:07:06 openhabian kernel: [2022376.333628] blk_update_request: I/O error, dev mmcblk0, sector 5450898 op 0x0:(READ) flags 0x0 phys_
seg 1 prio class 0
Feb 17 07:07:14 openhabian kernel: [2022384.525612] blk_update_request: I/O error, dev mmcblk0, sector 5450899 op 0x0:(READ) flags 0x0 phys_
seg 1 prio class 0
Feb 17 07:07:23 openhabian kernel: [2022392.717572] blk_update_request: I/O error, dev mmcblk0, sector 5450900 op 0x0:(READ) flags 0x0 phys_
seg 1 prio class 0
Feb 17 07:07:31 openhabian kernel: [2022400.909643] blk_update_request: I/O error, dev mmcblk0, sector 5450901 op 0x0:(READ) flags 0x0 phys_
seg 1 prio class 0
Feb 17 07:07:39 openhabian kernel: [2022409.101626] blk_update_request: I/O error, dev mmcblk0, sector 5450902 op 0x0:(READ) flags 0x0 phys_
seg 1 prio class 0
Feb 17 07:07:47 openhabian kernel: [2022417.293624] blk_update_request: I/O error, dev mmcblk0, sector 5450903 op 0x0:(READ) flags 0x0 phys_
seg 1 prio class 0
Feb 17 07:07:56 openhabian kernel: [2022426.205461] mmc0: Got data interrupt 0x00000002 even though no data operation was in progress.
Feb 17 07:08:05 openhabian kernel: [2022434.874452] mmc0: Got data interrupt 0x00000002 even though no data operation was in progress.
Feb 17 07:08:13 openhabian kernel: [2022443.067594] blk_update_request: I/O error, dev mmcblk0, sector 5450898 op 0x0:(READ) flags 0x0 phys_
seg 1 prio class 0
Feb 17 07:08:21 openhabian kernel: [2022451.259636] blk_update_request: I/O error, dev mmcblk0, sector 5450899 op 0x0:(READ) flags 0x0 phys_
seg 1 prio class 0
Feb 17 07:08:29 openhabian kernel: [2022459.451602] blk_update_request: I/O error, dev mmcblk0, sector 5450900 op 0x0:(READ) flags 0x0 phys_
seg 1 prio class 0
Feb 17 07:08:37 openhabian kernel: [2022467.643611] blk_update_request: I/O error, dev mmcblk0, sector 5450901 op 0x0:(READ) flags 0x0 phys_
seg 1 prio class 0
Feb 17 07:08:46 openhabian kernel: [2022475.835627] blk_update_request: I/O error, dev mmcblk0, sector 5450902 op 0x0:(READ) flags 0x0 phys_
seg 1 prio class 0
Feb 17 07:08:54 openhabian kernel: [2022484.027643] blk_update_request: I/O error, dev mmcblk0, sector 5450903 op 0x0:(READ) flags 0x0 phys_
seg 1 prio class 0

with sudo dmesg I found a lot of stuff like this:

[1984383.101751] mmc0: Got data interrupt 0x00000002 even though no data operation was in progress.
[1984391.296747] mmc0: Got data interrupt 0x00000002 even though no data operation was in progress.
[1984399.489913] blk_update_request: I/O error, dev mmcblk0, sector 5450898 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[1984407.681890] blk_update_request: I/O error, dev mmcblk0, sector 5450899 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[1984415.873901] blk_update_request: I/O error, dev mmcblk0, sector 5450900 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[1984424.065890] blk_update_request: I/O error, dev mmcblk0, sector 5450901 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[1984425.143976] INFO: task kworker/0:1:29447 blocked for more than 122 seconds.
[1984425.143997]       Tainted: G         C        5.10.103-v7l+ #1529
[1984425.144013] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.

sudo smbpasswd -e openhabian did not work. The only output was as following:

openhabian@openhabian:~ $ sudo smbpasswd -e openhabian
Bus error

same as by running it from within openhabian-config.

your SD card is defect.

Ok, thank you very much for the hint. Then I will try with another SD card in the next few days…