Toon firmware - update script

Forum about the Toon firmware, and its extensions

Moderators: marcelr, TheHogNL, TerrorSource, Toonz

Re: Toon firmware - update script

Postby jozg » Mon Jul 08, 2019 1:19 pm

Hello Maiden,

Even deleting all custom apps did not work.
I only have 28.0mb free.

How many do i need for the 5.0.4 update?.

Regards
jozg
Starting Member
Starting Member
 
Posts: 47
Joined: November 2017

Re: Toon firmware - update script

Postby TheHogNL » Mon Jul 08, 2019 1:23 pm

Check /qmf/log (on some toon which are running for years these logs are big).
But normally 5.0.4 should install fine (although it gets close to full disk during update). Not sure what the mininum free space is.
Member of the Toon Software Collective
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1222
Joined: August 2017

Re: Toon firmware - update script

Postby jozg » Mon Jul 08, 2019 1:35 pm

Oh oh.

I just used opkg remove --autoremove '*' and now it crashed.
Is there a way to recover the complete toon?
I think serial link will work, i hope.

thanks
jozg
Starting Member
Starting Member
 
Posts: 47
Joined: November 2017

Re: Toon firmware - update script

Postby mAiden » Mon Jul 08, 2019 2:51 pm

jozg wrote:Oh oh.

I just used opkg remove --autoremove '*' and now it crashed.
Is there a way to recover the complete toon?
I think serial link will work, i hope.

thanks


Then you are now I think ...

Your only hope is to fully restore Toon with TFTP and NFS, if you know what that means?
Perhaps TheHogNL is so sweet to explain things to you .. I'm not going to share things if I'm not sure if i can :)
You will have to restore the entire rootfs, hoping that you can still backup your VPN for that.
Can you still get there with SSH?
mAiden
Member
Member
 
Posts: 258
Joined: July 2017

Re: Toon firmware - update script

Postby TheHogNL » Mon Jul 08, 2019 3:04 pm

A short time ago I released Toon Recovery just for this :) https://www.domoticaforum.eu/viewtopic.php?f=95&t=12462

(btw: I moved your messages after this to this topic for toon recoverY0
Member of the Toon Software Collective
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1222
Joined: August 2017

Re: Toon firmware - update script

Postby bvlet » Mon Jul 29, 2019 11:35 am

Tonight I tried updating Toon from 5.7.7. to the new version. It looked as if this was going allright (as usual), up to this point:

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% ..

Then everything stalled, and after a while Toon restarted.
Now when I try to update again I get this message:

Your Toon already tried downloading version Collected errors: before. Need to force this version!
iptables: Chain already exists.
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.
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...


I checked if there was a problem with diskspace, but I don't think so:

eneco:~# df -h
Filesystem Size Used Available Use% Mounted on
ubi0:rootfs 103.3M 75.4M 27.8M 73% /
tmpfs 61.6M 512.0K 61.1M 1% /var/volatile


So then I checked the mentioned log. I see a lot of signature errors and download fails, but I can't seem to understand what's the problem.
I attached the last part of the log (only today).

Can anyone point me in the right direction?
Attachments
TOON_log_290719.zip
(1.18 KiB) Downloaded 13 times
bvlet
Starting Member
Starting Member
 
Posts: 8
Joined: March 2019

Re: Toon firmware - update script

Postby TheHogNL » Mon Jul 29, 2019 3:20 pm

something going wrong with the current firmware detection:

Your Toon already tried downloading version Collected errors: before. Need to force this version!


Please send me the output of:

Code: Select all
opkg list-installed base-qb2*


and

Code: Select all
opkg list base-qb2*
Member of the Toon Software Collective
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1222
Joined: August 2017

Re: Toon firmware - update script

Postby bvlet » Mon Jul 29, 2019 8:56 pm

OK, here it is:


eneco-001-378442:~# opkg list-installed base-qb2*
base-qb2-uni - 5.5.7-0

eneco-001-378442:~# opkg list base-qb2*
base-qb2-uni - 5.5.7-0
eneco-001-378442:~#
bvlet
Starting Member
Starting Member
 
Posts: 8
Joined: March 2019

Re: Toon firmware - update script

Postby TheHogNL » Mon Jul 29, 2019 11:00 pm

Hmm that looks normal. Wasn't expecting that.
Did you reboot in the meanwhile? And did you retry the update again?

If it still doesn't work send me your mobile number in a PM and I will help you with this tomorrow around 20:00. I want to know where that weird error is coming from to fix the script.
Member of the Toon Software Collective
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1222
Joined: August 2017

Re: Toon firmware - update script

Postby bvlet » Tue Jul 30, 2019 12:15 am

OK, yesterday I rebooted three times with no luck. Today I tried it again with no rebooting and it still didn't work.
then I rebooted (shutdown -r) and I tried it again.

Surprise: It works! The script started all over again (choosing version etc.) and it finished without any problems.

I'm very happy that the problem is solved now, but unfortunately I can't help you fix the strange bug from yesterday...

Thanks for your help anyway, I'm very happy with the script!

Regards,
Bart
bvlet
Starting Member
Starting Member
 
Posts: 8
Joined: March 2019

Re: Toon firmware - update script

Postby TheHogNL » Tue Jul 30, 2019 1:07 pm

OK still weird :-) Glad is worked now
Member of the Toon Software Collective
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1222
Joined: August 2017

