Page 1 of 2

Updating old Toon

Posted: Fri May 17, 2019 3:53 pm
by felixus
Hi,
Someone gave me an old Toon to use because they know I like to root them etc..
Rooting with the script was no problem, however, when trying to use the update script I keep getting following error messages:
Even the first time trying to upgrade I already received the message that it already tried downloading a version befor (But as far as I know the person I got the Toon from never had it connected to wifi).
Would love to hear if you have any ideas


Your Toon already tried downloading version Collected errors: before. Need to force this version!
Now starting the VPN tunnel and waiting for it to be alive and configured...
Now starting the VPN tunnel and waiting for it to be alive and configured...
Tunnel is alive and configured.
Upgrade script downloaded. We need to download the upgrade files first. No upgrade is done yet. Do you want me to download the files (yes) or quit (anything else)?
yes
Starting the upgrade prepare option which downloads all necessary files. No upgrade is done yet.
cat: can't open '/HCBv2/env': No such file or directory
Progress: 51% ..
Prepare failed. Please check the logs at /HCBv2/tmp/opkg-cache/upgrade-qb2.sh.log
Quitting the upgrade. It was a nice try tho...


In log:


>> 2019-05-17 13:40:28 +0000 (pid 7996) upgrade-qb2.sh qb2 Collected errors: iptables.backup iptables.save passwd.backup update-rooted.sh opkg_conf_load:

>> 2019-05-17 13:40:28 +0000 (pid 7996) iptables.backup
>> Unknown ACTION arg! Aborting.
>> logKeyValText: key(upgrade-exit-status), value(iptables.backup-error-unknown-action) and text({"fromVersion":"","toVersion":"errors:"})
>> 2019-05-17 13:40:29 +0000 (pid 7996) iptables.backup-error-unknown-action 'Unknown ACTION arg! Aborting.'

Re: Updating old Toon

Posted: Fri May 17, 2019 7:35 pm
by TheHogNL
Can you do a

Code: Select all

opkg list base-qb2*
and post the output?

Somehow the script is mixing up some internal variables...

Re: Updating old Toon

Posted: Fri May 17, 2019 9:29 pm
by felixus
This is the output from opkg list base-qb2*

base-qb2-ene - 4.7.23-1147-0 - BASEPKG base-qb2-ene r1147 -- contains base files needed for this project + dependencies
base-qb2-ene - 2.8.16-753-0
base-qb2-ene - 2.7.22-730-0

Re: Updating old Toon

Posted: Fri May 17, 2019 10:01 pm
by TheHogNL
Ok that means that the script wants to update to 4.7.23 first (because your Toon is already halfway towards updating to this version). But somehow it is mixing up and messing with the variables.
It shows "version: Collected erros:" instead of "version 4.7.23".

Try to run

Code: Select all

update-rooted.sh -v 4.72.3

Re: Updating old Toon

Posted: Sat May 18, 2019 7:16 pm
by felixus
Thanks for your ideas,
However, they did not work. I tried forcing the upgrade, but after the download of version 4.7.23 it was waiting a really long time on status "Waiting to finish, this can take a minute or 2"
Afterwards I got the same error.

Forcing version: 4.7.23
Now starting the VPN tunnel and waiting for it to be alive and configured...
Now starting the VPN tunnel and waiting for it to be alive and configured...
Tunnel is alive and configured.
Upgrade script downloaded. We need to download the upgrade files first. No upgrade is done yet. Do you want me to download the files (yes) or quit (anything else)?
yes
Starting the upgrade prepare option which downloads all necessary files. No upgrade is done yet.
cat: can't open '/HCBv2/env': No such file or directory
Killing process... took to long!s takes a minute or two .

Prepare failed. Please check the logs at /HCBv2/tmp/opkg-cache/upgrade-qb2.sh.log
Quitting the upgrade. It was a nice try tho...

Re: Updating old Toon

Posted: Sun May 19, 2019 8:49 am
by TheHogNL
Now check that log file: /HCBv2/tmp/opkg-cache/upgrade-qb2.sh.log

Re: Updating old Toon

Posted: Wed May 29, 2019 9:13 pm
by Daniel
I also have an problem whit old Toon, wont boot after update only 2 white dots light up on the red TOON screen.

try the update script an -f but no succes.

