Page 10 of 44

Re: Toon firmware - update script

Posted: Mon May 14, 2018 7:22 pm
by TheHogNL
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.

Re: Toon firmware - update script

Posted: Tue May 15, 2018 9:10 am
by ArieKanarie
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!

Re: Toon firmware - update script

Posted: Wed May 16, 2018 12:39 pm
by TheHogNL
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?

Re: Toon firmware - update script

Posted: Wed May 16, 2018 12:45 pm
by ArieKanarie
I Could, but I don't have a directory "data" in /mnt

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

Re: Toon firmware - update script

Posted: Thu May 17, 2018 12:13 am
by TheHogNL
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

Re: Toon firmware - update script

Posted: Thu May 17, 2018 10:18 am
by ArieKanarie

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%

Re: Toon firmware - update script

Posted: Thu May 17, 2018 4:30 pm
by Toonz
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?

Re: Toon firmware - update script

Posted: Thu May 17, 2018 4:53 pm
by ArieKanarie
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

Re: Toon firmware - update script

Posted: Thu May 17, 2018 10:08 pm
by TheHogNL
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

Re: Toon firmware - update script

Posted: Thu May 17, 2018 10:53 pm
by Ierlandfan
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.

Re: Toon firmware - update script

Posted: Fri May 18, 2018 8:07 am
by TheHogNL
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.

Re: Toon firmware - update script

Posted: Fri May 18, 2018 8:16 am
by ArieKanarie
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.

Re: Toon firmware - update script

Posted: Fri May 18, 2018 8:35 am
by TheHogNL
I'll contact you in a PM

Re: Toon firmware - update script

Posted: Fri May 18, 2018 10:58 am
by TheHogNL
His old version had a problem with the hosts.template file. Once corrected the updates went fine.

Re: Toon firmware - update script

Posted: Fri May 18, 2018 5:12 pm
by ArieKanarie
Thanks for the help.

Now going to dive into the vnc adventure. 8)