-
Notifications
You must be signed in to change notification settings - Fork 96
0.2.0 always gives "Error: handle is not a Buffer" #21
Comments
This seems related to the fact that I am trying to scp into directories which don't yet exist, since scping to index.html works fine. My guess is that 0.1.4 would do a mkdir -p equivalent for me, whereas 2.0.0 stopped doing that. (The fact that the error message sucks is presumably a separate bug.) |
Due to a bug (spmjs/node-scp2#21) in the program we are using to ssh snapshots onto streams.spec.whatwg.org, commit and branch snapshots have not been being properly deployed since late October. Fixed this by pinning [email protected] Worse, we weren't getting notified of this failure because I was erroneously using Travis CI's `after_success` hook to build and deploy the spec and spec snapshots; if that fails, Travis does not notify you. Fixed by using the `script` hook instead.
It does not work for me too. |
Exactly the same errors, does it come from scp2 or from a dependency ? |
Same here. if I drop the version down to |
also with 0.2.2 |
Maybe it is related to #32 |
https://github.com/spmjs/node-scp2/blob/master/lib/client.js#L225 The errors are "Permission denied". |
Are you guys only seeing this on a specific platform? For me (Ubuntu -> Ubuntu) scp2 0.2.2 creates the folders just fine, but for my coworker (Windows -> Ubuntu), the created folders lack the proper permissions (-x) and gives the |
The issue is that Also, unfortunately, in windows the permissions on folders will not have the execute bit set, which means that folders will not be executable on the remote host. attrs.mode = attrs.mode ? '0' + (attrs.mode & 0777).toString(8) : '0755' would solve the first issue, but I'm not sure how to deal with Windows permissions. |
I am getting the following issue:
But I noticed that the file was created on the sftp-server but without content. |
I found the attrs.mode on windows is not same as it on *nix. I have the same error in windows client, I just brucly set the |
because the dir of destination does not create before execute write |
Any updates on this issue? I'm still running into it with the latest version of node-scp2. |
See for example https://travis-ci.org/whatwg/streams/builds/43789094#L1383
compared to https://travis-ci.org/whatwg/streams/builds/39141547#L863 with 0.1.4
(
Also I might suck at shell scripting but I can't my Travis builds to fail when ssh2 throws an error :-/turns out I need to use Travis'sscript
hook instead ofafter_success
)The text was updated successfully, but these errors were encountered: