Appi & Flappi can't get an internet connection.

Moderator: BarryK

Post Reply
Averoigne
Posts: 8
Joined: Fri May 03, 2024 12:54 am
Location: Australia

Appi & Flappi can't get an internet connection.

Post by Averoigne »

Hi, I'm Averoigne, and have just registered with this forum.
In this, my first post, I wonder if anyone could assist?

In both Easy OS 5.7 and Easy OS 5.8** Appi and Flappi don't work - they warn that an internet connection is required to download.
However, the web browsers work fine - including their updates to latest versions work fine.
Also, this problem seems to be hardware independent (Dell i7, Asus core 2 duo).

Turning off the firewall (un-ticking the box in the firewall utility makes no difference.

Averoigne.

[** In a separate post I share my experience of updating from 5.7 to 5.8 in case that sheds some light on this in general.]

Caramel
Posts: 476
Joined: Sun Oct 02, 2022 6:25 pm
Location: France
Has thanked: 100 times
Been thanked: 78 times

Re: Appi & Flappi can't get an internet connection.

Post by Caramel »

In Appi (/usr/local/appimage/appimage line 412) and Flappi (/usr/local/flatpak/flatpak line 42 and line 522), the internet connection is tested by ping to google (EDIT : addition of line 522)

Code: Select all

ping -4 -c 1 -w 5 google.com

Test this command in terminal to see if this is the cause of the problem

Last edited by Caramel on Sat May 04, 2024 7:33 am, edited 1 time in total.
User avatar
bugnaw333
Posts: 343
Joined: Wed Jul 20, 2022 11:04 pm
Location: Cebu, Philippines
Has thanked: 531 times
Been thanked: 69 times

Re: Appi & Flappi can't get an internet connection.

Post by bugnaw333 »

No problem here on 5.8 fresh USB install: :thumbup2:

Attachments
appi.jpg
appi.jpg (184.56 KiB) Viewed 834 times
Averoigne
Posts: 8
Joined: Fri May 03, 2024 12:54 am
Location: Australia

Re: Appi & Flappi can't get an internet connection.

Post by Averoigne »

@ Caramel:
Opened a terminal and typed in "ping -4 -c 1 -w 5 google.com"

Result: "1 packets transmitted, 0 packets received, 100% packet loss"

Yet, all web browsers work OK?

puzzling?

Averoigne

Averoigne
Posts: 8
Joined: Fri May 03, 2024 12:54 am
Location: Australia

Re: Appi & Flappi can't get an internet connection.

Post by Averoigne »

@ Caramel:

Also, navigated to "/usr/local/appimage", but don't know how to see line 142.

Same for Flappi. I don't know how to interrogator the code.

Averoigne

Caramel
Posts: 476
Joined: Sun Oct 02, 2022 6:25 pm
Location: France
Has thanked: 100 times
Been thanked: 78 times

Re: Appi & Flappi can't get an internet connection.

Post by Caramel »

Averoigne wrote: Fri May 03, 2024 7:01 am

Opened a terminal and typed in "ping -4 -c 1 -w 5 google.com"

Result: "1 packets transmitted, 0 packets received, 100% packet loss"

Yet, all web browsers work OK?

puzzling?

Averoigne

Have you tested google.com in browser ?

Averoigne wrote: Fri May 03, 2024 7:08 am

Also, navigated to "/usr/local/appimage", but don't know how to see line 142.

Same for Flappi. I don't know how to interrogator the code.

Averoigne

You can open the script appimage (in the text editor Geany) by right-clicking on it in ROX-Filer. The option to display the line numbers is available in the section Viewof the menu (You can also find the line by searching google.com in the text (keyboard shortcut Ctrl+F) ) (EDIT : correction of the name of the section in English)

You can test by commenting the lines 412 to 417 :

Code: Select all

ping -4 -c 1 -w 5 google.com > /dev/null 2>&1
if [ $? -ne 0 ];then
 M5="$(gettext 'An Internet connection is required to download an AppImage.')"
 popup "terminate=ok background=#ff8080 level=top process=wait|<big>${M5}</big>"
 exec appi
fi

To comment add a hashtag (#) at the beginning of each line or select the lines, right-click, choose Format and then choose Comment the lines

Last edited by Caramel on Sat May 04, 2024 7:35 am, edited 1 time in total.
Averoigne
Posts: 8
Joined: Fri May 03, 2024 12:54 am
Location: Australia

Re: Appi & Flappi can't get an internet connection.

Post by Averoigne »

Thanks Caramel:
As a newbie not sure if I've done this right...
However, still getting the no internet message.

Attachments
Screenshot.png
Screenshot.png (77.65 KiB) Viewed 753 times
Averoigne
Posts: 8
Joined: Fri May 03, 2024 12:54 am
Location: Australia

Re: Appi & Flappi can't get an internet connection.

Post by Averoigne »

@Caramel:
Sorry, yes to your first question. All browsers work fine.
May have to take this up tomorrow.

Cheers
Averoigne.

Caramel
Posts: 476
Joined: Sun Oct 02, 2022 6:25 pm
Location: France
Has thanked: 100 times
Been thanked: 78 times

Re: Appi & Flappi can't get an internet connection.

Post by Caramel »

Averoigne wrote: Fri May 03, 2024 10:10 am

Thanks Caramel:
As a newbie not sure if I've done this right...
However, still getting the no internet message.

It's not correct

This is the expected result

capture7178.png
capture7178.png (147.39 KiB) Viewed 700 times

(NB: I apologize for my previous message, I did not view the Geany interface in English, so my indications was not correct)

Another method to test is to remove the lines 412 to 417 (the 412 to 422 in your screenshot).

If later you will discard changes you could simply delete the file appimage in /mnk/wkg/.session/usr/local/appimage/appimage

Code: Select all

rm /mnt/wkg/.session/usr/local/appimage/appimage

Note that if you update EasyOS, the changes will be automatically canceled

For the ping problem, you could test

Code: Select all

ping -4 -c 1 -w 5 8.8.8.8

to see if it is related to the DNS

Averoigne
Posts: 8
Joined: Fri May 03, 2024 12:54 am
Location: Australia

Re: Appi & Flappi can't get an internet connection.

Post by Averoigne »

@Caramel:

(1) The ping test still fails, returning
# ping -4 -c 1 -w 5 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes

--- 8.8.8.8 ping statistics ---
1 packets transmitted, 0 packets received, 100% packet loss


Wonder what this means. Has my DNS been hijacked?

(2) Thank you so much Caramel. Appi is now working very well.

(3) Now, to get Flapi working I guessed the following corrections were needed.

Screenshot5(2).png
Screenshot5(2).png (148.34 KiB) Viewed 598 times

However, I now get an error: "Failure registering with Flathub repository."
I enabled Qsync and NTP server as OCEANIA, that got rid of the error message, leaving just the
usual error message of "An Internet connection is required to download a Flatpak".
.. Meaning my fix does not work.

Can you assist Caramel?

Thank you.

Cheers
Averoigne

Caramel
Posts: 476
Joined: Sun Oct 02, 2022 6:25 pm
Location: France
Has thanked: 100 times
Been thanked: 78 times

Re: Appi & Flappi can't get an internet connection.

Post by Caramel »

Averoigne wrote: Sat May 04, 2024 5:08 am

(3) Now, to get Flapi working I guessed the following corrections were needed.

Screenshot5(2).png

However, I now get an error: "Failure registering with Flathub repository."
I enabled Qsync and NTP server as OCEANIA, that got rid of the error message, leaving just the
usual error message of "An Internet connection is required to download a Flatpak".
.. Meaning my fix does not work.

Averoigne

Forgive my negligence, the test with ping is present 2 times in Flapi

Lines 522 to 527:

Code: Select all

ping -4 -c 1 -W 5 -w 6 google.com >/dev/null
if [ $? -ne 0 ];then
 M4="$(gettext 'An Internet connection is required to download a Flatpak.')"
 popup "terminate=ok background=#ff8080 level=top process=wait|<big><big>${M4}</big></big>"
 exec flapi
fi
Last edited by Caramel on Sat May 04, 2024 7:46 am, edited 1 time in total.
Caramel
Posts: 476
Joined: Sun Oct 02, 2022 6:25 pm
Location: France
Has thanked: 100 times
Been thanked: 78 times

Re: Appi & Flappi can't get an internet connection.

Post by Caramel »

Averoigne wrote: Sat May 04, 2024 5:08 am

(1) The ping test still fails, returning
# ping -4 -c 1 -w 5 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes

--- 8.8.8.8 ping statistics ---
1 packets transmitted, 0 packets received, 100% packet loss


Wonder what this means. Has my DNS been hijacked?

It seems it is not a DNS problem because the DNS is not used in this command.

You could test

Code: Select all

ping -4 -c 1 -w 5 forum.puppylinux.com
Averoigne
Posts: 8
Joined: Fri May 03, 2024 12:54 am
Location: Australia

Re: Appi & Flappi can't get an internet connection.

Post by Averoigne »

@Caramel:
Thank you for your ongoing help.
(1) I commented out lines 522 - 527 , but now get a red box saying "The Flatpak was not installed".
Had a 'gut-feeling' to change the time setting to UTC (keeping Qsync to internet time)... and this worked!
Flatpak is now working: -

Screenshot10.png
Screenshot10.png (72.85 KiB) Viewed 440 times

(2) The ping test to puppylinux.com fails (1 packets transmitted, 0 packets received, 100% packet loss).

I can only conclude that somewhere in my router/firewall I set up years ago I disabled a setting I should not have.
Possibly explaining why I cannot do speed testing on by internet reception - because it times out.
However, I have a fully wired system throughout the house (WiFI disabled), and adequate speed....so don't miss not being able to ping.
-Unless it is still a sign of a MITM intrusion.

Caramel, Thank You So Much for all your help. Very appreciated.
Thank you.
Averoigne.

Post Reply

Return to “EasyOS”