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

Investigate issue re. rebooting cerbo causing watchdog timeouts #1855

Open
DanielMcInnes opened this issue Jan 16, 2025 · 7 comments
Open

Investigate issue re. rebooting cerbo causing watchdog timeouts #1855

DanielMcInnes opened this issue Jan 16, 2025 · 7 comments
Assignees

Comments

@DanielMcInnes
Copy link
Contributor

No description provided.

@DanielMcInnes DanielMcInnes self-assigned this Jan 16, 2025
@DanielMcInnes
Copy link
Contributor Author

@mr-manuel has seen this happen

@mr-manuel
Copy link
Collaborator

How to reproduce: Open the GUIv2 in the browser and update the Cerbo GX or reboot it. If it takes too long the page refreshes and says the server is not found. If you want to test it the hard way just disconnect the PC or GX device from the network and wait.

You could check, if the server is reachable before refreshing the page.

@DanielMcInnes
Copy link
Contributor Author

DanielMcInnes commented Jan 24, 2025

Cannot reproduce. I connected to my cerbo via vrm, then powered off my cerbo for a few minutes, and I didn't see the page refresh. @jepefe , what is your use-case for kiosk-mode android builds? Do you connect via vrm? It doesn't seem like running wasm over vrm ever reloads the page.

@mr-manuel
Copy link
Collaborator

Sorry, this problem is not via VRM. It's if you open the local IP/hostname and GUIv2.

Image

@DanielMcInnes
Copy link
Contributor Author

I can reproduce this behavior, but I don't think it is a real issue. The watchdog is working as intended. If I run a firmware update from a wasm build, I am not really surprised when I get a 'page not found' error. Once the cerbo reboots, I can refresh the web page, and it reloads ok.

@mr-manuel
Copy link
Collaborator

If you have a display where you are displaying the GUIv2 as full screen in a browser this is an issue. I can open a PR with a fix. Before reloading the page, a simple check that checks, if a HTTP call was successful is enough and only then refresh the page, else wait.

@mr-manuel
Copy link
Collaborator

I saw that there is already a function that works like I thought. So I changed only location.reload() to reload() and added a variable to prevent multiple callings of reload() from the watchdog.

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

When branches are created from issues, their pull requests are automatically linked.

2 participants