Problem downloading OpenWrt release to router using wget

I want to download a sysupgrade image onto my router, but the download is failing. Download of a generic http page works fine (see below). The same download command on an several year old OpenWrt router works fine.

The router is running 19.07.1. Anyone else see this problem?

root@wrt:/tmp# wget http://downloads.openwrt.org/releases/19.07.2/targets/ramips/mt76x8/openwrt-19.07.2-ramips-mt76x8-tl-wr841n-v13-squashfs-sysupgrade.bin
Downloading 'http://downloads.openwrt.org/releases/19.07.2/targets/ramips/mt76x8/openwrt-19.07.2-ramips-mt76x8-tl-wr841n-v13-squashfs-sysupgrade.bin'
Connecting to 176.9.48.73:80
Failed to redirect to /releases/19.07.2/targets/ramips/mt76x8/openwrt-19.07.2-ramips-mt76x8-tl-wr841n-v13-squashfs-sysupgrade.bin on downloads.openwrt.org

root@wrt:/tmp# wget http://scripting.com/
Downloading 'http://scripting.com/'
Connecting to 52.216.184.210:80
Writing to 'index.html'
index.html 100% |*******************************| 200k 0:00:00 ETA
Download completed (205250 bytes)

My suggestion is that the download page are redirecting all http requests to https since some time.
Some months ago a download through plain http was possible.
You need at least something like libustream-xxx installed as package. Xxx is your crypto library flavor like openssl or mbedtls.
Then you need also the ca-cartificates package or do:

wget --no-check-certificate https://...
3 Likes

Wow. That makes it difficult for most people to upgrade their OpenWRT from the command line. Quite a few wiki pages use a wget of the http URL.

You can download the file to your computer, then send it to the router using SCP or similar.

4 Likes

I have the same problem. Really want to upgrade firmware from command line, but can't. Each step with big effort. Have you found solution? I just don't want use scp approach because I see straight way bit have a glass wall.

What does that mean exactly?

1 Like

(And I remember when users in the past were concerend that the firmware was over HTTP instead of HTTPS...how times change...)

@yarbash83, welcome to the community!

You can simply install the needed CA and TLS libraries...seems a bit much when your're about to immediately flash it though.

1 Like

or upload u files manualy or upload it in another server ? dl.free.fr

That means that I just want to use wget right now without any other issues but can't, because in the very beginning of process I have a problem that can't solve in one minute.

Yeah, thanks. Will spent a little time to understand the situation. Merely when you want to quickly upgrade your device at 01:00 am and meet the the unclear problem it's a bit frustrating moment. )))

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.