Your Toon already tried downloading version 4.22.7 before. Need to force this version!
Now starting the VPN tunnel and waiting for it to be alive and configured...
Now starting the VPN tunnel and waiting for it to be alive and configured...
Now starting the VPN tunnel and waiting for it to be alive and configured...
Now starting the VPN tunnel and waiting for it to be alive and configured...
Now starting the VPN tunnel and waiting for it to be alive and configured...
Now starting the VPN tunnel and waiting for it to be alive and configured...
Could not enable VPN in a normal reasonable time!
DEBUG information:
192.168.178.0/24 dev eth0 scope link src 192.168.178.130
172.25.112.0/20 dev tap0 scope link src 172.25.123.235
172.25.112.0/20 via 172.25.112.1 dev tap0 metric 1024
default via 192.168.178.1 dev eth0 metric 10
# <persistent /etc/hosts content can be added to /etc/hosts.template file>
127.0.0.1 localhost.localdomain localhost eneco-001-375169
172.27.32.1 feed.hae.int feed
END DEBUG information
Quitting the upgrade. It was a nice try tho…

eneco-001-375169:~# opkg list base-qb2*
base-qb2-uni - 4.22.7-1273-0 - BASEPKG base-qb2-uni r1273 -- contains base files needed for this project + dependencies

is there a list to check al the folders/files?

Re: Updating old Toon

Posted: Thu May 30, 2019 8:59 am
by TheHogNL
Daniel wrote:I also have an problem whit old Toon, wont boot after update only 2 white dots light up on the red TOON screen.

Your Toon already tried downloading version 4.22.7 before. Need to force this version!

....

eneco-001-375169:~# opkg list base-qb2*
base-qb2-uni - 4.22.7-1273-0 - BASEPKG base-qb2-uni r1273 -- contains base files needed for this project + dependencies

is there a list to check al the folders/files?
You toon tried to install 4.22.7 before (on what version is it now?) and failed. Now it is stuck in updating. Somehow the /etc/hosts file isn't updated after the vpn has started. Some old Toon's do have this problem.

I have just uploaded version 3.90 of the script which works better in this case. Wanted to change this a long time but now I finally did this. So please try again (with a updated version of the script).

Re: Updating old Toon

Posted: Thu May 30, 2019 10:00 am
by Daniel
thanks : i try the new script. 3.90

Your Toon already tried downloading version 4.22.7 before. Need to force this version!
Tunnel is alive and configured.
Upgrade script downloaded. We need to download the upgrade files first. No upgrade is done yet. Do you want me to download the files (yes) or quit (anything else)?
yes
Starting the upgrade prepare option which downloads all necessary files. No upgrade is done yet.
Progress: 0% .
Prepare failed. Please check the logs at /mnt/data/update/upgrade-qb2.sh.log
Quitting the upgrade. It was a nice try tho…

eneco-001-375169:~# /mnt/data/update/upgrade-qb2.sh.log
-sh: /mnt/data/update/upgrade-qb2.sh.log: Permission denied

Whit WinSCP :

>> 2019-05-30 07:49:53 +0000 (pid 1478) upgrade-qb2.sh qb2 4.22.7 prepare

>> 2019-05-30 07:49:53 +0000 (pid 1478)
>> Unknown ACTION arg! Aborting.
>> logKeyValText: key(upgrade-exit-status), value(-error-unknown-action) and text({"fromVersion":"","toVersion":"prepare"})

>> 2019-05-30 07:49:54 +0000 (pid 1478) -error-unknown-action 'Unknown ACTION arg! Aborting.'

Re: Updating old Toon

Posted: Thu May 30, 2019 10:46 am
by TheHogNL
What is the output of

Code: Select all

opkg list-installed base-*
Or try version 3.91 which contains some debugging about what I suspect what is gonig wrong.

Re: Updating old Toon

Posted: Thu May 30, 2019 11:22 am
by Daniel
eneco-001-375169:~# sh /root/update-rooted.sh
================================================================================ ================================================================================ ===
Welcome to the rooted Toon upgrade script. This script will try to upgrade your Toon using your original connection with Eneco. It will start the VPN if necessa ry.
Please be advised that running this script is at your own risk!

Version: 3.91 - TheHogNL & TerrorSource & yjb - 30-5-2019

If you like the update script for rooted toons you can support me. Any donation is welcome and helps me developing the script even more.
https://paypal.me/pools/c/8bU3eQp1Jt

================================================================================ ================================================================================ ===

Could not determine you current running flavour.
DEBUG:
Quitting the upgrade. It was a nice try tho…


