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... 13.32.205.38, 13.32.205.19, 13.32.205.123, ...
Connecting to api.onion.io|13.32.205.38|: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.