Updating old Toon

If your (rooted) Toon doesn't do what it's supposed to, post here. Dutch allowed / Posten in 't Nederlands toegestaan.

Moderators: marcelr, Toonz, TheHogNL, TerrorSource

Re: Updating old Toon

Postby Knol010 » Tue Apr 07, 2020 8:06 pm

I'm having some trouble updating my toon with the update script.

It returns with the following error

Killing process... took to long!

Prepare failed. Please check the logs at /mnt/data/update/upgrade-qb2.sh.log
Quitting the upgrade. It was a nice try tho...

When I check the script I'm seeing the following

> 2020-04-07 19:41:56 +0100 (pid 16071) upgrade-qb2.sh qb2 Collected errors: backup_files iptables.backup iptables.save passwd.backup update-rooted.sh opkg_conf_load: Could not lock /usr/lib/opkg/lock: Resource temporarily unavailable. 5.25.8 prepare

>> 2020-04-07 19:41:56 +0100 (pid 16071) backup_files
qb-auto-update not running
sh: 5: unknown operand
>> Unknown ACTION arg! Aborting.
>> logKeyValText: key(upgrade-exit-status), value(backup_files-error-unknown-action) and text({"fromVersion":"","toVersion":"errors:"})

How can I fix this? I already tried to force the installation with no luck.
Knol010
Starting Member
Starting Member
 
Posts: 7
Joined: November 2019

Re: Updating old Toon

Postby TheHogNL » Tue Apr 07, 2020 10:08 pm

opkg lock means another opkg process (which is used to update a toon) is running (so from a previous update attempt or even the toon itself).

Try reboot, then update again. And if that fails post the log again.
Member of the Toon Software Collective
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1621
Joined: August 2017

Re: Updating old Toon

Postby Fransb » Fri Sep 11, 2020 2:19 pm

Hello,

I have a very old toon and want to update the software to toon it is now some quby software 1.1.5.
i tried to use the update script but can't get a vpn tunnel

this is the output from sh /root/update-rooted.sh -f