Re: Toon firmware - update script

Postby abb » Sun Sep 01, 2019 9:21 pm

Hi, I just tried to update my rooted Toon but the script mentions that Eneco changed the updatescript... I choose to opt out of the update procedure since I'm not aware of the risk when I force the script to proceed.

eneco-001-137595:~# ./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 necessary.
Please be advised that running this script is at your own risk!

Version: 3.991 - TheHogNL & TerrorSource & yjb - 1-8-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

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

Your Toon already tried downloading version 5.9.6 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.
Warning: upgrade script from Eneco server is changed. Do you want to continue downloading the files (if not sure, type no and report in the forums)?
abb
Starting Member
Starting Member
 
Posts: 3
Joined: September 2019

Re: Toon firmware - update script

Postby TheHogNL » Tue Sep 03, 2019 7:37 pm

abb wrote:Hi, I just tried to update my rooted Toon but the script mentions that Eneco changed the updatescript... I choose to opt out of the update procedure since I'm not aware of the risk when I force the script to proceed.


Thanks. I just checked the new eneco script and it is ok. I updated my script to allow this in version 3.992 of the script.
Member of the Toon Software Collective
User avatar
TheHogNL
Forum Moderator
Forum Moderator
 
Posts: 1222
Joined: August 2017

Re: Toon firmware - update script

Postby CrumNL » Sun Sep 08, 2019 12:52 am

TheHogNL wrote:/etc/passwd and /etc/group are files and should NEVER be links to busybox
you need to find out why it want to link it anyways


After some trial and error sessions in the last months when I had time, I figured out that this issue is resolved by
Code: Select all
opkg remove busybox.passwd

and running the updatescript with -f.

It is possible that when I rooted toon a year ago or so, that I installed a wrong/different busybox version.
Can't remember what I did and my notes are gone.

Toon functions again but it doesn't yet detect the smart meter so I'm not done yet with it I guess.
CrumNL
Starting Member
Starting Member
 
Posts: 17
Joined: March 2019

Re: Toon firmware - update script

Postby abb » Sun Sep 08, 2019 4:10 pm

Thanks! At the mean time I have checked the logging from previous firmware installs and I noticed thar there was an issue with available space. The amount of space requires was larger then the amount of space available. Looks like this message was also there In my previous unrooted firmware upgrade. Any tops on how to handle this?

Sent from my SM-G950F using Tapatalk
abb
Starting Member
Starting Member
 
Posts: 3
Joined: September 2019

PreviousNext

Return to Toon Firmware

Who is online

Users browsing this forum: No registered users and 1 guest

cron