json parse failed log in error.log
no error log
first time installation and start APISIX after the Manager API started.
@nic-chen Sorry, I don't get your point. Can you give more info about this?
@nic-chen Any examples?

@tokers @starsz
@nic-chen I'm afraid I cannot reproduce in my environment. Is the etcd also newly installed? I guess there's something wrong with the data in etcd. So could you please have a try to run etcdctl del "/apisix" --prefix && apisix init && apisix init_etcd to reinitialize the etcd?
@nic-chen I'm afraid I cannot reproduce in my environment. Is the etcd also newly installed? I guess there's something wrong with the data in etcd. So could you please have a try to run
etcdctl del "/apisix" --prefix && apisix init && apisix init_etcdto reinitialize the etcd?
a simple reproduce step:
in the process don't stop the Manager API.
@nic-chen I'm afraid I cannot reproduce in my environment. Is the etcd also newly installed? I guess there's something wrong with the data in etcd. So could you please have a try to run
etcdctl del "/apisix" --prefix && apisix init && apisix init_etcdto reinitialize the etcd?a simple reproduce step:
- run Manager API
- etcdctl del --prefix /apisix
- apisix init
in the process don't stop the Manager API.
@nic-chen thanks for the details. I managed to reproduce this issue. The reason is that we should explicitly ignore the init_dir etcd event during Watch etcd process. I would commit an PR to fix this. Thanks for reporting.
Most helpful comment
@nic-chen thanks for the details. I managed to reproduce this issue. The reason is that we should explicitly ignore the
init_diretcd event duringWatchetcd process. I would commit an PR to fix this. Thanks for reporting.