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

leadnodes unable to lookup for host and no such host #35

Open
Choongzai opened this issue Aug 20, 2021 · 1 comment
Open

leadnodes unable to lookup for host and no such host #35

Choongzai opened this issue Aug 20, 2021 · 1 comment

Comments

@Choongzai
Copy link

hi, anyone can help me, i have faced a problem of no such host error when i follow the setup on the read.me of the command kubectl apply -f https://raw.githubusercontent.com/nats-io/k8s/master/nats-server/nats-js-leaf.yml

[8] 2021/08/19 11:14:52.225665 [INF] Starting nats-server
[8] 2021/08/19 11:14:52.225707 [INF] Version: 2.3.5-beta.2
[8] 2021/08/19 11:14:52.225711 [INF] Git: [a5afa867]
[8] 2021/08/19 11:14:52.225723 [INF] Name: NBLIEZQN6UJEWD6Y7BJILKGCXSMW7YB7O72MM5VH3UTABMRDQGK3QECF
[8] 2021/08/19 11:14:52.225729 [INF] Node: ciFh09UR
[8] 2021/08/19 11:14:52.225732 [INF] ID: NBLIEZQN6UJEWD6Y7BJILKGCXSMW7YB7O72MM5VH3UTABMRDQGK3QECF
[8] 2021/08/19 11:14:52.225742 [INF] Using configuration file: /etc/nats-config/nats.conf
[8] 2021/08/19 11:14:52.227071 [INF] Starting JetStream
[8] 2021/08/19 11:14:52.229306 [INF] _ ___ _____ ___ _____ ___ ___ _ __ __
[8] 2021/08/19 11:14:52.229319 [INF] _ | | | / | | _ \ __| /\ | / |
[8] 2021/08/19 11:14:52.229322 [INF] | || | | | | _ \ | | | / | / _ | |/| |
[8] 2021/08/19 11:14:52.229324 [INF] _
/|
| || |/ || ||___// __| |_|
[8] 2021/08/19 11:14:52.229326 [INF]
[8] 2021/08/19 11:14:52.229329 [INF] https://docs.nats.io/jetstream
[8] 2021/08/19 11:14:52.229332 [INF]
[8] 2021/08/19 11:14:52.229334 [INF] ---------------- JETSTREAM ----------------
[8] 2021/08/19 11:14:52.229343 [INF] Max Memory: 5.46 GB
[8] 2021/08/19 11:14:52.229347 [INF] Max Storage: 953.67 MB
[8] 2021/08/19 11:14:52.229350 [INF] Store Directory: "/data/jetstream/store/jetstream"
[8] 2021/08/19 11:14:52.229353 [INF] -------------------------------------------
[8] 2021/08/19 11:14:52.230023 [INF] Starting http monitor on 0.0.0.0:8222
[8] 2021/08/19 11:14:52.230096 [INF] Listening for leafnode connections on 0.0.0.0:7422
[8] 2021/08/19 11:14:52.230808 [INF] Listening for client connections on 0.0.0.0:4222
[8] 2021/08/19 11:14:52.230943 [INF] Server is ready
[8] 2021/08/19 11:14:52.244034 [ERR] Error trying to connect as leafnode to remote server "nats-js:7422" (attempt 1): lookup for host "nats-js": lookup nats-js on 10.0.0.10:53: no such host

@tomaszstachera
Copy link

I had similar issue. In my case it was because if you change release name (Helm) it changes SVC name and you need to adjust it in the nats url : --set jetstream.nats.url=nats://nats:4222 => --set jetstream.nats.url=<release-name>://<release-name>:4222

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