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

Leander Schäfer info at netocean.de
Sat May 10 03:50:40 MDT 2014


... here is my config, if useful:



cat << EOF > /usr/local/etc/smb4.conf
# ================================== #
#        Samba4 - FileServer         #
# ================================== #


# ============= Global ============= #

[global]

   # Basic server settings
   workgroup          = $( echo ${DOMAINNAME^^} | awk -F'.' '{print $1}' )
   realm              = ${DOMAINNAME^^}
   netbios name       = ${SERVERNAME^^}

   # Password backend
   passdb backend     = tdbsam

   # Logging
   log level    = 4
  #log level    = auth:3
   max log size = 0

   # Charset (commented out, as Linda suggested)
   #unix charset       = UTF-8
   #dos charset        = cp1252

   # NTLMv2
   ntlm auth          = No
   lanman auth        = No
   client ntlmv2 auth = Yes

   # Printing
   load printers = No
   printing      = BSD
   printcap name = /dev/null

   # Default masks
   unix extensions      = No
   create mask          = 0777
   force create mode    = 0777
   directory mask       = 0777
   force directory mode = 0777

   # Miscellaneous
   veto oplock files  = /*.doc/*.xls/*.ppt/*.mdb/*.docx/*.xlsx/*.ppt
   veto files         = 
/.snap/.windows/.zfs/Thumbs.db/.DS_Store/._.DS_Store/.apdisk/.TemporaryItems/
   wide links         = No


# ============= Shares ============= #

[...]

[vMachines]
   comment     = vMachines - Storage
   path        = /mnt/vMachines
   guest ok    = No
   read only   = No
   valid users =  vmachines, leander, patrick
   force user  =  vmachines
   vfs objects = recycle, zfsacl, streams_xattr
   nfs4:mode   = special
   nfs4:acedup = merge
   nfs4:chown  = yes
   zfsacl:acesort = dontcare
   recycle:repository     = /mnt/vMachines/.Trashes
   recycle:directory_mode = 0777
   recycle:keeptree       = Yes
   recycle:versions       = Yes
   recycle:touch          = Yes
   recycle:touch_mtime    = No
   recycle:exclude        = ?~$*,~$*,._*,.smbdelete*

[...]
EOF
chmod 0644       /usr/local/etc/smb4.conf
chown root:wheel /usr/local/etc/smb4.conf









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)
>
>> 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.
>
>> 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
>
>
>> 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.
>
> Where resides "Storage-01" - sounds like NAS ...
>
> Runs the machine some kind of backup which moves files?
>
>> FS below is a ZFS
> Can you create another share somewhere in your system with another file
> system?
>
> ---------------------------
>
> 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.
>
> Viele Gruesse!
> Helmut
>



More information about the samba mailing list