-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nats server run with ngs context fails on windows #732
Comments
You should be able to swop the backslashes for forward slashes and it should work, i think |
Yes it works if I edit the context. |
Can you paste your context file please? |
I have traced the issue to somewhere in the The context looks like this...
|
In json {
"ca": "",
"cert": "",
"color_scheme": "",
"creds": "C:\\Users\\<redacted user>\\.local\\share\\nats\\nsc\\keys\\creds\\synadia\\<redacted account>\\default.creds",
"description": "synadia (Synadia Communications Inc.)",
"inbox_prefix": "",
"jetstream_api_prefix": "",
"jetstream_domain": "",
"jetstream_event_prefix": "",
"key": "",
"nkey": "",
"nsc": "",
"password": "",
"socks_proxy": "",
"token": "",
"url": "tls://connect.ngs.global",
"user": ""
} |
The temporary server config created looks like
|
Looks as the remote credentials path doesn't get correctly escaped before the config template is processed. |
OK - I am a bit surprised the docs led a NGS user down the path of But yes, seems if we escape these strings when writing the server config probably it will work |
This adds a `fixpath` function that can be used in the server template to escape windows paths. * fixes nats-io#732
The output from your call to shellescape is the same as the input, so no effect. |
The problem is we add yours then anyone who had already fixed this up will break...but anyway server run is not supported part of the cli (even hidden in --help) so will take your fix ontop of mine. |
OK try main again, I should have just taken yours sorry about that. |
Commit bcc57a2 now works, great, thanks..... but. |
OK, I will have to get to this another day unfortunately - unless you want to update your PR or send a new one |
I can make a new one. No worries |
I'm running then natscli compiled from source 0d8f405 (because wanting to play with nats.micro) and are having issues following
the guide at https://docs.synadia.com/guides/ngs-dayone-guide#living-on-the-edge-ngs-leaf-nodes
One of the steps would have me to run the embedded server but it fails.
This looks a lot like issue #486 but my guess it is having a hard time finding the credentials or something because of lots of backslashes that are not escaped correctly.
The text was updated successfully, but these errors were encountered: