[Samba] recycle: ... returned No such file or directory

Linda W samba at tlinx.org
Fri May 9 21:30:41 MDT 2014


Leander Schäfer wrote:
> It turns out, that files where the path has an umlaut inside, are not 
> able to be deleted. They disappear after the deleting but appear a 
> couple of milliseconds afterwards again with the logs I sent below.
> This seems to be a more serious problem than I thought. Is there 
> nothing I can do? deactivating the recycle bin is not an option ;(
>
> Kind Regards
> Leander
----
    I just tried this on Samba 3.6.22 -- I created a file with the 
combining umlaut:
"combined_ä.txt", and one with it pre-combined: "combinëd.txt".

In both cases, I could delete them w/no prob.

I tried locale:
LANG=de_DE.UTF-8
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="C"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="C"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_ALL=

and the same in en_US, still both were deleted and ended up in my
samba-recycle folder:

Ishtar:law/.recycle/dtst/tmp2> ll
total 8
-rw-rw-r-- 1 0 May  9 20:15 combined_ä.txt
-rw-rw-r-- 1 0 May  9 20:15 combinëd.txt

-----

Maybe it is something with your setup or with the newer samba, but I'd
bet my money on ZFS's acting as a backend ... i.e. since it takes snapshots
and does deduplication, maybe it's getting confused??

Have you tried a different file system?

XFS works well with Samba.




>
>
> Am 05.05.14 17:22, schrieb Leander Schäfer: combinëd.txt
>> I also ensured my system's locale is set correctly
>>
>>
>> root at Storage-01 [~]$ locale
>>
>> LANG=de_DE.UTF-8
>> LC_CTYPE="de_DE.UTF-8"
>> LC_COLLATE=C
>> LC_TIME="de_DE.UTF-8"
>> LC_NUMERIC=C
>> LC_MONETARY="de_DE.UTF-8"
>> LC_MESSAGES="de_DE.UTF-8"
>> LC_ALL=
>>
>> I don't get the source of the problem here?! According to my 
>> understanding everything is set correctly, yet it looks like I'm 
>> missing some locale-settings - or this is a bug?! Lately I more and 
>> more think it is a bug, because I haven't had this logs with the 
>> previous samba41. Now I'm running Version 4.1.7 ... and I keep on 
>> getting those weired logs even though nothing else on the system has 
>> changed ... ;/
>> Any idea what to do here or where to continue debugging? Thanks
>>
>> Kind Regards
>> Leander
>>
>>
>> Am 05.05.14 13:22, schrieb Leander Schäfer:
>>> Hi,
>>>
>>> recently I see lots of logs like this. I figured, that many have 
>>> umlaute in their name - but not all. My local FS displays the 
>>> umlaute correctly - but it is not displayed correctly in the logfiles.
>>> Also, when I browse through shares via Windows or MacOSx all files 
>>> with umlaute seem to be displayed correctly.
>>>
>>> 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)
>>>
>>> I have following settings in my smb4.conf
>>> [ ... ]
>>>   # Charset
>>>   unix charset       = UTF-8
>>>   dos charset        = cp1252
>>> [ ... ]
>>>
>>> FS below is a ZFS
>>
>



More information about the samba mailing list