yoichiro / chromeos-filesystem-cifs

BSD 3-Clause "New" or "Revised" License
56 stars 21 forks source link

NAS Box #158

Open jcrick69 opened 8 years ago

jcrick69 commented 8 years ago

Hi I can mount a share on my NAS box but the files/folders in that share do not appear in the list, i.e. the filesystem cannot find them (I guess).

Thanks, Jerry

yoichiro commented 8 years ago

@jcrick69 I almost cannot understand your situation. Could you provide me the debug log which is the result of accessing to your NAS box with the following steps? https://github.com/yoichiro/chromeos-filesystem-cifs/wiki/How-to-Capture-the-Console-Log-of-DevTools

jcrick69 commented 8 years ago

In the instructions on that page the item at 0.1 says Launch this app - what is 'this app'?

Thanks, Jerry

yoichiro commented 8 years ago

@jcrick69 The "this app" means the File System for Windows app you installed.

jcrick69 commented 8 years ago

Ah, sorry.

OK, here is the log - note that when I click on the share in 'Files' nothing is added to the log...

File System for Windows Version 2.6.3 background.js:19645 Debug level: 2 background.js:19548 Looked up with chrome.mdns: Array[0] background.js:6517 Object {serverName: "192.168.10.4", serverPort: "445", username: "everyone", password: "xxxxxx", domainName: ""…} background.js:6517 Client#login background.js:6531 Domain name not specified. '?' will be applied. background.js:6524 connect background.js:6524 Header {types: Types, protocol: "SMB", command: 114, errorClass: 0, errorCode: 0…} background.js:6524 NegotiateProtocolRequest {types: Types, dialects: Array[0], dialects: Array[3]} background.js:6524 Packet {types: Types, data: ArrayBuffer, dataLength: 69, packetHelper_: PacketHelper} background.js:6517 writePacket background.js:6524 FF53 4D42 7200 0000 0018 43C8 0000 0000 .SMBr.....C..... 0000 0000 0000 0000 0000 0100 0000 0000 ................ 0022 0002 4E54 204C 4D20 302E 3132 0002 ."..NT LM 0.12.. 534D 4220 322E 3030 3200 0253 4D42 2032 SMB 2.002..SMB 2 2E3F 3F3F 00 .???.

