GS1200-5/-8 stuck in upgrade mode after upgrade via vpn/different subnet
All Replies
-
@Chris78,
Was there any error message pop-up when stock on the firmware upgrade page, also would it help to click the cancel button?0 -
I had this same problem upgrading a brand new GS1200-5 from F/W V2.00(ABKM.1)C0 to F/W V2.00(ABKM.2)C0 . In my case I was accessing the switch via firefox on a Linux system. The upgrade button seemed to attempt to push firmware (the connected switch port flashed rapidly) but would fail after the 30 second timer finished. Cancel would reboot the switch, but the UI was stuck in firmware upgrade mode. Reset and power off/on did not change things.In the end I looked at the page source and used an external tool to push the update. Since I was on Linux, I used the 'curl' command, like this (from a shell / command line):
curl -F 'firmware=<firmware.bin' --output curl.out 'http://192.168.1.3/httpupg.cgi?cmd=fw_upgrade'
where I had previously renamed the firmware file to 'firmware.bin' (I don't think this was necessary), and sending the output to curl.out made curl's built-in output check happy.This seemed to take longer than 30 seconds, so I suspect that the timeout in the web page code is too short.
0 -
Zyxel_Chris said:@Chris78,
Was there any error message pop-up when stock on the firmware upgrade page, also would it help to click the cancel button?
No, no error msg. Just plain upgrade mode. Over and over again. If I clicked cancel it would say "upgrade failed" but stay in upgrade mode. Only way was to go on site an connect to LAN. One further difference was that remotely I used Windows 10 (Firefox and Chrome, tried both), and on site I used Firefox on Linux.
0 -
@Chris78,
Have checked on this and it should be the firmware upload did not finish in 40 seconds, therefore the device will stay on the upload page until the next time uploads successfully, this is to prevent any abnormal event during the upgrade and cause the device boot up failed.
Because our firmware size is around 6xx KB in the usual case should finish the upload in 40 seconds, therefore might need you to confirm the upload speed or the connection quality in the environment.0 -
Yeah, doesn't convince me. Line was like 40 MBit/s, not 15 Kbit/s. The upload was seemingly finished very quickly.
Plus it should be possible to exit firmware upgrade mode easily which it wasn't.
Cheers0 -
@Chris78,
The connection quality might also affect if there is a lot of re-transmission and could also not finish in 40 seconds.
The reason why cannot leave the upgrade page is that the switch is doing the upgrade while uploading the firmware, if it doesn't finish in time then it might break the boot image and cause the switch not boot up to prevent this therefore it will stay in this page until upload successfully.
We'll improve the message wording if it fails to upgrade, in case the user misunderstands.
0 -
Indeed, the upgrade fails from both Firefox and Chrome.
I can confirm that the "curl" method pointed out by fe80 works perfectly.
Based on that, this is my shell script to upgrade the firmware on GS1200-8:
#!/bin/sh if [ $# -lt 1 ]
then
echo "Usage: GS1200_firmware_upgrade.sh IP"
exit 1
fi U_IP=$1
rm GS1200-*.bin 2>/dev/null
unzip -u GS1200-*.zip
U_FIRM=`ls GS1200-*.bin`
curl -F "firmware=<$U_FIRM" -o /dev/null "http://$U_IP/httpupg.cgi?cmd=fw_upgrade"The upload time is 25 seconds:
$ ./GS1200_firmware_upgrade.sh 192.168.1.3
Archive: GS1200-8_V2.00(ABME.2)C0.zip
inflating: GS1200-8_ReleaseNote_V2.00(ABME.2)C0.pdfinflating: GS1200-8_V2.00(ABME.2)C0.bin
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 676k 0 183 100 676k 7 27049 0:00:25 0:00:25 --:--:-- 191810 -
Hello,
I've found this topic after two failed attempt to upgrade firmware on GS1200-5 v2 and GS1200HP-8 v2 with firmware released in November 2023.
I'm astonished that, one year later, there is exaclty the same issue.
A colleague solved via culr, but for me both switches were ready for RMA. Very bad, Zyxel. :|
0 -
Oh, I forgot to mention that upgrade are done in standard 1 Gbit LAN, so there aren't network issues of any kind
0 -
Hi @Infoera,
Thank you for sharing your details. I've conducted a few tests locally using Chrome on Ubuntu, and everything worked properly. Could you please specify the browser and operating system you're using for the upgrade? This additional information would be helpful.
0
Categories
- All Categories
- 415 Beta Program
- 2.4K Nebula
- 145 Nebula Ideas
- 96 Nebula Status and Incidents
- 5.6K Security
- 240 USG FLEX H Series
- 268 Security Ideas
- 1.4K Switch
- 71 Switch Ideas
- 1.1K Wireless
- 40 Wireless Ideas
- 6.3K Consumer Product
- 247 Service & License
- 385 News and Release
- 83 Security Advisories
- 28 Education Center
- 9 [Campaign] Zyxel Network Detective
- 3.2K FAQ
- 34 Documents
- 34 Nebula Monthly Express
- 83 About Community
- 72 Security Highlight