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

request help: dashboards are not refreshed after the update is successful #2285

Closed
valleyFrost opened this issue Jan 18, 2022 · 12 comments
Closed
Assignees
Labels
enhancement New feature or request

Comments

@valleyFrost
Copy link

Issue description

The dashboard version is apisix-dashboard-2.10.1-0.el7.x86_64. RPM.
To upgrade from 2.9 to 2.10, perform the following steps

cd /usr/local/apisix/
rm -rf dashboard
RPM -ivh apisix-dashboard-2.10.1-0.el7.x86_64. RPM --nodeps --force

Some dashboards are not refreshed after the update is successful and take effect after being restarted. However, the refresh failure occurs again after a period of time, and the dashboard takes effect after being restarted.

Environment

  • apisix version (cmd: apisix version):apisix-2.10.0-0.el7.x86_64.rpm
  • OS (cmd: uname -a):centos7
  • OpenResty / Nginx version (cmd: nginx -V or openresty -V): openresty-1.19.9.1-1.el7.x86_64.rpm
  • etcd version, if have (cmd: run curl http://127.0.0.1:9090/v1/server_info to get the info from server-info API):etcd-v3.5.1-linux-amd64
  • apisix-dashboard version, if have:apisix-2.10.0-0.el7.x86_64.rpm
  • the plugin runner version, if the issue is about a plugin runner (cmd: depended on the kind of runner):
  • luarocks version, if the issue is about installation (cmd: luarocks --version):
@juzhiyuan juzhiyuan transferred this issue from apache/apisix Jan 18, 2022
@juzhiyuan
Copy link
Member

Some dashboards are not refreshed

Hi @valleyFrost, may I know what's "are not refreshed"? You mean the Dashboard UI is the same as previous version? If it's, please open you Browser and clear cache, or use Shift + Command + R to force refresh, I'm not sure if you encounter Cache issue.

@valleyFrost
Copy link
Author

valleyFrost commented Jan 18, 2022 via email

@juzhiyuan
Copy link
Member

🤔 cc @nic-chen to have a look, thanks!

@nic-chen
Copy link
Member

hi @valleyFrost
Hot update is currently not supported, and a restart is required after the update.

@ghost
Copy link

ghost commented Jan 20, 2022

So can we close this issue or shall we implement the upload feature?

@juzhiyuan
Copy link
Member

I will label it as doc and close this :)

@juzhiyuan juzhiyuan added doc enhancement New feature or request and removed checking labels Jan 21, 2022
@nic-chen
Copy link
Member

Consider whether the intermediate watch etcd failed.

Please upload the error log at your convenience. @valleyFrost

@nic-chen nic-chen reopened this Jan 27, 2022
@xianshun163
Copy link

I have reproduce this issue like this :
1、the etcd have 3 node
2、shutdown the leader node of the etcd.
3、go to the dashboard, and make some change. then the change is ok, and it is change in the etcd.
But, the dashboard is still the old value, can not get the new value。
It looks like the dashboard use the local cache。

@bzp2010
Copy link
Contributor

bzp2010 commented Feb 8, 2022

I have reproduce this issue like this : 1、the etcd have 3 node 2、shutdown the leader node of the etcd. 3、go to the dashboard, and make some change. then the change is ok, and it is change in the etcd. But, the dashboard is still the old value, can not get the new value。 It looks like the dashboard use the local cache。

I will try to reproduce it again and find a solution.

@bzp2010
Copy link
Contributor

bzp2010 commented Feb 8, 2022

Update

I tried single-node and multi-node etcd, for node/leader, and found nothing that could cause Watch to fail. If the etcd is unavailable, writes to the etcd will be cached and redone when the connection is restored (this is incorrent and may result in duplicate writes, but has nothing to do with the cache not being updated)

Whether it is a single-node or multi-node etcd service, the client can restore the connection itself.

image

Other

ping @xianshun163 @valleyFrost Can you provide more details, such as the status of etcd, the version of dashboard and logs, etc.?

@juzhiyuan
Copy link
Member

ping @valleyFrost @xianshun163 as a volunteer from community, my WeChat is JuShaoyao and you could add me and let's a meet to reproduce this :)

@valleyFrost
Copy link
Author

valleyFrost commented Feb 14, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants