Description of problem:
Nautilus fails to write to windows share
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a windows share with "Application -> Places -> Connect to server"
2. Open the share's folder on desktop
3. Drop a file to the folder
Get the error: Error while copying "somefile.ext".
There was an error copying the file into smb://xx%5Bxxx;name@server/external1/user.
File is copied to the share
Coping the file from command prompt `cp somefile.txt '~/.gvfs/my share'` is OK.
Also, it isn't good that error message reveals user credentials for a share.
Oops! Forgot to mention. Nautilus reads files from the windows share just fine.
(In reply to comment #0)
> Additional info:
> Coping the file from command prompt `cp somefile.txt '~/.gvfs/my share'` is OK.
This is weird. Can you try using gvfs-copy? This seems to be like a fault when setting mtime or any additional attributes.
With gvfs-copy I've got the same error as with Nautilus.
But I found out something new. The problem exists with files lengthy than 16KB. If a file has length less than 16KB it is copied OK with Nautilus, if a file is lengthier it is copied no more than 48KB and fire out the error. Coping is fine with cp command.
And about revealing the password - it is my fault, I mixed domain name and password while creating the bookmark for the share :(
Interesting, can you please provide version of the libsmbclient package?
Also, can you please grab output of `GVFS_SMB_DEBUG="99" GVFS_DEBUG="1" /usr/libexec/gvfsd -r` and attach it here - it may contain useful information.
Created attachment 419347 [details]
gvfsd debug output
Output from `GVFS_SMB_DEBUG="99" GVFS_DEBUG="1" /usr/libexec/gvfsd -r`
libsmbclient.x86_64 - 3.5.3-61.fc13
The same with gvfs.x86_64 - 1.6.2-1.fc13
The same error in Nautilus.i686 when copy files to Windows 2003 x64.
Copied only 48KB then "Invalid argument".
(In reply to comment #7)
> The same error in Nautilus.i686 when copy files to Windows 2003 x64.
> Copied only 48KB then "Invalid argument".
Can you verify that uploading files via smbclient works and so does "cp somefile.txt '~/.gvfs/my share'" ?
- Copying using 'cp' WORKS
- Copying using 'gvfs-copy' FAILS with message "Invalid argument"
- Copying using 'smbclient' WORKS
So the problem seems to be with gvfs-copy
*** Bug 615332 has been marked as a duplicate of this bug. ***
Just tested file copy using nautilus and gvfs-copy to clean Windows 2003 Server x64 machine with libsmbclient-3.5.4-62.fc13.x86_64 and everything works as expected. Is there anything specific set on the server? This is difficult to debug, I can't see anything obvious from the daemon log attached.
Windows 2003 EE Server SP2 with default network settings - writes with error. I've got the same result over local connection and over Internet VPN. But now writes no more then 64KB of file. 16KB "magic" length seems preserved.
With Samba share on local network write is OK!
The cp command to .gvfs/my share with big files (>300MB) fails with the same message:
I have no errors with cp command. Tested on a 600MB length file, local network.
FYI We are seeing the same problems trying to access servers from Fedora 13 since they were upgraded to Windows 2008 R2 this summer.
I should add some Fedora version information:
(my original details: https://bugzilla.redhat.com/show_bug.cgi?id=615332)
I have a D-Link DNS-321 NAS sitting in my office and found that I get the same error (Error while copying "filename") when using Nautilus to try an copy files to the D-Link (navigated & authenticated against the D-links' "Windows Share" in Nautilus).
If I mount the D-Link manually (or add it to fstab) it works correctly.
Is there anything we can do to help resolve this bug? i.e. debug information or anything from the windows server side. I'm not a Windows expert, but if you point me in a direction I can try and maybe to get some information from the windows side.
Just wondering if there is an update for this one please?
I have the same issue writing to shares on my Windows 2008 R2 server. Also have found that OpenOffice 3 Writer is unable to save files to the windows share.
As I know there is no update and no activity to found out a solution :(
I think the issue is related to SMB signing (or whatever the correct term is). Disabling SMB signing via a group policy on your Windows server and try again to confirm that this is the real issue.
This is more a samba fault, gvfs code has not been changed for a long time and it's actually so simple that's difficult to influence this.
We need a good reproducer to be able to investigate this issue more and handle it to samba developers if needed. The issue doesn't appear with cleanly installed Windows 2003 Server in default configuration on local network.
There's samba-3.5.6-69.fc13 build available in updates-testing, can you give it a shot please?
As stated previously, this fault occured this summer, probably after SP2. So a clean install of Windows 2003 server is not sufficient to reproduce. At least SP2 and possibly later patches must be applied.
As long as the debugging is on the client side I can help, it is a bit harder for me to get much support on the server side due to system-boundary issues and lack of resources, but if I can get proper instructions on how to get necessary data I can try to get it from the windows staff.
The first thing to know is if SMB signing is enabled. You should be able to find that out also via Wireshark + the right modules.
samba-3.5.6-69.fc13 doesn't change the thing.
Security policies for client and server:
Digitally sign communications (always) - Disabled
Digitally sign communications (if server agrees) - Enabled
No help. So I didn't reboot the Windows Server after I changed the policy.
Security policies were:
Microsoft network client: Digitally sign communications (always) - Not Defined
Microsoft network client: Digitally sign communications (if server agrees) - Not Defined
Microsoft network server: Digitally sign communications (always) - Enabled
Microsoft network server: Digitally sign communications (if server agrees) - Enabled
I've been doing some testing of this as two users have complained that transferring files with Krusader didn't work any more when they moved to Fedora 13. Presumably it's the same underlying issues as with Nautilus?
It works fine with Fedora 12 (ie it can transfer any sized file) but doesn't work on Fedora 13 (or the beta of Fedora 14) where only small files (~ less than 32kb) can be copied.
The Windows servers was the same for all the tests.
If there's anything I can do to help get this solved just let me know.
Likewise - I have limited resources and am a complete Linux newbie but happy to help if I can.
I have the same problem with invalid argument, and only to manage of creating small text files.
Certainly there was a connection and correct authorization between networks. I doubt my windows 2003 SBS settings or the hardware were incorrect because i can make connections using OS (Windows 7) of a different partition on the same computer. Something isn't right about 64bit Fedora 13.
The Linux version i had was 184.108.40.206-85.fc13.x86_64
smbclient Version 3.5.5-68.fc13
Gnome Nautilus 2.30.1
Hopefully a patch coming out soon, cause isn't very productive!
Another thing, the file size limit to 48kb before it hits error, if copy over the nautilus explorer.
To add a bit more details: mounting works, i.e, using a command such as the one below and writing to the mount-point works fine.
mount -t cifs -o "user=username,domain=Domain" server:/share /mountpoint
"Mounting" with nautilus does not work and the files get truncated after 48kb.
Your request of:
"The first thing to know is if SMB signing is enabled. You should be able to
find that out also via Wireshark + the right modules."
Is a little bit too unspecific for me to spend time on it, especially since I very much doubt this is the issue.
In Fedora 14 i couldn't reproduce the problem
It works perfectly with a 350Mb file.
(In reply to comment #33)
> In Fedora 14 i couldn't reproduce the problem
> It works perfectly with a 350Mb file.
I updated my Fedora 14 VM just now which pulled in the same version of the libsmbclient package as you and I still see the same problem where I cannot copy a file from Fedora to the Windows Server. It stops & leaves a file of size 32kb in the directory. No problem copying in the opposite direction.
Just upgraded to Fedora 14. The problem is still here. :(
(In reply to comment #33)
> In Fedora 14 i couldn't reproduce the problem
> It works perfectly with a 350Mb file.
I just dit a clean install of Fedora 14 32bit, same problem still exists. Did you do a *clean* install? Did you add some additional packages? Only difference between packages listed above is 32 bit vs 64 bit...
I did an upgrade from Fedora 13 to 14 using yum (both 64 bit). I don't know if there are others packages involved in this operation. I have some extensions like these:
but I can't say if they are involved in the process of gvfs. I did the tests again with 1,5k, 15Mb and 350Mb in both directions (copy to windows share and then copy it again to my machine).
(In reply to comment #37)
> I did an upgrade from Fedora 13 to 14 using yum (both 64 bit). I don't know if
> there are others packages involved in this operation. I have some extensions
> like these:
> but I can't say if they are involved in the process of gvfs. I did the tests
> again with 1,5k, 15Mb and 350Mb in both directions (copy to windows share and
> then copy it again to my machine).
Didn't have some of those packages but even after installing it made no difference. Copying large files to the Windows sever fails still, I did some testing with a text file & the largest file I can copy over is 16384 bytes long ie.
[jkissane@fedora14 Desktop]$ ls -l
-rw-rw-r--. 1 jkissane jkissane 16384 Nov 5 14:26 jk.txt
I have the exact same problem in both Fedora 14 and Ubuntu 10.10: copying using Nautilus gvfs mounts or Dolphin KIO mounts fails with the error "Invalid Argument" after about 48K.
Copying with the gvfs-copy command also fails with the same problem, but copying with the smbclient command works well.
The server is Windows 2003 SBS.
The relevant bug report in GNOME's bugzilla is this: https://bugzilla.gnome.org/show_bug.cgi?id=588391 - this is the original bug report coordinated with Debian and Ubuntu which was eventually fixed by Jeremy Allison in Samba's tree. On the face of it this looks to be the same problem, which means a regression in Fedora's samba 3.5.6.
Confirmed this bug in Fedora 14
Adding Guenther Deschner (Samba packager in Fedora) to CC list. Guenther - if you're not the right person to handle this, I apologize in advance.
Apparently this bug is fixed by Jeremy Allison's patch in GNOME's Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=633937 .
I've tested the patch and it seems to work well in KDE using Dolphin (I haven't tested GVFS as I'm having some GNOME configuration issues).
According to Jeremy Allison this patch is scheduled for inclusion in the Samba 3.5.7 upstream release, but until that is released, packaged and distributed for Fedora - it might be a good idea to add the patch to the current Samba build.
Reassigning to samba to get the patch packaged.
samba-3.5.6-71.fc13 has been submitted as an update for Fedora 13.
samba-3.5.6-71.fc13 has been pushed to the Fedora 13 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing update samba'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/samba-3.5.6-71.fc13
Updated to the following packages and writing to windows share now works, thumbs up.
The update helps me also.
This bug also exists of FC 14, could you please also push an update to the FC14 testing repo ?
There's https://admin.fedoraproject.org/updates/samba-3.5.6-70.fc14, which seems to be the latest F14 version. If so, the upgrade path from F13 to F14 is broken, since the F13 update is rpm-newer than the F14 one.
I've tested on F14, it was fine with 3.5.6-70.
Sorry, my windows share on my Fc13-64 is still isn't work. Still get "invalid argument", copying file at 48kb.
What am i missing? I updated accordingly to the command at "comment 44"
smbclient version (from command: smbclient --version)
Do i need to also update nautilas?
(In reply to comment #50)
> What am i missing? I updated accordingly to the command at "comment 44"
You are missing libsmbclient, probably.
Check up all samba client's packages:
* should fix your issue,
* was pushed to the Fedora 13 updates-testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing samba-3.5.7-73.fc13'
as soon as you are able to, then reboot.
Please go to the following url:
then log in and leave karma (feedback).
samba-3.5.8-74.fc13 has been submitted as an update for Fedora 13.
samba-3.5.8-74.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.