apodavalov / transmission-remote-dotnet

Automatically exported from code.google.com/p/transmission-remote-dotnet
GNU General Public License v3.0
0 stars 0 forks source link

Samba link don't work #367

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello!
Some time ago it worked correctly, and now it displays an error 'Unable to 
open'. I think there is a good idea to change error message for showing 
detailed path information.

So, I create a share link:

/usr/local/data/ => \\192.168.10.10\torrent

Of course there is existing path on server. And mount point in Windows also 
exists. With Windows explorer path opens correctly. In Samba log I can see 
something like this:

------- cut ------------
[2011/01/27 05:48:58, 10] ../lib/util/util.c:304(_dump_data)
  [0000] 00 00 00 EC 03 00 00 00   00 5C 00 64 00 61 00 74   ........ .\.d.a.t
  [0010] 00 61 00 33 00 5C 00 53   00 4F 00 52 00 54 00 45   .a.3.\.S .O.R.T.E
  [0020] 00 44 00 5C 00 54 00 4D   00 50 00 31 00 5C 00 56   .D.\.T.M .P.1.\.V
  [0030] 00 49 00 44 00 45 00 4F   00 5C 00 47 00 72 00 61   .I.D.E.O .\.G.r.a
  [0040] 00 7A 00 64 00 61 00 6E   00 69 00 6E 00 2E 00 4B   .z.d.a.n .i.n...K
  [0050] 00 65 00 69 00 6E 00 2E   00 44 00 56 00 44 00 52   .e.i.n.. .D.V.D.R
  [0060] 00 69 00 70 00 2E 00 32   00 5F 00 30 00 35 00 2E   .i.p...2 ._.0.5..
  [0070] 00 57 00 45 00 57 00 00   00                       .W.E.W.. .
[2011/01/27 05:48:58,  3] smbd/process.c:1273(switch_message)
  switch message SMBtrans2 (pid 57239) conn 0x802695050
[2011/01/27 05:48:58,  4] smbd/uid.c:256(change_to_user)
  change_to_user: Skipping user change - already user
[2011/01/27 05:48:58,  3] smbd/trans2.c:3956(call_trans2qfilepathinfo)
  call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004
[2011/01/27 05:48:58,  5] smbd/filename.c:148(unix_convert)
  unix_convert called on file "data3/SORTED/TMP1/VIDEO/Grazdanin.Kein.DVDRip.2_05.WEW"
[2011/01/27 05:48:58, 10] smbd/statcache.c:235(stat_cache_lookup)
  stat_cache_lookup: lookup failed for name [DATA3/SORTED/TMP1/VIDEO/GRAZDANIN.KEIN.DVDRIP.2_05.WEW]
[2011/01/27 05:48:58, 10] smbd/statcache.c:274(stat_cache_lookup)
  stat_cache_lookup: lookup succeeded for name [DATA3/SORTED/TMP1/VIDEO] -> [data3/SORTED/TMP1/VIDEO]
[2011/01/27 05:48:58,  5] smbd/statcache.c:138(stat_cache_add)
  stat_cache_add: Added entry (8026a9440:size 36) DATA3/SORTED/TMP1/VIDEO/GRAZDANIN.KEIN.DVDRIP.2_05.WEW -> data3/SORTED/TMP1/VIDEO/Grazdanin.Kein.DVDRip.2_05.WEW
[2011/01/27 05:48:58,  5] smbd/filename.c:297(unix_convert)
  conversion finished data3/SORTED/TMP1/VIDEO/Grazdanin.Kein.DVDRip.2_05.WEW -> data3/SORTED/TMP1/VIDEO/Grazdanin.Kein.DVDRip.2_05.WEW
[2011/01/27 05:48:58,  3] smbd/vfs.c:865(check_reduced_name)
  reduce_name [data3/SORTED/TMP1/VIDEO/Grazdanin.Kein.DVDRip.2_05.WEW] [/usr/local/data]
[2011/01/27 05:48:58, 10] smbd/vfs.c:937(check_reduced_name)
  reduce_name realpath [data3/SORTED/TMP1/VIDEO/Grazdanin.Kein.DVDRip.2_05.WEW] -> [/usr/local/data/data3/SORTED/TMP1/VIDEO/Grazdanin.Kein.DVDRip.2_05.WEW]
[2011/01/27 05:48:58,  3] smbd/vfs.c:974(check_reduced_name)
  reduce_name: data3/SORTED/TMP1/VIDEO/Grazdanin.Kein.DVDRip.2_05.WEW reduced to /usr/local/data/data3/SORTED/TMP1/VIDEO/Grazdanin.Kein.DVDRip.2_05.WEW
[2011/01/27 05:48:58, 10] locking/locking.c:891(fetch_share_mode_unlocked)
  fetch_share_mode_unlocked: no share_mode record around (file not open)
[2011/01/27 05:48:58,  3] smbd/trans2.c:4070(call_trans2qfilepathinfo)
  call_trans2qfilepathinfo data3/SORTED/TMP1/VIDEO/Grazdanin.Kein.DVDRip.2_05.WEW (fnum = -1) level=1004 call=5 total_data=0
[2011/01/27 05:48:58,  8] smbd/dosmode.c:494(dos_mode)
  dos_mode: data3/SORTED/TMP1/VIDEO/Grazdanin.Kein.DVDRip.2_05.WEW
