apisix-dashboard icon indicating copy to clipboard operation
apisix-dashboard copied to clipboard

bug:在dashboard 里更改路由或者添加路由无法更改

Open liangpeihuahua opened this issue 1 year ago • 11 comments

Current Behavior

  1. 在dashboard 里修改路由,增加路由,删除路由都无任何的反应
  2. 甚至我直接在etcd里面修改路由,但是dashboard 也是没有任何的反应

Expected Behavior

正常修改路由

Error Logs

  1. 修改路由 image
  2. 页面显示修改成功 image
  3. 实际上没有任何改变 image
  4. 直接在etcd上面查询数据 这条路由也是没有被下线的

Steps to Reproduce

  1. 修改路由 image
  2. 页面显示修改成功 image
  3. 实际上没有任何改变 image
  4. 直接在etcd上面查询数据 这条路由也是没有被下线的

Environment

  • APISIX version (run apisix version): $ apisix version /usr/local/openresty//luajit/bin/luajit ./apisix/cli/apisix.lua version 3.2.0

  • Operating system (run uname -a): $ uname -a Linux apisix-2-64874f797b-9r86b 5.10.209-198.812.amzn2.x86_64 apache/apisix#1 SMP Tue Jan 30 20:59:52 UTC 2024 x86_64 GNU/Linux

  • OpenResty / Nginx version (run openresty -V or nginx -V): $ openresty -V nginx version: openresty/1.21.4.1 built by gcc 10.2.1 20210110 (Debian 10.2.1-6) built with OpenSSL 1.1.1s 1 Nov 2022 TLS SNI support enabled configure arguments: --prefix=/usr/local/openresty/nginx --with-cc-opt='-O2 -DAPISIX_BASE_VER=1.21.4.1.7 -DNGX_GRPC_CLI_ENGINE_PATH=/usr/local/openresty/libgrpc_engine.so -DNGX_HTTP_GRPC_CLI_ENGINE_PATH=/usr/local/openresty/libgrpc_engine.so -DNGX_LUA_ABORT_AT_PANIC -I/usr/local/openresty/zlib/include -I/usr/local/openresty/pcre/include -I/usr/local/openresty/openssl111/include' --add-module=../ngx_devel_kit-0.3.1 --add-module=../echo-nginx-module-0.62 --add-module=../xss-nginx-module-0.06 --add-module=../ngx_coolkit-0.2 --add-module=../set-misc-nginx-module-0.33 --add-module=../form-input-nginx-module-0.12 --add-module=../encrypted-session-nginx-module-0.09 --add-module=../srcache-nginx-module-0.32 --add-module=../ngx_lua-0.10.21 --add-module=../ngx_lua_upstream-0.07 --add-module=../headers-more-nginx-module-0.33 --add-module=../array-var-nginx-module-0.05 --add-module=../memc-nginx-module-0.19 --add-module=../redis2-nginx-module-0.15 --add-module=../redis-nginx-module-0.3.9 --add-module=../ngx_stream_lua-0.0.11 --with-ld-opt='-Wl,-rpath,/usr/local/openresty/luajit/lib -Wl,-rpath,/usr/local/openresty/wasmtime-c-api/lib -L/usr/local/openresty/zlib/lib -L/usr/local/openresty/pcre/lib -L/usr/local/openresty/openssl111/lib -Wl,-rpath,/usr/local/openresty/zlib/lib:/usr/local/openresty/pcre/lib:/usr/local/openresty/openssl111/lib' --add-module=/tmp/tmp.XAafuZTCsa/openresty-1.21.4.1/../mod_dubbo-1.0.2 --add-module=/tmp/tmp.XAafuZTCsa/openresty-1.21.4.1/../ngx_multi_upstream_module-1.1.1 --add-module=/tmp/tmp.XAafuZTCsa/openresty-1.21.4.1/../apisix-nginx-module-1.12.0 --add-module=/tmp/tmp.XAafuZTCsa/openresty-1.21.4.1/../apisix-nginx-module-1.12.0/src/stream --add-module=/tmp/tmp.XAafuZTCsa/openresty-1.21.4.1/../apisix-nginx-module-1.12.0/src/meta --add-module=/tmp/tmp.XAafuZTCsa/openresty-1.21.4.1/../wasm-nginx-module-0.6.4 --add-module=/tmp/tmp.XAafuZTCsa/openresty-1.21.4.1/../lua-var-nginx-module-v0.5.3 --add-module=/tmp/tmp.XAafuZTCsa/openresty-1.21.4.1/../grpc-client-nginx-module-v0.4.2 --with-poll_module --with-pcre-jit --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-http_v2_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --with-http_stub_status_module --with-http_realip_module --with-http_addition_module --with-http_auth_request_module --with-http_secure_link_module --with-http_random_index_module --with-http_gzip_static_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-threads --with-compat --with-stream --with-http_ssl_module

  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info): $ etcd --version etcd Version: 3.5.7 Git SHA: 215b53cf3 Go Version: go1.17.13 Go OS/Arch: linux/amd64

  • APISIX Dashboard version, if relevant: ➜ nf_conntrack kubectl get pod -n apisix-2 apisix-2-dashboard-c65c99469-hrbrm -oyaml|egrep image

    • image: apache/apisix-dashboard:3.0.0-alpine imagePullPolicy: IfNotPresent image: docker.io/apache/apisix-dashboard:3.0.0-alpine imageID: docker.io/apache/apisix-dashboard@sha256:692c786310efa4375143015a9cc2d43396af63ed316aba243041329a08b517fc
  • Plugin runner version, for issues related to plugin runners:

  • LuaRocks version, for installation issues (run luarocks --version):