Only fixing files.
creating backup of inittab...
creating backup of chrony.conf...
creating backup of hosts...
creating backup of config_happ_scsync.xml...
cp: can't stat '/mnt/data/qmf/config/config_happ_scsync.xml': No such file or directory
creating backup of qmf_tenant.xml.save ...
cp: can't stat '/HCBv2/etc/qmf_tenant.xml': No such file or directory
mv: can't rename '/root/config_happ_scsync.save': No such file or directory
FIXING: Trying to fix Global.qml now to add all the Toonstore installed apps again.
find: /HCBv2/qml/apps/: No such file or directory
FIXING: Now fixing internet settings app to fake ST_TUNNEL mode.
grep: /HCBv2/qml/apps/internetSettings/InternetSettingsApp.qml: No such file or directory
Modification in InternetSettingsApp.qml is missing. Fixing it now.
sed: /HCBv2/qml/apps/internetSettings/InternetSettingsApp.qml: No such file or directory
FIXING: Now modifying notifications bar to not show any network errors
grep: /qmf/qml/qb/notifications/NotificationBar.qml: No such file or directory
Modification in NotificationBar.qml is missing. Fixing it now.
sed: /qmf/qml/qb/notifications/NotificationBar.qml: No such file or directory
EDITING: Time server, removes unnecessary link to Quby
EDITING: Hosts file, removes unnecessary link to Quby
EDITING: Disable add google DNS on top of resolv.conf
touch: /mnt/persist/udhcpc-skip-prepend-google-pub-dns: No such file or directory
EDITING: disable ovpn connection to quby
EDITING: Activating Toon, enabling ElectricityDisplay and GasDisplay
sed: /qmf/config/config_happ_scsync.xml: No such file or directory
sed: /qmf/config/config_happ_scsync.xml: No such file or directory
sed: /qmf/config/config_happ_scsync.xml: No such file or directory
sed: /qmf/config/config_happ_scsync.xml: No such file or directory
sed: /qmf/config/config_happ_scsync.xml: No such file or directory
sed: /qmf/config/config_happ_scsync.xml: No such file or directory
sed: /qmf/config/config_happ_scsync.xml: No such file or directory
EDITING: removing data gathering by Quby and whitelisting web services
sed: /HCBv2/etc/qmf_tenant.xml: No such file or directory
sed: /HCBv2/etc/qmf_tenant.xml: No such file or directory
sed: /HCBv2/etc/qmf_tenant.xml: No such file or directory
sed: /HCBv2/etc/qmf_release.xml: No such file or directory
EDITING: disabling Eneco subscription feature apps to free up memory on this toon 1
cp: can't stat '/HCBv2/qml/config/TenantSettings.json': No such file or directory
sed: /HCBv2/qml/config/TenantSettings.json: No such file or directory
sed: /HCBv2/qml/config/TenantSettings.json: No such file or directory
sed: /HCBv2/qml/config/TenantSettings.json: No such file or directory
sed: /HCBv2/qml/config/TenantSettings.json: No such file or directory
sed: /HCBv2/qml/config/TenantSettings.json: No such file or directory
sed: /HCBv2/qml/config/TenantSettings.json: No such file or directory
sed: /HCBv2/qml/config/TenantSettings.json: No such file or directory
sed: /HCBv2/qml/config/TenantSettings.json: No such file or directory
sed: /HCBv2/qml/config/TenantSettings.json: No such file or directory
sed: /HCBv2/qml/config/TenantSettings.json: No such file or directory
sed: /HCBv2/qml/config/TenantSettings.json: No such file or directory
sed: /qmf/config/config_happ_scsync.xml: No such file or directory
sed: /qmf/config/config_happ_scsync.xml: No such file or directory
EDITING: disabling KPI and weather happ as these are not necessary on rooted toons
sed: /HCBv2/etc/qmf_hardware.xml: No such file or directory
sed: /HCBv2/etc/qmf_hardware.xml: No such file or directory
sed: /HCBv2/qml/config/TenantSettings.json: No such file or directory
EDITING: disabling samba nmbd on toon 1 as probably it is not necessary
EDITING: download certificate store pem file
sha256sum: can't open '/etc/ssl/certs/ca-certificates.crt': No such file or directory
There is a new version of the Mozilla CA pem file. Downloading it!
sha256sum: can't open '/etc/ssl/certs/ca-certificates.crt.new': No such file or directory
File /mnt/data/qmf/config/config_happ_scsync.xml was modified but result is an empty file! Trying to restore!
cp: can't stat '/mnt/data/qmf/config/config_happ_scsync.xml.save': No such file or directory
Restore of /mnt/data/qmf/config/config_happ_scsync.xml is failed! Result is also empty! Please check this file before rebooting!
File /HCBv2/etc/qmf_tenant.xml was modified but result is an empty file! Trying to restore!
cp: can't stat '/HCBv2/etc/qmf_tenant.xml.save': No such file or directory
Restore of /HCBv2/etc/qmf_tenant.xml is failed! Result is also empty! Please check this file before rebooting!
Finished fixing files!

What can i do something or is it garbage.

Regards frans
Fransb
Starting Member
Starting Member
 
Posts: 11
Joined: September 2019

Re: Updating old Toon

Postby TheHogNL » Sun Sep 13, 2020 9:24 pm

Fransb wrote:Hello,

I have a very old toon and want to update the software to toon it is now some quby software 1.1.5.
i tried to use the update script but can't get a vpn tunnel

this is the output from sh /root/update-rooted.sh -f

What can i do something or is it garbage.

Regards frans



-f is only for fixing after an update. And -f isn't compatible with too old firmwares, sorry for that :D

So you say you can't get the VPN working? Then you are done (or try to get a working vpn key from another toon).
Member of the Toon Software Collective
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1621
Joined: August 2017

Re: Updating old Toon

Postby Fransb » Mon Sep 14, 2020 11:12 am

Thanks TheHog

I think that it is garbage it was before toon exist.

I have a working toon also can i copy the key?

regards,

fransb
Fransb
Starting Member
Starting Member
 
Posts: 11
Joined: September 2019

Re: Updating old Toon

Postby TheHogNL » Mon Sep 14, 2020 1:18 pm

Fransb wrote:Thanks TheHog

I think that it is garbage it was before toon exist.

I have a working toon also can i copy the key?

regards,

fransb


Yes. You can get the /etc/openvpn/eneco-001-*.tar.gz file from the working toon and unpack that into the old toon (maybe backup the old toon openvpn key/config). It should work after that.
Member of the Toon Software Collective
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1621
Joined: August 2017

Re: Updating old Toon

Postby TerrorSource » Mon Sep 14, 2020 1:41 pm

Fransb wrote:Thanks TheHog

I think that it is garbage it was before toon exist.

I have a working toon also can i copy the key?

regards,

fransb


Does the Toon has a very low serial number? like eneco-001-000xxx ? if so, send me a PM or an email.
I might be interested in that Toon and we might be able to do a trade for one with a newer firmware.
TerrorSource
Member
Member
 
