Skip to content
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

Compatibility with current versions of nats #46

Open
mar1ged opened this issue May 24, 2020 · 1 comment
Open

Compatibility with current versions of nats #46

mar1ged opened this issue May 24, 2020 · 1 comment

Comments

@mar1ged
Copy link

mar1ged commented May 24, 2020

When I use nats-top with a current version of nats it complains and fails:

8934] 2020/05/24 22:09:23.784078 [ERR] 127.0.0.1:37908 - cid:5 - Client parser ERROR, state=0, i=0: proto='"\x16\x03\x01\x00\u007f\x01\x00\x00{\x03\x03\xdb\xe6\xb3&\"k\x9b\a\xa9s\xee\a(V\xcc~4\xcek\xa5\x02"...'
[8934] 2020/05/24 22:09:23.784087 [DBG] 127.0.0.1:37908 - cid:5 - Client connection closed: Protocol Violation

If I try to compile nats-top it doesn't work either:

./nats-top.go:114:17: cannot use sortOpt (type "github.com/nats-io/gnatsd/server".SortOpt) as type "github.com/nats-io/nats-top/vendor/github.com/nats-io/gnatsd/server".SortOpt in assignment
./nats-top.go:348:3: cannot use &"github.com/nats-io/gnatsd/server".Varz literal (type *"github.com/nats-io/gnatsd/server".Varz) as type *"github.com/nats-io/nats-top/vendor/github.com/nats-io/gnatsd/server".Varz in field value
./nats-top.go:349:3: cannot use &"github.com/nats-io/gnatsd/server".Connz literal (type *"github.com/nats-io/gnatsd/server".Connz) as type *"github.com/nats-io/nats-top/vendor/github.com/nats-io/gnatsd/server".Connz in field value
./nats-top.go:433:22: cannot use sortOpt (type "github.com/nats-io/gnatsd/server".SortOpt) as type "github.com/nats-io/nats-top/vendor/github.com/nats-io/gnatsd/server".SortOpt in assignment
@wallyqs
Copy link
Member

wallyqs commented May 24, 2020

Hi @mar1ged you are pointing nats-top to the client port from NATS which is 4222, but the one that you are looking for is the monitoring port (which is often 8222). In case cannot build locally you can get a build from master as well using gobinaries:

curl -sf https://gobinaries.com/nats-io/nats-top | PREFIX=. sh
./nats-top -v
/.nats-top -s demo.nats.io

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants