Connection error

Everything about rooting Toons 1 and 2.

Moderators: marcelr, TheHogNL, Toonz

TheHogNL
Forum Moderator
Forum Moderator
Posts: 2112
Joined: Sun Aug 20, 2017 8:53 pm

Re: Connection error

Post by TheHogNL »

Is it already on 6.0.9 now? It requests the time server dns from this firmware.

For dnsmasq, I think you just can add the line to /etc/hosts and dnsmasq will then use that a response.
Member of the Toon Software Collective
toonnoot
Member
Member
Posts: 63
Joined: Mon Jun 15, 2020 11:22 am

Re: Connection error

Post by toonnoot »

TheHogNL wrote: Fri Sep 30, 2022 2:37 pm Is it already on 6.0.9 now? It requests the time server dns from this firmware.

For dnsmasq, I think you just can add the line to /etc/hosts and dnsmasq will then use that a response.
I dont think so, but I cant check it since the darn thing is stuck at the activation screen and eneco doesn’t care at all.

I left it connected to eneco server for the whole day now, will check when I get home whether anything changed.
If it is still the same i’ll try the dnamasq and script trick, but im not sure whether the toon checks for updates when it isnt activated yet.

Btw did i read correctly on tweakers that you are developing a new script?
If yes, will that potentially fix this issue?
Happy to send you this toon if it helps your research/dev work.
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2112
Joined: Sun Aug 20, 2017 8:53 pm

Re: Connection error

Post by TheHogNL »

I do believe the toon does a update check every 24h hours, even when it is not activated yet. Please keep trying. It does need a valid dns response for feed.hae.int to work in this situation as it has never had a valid response yet (because it is recovered).

To check the firmware in the installation wizard, press the installeren button (from the home screen) for 5 seconds. You will then see the firmware in the bottom line.

The new script will also need to have a valid way to get into the toon, same way as rooting. So you better of using the root trick now.
Member of the Toon Software Collective
toonnoot
Member
Member
Posts: 63
Joined: Mon Jun 15, 2020 11:22 am

Re: Connection error

Post by toonnoot »

TheHogNL wrote: Fri Sep 30, 2022 5:58 pm I do believe the toon does a update check every 24h hours, even when it is not activated yet. Please keep trying. It does need a valid dns response for feed.hae.int to work in this situation as it has never had a valid response yet (because it is recovered).

To check the firmware in the installation wizard, press the installeren button (from the home screen) for 5 seconds. You will then see the firmware in the bottom line.

The new script will also need to have a valid way to get into the toon, same way as rooting. So you better of using the root trick now.
Checked the firmware it has hasnt been updated, still sitting at 4.9

I’ll leave it running for tonight, if it still hasnt fixed itself by tomorrow then i’ll do the root+dns trick.
toonnoot
Member
Member
Posts: 63
Joined: Mon Jun 15, 2020 11:22 am

Re: Connection error

Post by toonnoot »

I think I figured out the pre-release batch toon2s.

Most toon2s i've seen started with qb-6599...
This prerelease one starts with qb-100000021600

So seems like the prerelease toon2s could have a qb number in the range of 1000xx
toonnoot
Member
Member
Posts: 63
Joined: Mon Jun 15, 2020 11:22 am

Re: Connection error

Post by toonnoot »

TheHogNL wrote: Thu Sep 29, 2022 8:21 pm There is a pre-release batch which has other config/certificates. Useless for rooting. Seems to me you have one of these.
Small chance that you can still root without activating. Keep the toon connected to the root wifi and have the script running. It should request an update once every 24 hours.
Also keep a tcpdump running in the background at port 53 and monitoring for dns requests for feed.hae.int. If this is the case you first need to respond to this dns request with an ip address in the normal range of the eneco service center (take 172.20.1.1 as example). You can use dnsmasq.conf to do this.
can you help me set up the dnsmasq.conf file?
I'm not sure what I need to edit here to respond to the feed.hae.int requests with that ip-adress.
how do I set this up?
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2112
Joined: Sun Aug 20, 2017 8:53 pm

Re: Connection error

Post by TheHogNL »

I think just adding it to /etc/hosts is enough
So add a line "172.17.1.100 feed.hae.int" to that file and check with tcpdump if that indeed is reponsded back as the question comes in.
Member of the Toon Software Collective
toonnoot
Member
Member
Posts: 63
Joined: Mon Jun 15, 2020 11:22 am

Re: Connection error

Post by toonnoot »

TheHogNL wrote: Sat Oct 01, 2022 8:01 am I think just adding it to /etc/hosts is enough
So add a line "172.17.1.100 feed.hae.int" to that file and check with tcpdump if that indeed is reponsded back as the question comes in.
okay I added the line to etc/hosts, I have the rootscript running and restarted my toon.
will let you know if anything happens.

EDIT: this is the result when the requests from feed.hae.int is received:

Blocking all HTTPS (and therefore Toon VPN). Reboot your toon now. And after that press the 'software' button on your Toon.
The Toon from 192.168.4.7 is connecting to servicecenter IP: 172.17.1.100
Let's have some fun!
POST /benchmark/friendRequest HTTP/1.1
Host: 172.17.1.100:31080
Accept: */*
Content-Type: application/xml; charset=utf-8
Content-Length: 556

<action class="invoke" uuid="qb-100000021600-0000Q00000:happ_pwrusage" destuuid="0adc8160-fdb4-11e2-b778-0800200c9a66" serviceid="urn:hcb-hae-com:serviceId:specific1" requestid="603-26" commonname="qb-100000021600-0000Q00000">
<u:getFriendRequests xmlns:u="urn:hcb-hae-com:service:specific1:1"><type>pendingRequestsMadeByMe</type>
<type>requestsWaitingOnMe</type>
<type>activeFriendships</type>
<type>endedFriendships</type>
<retries>0</retries>
<requestId>603-26</requestId>
<timeout>30</timeout>
</u:getFriendRequests>
</action>







This is not a update request.



and the tcpdump results:
13:21:05.390423 IP qb-100000021600-0000Q00000.wlan.58358 > 192.168.4.1.domain: 58885+ A? feed.hae.int. (30)
13:21:05.390748 IP 192.168.4.1.domain > qb-100000021600-0000Q00000.wlan.58358: 58885* 1/0/0 A 172.17.1.100 (46)
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2112
Joined: Sun Aug 20, 2017 8:53 pm

Re: Connection error

Post by TheHogNL »

Ok but this is still showing that the DNS is working now.
Just leave it for 24hours on this script now please. It should request an update within 24hours if I am not mistaken.
Member of the Toon Software Collective
toonnoot
Member
Member
Posts: 63
Joined: Mon Jun 15, 2020 11:22 am

Re: Connection error

Post by toonnoot »

Okay the toon is connected and the script is running.

I’ll let you know tomorrow evening if anything happened.
toonnoot
Member
Member
Posts: 63
Joined: Mon Jun 15, 2020 11:22 am

Re: Connection error

Post by toonnoot »

You were right!

I came back from work and i got greeted by a nice “connected to service center” message, alongside with a pi having completed a rooting script.

EDIT: And now for some reason it just wont start the VPN with the update rooted script...
man this toon is one big headache..

Unattended selected version 5.49.19
Alright, I will try to upgrade to 5.49.19
Error opening Certificate /etc/openvpn/certs/device.crt
1996166352:error:02001002:system library:fopen:No such file or directory:bss_file.c:391:fopen('/etc/openvpn/certs/device.crt','r')
1996166352:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:393:
unable to load certificate
This toon does not contain old VPN certficates. Not necessary to update VPN certificates.
iptables: Chain already exists.
Now starting the VPN tunnel and waiting for it to be alive and configured...
toonnoot
Member
Member
Posts: 63
Joined: Mon Jun 15, 2020 11:22 am

Re: Connection error

Post by toonnoot »

I tried bypassing the vpn through one of your own links I think hog, but it didnt work:


qb-100000021600-0000Q00000:~# sh update-rooted.sh -d -s http://qutility.nl/feeds
===================================================================================================================================================================
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: 4.76 - TheHogNL - 24-09-2022

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

Skip starting VPN
Forcing source: http://qutility.nl/feeds
You are currently running version 4.9.124 on a nxt with flavour ene

Available versions: 1.9.10 2.1.0 2.2.24 2.3.17 2.3.29 2.3.36 2.4.7 2.4.12 2.5.11 2.5.14 2.5.18 2.6.24 2.6.33 2.8.16 2.8.21 2.8.27 2.9.15 2.9.26 2.10.15 3.0.29 3.0.32 3.1.22 3.2.14 3.2.18 3.2.21 3.3.8 3.4.2 3.4.4 3.5.4 3.6.3 3.7.8 3.7.9 4.3.20 4.4.21 4.7.23 4.8.25 4.9.23 4.9.124 4.10.6 4.10.9 4.11.6 4.12.0 4.13.6 4.13.7 4.15.2 4.15.6 4.16.8 4.17.11 4.18.8 4.19.10 4.20.7 4.22.7 5.0.4 5.0.5 5.0.6 5.2.11 5.5.7 5.9.6 5.13.9 5.13.12 5.15.6 5.18.8 5.22.14 5.25.8 5.28.6 5.28.9 5.30.4 5.33.9 5.39.7 5.41.1 5.43.2 5.46.4 5.49.4 5.49.7 5.49.16 5.49.19

Which version do you want to upgrade to?
5.0.6
Alright, I will try to upgrade to 5.0.6
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-nxt.sh.log
Quitting the upgrade. It was a nice try tho...
killall: openvpn: no process killed
toonnoot
Member
Member
Posts: 63
Joined: Mon Jun 15, 2020 11:22 am

Re: Connection error

Post by toonnoot »

Updating now manually through intermediate steps.
i think something is wrong with one of the configuation files on this toon, which is causing all of these issues.

Updating to 4.22.7 now.
Will try v5 from there.
Going directly from 4.9.124 to 5 doesnt work.

EDIT: seems like that did the trick!
upgraded to 5.0.4, now I can see the toonstore and TSC menu.
And I got the notification on the toon that 5.49.19 is available
however, still getting the VPN failure error, no idea what is causing this, so the only way to upgrade is through the servers of Hog.

upgrading to 5.49.19 failed:
Are your sure you want to upgrade to 5.49.19 (yes)? This is the last moment you can stop the upgrade. Answer with 'yes' will start the upgrade.
Starting the upgrade now! Just wait a while... It can take a few minutes.
Waiting to finish. Sometimes this takes a minute or two ..
Upgrade failed. Please check the logs at /mnt/data/update/upgrade-nxt.sh.log
Quitting the upgrade. It was a nice try tho...
killall: openvpn: no process killed
toonnoot
Member
Member
Posts: 63
Joined: Mon Jun 15, 2020 11:22 am

Re: Connection error

Post by toonnoot »

I think, it is somehow related to OPENVPN.
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2112
Joined: Sun Aug 20, 2017 8:53 pm

Re: Connection error

Post by TheHogNL »

Seems like it doesn't have VPN keys.
Can you send a file list in /etc/openvpn ?
ls -las /etc/openvpn/
and
ls -las /etc/openvpn/certs/

and also the logs of /mnt/data/update/upgrade-nxt.sh.log
Member of the Toon Software Collective
Post Reply

Return to “Toon Rooting”