background.js:6517 readPacket background.js:6517 _readPacketSize background.js:6517 readPacketSize - 2 background.js:6517 readPacket: 174 background.js:6524 FF53 4D42 7200 0000 0088 43C8 0000 0000 .SMBr.....C..... 0000 0000 0000 0000 0000 0100 0000 0000 ................ 1100 0003 3200 0100 0441 0000 0000 0100 ....2....A...... C05B 0000 FDF3 0080 008A 41CD 792E D101 .[........A.y... 0000 0069 006E 3435 3130 752D 7200 0000 ...i.n4510u-r... 0000 0000 0060 5706 062B 0601 0505 02A0 .....`W..+...... 4D30 4BA0 2430 2206 092A 8648 86F7 1201 M0K.$0"...H.... 0202 0609 2A86 4882 F712 0102 0206 0A2B ...._.H........+ 0601 0401 8237 0202 0AA3 2330 21A0 1F1B .....7....#0!... 1D63 6966 732F 6E34 3531 3075 2D72 2E6A .cifs/n4510u-r.j 6D62 2E63 6F6D 404A 4D42 2E43 4F4D mb.com@JMB.COM

background.js:6531 Negotiated with SMB1/CIFS background.js:6531 CAP_EXTENDED_SECURITY: true background.js:6531 CAP_COMPRESSED_DATA: false background.js:6531 CAP_BULK_TRANSFER: false background.js:6531 CAP_UNIX: false background.js:6531 CAP_LARGE_WRITEX: true background.js:6531 CAP_LARGE_READX: true background.js:6531 CAP_INFOLEVEL_PASSTHROUGH: true background.js:6531 CAP_DFS: true background.js:6531 CAP_NT_FIND: true background.js:6531 CAP_LOCK_AND_READ: true background.js:6531 CAP_LEVEL_II_OPLOCKS: true background.js:6531 CAP_STATUS32: true background.js:6531 CAP_RPC_REMOTE_APIS: true background.js:6531 CAP_NT_SMBS: true background.js:6531 CAP_LARGE_FILES: true background.js:6531 CAP_UNICODE: true background.js:6531 CAP_MPX_MODE: false background.js:6531 CAP_RAW_MODE: true background.js:6531 NEGOTIATE_SECURITY_SIGNATURES_REQUIRED: 0 background.js:6531 NEGOTIATE_SECURITY_SIGNATURES_ENABLED: 0 background.js:6531 NEGOTIATE_SECURITY_CHALLENGE_RESPONSE: 1 background.js:6531 NEGOTIATE_SECURITY_USERLEVEL: 1 background.js:6524 Header {types: Types, protocol: "SMB", command: 114, errorClass: 0, errorCode: 0…} background.js:6524 NegotiateProtocolResponse {types: Types, dialectIndex: 0, securityMode: 3, maxMpxCount: 50, maxNumberVCs: 1…} background.js:6524 Header {types: Types, protocol: "SMB", command: 115, errorClass: 0, errorCode: 0…} background.js:6524 SessionSetupAndxRequest {types: Types, maxBufferSize: 16644, maxMpxCount: 50, vcNumber: 1, sessionKey: 23488…} background.js:6524 Packet {types: Types, data: ArrayBuffer, dataLength: 160, packetHelper: PacketHelper} background.js:6517 writePacket background.js:6524 FF53 4D42 7300 0000 0018 43C8 0000 0000 .SMBs.....C..... 0000 0000 0000 0000 0000 0100 0000 0100 ................ 0CFF 0000 0004 4132 0001 00C0 5B00 0029 ......A2....[..) 0000 0000 0054 0000 8065 004E 544C 4D53 .....T...e.NTLMS 5350 0001 0000 0015 B208 2001 0001 0020 SP........ .... 0000 0008 0008 0021 0000 003F 4653 505F .......!...?FSP 4349 4653 4300 6800 7200 6F00 6D00 6500 CIFSC.h.r.o.m.e. 4F00 5300 0000 4600 6900 6C00 6500 2000 O.S...F.i.l.e. . 5300 7900 7300 7400 6500 6D00 2000 6600 S.y.s.t.e.m. .f. 6F00 7200 2000 4300 4900 4600 5300 0000 o.r. .C.I.F.S...

background.js:6517 readPacket background.js:6517 _readPacketSize background.js:6517 _readPacketSize - 2 background.js:6517 readPacket: 230 background.js:6524 FF53 4D42 7316 0000 C088 03C8 0000 0000 .SMBs........... 0000 0000 0000 0000 0000 0100 6400 0100 ............d... 04FF 0000 0000 008E 00BB 004E 544C 4D53 ...........NTLMS 5350 0002 0000 0006 0006 0030 0000 0015 SP.........0.... 8289 20D7 F287 7021 3BF2 A300 0000 0000 .. ...p!;....... 0000 0058 0058 0036 0000 004A 004D 0042 ...X.X.6...J.M.B 0002 0006 004A 004D 0042 0001 0010 004E .....J.M.B.....N 0034 0035 0031 0030 0055 002D 0052 0004 .4.5.1.0.U.-.R.. 000E 006A 006D 0062 002E 0063 006F 006D ...j.m.b...c.o.m 0003 0020 004E 0034 0035 0031 0030 0055 ... .N.4.5.1.0.U 002D 0052 002E 006A 006D 0062 002E 0063 .-.R...j.m.b...c 006F 006D 0000 0000 0000 5500 6E00 6900 .o.m......U.n.i. 7800 0000 5300 6100 6D00 6200 6100 2000 x...S.a.m.b.a. . 3300 2E00 3500 2E00 3100 3900 0000 4A00 3...5...1.9...J. 4D00 4200 0000 M.B...

background.js:6524 Header {types: Types, protocol: "SMB", command: 115, errorClass: 22, errorCode_: 49152…} background.js:6531 NTLMSSP_NEGOTIATE_UNICODE: true background.js:6531 NTLMSSP_NEGOTIATE_OEM: false background.js:6531 NTLMSSP_REQUEST_TARGET: true background.js:6531 NTLMSSP_NEGOTIATE_SIGN: true background.js:6531 NTLMSSP_NEGOTIATE_SEAL: false background.js:6531 NTLMSSP_NEGOTIATE_DATAGRAM_STYLE: false background.js:6531 NTLMSSP_NEGOTIATE_LM_KEY: false background.js:6531 NTLMSSP_NEGOTIATE_NETWARE: false background.js:6531 NTLMSSP_NEGOTIATE_NTLM: true background.js:6531 NTLMSSP_NEGOTIATE_OEM_DOMAIN_SUPPLIED: false background.js:6531 NTLMSSP_NEGOTIATE_OEM_WORKSTATION_SUPPLIED: false background.js:6531 NTLMSSP_NEGOTIATE_LOCAL_CALL: false background.js:6531 NTLMSSP_NEGOTIATE_ALWAYS_SIGN: true background.js:6531 NTLMSSP_TARGET_TYPE_DOMAIN: true background.js:6531 NTLMSSP_TARGET_TYPE_SERVER: false background.js:6531 NTLMSSP_TARGET_TYPE_SHARE: false background.js:6531 NTLMSSP_NEGOTIATE_NTLM2_KEY: true background.js:6531 NTLMSSP_REQUEST_INIT_RESPONSE: false background.js:6531 NTLMSSP_REQUEST_ACCEPT_RESPONSE: false background.js:6531 NTLMSSP_REQUEST_NON_NT_SESSION_KEY: false background.js:6531 NTLMSSP_NEGOTIATE_TARGET_INFO: true background.js:6531 NTLMSSP_NEGOTIATE_128: true background.js:6531 NTLMSSP_NEGOTIATE_KEY_EXCH: false background.js:6531 NTLMSSP_NEGOTIATE56: false background.js:6531 Use LMv2 and NTLMv2 because LMCompatibilityLevel=5 background.js:6524 Header {types: Types, protocol: "SMB", command: 115, errorClass: 0, errorCode: 0…} background.js:6524 SessionSetupAndxRequest {types: Types, maxBufferSize: 16644, maxMpxCount: 50, vcNumber: 1, sessionKey: 23488…} background.js:6524 Packet {types: Types, data: ArrayBuffer, dataLength: 378, packetHelper: PacketHelper} background.js:6517 writePacket background.js:6524 FF53 4D42 7300 0000 0018 43C8 0000 0000 .SMBs.....C..... 0000 0000 0000 0000 0000 0100 6400 0200 ............d... 0CFF 0000 0004 4132 0001 00C0 5B00 0002 ......A2....[... 0100 0000 0054 0000 803F 014E 544C 4D53 .....T...?.NTLMS 5350 0003 0000 0018 0018 0040 0000 0088 SP.........@.... 0088 0058 0000 0002 0002 00E0 0000 0010 ...X............ 0010 00E2 0000 0010 0010 00F2 0000 0000 ................ 0000 0000 0000 0001 0200 00AB 1474 23E4 .............t#. F5D7 F3FB 31A1 10BC 4256 556E B074 D772 ....1...BVUn.t.r A20F 8C69 2318 D16F CF27 4FF3 FE8C F016 ...i#..o.'O..... 27C0 7A01 0100 0000 0000 00E0 0635 CD79 '.z..........5.y 2ED1 01AA 378A B927 0400 0000 0000 0002 ....7..'........ 0006 004A 004D 0042 0001 0010 004E 0034 ...J.M.B.....N.4 0035 0031 0030 0055 002D 0052 0004 000E .5.1.0.U.-.R.... 006A 006D 0062 002E 0063 006F 006D 0003 .j.m.b...c.o.m.. 0020 004E 0034 0035 0031 0030 0055 002D . .N.4.5.1.0.U.- 0052 002E 006A 006D 0062 002E 0063 006F .R...j.m.b...c.o 006D 0000 0000 0000 0000 003F 0065 0076 .m.........?.e.v 0065 0072 0079 006F 006E 0065 0046 0053 .e.r.y.o.n.e.F.S 0050 005F 0043 0049 0046 0053 0000 4300 .P..C.I.F.S..C. 6800 7200 6F00 6D00 6500 4F00 5300 0000 h.r.o.m.e.O.S... 4600 6900 6C00 6500 2000 5300 7900 7300 F.i.l.e. .S.y.s. 7400 6500 6D00 2000 6600 6F00 7200 2000 t.e.m. .f.o.r. . 4300 4900 4600 5300 0000 C.I.F.S...

background.js:6517 readPacket background.js:6517 _readPacketSize background.js:6517 _readPacketSize - 2 background.js:6517 readPacket: 88 background.js:6524 FF53 4D42 7300 0000 0088 03C8 0000 0000 .SMBs........... 0000 0000 0000 0000 0000 0100 6400 0200 ............d... 04FF 0000 0000 0000 002D 0000 5500 6E00 .........-..U.n. 6900 7800 0000 5300 6100 6D00 6200 6100 i.x...S.a.m.b.a. 2000 3300 2E00 3500 2E00 3100 3900 0000 .3...5...1.9... 4A00 4D00 4200 0000 J.M.B...

background.js:6517 Client#connectSharedResource background.js:6524 Header {types: Types, protocol: "SMB", command: 117, errorClass: 0, errorCode: 0…} background.js:6524 TreeConnectAndxRequest {types: Types, path: "\192.168.10.4\TH1SHARED", service: "?????"} background.js:6524 Packet {types: Types, data: ArrayBuffer, dataLength: 100, packetHelper: PacketHelper} background.js:6517 writePacket background.js:6524 FF53 4D42 7500 0000 0018 43C8 0000 0000 .SMBu.....C..... 0000 0000 0000 0000 0000 0100 6400 0300 ............d... 04FF 0000 0000 0001 0039 0000 5C00 5C00 .........9.... 3100 3900 3200 2E00 3100 3600 3800 2E00 1.9.2...1.6.8... 3100 3000 2E00 3400 5C00 5400 4800 3100 1.0...4..T.H.1. 5300 4800 4100 5200 4500 4400 0000 3F3F S.H.A.R.E.D...?? 3F3F 3F00 ???.

background.js:6517 readPacket background.js:6517 _readPacketSize background.js:6517 _readPacketSize - 2 background.js:6517 readPacket: 54 background.js:6524 FF53 4D42 7500 0000 0088 03C8 0000 0000 .SMBu........... 0000 0000 0000 0000 0100 0100 6400 0300 ............d... 03FF 0000 0001 000D 0041 3A00 4E00 5400 .........A:.N.T. 4600 5300 0000 F.S...

background.js:6524 Header {types: Types, protocol: "SMB", command: 117, errorClass: 0, errorCode: 0…} background.js:6524 TreeConnectAndxResponse {types: Types, responseUtils: ResponseUtils, supportSearchBits: true, shareIsInDfs: false, service: "A:"} background.js:6517 getMetadataCache: Created. cifsfs://192.168.10.4:445/@everyone/th1shared background.js:6517 getTaskQueue: Created. cifsfs://192.168.10.4:445/@everyone/th1shared background.js:6517 TaskQueue: addTask - Call consume task: length=1 background.js:6517 TaskQueue: consumeTask - execute task: length=1 background.js:6517 onGetMetadataRequested: thumbnail=false background.js:6517 Object {entryPath: "/", fileSystemId: "cifsfs://192.168.10.4:445/@everyone/th1shared", requestId: 1, thumbnail: false} background.js:6517 Client#getMetadata background.js:6524 Header {types: Types, protocol: "SMB", command: 50, errorClass: 0, errorCode: 0…} background.js:6524 TransactionRequest {types: Types, transactionName: null, flags: 0, timeout: 0, parameter: Object…} background.js:6524 Packet {types: Types, data: ArrayBuffer, dataLength: 76, packetHelper: PacketHelper} background.js:6517 writePacket background.js:6524 FF53 4D42 3200 0000 0018 43C8 0000 0000 .SMB2.....C..... 0000 0000 0000 0000 0100 0100 6400 0400 ............d... 0F0A 0000 0000 0400 0400 0000 0000 0000 ................ 0000 000A 0042 0000 0000 0001 0005 000B .....B.......... 0000 0701 0000 0000 5C00 0000 ...........

background.js:6517 readPacket background.js:6517 _readPacketSize background.js:6517 _readPacketSize - 2 background.js:6517 readPacket: 35 background.js:6524 FF53 4D42 3222 0000 C088 03C8 0000 0000 .SMB2".......... 0000 0000 0000 0000 0100 0100 6400 0400 ............d... 0000 00 ...

background.js:6535 3221225506: NT_STATUS_ACCESS_DENIEDDebug.error @ background.js:6535handleError @ background.js:19128(anonymous function) @ background.js:18518(anonymous function) @ background.js:19356(anonymous function) @ background.js:15903checkError @ background.js:16101(anonymous function) @ background.js:16367(anonymous function) @ background.js:15258ChromeSocket2.fetch @ background.js:15487ChromeSocket2.fetch @ background.js:15489_appendReceivedData @ background.js:15372ChromeSocket2.onReceive @ background.js:15446(anonymous function) @ background.js:15431target.(anonymous function) @ extensions::SafeBuiltins:19EventImpl.dispatchToListener @ extensions::eventbindings:387target.(anonymous function) @ extensions::SafeBuiltins:19publicClass.(anonymous function) @ extensions::utils:94EventImpl.dispatch @ extensions::event_bindings:371dispatchArgs @ extensions::event_bindings:243dispatchEvent @ extensions::event_bindings:252 background.js:6536 console.trace()Debug.error @ background.js:6536handleError @ background.js:19128(anonymous function) @ background.js:18518(anonymous function) @ background.js:19356(anonymous function) @ background.js:15903checkError @ background.js:16101(anonymous function) @ background.js:16367(anonymous function) @ background.js:15258ChromeSocket2.fetch @ background.js:15487ChromeSocket2.fetch @ background.js:15489_appendReceivedData @ background.js:15372ChromeSocket2.onReceive @ background.js:15446(anonymous function) @ background.js:15431target.(anonymous function) @ extensions::SafeBuiltins:19EventImpl.dispatchToListener @ extensions::eventbindings:387target.(anonymous function) @ extensions::SafeBuiltins:19publicClass.(anonymous function) @ extensions::utils:94EventImpl.dispatch @ extensions::event_bindings:371dispatchArgs @ extensions::event_bindings:243dispatchEvent @ extensions::event_bindings:252 background.js:6531 FAILED background.js:6517 TaskQueue: consumeTask - queue: empty

yoichiro commented 8 years ago

@jcrick69 Hmm... I guess that your NAS server requested a Domain Authentication, when I checked the server response below:

background.js:6531 NTLMSSP_TARGET_TYPE_DOMAIN: true
background.js:6531 NTLMSSP_TARGET_TYPE_SERVER: false
background.js:6531 NTLMSSP_TARGET_TYPE_SHARE: false

However, you didn't specify any Domain name:

background.js:6517 Object {serverName: "192.168.10.4", serverPort: "445", username: "everyone", password: "xxxxxx", domainName: ""…}

I think that you need to fill in some Domain Name...

jcrick69 commented 8 years ago

OK, added a domain.

The share mounts but the name now appears as 192.168.10.4 (domain.name@everyone) - I would have perhaps expected everyone@domain.name ...?

It still cannot display the contents of the folder...

Thanks, Jerry