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

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

Open
liangpeihuahua opened this issue Apr 7, 2024 · 11 comments
Open

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

liangpeihuahua opened this issue Apr 7, 2024 · 11 comments

Comments

@liangpeihuahua
Copy link

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 change: added doc of how to load plugin. 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):

@shreemaan-abhishek
Copy link

could you use english to describe your issue, thanks.

@liangpeihuahua
Copy link
Author

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

@liangpeihuahua
Copy link
Author

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

@liangpeihuahua
Copy link
Author

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

@shreemaan-abhishek shreemaan-abhishek transferred this issue from apache/apisix Apr 11, 2024
@FremonShare
Copy link

FremonShare commented Apr 16, 2024

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

@liangpeihuahua
Copy link
Author

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

@liangpeihuahua
Copy link
Author

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
Copy link
Author

Can anyone help me check it out online?

@libizhen007
Copy link

use docker pull bitnami/apisix-dashboard

@1327614618
Copy link

感谢感谢

hi, bro,我也遇到了同样的问题,使用admin-api在命令行修改有效,然后在dashboard里面修改删除都没用,这个是平台的bug(一直以为是哪里配置错了,搞了好久才搞定),一开始用的是最新的apache/apisix-dashboard:latest镜像,有bug,改用这个apache/apisix-dashboard:2.13-alpine镜像,问题解决,你可以试试。 20240416160247

  1. 停止之前的 apisix-dashboard 容器: docker stop containerId
  2. 删除 apisix-dashboard 容器: docker rm containerId
  3. 编辑 yml :在 docker-compose.yml 中使用此 apache/apisix-dashboard:2.13-alpine 图像,如图所示
  4. 删除之前的 apisix-dashboard 图像: docker rmi -f apache/apisix-dashboard
  5. 重新加载: docker-compose -p docker-apisix up -d

@1327614618
Copy link

我已经在 apache/apisix-dashboard:3.0.0-alpine 中进行了测试,但无法重置。

我也遇到了这个问题,具体是使用docker部署的时候

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

5 participants