Example JWT setup from the docs is not working.. at all. #7854
|
I'm trying to do what is described here: https://docs.nats.io/using-nats/nats-tools/nsc/basics#account-server-configuration But when I try to e.g. do a nsc push, I get: Which is pretty weird, the nats server is running on port 8222 and even with trace and debug enabled it doesn't tell me anything: server config file, myconfig.conf: And the resolver.conf file: I've been trying to get NATS to work for hours and hours -but it seems impossible. Any pointers or ideas are much appreciated, thanks. |
Replies: 3 comments
|
Followed the guide and was able to push the account. Not sure what's different between your config and mine. Looking at your server version: That's way too old! You'll need at least 2.2.0, which is also logged when creating an operator: I'd highly recommend you upgrade to the latest 2.12.4 version. I'd also recommend trying out a simple local setup for local dev if you're just starting out, that's as simple as Admittedly the UX of |
Oh dear.. How on earth did I manage that?.. Well, I've upgraded and of course it's now working. I'll look into the nats auth commands a bit more, thanks for the tips. And thank you for helping me out, I was getting quite tired of it :) |
|
The main issue is your server version a Maurice pointed out. Likely that version doesn't support |
Followed the guide and was able to push the account. Not sure what's different between your config and mine.
Looking at your server version:
That's way too old! You'll need at least 2.2.0, which is also logged when creating an operator:
I'd highly recommend you upgrade to the latest 2.12.4 version.
I'd also recommend trying out a simple local setup for local dev if you're just starting out, that's as simple as
nats-server -jsto get a local server that's JetStream-enabled.Admittedly the UX of
nscisn't the best still, and is one of the reasons for improving it as par…