We seem to have stumbled onto an intermittant bug using smbclient to retrieve files from a W2000 server. Every so often it just ignores some files on a recursive mget. When it ignores files it always ignores the same files. The exact same command repeated again may (or may not) pick up that file. Running a DIR on the directory in question shows the same defect, sometimes the cursed file is listed, other times it isn't. This bug just appeared recently, nothing has changed on the Windows side. On the linux side it is running Mandrake 10.0 and one of the samba updates may have triggered this. Any suggestions? Details follow my signature. Thanks, David Mathog mathog@caltech.edu % smbclient -V Version 3.0.6 (just updated to 3.0.10, and same problem is still present) The command is like this: % smbclient '\\3730workstation\E$' -U 'Administrator%thepassword' -D 'AppliedBiosystems\UDC\DataCollection\Data' -d 4 -c "prompt ; recurse; mget WEAPON_OF_MASS_DESTRUCTION_2005-02-04_0891 ; exit " >/tmp/foo.txt 2>&1 In this case the file: 02_04_05a_G07_zylka_7301_t3.ab1 may or may not transfer. Here are some parts of the -d 4 log in an instance where it did NOT transfer: Doing spnego session setup (blob length=16) server didn't supply a full spnego negprot Got challenge flags: Got NTLMSSP neg_flags=0x608a0215 NTLMSSP_NEGOTIATE_UNICODE NTLMSSP_REQUEST_TARGET NTLMSSP_NEGOTIATE_SIGN NTLMSSP_NEGOTIATE_NTLM NTLMSSP_NEGOTIATE_NTLM2 NTLMSSP_CHAL_TARGET_INFO NTLMSSP_NEGOTIATE_128 NTLMSSP_NEGOTIATE_KEY_EXCH NTLMSSP: Set final flags: Got NTLMSSP neg_flags=0x60080215 NTLMSSP_NEGOTIATE_UNICODE NTLMSSP_REQUEST_TARGET NTLMSSP_NEGOTIATE_SIGN NTLMSSP_NEGOTIATE_NTLM NTLMSSP_NEGOTIATE_NTLM2 NTLMSSP_NEGOTIATE_128 NTLMSSP_NEGOTIATE_KEY_EXCH NTLMSSP Sign/Seal - Initialising with flags: Got NTLMSSP neg_flags=0x60080215 NTLMSSP_NEGOTIATE_UNICODE NTLMSSP_REQUEST_TARGET NTLMSSP_NEGOTIATE_SIGN NTLMSSP_NEGOTIATE_NTLM NTLMSSP_NEGOTIATE_NTLM2 NTLMSSP_NEGOTIATE_128 NTLMSSP_NEGOTIATE_KEY_EXCH Domain=[3730WORKSTATION] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager] session setup ok tconx ok dos_clean_name [\AppliedBiosystems\UDC\DataCollection\Data\] dos_clean_name [\AppliedBiosystems\UDC\DataCollection\Data\\] prompting is now off directory recursion is now on received 1 entries (eos=1) received 27 entries (eos=0) received 26 entries (eos=0) received 26 entries (eos=0) received 17 entries (eos=1) getting file \AppliedBiosystems\UDC\DataCollection\Data\WEAPON_OF_MASS_DESTRUCTION_2005-02-04_0891\02_04_05a_A01_lo_1366_tents1.ab1 of size 316705 as 02_04_05a_A01_lo_1366_tents1.ab1 (3681.9 kb/s) (average 3681.9 kb/s) <SNIP> getting file \AppliedBiosystems\UDC\DataCollection\Data\WEAPON_OF_MASS_DESTRUCTION_2005-02-04_0891\02_04_05a_G05_lerchner_tf6_sp6.seq of size 2501 as 02_04_05a_G05_lerchner_tf6_sp6.seq (488.5 kb/s) (average 3575.1 kb/s) getting file \AppliedBiosystems\UDC\DataCollection\Data\WEAPON_OF_MASS_DESTRUCTION_2005-02-04_0891\02_04_05a_G07_zylka_7301_t3.seq of size 1381 as 02_04_05a_G07_zylka_7301_t3.seq (674.3 kb/s) (average 3573.5 kb/s) getting file \AppliedBiosystems\UDC\DataCollection\Data\WEAPON_OF_MASS_DESTRUCTION_2005-02-04_0891\02_04_05a_G09_ariele_v46r4_t7.ab1 of size 329012 as 02_04_05a_G09_ariele_v46r4_t7.ab1 (3610.1 kb/s) (average 3574.4 kb/s) getting file \AppliedBiosystems\UDC\DataCollection\Data\WEAPON_OF_MASS_DESTRUCTION_2005-02-04_0891\02_04_05a_G05_lerchner_tf6_sp6.seq of size 2501 as 02_04_05a_G05_lerchner_tf6_sp6.seq (488.5 kb/s) (average 3575.1 kb/s) getting file \AppliedBiosystems\UDC\DataCollection\Data\WEAPON_OF_MASS_DESTRUCTION_2005-02-04_0891\02_04_05a_G07_zylka_7301_t3.seq of size 1381 as 02_04_05a_G07_zylka_7301_t3.seq (674.3 kb/s) (average 3573.5 kb/s) <SNIP> getting file \AppliedBiosystems\UDC\DataCollection\Data\WEAPON_OF_MASS_DESTRUCTION_2005-02-04_0891\02_04_05a_G09_ariele_v46r4_t7.ab1 of size 329012 as 02_04_05a_G09_ariele_v46r4_t7.ab1 (3610.1 kb/s) (average 3574.4 kb/s)
Gerald (Jerry) Carter
2005-Feb-10 20:40 UTC
[Samba] smbclient recursive get skips files (rarely)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 David Mathog wrote: | We seem to have stumbled onto an intermittant bug using smbclient | to retrieve files from a W2000 server. Every so often it just | ignores some files on a recursive mget. When it ignores files | it always ignores the same files. The exact same command | repeated again may (or may not) pick up that file. Running a DIR | on the directory in question shows the same defect, sometimes the | cursed file is listed, other times it isn't. | | This bug just appeared recently, nothing has changed | on the Windows side. On the linux side it is running | Mandrake 10.0 and one of the samba updates may have | triggered this. Is this the bug ? https://bugzilla.samba.org/show_bug.cgi?id=1382 cheers, jerry ====================================================================Alleviating the pain of Windows(tm) ------- http://www.samba.org GnuPG Key ----- http://www.plainjoe.org/gpg_public.asc "I never saved anything for the swim back." Ethan Hawk in Gattaca -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCC8a9IR7qMdg1EfYRAti1AKC57e5Bf6zQsOoC8x4eny2PlaHUOACgqU6W BurtX4F2mJj1L1tl6jAHMhg=yOdu -----END PGP SIGNATURE-----