[2011/01/27 05:48:58,  8] smbd/dosmode.c:189(dos_mode_from_sbuf)
  dos_mode_from_sbuf returning d
[2011/01/27 05:48:58,  8] smbd/dosmode.c:547(dos_mode)

----------- end cut -----------------

When I try to open torrent dir from Transmission Remote, I get an error 'Unable 
to open' with message like 'Unable to find requested file'. In Samba log I can 
see this:

---------- cut ---------------

[2011/01/27 05:56:16,  3] smbd/process.c:1273(switch_message)
  switch message SMBtrans2 (pid 57375) conn 0x802693050
[2011/01/27 05:56:16,  3] smbd/sec_ctx.c:310(set_sec_ctx)
  setting sec ctx (1002, 1001) - sec_ctx_stack_ndx = 0
[2011/01/27 05:56:16,  5] auth/token_util.c:528(debug_nt_user_token)
  NT user token of user S-1-5-21-1907540352-2108020524-1262064287-1001
  contains 7 SIDs
  SID[  0]: S-1-5-21-1907540352-2108020524-1262064287-1001
  SID[  1]: S-1-22-2-1001
  SID[  2]: S-1-1-0
  SID[  3]: S-1-5-2
  SID[  4]: S-1-5-11
  SID[  5]: S-1-22-2-1003
  SID[  6]: S-1-22-1-1002
  SE_PRIV  0x0 0x0 0x0 0x0
[2011/01/27 05:56:16,  5] auth/token_util.c:548(debug_unix_user_token)
  UNIX token of user 1002
  Primary group is 1001 and contains 2 supplementary groups
  Group[  0]: 1001
  Group[  1]: 1003
[2011/01/27 05:56:16,  5] smbd/uid.c:353(change_to_user)
  change_to_user uid=(0,1002) gid=(0,1001)
[2011/01/27 05:56:16,  4] smbd/vfs.c:753(vfs_ChDir)
  vfs_ChDir to /usr/local/data
[2011/01/27 05:56:16,  3] smbd/trans2.c:3956(call_trans2qfilepathinfo)
  call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004
[2011/01/27 05:56:16,  5] smbd/filename.c:148(unix_convert)
  unix_convert called on file "ata3/SORTED/TMP1/VIDEO/Grazdanin.Kein.DVDRip.2_05.WEW"
[2011/01/27 05:56:16,  5] smbd/filename.c:303(unix_convert)
  unix_convert begin: name = ata3/SORTED/TMP1/VIDEO/Grazdanin.Kein.DVDRip.2_05.WEW, dirpath = , start = ata3/SORTED/TMP1/VIDEO/Grazdanin.Kein.DVDRip.2_05.WEW
[2011/01/27 05:56:16,  5] smbd/filename.c:461(unix_convert)
  Intermediate not found ata3
[2011/01/27 05:56:16,  3] smbd/error.c:60(error_packet_set)
  error packet at smbd/trans2.c(3988) cmd=50 (SMBtrans2) NT_STATUS_OBJECT_PATH_NOT_FOUND
[2011/01/27 05:56:16,  5] lib/util.c:632(show_msg)
[2011/01/27 05:56:16,  5] lib/util.c:642(show_msg)
  size=35
  smb_com=0x32
  smb_rcls=58
  smb_reh=0
  smb_err=49152
  smb_flg=136
  smb_flg2=51201
  smb_tid=1
  smb_pid=7684
  smb_uid=100
  smb_mid=46592
  smt_wct=0
  smb_bcc=0
[2011/01/27 05:56:16,  6] smbd/process.c:1456(process_smb)
  got message type 0x0 of len 0x4c

---------- end cut ------------

So, are there any suggestions?

Transmission Remote version 'transmission-remote-dotnet-r722'.

Thanks!

Original issue reported on code.google.com by Wishmast...@gmail.com on 27 Jan 2011 at 3:28

GoogleCodeExporter commented 9 years ago
I'm really sorry, but issue 366 already describes the problem. Anyway, I 
provide more detailed information which can usable.

Original comment by Wishmast...@gmail.com on 27 Jan 2011 at 3:31

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I think I duped you both with issue 372 assuming the incomplete folder is in 
use.

Original comment by idleb...@gmail.com on 30 Jan 2011 at 6:35

GoogleCodeExporter commented 9 years ago
Not exactly. I'm trying to open already finished torrents and getting an error. 
And this feature worked correctly for a while.

Original comment by Wishmast...@gmail.com on 30 Jan 2011 at 2:43

GoogleCodeExporter commented 9 years ago
UPD: transmission-remote-dotnet-r723 the issue is still exist.

Original comment by Wishmast...@gmail.com on 31 Jan 2011 at 12:42

GoogleCodeExporter commented 9 years ago
Just a reminder. transmission-remote-dotnet-r758: Problem is still exists.

Original comment by Wishmast...@gmail.com on 13 Apr 2011 at 8:57

GoogleCodeExporter commented 9 years ago
The problem is still persist in r781.

Trying to open torrent via share says "Unable to open"

I've tried /usr/data/ => \\192.168.1.1\data and /usr/data/ => z:
where z: is mounted to \\192.168.1.1\data.

I hope this bug will be fixed, because it's so sad for usability.

Thanks.

Original comment by Wishmast...@gmail.com on 16 Nov 2011 at 10:36

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/transmission-remote-dotnet/issues/detail?id=366#c7

Original comment by elso.and...@gmail.com on 7 Feb 2012 at 2:08