Skip to contentSkip to conversation

sanity.bbclass: mention CONNECTIVITY_CHECK_URIS in network failure message

PATCH Michael Opdenacker 1 participant 1 message May 5, 2021 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hello,

Quoted 18 lines · Michael Opdenacker

This expands the error message when a network failure is detected. It happens that some ISPs or networks block the default example.com domain. Therefore, instead of disabling network access, it lets the user know how to modify the test URL.

---
 meta/classes/sanity.bbclass | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
meta/classes/sanity.bbclass +0 -0
index a377917f2a..e907a3566f 100644
@@ -392,9 +392,12 @@ def check_connectivity(d):
             msg = data.getVar('CONNECTIVITY_CHECK_MSG') or ""
             if len(msg) == 0:
                 msg = "%s.\n" % err

meta/classes/sanity.bbclass def check_connectivity(d): · line 401

Quoted 10 lines
meta/classes/sanity.bbclass +6 -3
-                msg += "    Please ensure your host's network is configured correctly,\n"
-                msg += "    or set BB_NO_NETWORK = \"1\" to disable network access if\n"
-                msg += "    all required sources are on local disk.\n"
+                msg += "    Please ensure your host's network is configured correctly.\n"
+                msg += "    If your ISP or network is blocking the above URL,\n"
+                msg += "    try with another domain name, for example by setting:\n"
+                msg += "    CONNECTIVITY_CHECK_URIS = \"https://www.yoctoproject.org/\""
+                msg += "    You could also set BB_NO_NETWORK = \"1\" to disable network\n"
+                msg += "    access if all required sources are on local disk.\n"
             retval = msg

I just had the issue today, https://www.example.com/ being blocked on my local network.

I'll also submit a documentation patch, as CONNECTIVITY_CHECK_URIS doesn't appear in the documentation at all.

But who needs documentation with helpful error messages ;-) ?

Cheers,

Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com