liangpeihuahua avatar Apr 07 '24 12:04 liangpeihuahua

could you use english to describe your issue, thanks.

shreemaan-abhishek avatar Apr 08 '24 04:04 shreemaan-abhishek

Can you try to press F12 to open debug in browser for check network package response is correct ?

hanqingwu avatar Apr 09 '24 01:04 hanqingwu

The return packet is correct but the page display is wrong image

liangpeihuahua avatar Apr 09 '24 10:04 liangpeihuahua

I went directly to etcd and modified the route 429261488956376168, but there was still no change in the dashboard. image image

liangpeihuahua avatar Apr 10 '24 03:04 liangpeihuahua

And I have tried restarting all services, but the result is still the same.

liangpeihuahua avatar Apr 10 '24 03:04 liangpeihuahua

I have test in apache/apisix-dashboard:3.0.0-alpine , but can't reproduce .

hanqingwu avatar Apr 12 '24 23:04 hanqingwu

hi, bro, I also encountered the same problem. Using the admin-api to modify in the command line is effective, and then making modifications and deletions in the dashboard is useless. This is a bug of the platform (I always thought it was where I configured something wrongly and spent a long time dealing with it). I initially used the latest apache/apisix-dashboard:latest image, which has a bug, and change to use this apache/apisix-dashboard:2.13-alpine image .The issue was resolved. you can try it . 20240416160247

step

  1. stop previous apisix-dashboard container : docker stop containerId
  2. delete apisix-dashboard container : docker rm containerId
  3. edit yml : use this apache/apisix-dashboard:2.13-alpine image in docker-compose.yml like picture
  4. delete previous apisix-dashboard image: docker rmi -f apache/apisix-dashboard
  5. reload : docker-compose -p docker-apisix up -d

FremonShare avatar Apr 16 '24 08:04 FremonShare

Mine was fine when I first installed it, but after using it for a while, this problem suddenly appeared.

liangpeihuahua avatar Apr 16 '24 08:04 liangpeihuahua

I changed the image to apache/apisix-dashboard:2.13-alpine. I can actually edit routes, but there are more than 60 routing entries less than those stored in etcd.

liangpeihuahua avatar Apr 16 '24 08:04 liangpeihuahua

Can anyone help me check it out online?

liangpeihuahua avatar Apr 16 '24 09:04 liangpeihuahua

use docker pull bitnami/apisix-dashboard

libizhen007 avatar May 09 '24 03:05 libizhen007