tjibbevanderlaan / chromeos-filesystem-sftp

ChromeOS app to access SFTP server
https://chrome.google.com/webstore/detail/shared-network-folder-sft/gbheifiifcfekkamhepkeogobihicgmn
BSD 3-Clause "New" or "Revised" License
81 stars 21 forks source link

Buffalo LinkStation empty directory #42

Closed Bravo315 closed 5 years ago

Bravo315 commented 9 years ago

Device: Samsung Chromebox 3 Server: Custom Buffalo LinkStation on a dynamic IP address OS: Chrome (stable) 40.0.2214.114 Other: Device registered with a domain management licence

I can successfully launch the app and enter my FTP credentials. Upon hitting "Mount", the mountAttempt{} message appears at the bottom left and subsequently mountSucsess{} with the fingerprint.

When I open the mounted NAS LinkStation drive (with correct credentials), the directory is completely empty.

This happens when the credentials are "kept" with and without password saving and happens whether or not a root is specified.

I can confirm the SFTP credentials are correct and using SSH2. I have used multiple servers to test this out - only the LinkStation has problems with this.

Thanks for this awesome app! Jack.

yoichiro commented 9 years ago

@Bravo315 Hmm... Of course, I don't have the device, therefore, I can't know the detail situation you faced. Could you see the console output for the background context of this app by the DevTools? If I can get the output messages at occuring this issue, I may know the cause...

Bravo315 commented 9 years ago

Hi Yoichiro, sorry it's not parsed. I thought it would be more useful in text format rather than screenshots. Hopefully it helps.

