pantheon-systems / terminus-secrets-plugin

A simple secrets management plugin for Terminus
MIT License
24 stars 14 forks source link

Rsync error message #10

Open stevector opened 7 years ago

stevector commented 7 years ago

I'm running the command and getting the following error:

terminus secrets:set persch-bikes.dev    loader_test_config_id  xxxxxxxxxxxxxxxxxxxxxxxxxxxxx   
receiving file list ... 
1 file to consider
rsync: mkstemp "/private/var/folders/f7/_swx4fg57y50ptr577xbbtsw0000gn/T/phpkMjKlo/../tmp//.secrets.json.pwESEB" failed: No such file or directory (2)
          95 100%   92.77kB/s    0:00:00 (xfer#1, to-check=0/1)

sent 48 bytes  received 190 bytes  52.89 bytes/sec
total size is 95  speedup is 0.40
rsync error: some files could not be transferred (code 23) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-47/rsync/main.c(1400) [generator=2.6.9]
 [error]  Command `rsync -rlvz --size-only --ipv4 --progress --exclude=.git -e 'ssh -p 2222' dev.ea21264c-92c4-41db-b0a2-ba0a5714ad3b@appserver.dev.ea21264c-92c4-41db-b0a2-ba0a5714ad3b.drush.in:files/private/secrets.json --temp-dir=../tmp/  /private/var/folders/f7/_swx4fg57y50ptr577xbbtsw0000gn/T/phpkMjKlo` failed with exit code 23 

It looks as though the plugin is attempted to rysnc down to a local directory /private/var/folders/f7/_swx4fg57y50ptr577xbbtsw0000gn/T/phpkMjKlo.

/private/var/folders/f7/_swx4fg57y50ptr577xbbtsw0000gn/T/ exists for me locally but not /private/var/folders/f7/_swx4fg57y50ptr577xbbtsw0000gn/T/phpkMjKlo

Could this be a permissions issue for me locally? I use this plugin in a few CircleCI scripts without a problem.

greg-1-anderson commented 7 years ago

/phpkMjKlo/../ is a degenerate path. :P

NicholasRBowers commented 7 years ago

Hey @stevector, I get a similar message (code 23) when I run this plugin after I've cloned the LIVE database (specifically files) down to DEV. The message disappears for me after I SFTP into ~/files/private/secrets.json and edit and reupload the file. Not sure why this happens, but it is reproducible (both the problem and the fix).

ttrowell commented 7 years ago

@stevector @greg-1-anderson See #81886 for more context.