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

/var/www/cgi-bin/firmware.cgi takes minutes to load without Internet connection #263

Open
plush opened this issue Feb 11, 2024 · 2 comments

Comments

@plush
Copy link

plush commented Feb 11, 2024

/var/www/cgi-bin/firmware.cgi is meant to look up the newest firmware version on Github during load if there is an Internet connection. However, the logic used is very brittle: It assumes you can reach the entire Internet if a network_gateway is set. This breaks when you have your camera on a local network, but firewalled to deny broad Internet access. The check for the newest firmware version runs into a timeout in this case and the page eventually loads, but it takes minutes and looks to the user like something has crashed/failed.

The firmware update page is still very useful when there is no Internet access, as the user can manually download and provide updated rootfs and kernel files.

@flyrouter
Copy link
Member

Thank you for your interest in the project
What ideas do you have to solve this issue?

Please also note that one of our colleagues is currently experimenting with new approaches in the webui-next repository; perhaps you can find something there or apply something new.

@plush
Copy link
Author

plush commented Feb 12, 2024

I would set a timeout on the curl command that checks for the newest version on GitHub and if the timeout is hit, show the same error message as you do when no network is available.

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

No branches or pull requests

2 participants