eneco-001-375169:~# opkg list-installed base-*
base-files - 3.0.14-r100
base-passwd - 3.5.20-r1

Re: Updating old Toon

Posted: Thu May 30, 2019 11:57 am
by TheHogNL
Ok the Toon is missing a crucial file. Unknown which version it is running now.

Try new version 3.92 which takes the flavour from the ready to install file (base-qb2-uni 4.22.7).

Re: Updating old Toon

Posted: Thu May 30, 2019 12:37 pm
by Daniel
I made a small donation, treat yourself a beer!

2019-05-30 07:49:53 +0000 (pid 1478) upgrade-qb2.sh qb2 4.22.7 prepare

>> 2019-05-30 07:49:53 +0000 (pid 1478)
>> Unknown ACTION arg! Aborting.
>> logKeyValText: key(upgrade-exit-status), value(-error-unknown-action) and text({"fromVersion":"","toVersion":"prepare"})

>> 2019-05-30 07:49:54 +0000 (pid 1478) -error-unknown-action 'Unknown ACTION arg! Aborting.'

>> 2019-05-30 10:26:32 +0000 (pid 3753) upgrade-qb2.sh qb2 uni 4.22.7 prepare

>> 2019-05-30 10:26:32 +0000 (pid 3753) prepare
>> 2019-05-30 10:26:32 +0000 (pid 3753) preparing
>> logKeyValText: key(upgrade-prep-info), value(upgrade-prep-start) and text(afv=qb2/uni/4.22.7)

>> Hotfix for writing System Time to RTC
Hardware Clock before: Thu May 30 10:26:27 2019 0.000000 seconds
Hardware Clock after : Thu May 30 10:26:32 2019 0.000000 seconds
>> configured opkg feeds:
src/gz base http://feed.hae.orig/feeds/qb2/uni/4.22.7
src/gz oebase http://feed.hae.orig/feeds/qb2/oe/2.6.3 ... 17-splash2
src/gz oekern http://feed.hae.orig/feeds/qb2/oe/2.6.36-R10-h27-no6
>> opkg_dl.update: opkg --cache /mnt/data/update --download-only update # try 1/5
>> opkg_dl.update.supervisor: monitoring /mnt/data/update for threshold 5000
Downloading http://feed.hae.orig/feeds/qb2/uni/4.22.7/Packages.gz.
Inflating http://feed.hae.orig/feeds/qb2/uni/4.22.7/Packages.gz.
Updated list of available packages in /var/lib/opkg/base.
Downloading http://feed.hae.orig/feeds/qb2/uni/4.22.7/Packages.sig.
Signature check passed.
Downloading http://feed.hae.orig/feeds/qb2/oe/2.6.3 ... ackages.gz.
Inflating http://feed.hae.orig/feeds/qb2/oe/2.6.3 ... ackages.gz.
Updated list of available packages in /var/lib/opkg/oebase.
Downloading http://feed.hae.orig/feeds/qb2/oe/2.6.3 ... ckages.sig.
Signature check passed.
Downloading http://feed.hae.orig/feeds/qb2/oe/2.6.3 ... ackages.gz.
Inflating http://feed.hae.orig/feeds/qb2/oe/2.6.3 ... ackages.gz.
Updated list of available packages in /var/lib/opkg/oekern.
Downloading http://feed.hae.orig/feeds/qb2/oe/2.6.3 ... ckages.sig.
Signature check passed.
> opkg_dl.update: Exit code: 0
>> Unknown old flavor! Aborting.
>> logKeyValText: key(upgrade-exit-status), value(prepare-error-unknown-old-flavor) and text({"fromVersion":"","toVersion":"4.22.7"})

>> 2019-05-30 10:26:37 +0000 (pid 3753) prepare-error-unknown-old-flavor 'Unknown old flavor ! Aborting.'
> opkg_dl.update.supervisor: Exit

Re: Updating old Toon

Posted: Thu May 30, 2019 1:07 pm
by TheHogNL
Thanks for the donation :-)

Ok now the real update script from Eneco has problems with finding the old flavour also :-)

Please run this to install the missing file

Code: Select all

opkg install http://qutility.nl/base-qb2-uni_4.22.7-1273-0_qb2.ipk
and after that try another update

Re: Updating old Toon

Posted: Thu May 30, 2019 1:44 pm
by Daniel
Yes that`s the trick! :D

Thanks for help!