Interesting oupgrade problem and the fix
a9k last edited by
I just got an Omega2+ and oupgrade kept failing with
Device Firmware Version: 0.1.5 b130
Checking latest version online...
ERROR: Could not connect to Onion Firmware Server! Check your internet connection and try again!
I could use opkg, ping sites, and wget sites.
So to debug this in console I used +x option on ash (the shell) as follows:
sh +x /usr/bin/oupgrade
That shows the shell script in action.
A few lines about the final failure message was:
- wget -S -O /tmp/tmp.OiAdcC https://api.onion.io/omega2+/firmware/stable
- resp=--2016-11-23 02:07:44-- https://api.onion.io/omega2+/firmware/stable
Resolving api.onion.io... 18.104.22.168, 22.214.171.124, 126.96.36.199, ...
Connecting to api.onion.io|188.8.131.52|:443... connected.
ERROR: cannot verify api.onion.io's certificate, issued by 'CN=Go Daddy Secure Certificate Authority - G2,OU=http://certs.godaddy.com/repository/,O=GoDaddy.com\, Inc.,L=Scottsdale,ST=Arizona,C=US':
Issued certificate not yet valid.
To connect to api.onion.io insecurely, use `--no-check-certificate'.
I scratched my head. WAIT "not yet vaild" on a SSL certificate -- like in was issued in the future or DOH the omega2p was in the past!
The date command returned Wed Nov 23 02:13:06 GMT 2016, not good.
The date is not automatically set and ntp wasn't running (used ps | grep ntp to check).
I set the date with date -u -s '2017-06-04 01:27:30' then tried oupgrade again.
Seems like it is working. It has just typed "Sending TERM to remaining processes ... onion-helper udhcpc S79wifimanager wifimanager udhcpc packet" and disconnected.
Onion amber LED didn't come back on though. I may be in for more FUN.
Douglas Kryder last edited by
you might want to go through the setup process by using browser to navigate 192.168.3.1
a9k last edited by
Tried that first. The oupgrade script will fail is clock is in the past.
Setting the time locally worked for me too. The real solution would be to fix the time it's pulling via ntp or lack there of. I attempted to update uci with 0.pool.ntp.org, with no joy. How do you fix the NTP daemon?