Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

When the path of public key file contains "%", kitchen-sync fails with "ssh_percent_expand: unknown key %2" #27

Open
trombik opened this issue Oct 4, 2016 · 1 comment · May be fixed by #28

Comments

@trombik
Copy link

trombik commented Oct 4, 2016

When the path of public key file contains "%", such as "release%2F1.0.0," kitchen-sync fails with a cryptic error:

Fssh_percent_expand: unknown key %2
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.2]
D      Cleaning up local sandbox in /tmp/default-openbsd-59-amd64-sandbox-20161004-32285-1n5an6e
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: Failed to complete #converge action: [malformed format string - %F]
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
D      ------Exception-------
D      Class: Kitchen::ActionFailed
D      Message: Failed to complete #converge action: [malformed format string - %F]
D      ---Nested Exception---
D      Class: ArgumentError
D      Message: malformed format string - %F
D      ------Backtrace-------
@trombik
Copy link
Author

trombik commented Oct 4, 2016

this happens because ssh(1) tries to expand "%" and fails.

trombik pushed a commit to reallyenglish/ansible-role-isakmpd that referenced this issue Oct 4, 2016
bug: coderanger/kitchen-sync#27
fix: https://github.com/trombik/kitchen-sync/tree/percent_expand_fix

branch with_multiple_fixes contains fixes that we need.
@trombik trombik changed the title ssh_percent_expand: unknown key %2 When the path of public key file contains "%", kitchen-sync fail with "sssh_percent_expand: unknown key %2" Oct 4, 2016
@trombik trombik changed the title When the path of public key file contains "%", kitchen-sync fail with "sssh_percent_expand: unknown key %2" When the path of public key file contains "%", kitchen-sync fails with "ssh_percent_expand: unknown key %2" Oct 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant