Bug 6430 - App fails writing file but zero length file on Samba server
Summary: App fails writing file but zero length file on Samba server
Status: RESOLVED WONTFIX
Alias: None
Product: Samba 3.3
Classification: Unclassified
Component: File services (show other bugs)
Version: 3.3.4
Hardware: x64 All
: P3 trivial
Target Milestone: ---
Assignee: Jeremy Allison
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-01 19:38 UTC by Colin Coe
Modified: 2020-12-21 22:40 UTC (History)
0 users

See Also:


Attachments
smbd.log file (13.65 KB, text/plain)
2009-06-01 20:21 UTC, Colin Coe
no flags Details
smb.conf (1.96 KB, text/plain)
2009-06-01 20:21 UTC, Colin Coe
no flags Details
log.smb.old (123.56 KB, text/plain)
2009-06-01 20:31 UTC, Colin Coe
no flags Details
log.ws02d2 (gzipped) (191.61 KB, application/x-gzip)
2009-06-01 23:13 UTC, Colin Coe
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Colin Coe 2009-06-01 19:38:39 UTC
Reproducable but only with GE ENMAC software.

I'm contracting with a utilities company that uses General Electric's
ENMAC software.  This runs on RHEL4 and makes use of Samba but it only
works with Samba 1.9.18p10 compiled with this patch:
---
diff -Naur samba-1.9.18p10/source/includes.h
samba-1.9.18p10_good/source/includes.h
--- samba-1.9.18p10/source/includes.h   1998-08-20 07:41:46.000000000 +0800
+++ samba-1.9.18p10_good/source/includes.h      2008-01-11
10:39:49.000000000 +0900
@@ -1176,7 +1177,7 @@
 #include <sys/ipc.h>
 #include <sys/sem.h>
 #include <sys/shm.h>
-#ifdef NO_SEMUN
+#ifdef _SEM_SEMUN_UNDEFINED
 union semun {
       int val;
       struct semid_ds *buf;
---

As I'm trying to streamline the building of these servers, I thought
I'd try upgrading Samba to a reasonably current version.  I'm trying
with latest version of Samba shipped by RedHat (3.0.33-0.17.el4), also tested with Samba v3.3.4.

When an edit is made and then saved in the application, the
application responds with 'Failed to open file for writing' and on the
Samba server a zero length file of the correct name appears.  This
works just fine with the patched Samba 1.9.18p10.

CC
Comment 1 Jeremy Allison 2009-06-01 19:48:57 UTC
Can you attach a debug level 10 log from smbd showing the problem ? If you could also add your smb.conf, and let us know what filename is having the problem that would also help a lot.
Thanks,
Jeremy.
Comment 2 Colin Coe 2009-06-01 20:21:12 UTC
Created attachment 4233 [details]
smbd.log file
Comment 3 Colin Coe 2009-06-01 20:21:41 UTC
Created attachment 4234 [details]
smb.conf
Comment 4 Colin Coe 2009-06-01 20:22:52 UTC
File name is random but this time was '/datafiles/misc/tmp/C000000ddFILE'.

smb.conf attached

log.smbd attached

CC
Comment 5 Colin Coe 2009-06-01 20:31:30 UTC
Created attachment 4235 [details]
log.smb.old

Deprecates log.smbd
Comment 6 Colin Coe 2009-06-01 23:13:31 UTC
Created attachment 4236 [details]
log.ws02d2 (gzipped)

Log file of working transaction for file C00000100FILE on Samba v1.9.18p10.
Comment 7 Björn Jacke 2020-12-21 22:40:44 UTC
bugzilla is made for bug reports mainly, to solve issues with that GE software you should try getting in contact with one of those companies offering commercial support: https://www.samba.org/samba/support/globalsupport.html