Closed noahjustinsure closed 2 years ago
I used @karatekaneen 's typescript fork and was able to get this running in no time. Same permissions and everything. https://github.com/karatekaneen/sftp-gcs
@noahjustinsure OOOh ... thank you for the post. It appears a few days ago, Github came into my project and force upgraded some of the package.json files. Specifically, it changed a dependency from a 0.x version to a 1.x version. This introduced a breaking change. Researching now.
@kolban-google Oh my! Silly Github. Thanks so much for your work! I noticed the syntax for ssh2 is different now:
const {
Server,
sftp: {
OPEN_MODE,
STATUS_CODE,
},
} = require('ssh2');
rather than what we have now:
const ssh2 = require('ssh2');
const STATUS_CODE = ssh2.SFTP_STATUS_CODE;
@noahjustinsure Ahh ... TY sir am dedicated to fixing this now ... here is the Pull Request that broke the show
https://github.com/kolban-google/sftp-gcs/pull/19
The fault is ALWAYS and ultimately mine. Apparently Github made the recommendation to upgrade and another committer (this week) accepted. He issued a pull request ... and it was ME who didn't test it. That means that the fault is mine (bad moderator).
No worries at all @kolban-google you've done great work.
Hi,
I am trying to set up a simple connection and it's possible my service account doesn't have the right permissions but I am not sure that's the case as I've given it some pretty wide ranging permissions and the client was able to create empty files... So it definitely has a connection and some form of access.
Here is how I have run the command:
Here are the permissions I have provided (one section for each set of permissions in each role I have assigned to this service account):
customRole
LoggingAdmin
LogWriter
StorageAdmin
Here are some errors I am encountering: List Doesn't work:
put command works for empty file: but throws error:
put command for non-empty file doesn't work:
Please forgive me for any IAM issues as I'm pretty new to GCP and still learning how to manage all of this...