kine: nats: stream not found
I’m getting this. k3s/kine/nats have been running for about 20 minutes.
{"level":"warn","ts":"2022-08-15T18:06:31.382Z","logger":"etcd-client","caller":"v3@v3.5.3-k3s1/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0xc000b161c0/127.0.0.1:2379","attempt":0,"error":"rpc error: code = Unknown desc = nats: stream not found"}
docker-compose.yaml
version: '3.6'
services:
nats:
# image: nats
image: nats:2.8.2
command: >-
-js
-DV
kine:
image: rancher/kine:v0.9.3-amd64
restart: on-failure
depends_on:
- nats
ports:
- 2379:2379
command: >-
--endpoint "nats://nats"
--debug
run k3s
docker run \
-it --rm \
--tmpfs /run \
--tmpfs /var/run \
--net=host \
--privileged rancher/k3s \
server \
--cluster-init \
--disable-agent \
--token=SECRET \
--datastore-endpoint=http://127.0.0.1:2379
log
[...]
{"level":"warn","ts":"2022-08-15T18:07:15.201Z","logger":"etcd-client","caller":"v3@v3.5.3-k3s1/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0xc000b161c0/127.0.0.1:2379","attempt":0,"error":"rpc error: code = Unknown desc = nats: stream not found"}
E0815 18:07:27.259776 39 resource_quota_controller.go:413] unable to retrieve the complete list of server APIs: metrics.k8s.io/v1beta1: the server is currently unable to handle the request
W0815 18:07:27.752178 39 garbagecollector.go:747] failed to discover some groups: map[metrics.k8s.io/v1beta1:the server is currently unable to handle the request]
{"level":"warn","ts":"2022-08-15T18:07:49.495Z","logger":"etcd-client","caller":"v3@v3.5.3-k3s1/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0xc000b161c0/127.0.0.1:2379","attempt":0,"error":"rpc error: code = Unknown desc = nats: stream not found"}
E0815 18:07:57.279814 39 resource_quota_controller.go:413] unable to retrieve the complete list of server APIs: metrics.k8s.io/v1beta1: the server is currently unable to handle the request
W0815 18:07:57.763788 39 garbagecollector.go:747] failed to discover some groups: map[metrics.k8s.io/v1beta1:the server is currently unable to handle the request]
{"level":"warn","ts":"2022-08-15T18:08:23.986Z","logger":"etcd-client","caller":"v3@v3.5.3-k3s1/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0xc000b161c0/127.0.0.1:2379","attempt":0,"error":"rpc error: code = Unknown desc = nats: stream not found"}
E0815 18:08:27.298772 39 resource_quota_controller.go:413] unable to retrieve the complete list of server APIs: metrics.k8s.io/v1beta1: the server is currently unable to handle the request
W0815 18:08:27.775153 39 garbagecollector.go:747] failed to discover some groups: map[metrics.k8s.io/v1beta1:the server is currently unable to handle the request]
Do I need to create a nats stream manually?
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 19 (17 by maintainers)
Oh, I see you’re starting k3s with both
--cluster-initand--datastore-endpoint. Thecluster-initflag is used to enable the embedded etcd, and should not be used alongside thedatastore-endpointoption. I’m honestly surprised this worked at all.It looks like it’s still there. Make sure you’re wiping the nats datastore, otherwise you’ll have stuff left over from the previous cluster instance.
No, I don’t believe you should have to create the stream. Do you perhaps need to specify the port in addition to the container hostname in the
nats://URI? What are the logs from the kine container? Do you get the same error when testing withnats:2.7.4?