[Samba] 2x Samba4 Bugs - "mount error(5): Input/output error" & "recycle: stat for ... AFP_AfpInfo returned No such file or directory"

Leander Schäfer info at netocean.de
Thu May 8 03:21:09 MDT 2014


Hi

I'm using Samba version 4.1.7 on the server side. On the Client side is 
multiple versions
- a copy machine Konica Minolta
- Windows XP
- Windows 7
- Mac OSx (Mavericks)
- CentOS (XenServer)

all of them get sporadic input output errors. E.g: on a Linux I would get a

mount error(5): Input/output error

after the first try. And as funny as it sounds, but the second try is a 
success and all is mounted as expected. What causes this sporadic behaviour?
It is quite annoying, since almost every second scan with the copy 
machine is a fail ...
Is this a bug?

Mount command on Linux:
mount -t cifs //10.0.0.200/MYSHARE -o 
username="${SMB_USR}",password="${SMB_PWD}",sec=ntlmv2 /mnt/MyShare

Also I saw this in the logs:

   recycle: stat for /mnt/MyShare/.Trashes/Management/Gründung/06 - 
Corporate Design/02 - Farbverläufe/Bildschirmfoto 2014-04-30 um 
17.23.08.png:AFP_AfpInfo returned No such file or directory
[2014/05/05 21:37:28.770219,  0] ../lib/util/fault.c:72(fault_report)
   ===============================================================
[2014/05/05 21:37:28.786358,  0] ../lib/util/fault.c:73(fault_report)
   INTERNAL ERROR: Signal 11 in pid 18048 (4.1.7)
   Please read the Trouble-Shooting section of the Samba HOWTO
[2014/05/05 21:37:28.786505,  0] ../lib/util/fault.c:75(fault_report)
   ===============================================================
[2014/05/05 21:37:28.786548,  0] ../source3/lib/util.c:785(smb_panic_s3)
   PANIC (pid 18048): internal error
[2014/05/05 21:37:28.880915,  0] ../source3/lib/util.c:896(log_stack_trace)
   BACKTRACE: 7 stack frames:
    #0 0x802b68ab1 <log_stack_trace+0x21> at /usr/local/lib/libsmbconf.so.0
    #1 0x802b68898 <smb_panic_s3+0x98> at /usr/local/lib/libsmbconf.so.0
    #2 0x801470045 <smb_panic+0x35> at /usr/local/lib/libsamba-util.so.0
    #3 0x80147062a <smb_panic+0x61a> at /usr/local/lib/libsamba-util.so.0
    #4 0x801470003 <fault_setup+0x73> at /usr/local/lib/libsamba-util.so.0
    #5 0x8044f740b <_swapcontext+0x15b> at /lib/libthr.so.3
    #6 0x8044f6ff3 <sigaction+0x343> at /lib/libthr.so.3
[2014/05/05 21:37:28.897854,  0] ../source3/lib/dumpcore.c:312(dump_core)
   unable to change to %N.core
   refusing to dump core
[2014/05/07 15:18:43.255493,  0] ../lib/util/pidfile.c:153(pidfile_unlink)
   Failed to delete pidfile /var/run/samba4/smbd.pid. Error was No such 
file or directory
[2014/05/07 15:18:43,  0] ../source3/smbd/server.c:1205(main)
   smbd version 4.1.7 started.
   Copyright Andrew Tridgell and the Samba Team 1992-2013
[2014/05/07 15:28:27.450572,  0] ../lib/util/pidfile.c:153(pidfile_unlink)
   Failed to delete pidfile /var/run/samba4/smbd.pid. Error was No such 
file or directory
[2014/05/07 15:28:28,  0] ../source3/smbd/server.c:1205(main)
   smbd version 4.1.7 started.
   Copyright Andrew Tridgell and the Samba Team 1992-2013






On top of this there is another Bug. Recycle bin is not working as 
expected. It fails mostly on umlaute but also for other files with 
regular chars.
I wonder what AFP has to do with this?! But it prevents users from being 
able to delete files and folders.

À seems to substitute the umlaut ä
ÃM-^_ seems to substitute the letter ß

May  5 08:27:54 Storage-01 smbd[39207]:   recycle: stat for 
/mnt/Share/.Trashes/Projekte/Bauvorhaben 2014/BahngelÀnde/Bilder/2 
Baubilder/IMG_0223.JPG:AFP_AfpInfo returned No such file or directory
May  5 08:27:56 Storage-01 smbd[39207]: [2014/05/05 08:27:56.500661,  0] 
../source3/modules/vfs_recycle.c:408(recycle_do_touch)

May  5 08:29:26 Storage-01 smbd[39207]:   recycle: stat for 
/mnt/Share/.Trashes/Projekte/Bauvorhaben 2014/BahngelÀnde/Bilder/2 
Baubilder/Copy #1 of DSC04806.JPG:AFP_AfpInfo returned No such file or 
directory
May  5 08:29:30 Storage-01 smbd[39207]: [2014/05/05 08:29:30.286152,  0] 
../source3/modules/vfs_recycle.c:408(recycle_do_touch)

May  5 08:44:25 Storage-01 smbd[16465]:   recycle: stat for 
/mnt/Share/.Trashes/Firmen/Allgemein/Bilder/Hof 
Bilder/IMG_0042.JPG:AFP_AfpInfo returned No such file or directory
May  5 08:45:32 Storage-01 smbd[16465]: [2014/05/05 08:45:32.488777,  0] 
../source3/modules/vfs_recycle.c:408(recycle_do_touch)

May  5 08:47:41 Storage-01 smbd[16465]:   recycle: stat for 
/mnt/Share/.Trashes/Technik/Elektrotechnik/01 Erneuerbare 
Energien/Photovoltaik/PV Bahnhof StraÃM-^_e 
6/Bilder/DSC04893.JPG:AFP_AfpInfo returned No such file or directory
May  5 08:47:42 Storage-01 smbd[16465]: [2014/05/05 08:47:42.631792,  0] 
../source3/modules/vfs_recycle.c:408(recycle_do_touch)




Any ideas on this? Please let me know if you need any further details.
Thanks

Kind Regards,
Leander


More information about the samba mailing list