[Samba] Debugging Samba4 - application sometimes fails because files are invisible/gone

Johannes Amorosa | Celluloid VFX johannesa at celluloid-vfx.com
Tue Apr 5 07:28:12 UTC 2016

Hello Samba list,
we have a problem that our proprietary application sometimes can't find 
files on our samba share. I'm hoping
for some help on this list.

Our setup is two ADs as replicated domain Controller ( Ubuntu 12.04.5 
LTS, Version 4.1.17-SerNet-Ubuntu-10.precise)
and several domain member as file servers and mixed clients (~40 x Win7, 
Ubuntu and OSX). The ADs use internal DNS.

We have a proprietary software that runs as a cluster and needs a common 
shared network volume. This volume is
on a domain member running (Ubuntu 12.04.5 LTS, Version 
4.1.17-SerNet-Ubuntu-10.precise) with a zfs Raid 0.6.3.

Authentication is done via pam and works fine. All test described 
[1]here succeed and we're using this setup in production for over
a year.

Problem: Sometimes (1-2/month) our application fails with a error 
message like:

Although the file exists and has the same acl like everything else:

We know that zfs is maybe not production ready and needs at least to be 
upgraded to
We should upgrade samba as well at least to 4.2.X. This will be done 
hopefully in may. It's possible
we hit a bug in the application itself. Meanwhile I'm trying to make 
sense of samba log files and
basically fail of spaminess. I configured vfs_audit to get behind these 
issues to see who is
responsible. I'm seeing a lot of errors and want to know what to make 
out of it. In one day
audit.log increased to 35mb.

Here a some snippets:

deadlinerepo|is_offline|fail (Operation not 
deadlinerepo|translate_name|fail (Operation not supported)
deadlinerepo|sys_acl_get_file|fail (Operation not 
deadlinerepo|realpath|fail (No such file or directory)|custom/events/Draft

Interesting enough the app runs perfect most of the time - but if this 
happens it ruins a day of computation and
deadlines are always super tight meaning overtime for some of us. Can 
someone shed some
light on this? Thank you for your time.

Domain dc config:
     server role = active directory domain controller

Domain member config:

    security = ADS
    realm = MOO.NET
    encrypt passwords = yes
    full_audit:prefix = %u|%I|%S
    full_audit:success = open opendir
    full_audit:failure = all !open
    full_audit:facility = local5
    full_audit:priority = notice

         read only       = no
         path            = /silo/deadlinerepo
         comment         = Deadline Repository
         veto files      = 
         guest ok        = yes
         force user      = moo
         browseable = yes
         vfs objects = full_audit


Johannes Amorosa | Celluloid VFX

Celluloid Visual Effects GmbH & Co. KG
Paul-Lincke-Ufer 39/40, 10999 Berlin

More information about the samba mailing list