Posts: 436
Joined: May 2017

Re: Updating old Toon

Postby Fransb » Mon Sep 14, 2020 2:15 pm

Thanks

The vpn tunnel is working.
Only the update script doesn't work
This is in the log file:

>> Hotfix for writing System Time to RTC
Hardware Clock before: Mon Sep 14 12:46:34 2020 0.000000 seconds
Hardware Clock after : Mon Sep 14 12:46:35 2020 0.000000 seconds
Failed retrieving 'http://feed.hae.int/feeds/qb2/lgw/5.0.6/SystemFeed', trying again verbosely:
--2020-09-14 12:46:35-- http://feed.hae.int/feeds/qb2/lgw/5.0.6/SystemFeed
Resolving feed.hae.int... 172.18.16.1
Connecting to feed.hae.int|172.18.16.1|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-09-14 12:46:35 ERROR 404: Not Found.

>> logKeyValText: key(upgrade-exit-status), value(prepare-error-dl-afv) and text({"fromVersion":"1.1.5","toVersion":"5.0.6"})

>> 2020-09-14 12:46:36 +0000 (pid 4000) prepare-error-dl-afv 'AFV download failed Maybe sync or non-existing?'

>> 2020-09-14 12:52:23 +0000 (pid 4611) upgrade-qb2.sh qb2 lgw 1.9.10 prepare

>> 2020-09-14 12:52:23 +0000 (pid 4611) prepare
qb-auto-update not running
>> 2020-09-14 12:52:24 +0000 (pid 4611) preparing
>> logKeyValText: key(upgrade-prep-info), value(upgrade-prep-start) and text(afv=qb2/lgw/1.9.10)

>> Hotfix for writing System Time to RTC
Hardware Clock before: Mon Sep 14 12:52:23 2020 0.000000 seconds
Hardware Clock after : Mon Sep 14 12:52:24 2020 0.000000 seconds
Failed retrieving 'http://feed.hae.int/feeds/qb2/lgw/1.9.10/SystemFeed', trying again verbosely:
--2020-09-14 12:52:25-- http://feed.hae.int/feeds/qb2/lgw/1.9.10/SystemFeed
Resolving feed.hae.int... 172.21.112.1
Connecting to feed.hae.int|172.21.112.1|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-09-14 12:52:25 ERROR 404: Not Found.

>> logKeyValText: key(upgrade-exit-status), value(prepare-error-dl-afv) and text({"fromVersion":"1.1.5","toVersion":"1.9.10"})

>> 2020-09-14 12:52:25 +0000 (pid 4611) prepare-error-dl-afv 'AFV download failed Maybe sync or non-existing?'


I used 5.0.6 and 1.9.10.

Regards

Frans B
Fransb
Starting Member
Starting Member
 
Posts: 11
Joined: September 2019

Re: Updating old Toon

Postby Fransb » Mon Sep 14, 2020 2:41 pm

The serial number is different gb2-001-0412
I believe it was an old test project bij ziggo for a security display.
Let me know if you have interest.

Regards Frans
Fransb
Starting Member
Starting Member
 
Posts: 11
Joined: September 2019

Re: Updating old Toon

Postby TheHogNL » Mon Sep 14, 2020 2:45 pm

Fransb wrote:Thanks

The vpn tunnel is working.
Only the update script doesn't work
This is in the log file:

...

I used 5.0.6 and 1.9.10.

Regards

Frans B


So this is an LGW type and not ENE (the old toon before version 4.6) or UNI (the current toon software).
Eneco's update script can not update LGW to ENE or UNI.
You can however use the recovery scripts to recover the toon to a more recent version and update from there. https://github.com/ToonSoftwareCollective/ToonRecovery
Member of the Toon Software Collective
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1621
Joined: August 2017

Re: Updating old Toon

Postby TheHogNL » Mon Sep 14, 2020 2:49 pm

Looking in the old code it seems that LGW 1.1.5 is a demo for alarm in the house (camera support etc).
Member of the Toon Software Collective
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1621
Joined: August 2017

Re: Updating old Toon

Postby Fransb » Tue Sep 15, 2020 3:42 pm

Thanks a Lot

I have recovered the toon whit new firmware 5.0.9 and it is working again. :D

Best Regards

FransB
Fransb
Starting Member
Starting Member
 
Posts: 11
Joined: September 2019

Previous

Return to Toon issues and support (Nederlands toegestaan)

Who is online

Users browsing this forum: No registered users and 1 guest