Error when setting up Omega2 Pro [with solution]
I received my Omega2 Pro today and started setting it up this evening.
During the initial setup, the web interface 'hung' during the firmware upgrade. I reloaded the browser and was able to login to the console.
oupgrade -c, I found I needed to upgrade still.
When I ran
oupgrade, I got the error message:
/usr/bin/oupgrade: local: line 378: not in a function
I went looking in the Onion GitHub repos and found this patch at https://github.com/OnionIoT/oupgrade/commit/941a638283e2acfefe5fdab33886cdd672d949a8
I made the one line change to the script and was able to run
You'll also need to run the
onion os updatecommand to get the new apps once you've upgraded the firmware.
I guess some of the boards didn't get the latest patches before they were shipped?
I had the same problem, and can confirm that Emma's solution solved it for me.
Pardon my ignorance, but where exactly is this file located on the Onion (ie: oupgrade.sh)?
oupgradeand it's in located in
root@Omega-FA93:~# which oupgrade /usr/bin/oupgrade root@Omega-FA93:~#
To chime in: yes, there was a bug in the
oupgradeprogram in the firmware that was installed during production. This has since been fixed and the fix is included in the latest firmware.
So there's three ways you can upgrade your Omega2 Pro if you are on firmware
v0.3.0 b207or lower
- Use the browser-based setup wizard, the steps can be found here
- Follow our manual firmware installation guide, just note for step 1, you can find the latest Omega2 Pro firmware here
- Make the fix to oupgrade as mentioned above
Once you've installed the latest firmware,
oupgradewill work as intended :)