[Samba] recycle: ... returned No such file or directory
Leander Schäfer
info at netocean.de
Sat May 10 03:38:34 MDT 2014
Hi Helmut,
thanks a lot for your reply.
Am 10.05.14 08:32, schrieb Helmut Hullen:
> Hallo, Leander,
>
> Du meintest am 05.05.14:
>
>> recently I see lots of logs like this.
> What have you changed recently?
> (ok - I know that's perhaps difficult to find)
Previous Storage OS got deleted in order to reinstall the entire system
again. Previously there was a FreeBSD 10 RELEASE in combination with a
samba 4.1.X installed ... but not 4.1.7 ß cause I remember there was an
update for samba on the previous install, which I didnät apply (since I
knew, I'm any way going to reinstall it ...)
So now, there is currently a FreeBSD 10 RELEASE and a Samba 4.1.7
installed. Nothing else has changed - at least nothing I know of. The OS
as well as its software components like Samba gets installed by a script
which hasn't ben changed.
>
>> I figured, that many have
>> umlaute in their name - but not all.
> But then it's possible that this problem is not related to the umlauts.
Yes, it is quite possible - but most of the logs (sent to me by
logcheck) have umlaute in - I attached the messages in the first mails
to samba mailing list - as you probably saw already ;)
>
>> 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.
> Just for playing with possibilities:
>
> create a file "Über böse Länder"
> copy it
> try to delete the copy
>
> rename it to (perhaps) "öber bäse Lünder"
> try to delete it
Here is what I did on the samba share based on ZFS:
1. I restarted samba: service samba_server resatart
2. I created a folder named: "Über böse Länder" on the share
(/MyShare/Über böse Länder)
3. I created a folder inside "Über böse Länder" and named it "Hallo" on
the share (/MyShare/Über böse Länder/Hallo)
4. I copied a file "RG150122583321.pdf" from MacOSx machine into
"/MyShare/Über böse Länder/Hallo" on the sahre
5. I checked my log: cat /var/log/messages
[...]
May 10 11:04:35 Storage-01 smbd[23014]: recycle: stat for
/mnt/Private/Leander/.Trashes/<C3>M-^\ber böse
Länder/Hallo/RG150122583321.pdf:AFP_AfpInfo returned No such file or
directory
[...]
6. I deleted "/MyShare/Über böse Länder/Hallo/RG150122583321.pdf" - and
it is deleted corretly
7. I checked logs - and no new log entry with a recycle error occoured
I copied the file "RG150122583321.pdf" from Mac OSx back to where I
previously deleted it (/MyShare/Über böse Länder/Hallo/RG150122583321.pdf)
8. recylce message appears agsain in /var/log/messages
9. I deleted the folder "/MyShare/Über böse Länder/" which still
included "Hallo/RG150122583321.pd" and it went well - no new entries
about recylce in /var/log/messages
>
>> 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)
> I'm using Samba since years, I've never seen a "recycle" error message.
Neither have I - but - there is always a first time, hey ;)
>
> Where resides "Storage-01" - sounds like NAS ...
You assumed right ;)
>
> Runs the machine some kind of backup which moves files?
Xen Server does a backup each night and also deletes old virtual machine
backups lateron. Otherwhise CCTV is being busy on it .. but also just
writing and deleting after a certain age of the records. That's all
about the read and write backup jobs the is - also they don't have
umlaute in theiy paths.
... also a rsync job is there to mirror the storage over to another NAS
- but that's a readonly job for Storage-01.
>
>> FS below is a ZFS
> Can you create another share somewhere in your system with another file
> system?
Yes, I have. I did exactly the same steps on the UFS2 (softupdates and
journaled) as on the ZFS share - same mysterious recylce thing occours:
1. I restarted samba: service samba_server resatart
2. I created a folder named: "Über böse Länder" on the share
(/MyShare/Über böse Länder)
3. I created a folder inside "Über böse Länder" and named it "Hallo" on
the share (/MyShare/Über böse Länder/Hallo)
4. I copied a file "RG150122583321.pdf" from MacOSx machine into
"/MyShare/Über böse Länder/Hallo" on the sahre
5. I checked my log: cat /var/log/messages
[...]
recycle: stat for /mnt/UFS-Share/.Trashes/<C3>M-^\ber böse
Länder/RG150122583321.pdf:AFP_AfpInfo returned No such file or directory
[...]
6. I deleted "/MyShare/Über böse Länder/Hallo/RG150122583321.pdf" - and
it is deleted corretly
7. I checked logs - and no new log entry with a recycle error occoured
I copied the file "RG150122583321.pdf" from Mac OSx back to where I
previously deleted it (/MyShare/Über böse Länder/Hallo/RG150122583321.pdf)
8. recylce message appears agsain in /var/log/messages
9. I deleted the folder "/MyShare/Über böse Länder/" which still
included "Hallo/RG150122583321.pd" and it went well - no new entries
about recylce in /var/log/messages
>
> ---------------------------
>
> Searching for "samba recycle_do_touch" showed some older messages where
> the problem seemed to be related with "time" - don't know if that's
> helpful.
My time is being synchronised by ntpd and 4 different ntp servers. cat
/etc/ntp.conf
driftfile /var/db/ntp.drift
logfile /var/log/ntpd.log
server 0.de.pool.ntp.org minpoll 6 maxpoll 6 prefer
server 1.de.pool.ntp.org minpoll 6 maxpoll 6
server 2.de.pool.ntp.org minpoll 6 maxpoll 6
server 3.de.pool.ntp.org minpoll 6 maxpoll 6
restrict 127.0.0.1
restrict ::1
restrict 10.0.0.0 mask 255.0.0.0 nomodify notrap
I know the test I did now did not show the issue where the user is not
able to delete files any more. But users keep on complaining about it -
and just yesterday, I expirienced it my self again. I had to delete them
manually via rm -r /MyShare/ ... on the samba server side itself.
.. and no - it was not a chmod neither a chown problem ;)
>
> Viele Gruesse!
> Helmut
>
Viele Grüße
Leander
More information about the samba
mailing list