background.js:1344 Object {type: "mount", serverName: "192.168.1.5", serverPort: "22", authType: "password", username: "jack"…}authType: "password"mountPath: ""password: "[REMOVED]"privateKey: ""serverName: "192.168.1.5"serverPort: "22"type: "mount"username: "jack"proto: ObjectdefineGetter: function defineGetter() { [native code] }defineSetter: function defineSetter() { [native code] }lookupGetter: function lookupGetter() { [native code] }lookupSetter: function lookupSetter() { [native code] }constructor: function Object() { [native code] }hasOwnProperty: function hasOwnProperty() { [native code] }isPrototypeOf: function isPrototypeOf() { [native code] }propertyIsEnumerable: function propertyIsEnumerable() { [native code] }toLocaleString: function toLocaleString() { [native code] }toString: function toString() { [native code] }valueOf: function valueOf() { [native code] }get proto: function proto() { [native code] }set proto: function proto() { [native code] background.js:177 mountPath: background.js:223 Object {message: "fingerprint", request: 0, values: Array[2]}message: "fingerprint"request: 0values: Array[2]proto: Object background.js:625 Object {requestId: 0, fingerprint: "1760bb442f36d8df6b98fb637f52a7a1", algorithm: "ssh-rsa"} background.js:1344 Object {type: "accept", requestId: "0", fileSystemId: "sftpfs://192.168.1.5:22/jack"} background.js:635 allowToConnect background.js:223 Object {message: "authenticated", request: 0, values: Array[0]}message: "authenticated"request: 0values: Array[0]proto: Object background.js:1234 getTaskQueue: Created. sftpfs://192.168.1.5:22/jack background.js:45 TaskQueue: addTask - Call consume task: length=1 background.js:55 TaskQueue: consumeTask - execute task: length=1 background.js:754 onGetMetadataRequested: thumbnail=false background.js:755 Object {entryPath: "/", fileSystemId: "sftpfs://192.168.1.5:22/jack", requestId: 1, thumbnail: false} background.js:1274 getMetadataCache: Created. sftpfs://192.168.1.5:22/jack background.js:223 Object {message: "error", request: 0, values: Array[1]}message: "error"request: 0values: Array[1]proto: Object background.js:774 NOT_FOUND background.js:62 TaskQueue: consumeTask - queue: empty background.js:45 TaskQueue: addTask - Call consume task: length=1 background.js:55 TaskQueue: consumeTask - execute task: length=1 background.js:754 onGetMetadataRequested: thumbnail=false background.js:755 Object {entryPath: "/", fileSystemId: "sftpfs://192.168.1.5:22/jack", requestId: 2, thumbnail: false} background.js:223 Object {message: "error", request: 0, values: Array[1]}message: "error"request: 0values: Array[1]proto: Object background.js:774 NOT_FOUND background.js:62 TaskQueue: consumeTask - queue: empty background.js:45 TaskQueue: addTask - Call consume task: length=1 background.js:55 TaskQueue: consumeTask - execute task: length=1 background.js:754 onGetMetadataRequested: thumbnail=false background.js:755 Object {entryPath: "/", fileSystemId: "sftpfs://192.168.1.5:22/jack", requestId: 3, thumbnail: false} background.js:223 Object {message: "error", request: 0, values: Array[1]} background.js:774 NOT_FOUND background.js:62 TaskQueue: consumeTask - queue: empty background.js:45 TaskQueue: addTask - Call consume task: length=1 background.js:55 TaskQueue: consumeTask - execute task: length=1 background.js:754 onGetMetadataRequested: thumbnail=false background.js:755 Object {entryPath: "/", fileSystemId: "sftpfs://192.168.1.5:22/jack", requestId: 4, thumbnail: false} background.js:223 Object {message: "error", request: 0, values: Array[1]}message: "error"request: 0values: Array[1]proto: Object background.js:774 NOT_FOUND background.js:62 TaskQueue: consumeTask - queue: empty background.js:45 TaskQueue: addTask - Call consume task: length=1 background.js:55 TaskQueue: consumeTask - execute task: length=1 background.js:754 onGetMetadataRequested: thumbnail=false background.js:755 Object {entryPath: "/", fileSystemId: "sftpfs://192.168.1.5:22/jack", requestId: 5, thumbnail: false} background.js:223 Object {message: "error", request: 0, values: Array[1]}message: "error"request: 0values: Array[1]0: "Unable to open file with SFTP -31"length: 1proto: Array[0]proto: ObjectdefineGetter: function defineGetter() { [native code] }defineSetter: function defineSetter() { [native code] }lookupGetter: function lookupGetter() { [native code] }lookupSetter: function lookupSetter() { [native code] }constructor: function Object() { [native code] }hasOwnProperty: function hasOwnProperty() { [native code] }isPrototypeOf: function isPrototypeOf() { [native code] }propertyIsEnumerable: function propertyIsEnumerable() { [native code] }toLocaleString: function toLocaleString() { [native code] }toString: function toString() { [native code] }valueOf: function valueOf() { [native code] }get proto: function proto() { [native code] }set proto: function proto() { [native code] } background.js:774 NOT_FOUND background.js:62 TaskQueue: consumeTask - queue: empty background.js:45 TaskQueue: addTask - Call consume task: length=1 background.js:55 TaskQueue: consumeTask - execute task: length=1 background.js:726 onReadDirectoryRequested background.js:727 Object {directoryPath: "/", fileSystemId: "sftpfs://192.168.1.5:22/jack", requestId: 7} background.js:223 Object {message: "error", request: 0, values: Array[1]}message: "error"request: 0values: Array[1]0: "Unable to open dir with SFTP -31"length: 1proto: Array[0]proto: ObjectdefineGetter: function defineGetter() { [native code] }defineSetter: function defineSetter() { [native code] }lookupGetter: function lookupGetter() { [native code] }lookupSetter: function lookupSetter() { [native code] }constructor: function Object() { [native code] }hasOwnProperty: function hasOwnProperty() { [native code] }isPrototypeOf: function isPrototypeOf() { [native code] }propertyIsEnumerable: function propertyIsEnumerable() { [native code] }toLocaleString: function toLocaleString() { [native code] }toString: function toString() { [native code] }valueOf: function valueOf() { [native code] }get proto: function proto() { [native code] }set proto: function proto() { [native code] } background.js:742 Unable to open dir with SFTP -31 background.js:62 TaskQueue: consumeTask - queue: empty background.js:45 TaskQueue: addTask - Call consume task: length=1 background.js:55 TaskQueue: consumeTask - execute task: length=1 background.js:726 onReadDirectoryRequested background.js:727 Object {directoryPath: "/", fileSystemId: "sftpfs://192.168.1.5:22/jack", requestId: 8} background.js:223 Object {message: "error", request: 0, values: Array[1]}message: "error"request: 0values: Array[1]proto: Object background.js:742 Unable to open dir with SFTP -31 background.js:62 TaskQueue: consumeTask - queue: empty

yoichiro commented 9 years ago

@Bravo315 Hmm... Certainly, there are some error responses. But, I cannot know the detail from the text above. I would like to know the detail of the following line:

background.js:223 Object {message: "error", request: 0, values: Array[1]}message: "error"request: 0values: Array[1]proto: Object

The "values" property has the error message. I think that you can expand the line on the DevTools Console panel. Could you tell me the value of the "values" property?

Bravo315 commented 9 years ago

The requested value states "Unable to open file with SFTP -31" so may be an issue with how it's setup on our NAS.

In background:223.js, I found the following in object{}

  1. Error in proto function seem to loop infinitely error223js 1
  2. Error 2: status is set to blank error 223js 2
  3. Error 3 contains two empty names error 223js 3

Thanks, Jack.

yoichiro commented 9 years ago

@Bravo315 Hmm... The error code -31 means "Protocol mismatch". That is, this application (actually, libssh2) cannot talk with your NAS server because of some reason... Unfortunately, I don't have the NAS device, therefore, it seems that I cannot get enough information to fix this issue...

I have one more question. Could you get the output of 'ls -laF' executed on the mounted root directory?

yoichiro commented 9 years ago

@Bravo315 Do you have same error in the latest version 1.7.3?

fast-hedgehog commented 9 years ago

I have a buffalo linkstation, and i had similar error messages when trying to set "Path a root directory" as "Share". Setting this as "array1/Share" resolved the issue for me. (this is case sensitive).

yoichiro commented 5 years ago

It seems that the specified path as a root was wrong. Close this issue.