-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
request help: config_etcd.lua has been consistently and frequently reporting errors #2695
Comments
hi,does your etcd enable auth? |
can you try to check etcd data like this? etcdctl get --prefix "/apisix" |
No configuration, a freshly installed state of etcd |
No information was returned after execution😐😐 |
Can you try to run |
No make command can be used.
No change after trying to execute
|
the same wrong but apisix-dashboard 2.0rc3 works well ./etcd --version
|
cc @gxthrj Do you have any idea? |
by test just now, apisix2.0 will report error above when run wtih etcd-3.4.13 |
@nic-chen please take a look |
working on it. |
I also have this problem, and both versions of etcd3.4.13 and etcd 3.4.9 report errors |
Thanks for feedback. Could you provide the steps and config details ? thanks. |
apisix2.0-alpine
|
@ziyou434 Could you provides the options that used for etcd start. |
I use bitnami/etcd chart ,and --set auth.rbac.enabled=false. setup.sh
|
The start up script seems normal, could you paste some etcd logs? |
sure. 2020-11-12 03:02:10.270824 I | pkg/flags: recognized and used environment variable ETCD_ADVERTISE_CLIENT_URLS=http://etcd-0.etcd-headless.api-gateway.svc.cluster.local:2379 |
you deployed etcd in single mode or cluster mode? i tested that apisix2.0 works ok in etcd single mode..
but in cluster mode will report errors etcd.conf
|
I tried ETCD cluster, It works fine too. please confirm your ETCD cluster all ready, and all nodes work well. |
docker.io/bitnami/etcd:3.4.9-debian-10-r34? The same errors. |
That's strange, Could you use |
how to tell apisix the password of etcd? |
etcdserver: failed to apply request "header:<ID:14393352380727342208 > put:<key:"/apisix/proto/" value_size:8 >" with response "" took (1.669µs) to execute, err is auth: user name is empty |
See https://github.com/apache/apisix/blob/master/conf/config-default.yaml for the details. |
me too. etcd version 3.4.13 |
I find etcdctl get /apisix/services will return null,exist but null。/apisix/routes... is the same. |
@ziyou434 Could you also provide the config.yaml of APISIX. |
I find apisix’s etcd key is /apisix/routes,but /apisix/routes/ in etcd ,there is a extra “/”,the key in etcd is different from apisix, maybe this is error. |
There is no yum in the command line of the container,I can not install tcpdump |
I could not find the source of the problem, but found other methods, when I changed etcd host “http://my-etcd-headless.{namespace}.svc.cluster.local:2379” to "http://{ip address}:2379", no error was reported. |
I think this is the reason. |
@souzens @yankunsam do you use domain name as etcd host too ? |
maybe because of this problem https://stackoverflow.com/questions/54788528/etcd-v3-api-unavailable/56800553#56800553 |
case 1 : etcd cluster mode deployed in k8s , use domain name as "http://apisix-etcd-0.apisix-etcd.apisix.svc.cluster.local:2379" REPORT ERROR
case 2 : etcd deployed with cluster mode in k8s , use pod IP as "http://10.128.8.88:2379" case 3 : etcd deployed with cluster mode in VM , use server ip as - "http://10.111.9.155:2379" REPORT ERROR
case 4 : etcd deployed with single mode in VM , use server ip as - "http://10.111.9.155:2379" RUN OK |
@souzens I really want to give you a |
Indeed. I have reproduced this problem after closing the grpc gateway. @souzens @ziyou434 you may add @membphis @spacewander I think some notes should be added into document to remind users the deployment of etcd. |
Indeed caused by this ,apisix run well when i enable enable-grpc-gateway ,thank u all |
It works now. Thanks |
Indeed, it works fine after adding, thanks! |
After adding
|
you could try to run 'apisix init' |
No improvement |
@Applenice |
This needs to be tested and I am currently using : |
I've deployed with |
I think it's time to close this thread. |
I don't know where to change "enable-grpc-gateway", and I use etcd grpc-proxy start in etcd, but apisix still hava the mistake. |
That's really awkward since etcd misses this option in the command line help message, just use this option: |
Could it be added to the APISIX documentation? |
Already added, see https://github.com/apache/apisix/blob/master/doc/install-dependencies.md for the details. |
能不能语言自信点,母语不说飙英文,就能国际化成功吗 |
Issue description
After installing APISIX 2.0, the
apisix/logs/error.log
file shows thatconfig_etcd.lua
has been consistently and frequently reporting errors. The phenomenon still exists after reinstallingapisix
andetcd
without modifying any configuration during the period. Nearly 2,200 lines of error logs typed in nearly 20 minutes, similar to the following:Installation method
Environment
apisix version
): 2.0What should I do?
The text was updated successfully, but these errors were encountered: