Toon firmware - update script

Forum about the Toon firmware, and its extensions

Moderator: marcelr

Re: Toon firmware - update script

Postby TheHogNL » Mon May 14, 2018 6:22 pm

ArieKanarie wrote:
TheHogNL wrote:What is the output of the script?
You mean the output during the process, or can I find a logfile somewhere?

During the process.
Member of the Toon Software Collective
User avatar
TheHogNL
Advanced Member
Advanced Member
 
Posts: 554
Joined: August 2017

Re: Toon firmware - update script

Postby ArieKanarie » Tue May 15, 2018 8:10 am

See https://pastebin.com/raw/hVG6kK03

Could it be that the problem is in here...?
Code: Select all
Warning: upgrade script from source server is changed. Do you want to continue downloading the files (if not sure, type no and report in the forums)?

Because the preparation and upgrade both are ready in 1 second (and stuck at 0%)

Code: Select all
Starting the upgrade prepare option which downloads all necessary files. No upgrade is done yet.
Progress: 0% .
Done preparing.
Are your sure you want to upgrade to 4.10.6 (yes)? This is the last moment you can stop the upgrade. Answer with 'yes' will start the upgrade.
yes
Starting the upgrade now! Just wait a while... It can take a few minutes.
Progress: 0%
Upgrade done!
ArieKanarie
Starting Member
Starting Member
 
Posts: 8
Joined: May 2018

Re: Toon firmware - update script

Postby TheHogNL » Wed May 16, 2018 11:39 am

No I don't think that the changed script is causing this.

Could you check/show me the /mnt/data/update/upgrade-qb2.sh.log file?
Member of the Toon Software Collective
User avatar
TheHogNL
Advanced Member
Advanced Member
 
Posts: 554
Joined: August 2017

Re: Toon firmware - update script

Postby ArieKanarie » Wed May 16, 2018 11:45 am

I Could, but I don't have a directory "data" in /mnt

To be precise, the dir /mnt is completely empty.
ArieKanarie
Starting Member
Starting Member
 
Posts: 8
Joined: May 2018

Re: Toon firmware - update script

Postby TheHogNL » Wed May 16, 2018 11:13 pm

ArieKanarie wrote:I Could, but I don't have a directory "data" in /mnt

To be precise, the dir /mnt is completely empty.


Owh then it is located in the old /HCBv2/tmp/opkg-cache location
Member of the Toon Software Collective
User avatar
TheHogNL
Advanced Member
Advanced Member
 
Posts: 554
Joined: August 2017

Re: Toon firmware - update script

Postby ArieKanarie » Thu May 17, 2018 9:18 am

Code: Select all
>> deleting all in /HCBv2/tmp/opkg-cache
>> (this may give some errors, no problem here ...)
rm: can't remove '/HCBv2/tmp/opkg-cache/*.ipk': No such file or directory
rm: can't remove '/HCBv2/tmp/opkg-cache/*.sh.sig': No such file or directory
>> 2018-05-15 06:33:19 +0000 (pid 25506), status = executed
>> Restarting qt-gui and hcb_config ...
>> 2018-05-15 06:40:25 +0000 (pid 901), status = prepare

>> Welcome to the ToonStore updater,
>> brought to you by the Toonroot Software Collective (TSC)
>>
>> 2018-05-15 06:40:25 +0000 (pid 901) upgrade-qb2.sh qb2 ene 4.10.6 prepare

>> 2018-05-15 06:40:25 +0000 (pid 901), status = preparing
>> Firmware version: 3.2.18, build 962, rev 0.
>> System load     : 0.51
>> Free RAM        : 2148K
>> Flushing file system buffers and cache ...
>> Free RAM now    : 8180K
>> Hotfix for writing System Time to RTC
Hardware Clock before: Tue May 15 06:40:26 2018  0.000000 seconds
Hardware Clock after : Tue May 15 06:40:26 2018  0.000000 seconds
rm: can't remove '/var/lib/opkg/tsc*': No such file or directory
>> no packages to process, exiting ..
>> 2018-05-15 06:41:02 +0000 (pid 1063), status = execute
>> 2018-05-15 06:41:02 +0000 (pid 1063), status = executing
>> reinstating cache handling (default 0)
>> deleting /tmp/install_status
>> deleting all in /HCBv2/tmp/opkg-cache
>> (this may give some errors, no problem here ...)
rm: can't remove '/HCBv2/tmp/opkg-cache/*.ipk': No such file or directory
rm: can't remove '/HCBv2/tmp/opkg-cache/*.sh.sig': No such file or directory
>> 2018-05-15 06:41:02 +0000 (pid 1063), status = executed
>> Restarting qt-gui and hcb_config ...
>> 2018-05-15 07:00:25 +0000 (pid 2136), status = prepare

>> Welcome to the ToonStore updater,
>> brought to you by the Toonroot Software Collective (TSC)
>>
>> 2018-05-15 07:00:25 +0000 (pid 2136) upgrade-qb2.sh qb2 ene 4.10.6 prepare

>> 2018-05-15 07:00:25 +0000 (pid 2136), status = preparing
>> Firmware version: 3.2.18, build 962, rev 0.
>> System load     :
>> Free RAM        : 1988K
>> Flushing file system buffers and cache ...
>> Free RAM now    : 9736K
>> Hotfix for writing System Time to RTC
Hardware Clock before: Tue May 15 07:00:27 2018  0.000000 seconds
Hardware Clock after : Tue May 15 07:00:27 2018  0.000000 seconds
rm: can't remove '/var/lib/opkg/tsc*': No such file or directory
>> no packages to process, exiting ..
>> 2018-05-15 07:00:31 +0000 (pid 2242), status = execute
>> 2018-05-15 07:00:31 +0000 (pid 2242), status = executing
>> reinstating cache handling (default 0)
>> deleting /tmp/install_status
>> deleting all in /HCBv2/tmp/opkg-cache
>> (this may give some errors, no problem here ...)
rm: can't remove '/HCBv2/tmp/opkg-cache/*.ipk': No such file or directory
rm: can't remove '/HCBv2/tmp/opkg-cache/*.sh.sig': No such file or directory
>> 2018-05-15 07:00:31 +0000 (pid 2242), status = executed
>> Restarting qt-gui and hcb_config ...
- upgrade-qb2.sh.log 482/482 100%
ArieKanarie
Starting Member
Starting Member
 
Posts: 8
Joined: May 2018

Re: Toon firmware - update script

Postby Toonz » Thu May 17, 2018 3:30 pm

could be that ToonStore is already installed earlier, in that case opkg skips installation.
Can you try 'opkg remove toonstore' first and then run the updater again?
member of the Toon Software Collective
User avatar
Toonz
Advanced Member
Advanced Member
 
Posts: 807
Joined: December 2016

Re: Toon firmware - update script

Postby ArieKanarie » Thu May 17, 2018 3:53 pm

Removed as you said.

Now I get:
Code: Select all
Which version do you want to upgrade to?
4.10.6
Alright, I will try to upgrade to 4.10.6
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.
Could not download the upgrade script from the source.
Quitting the upgrade. It was a nice try tho...


Damn post moderation! :D
ArieKanarie
Starting Member
Starting Member
 
Posts: 8
Joined: May 2018

Re: Toon firmware - update script

Postby TheHogNL » Thu May 17, 2018 9:08 pm

I think your /etc/hosts file is broken.
Normally, if the VPN is started, the host entry for 'feed.hae.int' will be added in there but it is not working for you.
Please post the contents of the /etc/hosts file
Member of the Toon Software Collective
User avatar
TheHogNL
Advanced Member
Advanced Member
 
Posts: 554
Joined: August 2017

Re: Toon firmware - update script

Postby Ierlandfan » Thu May 17, 2018 9:53 pm

Just reboot to make sure.
Then do a "ps -w |grep openvpn" to see if openvpn is started. If yes..
Then try "opkg update" It should give you a lot of output.
Don't worry. That command doesn't do anything. It's just checking if the list of new packages can be downloaded.
If it stalls or says something in the line that says "failed", then post back.
If above fails you can try to manually enable openvpn by issuing
"/usr/sbin/openvpn --config /etc/openvpn/vpn.conf --verb 0"
Then try "opkg update". If it stalls or says something in the line that says "failed", then post back.
Ierlandfan
Member
Member
 
Posts: 130
Joined: October 2013

Re: Toon firmware - update script

Postby TheHogNL » Fri May 18, 2018 7:07 am

Ierlandfan wrote:If above fails you can try to manually enable openvpn by issuing
"/usr/sbin/openvpn --config /etc/openvpn/vpn.conf --verb 0"
Then try "opkg update". If it stalls or says something in the line that says "failed", then post back.


I would not start the openvpn manually (without the upgrade script). This will allow your Toon to connect to the servicecenter and therefore overwrite the scsync.xml file which contains your subscription etc. You need to restore those settings afterwards again then.

I'm pretty sure his /etc/hosts file is wrong. I have seen multiple old versions of toon not updating the /etc/hosts file correctly.
Member of the Toon Software Collective
User avatar
TheHogNL
Advanced Member
Advanced Member
 
Posts: 554
Joined: August 2017

Re: Toon firmware - update script

Postby ArieKanarie » Fri May 18, 2018 7:16 am

TheHogNL wrote:I think your /etc/hosts file is broken.
Normally, if the VPN is started, the host entry for 'feed.hae.int' will be added in there but it is not working for you.
Please post the contents of the /etc/hosts file

I have had troubles with the hosts file, I was sure I've already posted it somewhere (here or domoticz forum) but can't find it back.

The problem was that the hosts file was changed everytime with the known entries, but then all on one line, like:
Code: Select all
# <persistent /etc/hosts content from /etc/hosts.template file>127.0.0.1 ping.quby.nl127.0.0.1             feed.hae.int            feed

One of the reasons I wanted to do a upgrade.
My current hosts file is:
Code: Select all
# <persistent /etc/hosts content from /etc/hosts.template file>
127.0.0.1 ping.quby.nl
127.0.0.1             feed.hae.int            feed
# </persistent /etc/hosts content from /etc/hosts.template file>
127.0.0.1               localhost.localdomain           localhost
172.19.96.1             feed.hae.int            feed

So, with double entries, and the quby entry here? (If I am not mistaken that one should be in hosts.template?)

Just removed the upper part, try the upgrade again, but the hosts file is now again the same with double entries.
ArieKanarie
Starting Member
Starting Member
 
Posts: 8
Joined: May 2018

Re: Toon firmware - update script

Postby TheHogNL » Fri May 18, 2018 7:35 am

I'll contact you in a PM
Member of the Toon Software Collective
User avatar
TheHogNL
Advanced Member
Advanced Member
 
Posts: 554
Joined: August 2017

Re: Toon firmware - update script

Postby TheHogNL » Fri May 18, 2018 9:58 am

His old version had a problem with the hosts.template file. Once corrected the updates went fine.
Member of the Toon Software Collective
User avatar
TheHogNL
Advanced Member
Advanced Member
 
Posts: 554
Joined: August 2017

Re: Toon firmware - update script

Postby ArieKanarie » Fri May 18, 2018 4:12 pm

Thanks for the help.

Now going to dive into the vnc adventure. 8)
ArieKanarie
Starting Member
Starting Member
 
Posts: 8
Joined: May 2018

PreviousNext

Return to Toon Firmware

Who is online

Users browsing this forum: No registered users and 0 guests