-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iiab-footprint [iiab-diagnostics to speed up remote support of networks especially?] #1596
Conversation
…d systemd networkd
@mikkokotila & @jvonau can you review this PR from @georgejhunt? Towards implementing: #1575 More automated reporting of networking/similar issues |
scripts/footprint_features.md
Outdated
|
||
#### Suggested Usage #### | ||
1. Use a FAT formatted USB stick (FAT format is recognized by both Windows and Mac) to move /etc/iiab/footprint/<footprint.tgz> to a machine that has internet access and a browser. | ||
2. Upload the footprint to https://filebin.ca, record the returned URL, and email that URL, along with a description of the symptoms, to xsce-devel@googlegroups.com. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@georgejhunt email sent to xsce-devel@googlegroups.com (Google Groups) seems to disappear rather than notifying any of us (even mailing list administrators!) regarding these emails from non-subscribers :-(
Possibly Groups.io is far better (this is basically a clone of Group Groups mailing lists, with better community functionality...and a business model that's just as unclear?)
Conclusion: recommending folks send email to bugs (AT) iiab.io would seem to be far better for now — these emails are received and triaged by @floydianslips & I for now.
scripts/footprint_features.md
Outdated
4. /etc/systemd/network/ | ||
|
||
#### Suggested Usage #### | ||
1. Use a FAT formatted USB stick (FAT format is recognized by both Windows and Mac) to move /etc/iiab/footprint/<footprint.tgz> to a machine that has internet access and a browser. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we recommend apt install pastebinit
and then something like pastebinit /etc/iiab/footprint/footprint.tgz
to greatly streamline this for many people?
When I tried pastebinit, I got an error message indicating something about
utf8, and I concluded that the end points only wanted to deal with ascii.
Targz format is really binary.
…On Mon, Apr 15, 2019 at 11:22 AM A Holt ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In scripts/footprint_features.md
<#1596 (comment)>:
> +7. netstat -rn (routing table)
+8. netstat -natp (which services have which ports)
+9. iiab-install.log
+10. iiab-debug.log
+11. iiab-network.log
+12. all ansible variables
+
+contents of following directories:
+
+1. /etc/network/interfaces.d (and interfaces)
+2. /etc/sysconfig/network-scripts/if-cfg*
+3. /etc/NetworkManager/system-connections
+4. /etc/systemd/network/
+
+#### Suggested Usage ####
+1. Use a FAT formatted USB stick (FAT format is recognized by both Windows and Mac) to move /etc/iiab/footprint/<footprint.tgz> to a machine that has internet access and a browser.
Should we recommend apt install pastebinit and then something like pastebinit
/etc/iiab/footprint/footprint.tgz to greatly streamline this for many
people?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1596 (review)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AB04HEhJdBvEnILvY8_rkef-AisvmsVlks5vhMNjgaJpZM4cwh0w>
.
|
Reading more on pastebinit, there is a set of helpers, pbput, and pbget,
which encodes, and compresses. I think that might be sufficient.
…On Mon, Apr 15, 2019 at 11:25 AM George Hunt ***@***.***> wrote:
When I tried pastebinit, I got an error message indicating something about
utf8, and I concluded that the end points only wanted to deal with ascii.
Targz format is really binary.
On Mon, Apr 15, 2019 at 11:22 AM A Holt ***@***.***> wrote:
> ***@***.**** commented on this pull request.
> ------------------------------
>
> In scripts/footprint_features.md
> <#1596 (comment)>:
>
> > +7. netstat -rn (routing table)
> +8. netstat -natp (which services have which ports)
> +9. iiab-install.log
> +10. iiab-debug.log
> +11. iiab-network.log
> +12. all ansible variables
> +
> +contents of following directories:
> +
> +1. /etc/network/interfaces.d (and interfaces)
> +2. /etc/sysconfig/network-scripts/if-cfg*
> +3. /etc/NetworkManager/system-connections
> +4. /etc/systemd/network/
> +
> +#### Suggested Usage ####
> +1. Use a FAT formatted USB stick (FAT format is recognized by both Windows and Mac) to move /etc/iiab/footprint/<footprint.tgz> to a machine that has internet access and a browser.
>
> Should we recommend apt install pastebinit and then something like pastebinit
> /etc/iiab/footprint/footprint.tgz to greatly streamline this for many
> people?
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#1596 (review)>, or mute
> the thread
> <https://github.com/notifications/unsubscribe-auth/AB04HEhJdBvEnILvY8_rkef-AisvmsVlks5vhMNjgaJpZM4cwh0w>
> .
>
|
Yes pastebinit, with the two helpers, works fine! I added the contents of
/etc/rpi-issue, which gives the date of the image, and whether lite or
desktop to http://paste.ubuntu.com/p/xjNBbrKBFx/.
The used pbget with that url. It put the unencoded file into
/tmp/etc/iiab/footprint/ which seemed fine.
…On Mon, Apr 15, 2019 at 11:33 AM George Hunt ***@***.***> wrote:
Reading more on pastebinit, there is a set of helpers, pbput, and pbget,
which encodes, and compresses. I think that might be sufficient.
On Mon, Apr 15, 2019 at 11:25 AM George Hunt ***@***.***>
wrote:
> When I tried pastebinit, I got an error message indicating something
> about utf8, and I concluded that the end points only wanted to deal with
> ascii. Targz format is really binary.
>
> On Mon, Apr 15, 2019 at 11:22 AM A Holt ***@***.***> wrote:
>
>> ***@***.**** commented on this pull request.
>> ------------------------------
>>
>> In scripts/footprint_features.md
>> <#1596 (comment)>:
>>
>> > +7. netstat -rn (routing table)
>> +8. netstat -natp (which services have which ports)
>> +9. iiab-install.log
>> +10. iiab-debug.log
>> +11. iiab-network.log
>> +12. all ansible variables
>> +
>> +contents of following directories:
>> +
>> +1. /etc/network/interfaces.d (and interfaces)
>> +2. /etc/sysconfig/network-scripts/if-cfg*
>> +3. /etc/NetworkManager/system-connections
>> +4. /etc/systemd/network/
>> +
>> +#### Suggested Usage ####
>> +1. Use a FAT formatted USB stick (FAT format is recognized by both Windows and Mac) to move /etc/iiab/footprint/<footprint.tgz> to a machine that has internet access and a browser.
>>
>> Should we recommend apt install pastebinit and then something like pastebinit
>> /etc/iiab/footprint/footprint.tgz to greatly streamline this for many
>> people?
>>
>> —
>> You are receiving this because you were mentioned.
>> Reply to this email directly, view it on GitHub
>> <#1596 (review)>,
>> or mute the thread
>> <https://github.com/notifications/unsubscribe-auth/AB04HEhJdBvEnILvY8_rkef-AisvmsVlks5vhMNjgaJpZM4cwh0w>
>> .
>>
>
|
Earlier this week @tim-moody wrote that something like |
It seems likely we should merge this during Thursday's 10AM EDT community call (http://minutes.iiab.io). We call always revise it later, as nec! |
@georgejhunt I may have overlooked something, but can you make sure these 2 critical files are both included?
CLARIF: the 2 files above often get out of sync, so it's critical that both be recorded! |
scripts/iiab-diagnostics
Outdated
echo Checking for information about raspberry pi base image | ||
if [ -f /etc/rpi-issue ];then | ||
cat /etc/rpi-issue | ||
echo "stage 2 = lite; stage 3 = desktop" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
echo "stage 2 = lite; stage 3 = desktop" | |
echo "stage2 = lite; stage5 = desktop; SEE github.com/RPi-Distro/pi-gen#stage-anatomy" |
scripts/iiab-diagnostics
Outdated
cat /etc/resolv.conf | ||
echo | ||
echo "==========================================================" | ||
echo "cat iiab_ini_file " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
echo "cat iiab_ini_file " | |
echo "/etc/iiab/iiab.ini" |
@georgejhunt the output of these 2 commands is also necessary:
REASON: different kinds of dnsmasq failures occur constantly on new installations, for a myriad different reasons of varying hardware, varying distros, varying network topologies, varying upstream/downstream patches — the list goes on. Solving these existential quagmires 10X more efficiently (with more data, during that very first call/contact) is frankly THE only way forward for us — to establish progressively more trusted+understandable baseline infrastructure — stepping it up for implementers in all countries, one month at a time. QUESTION: how can we make each of these reports viewable on a smartphone (not just .tgz) for strong support volunteers like Jerry, who are unable to use a full computer, while at work and on the road? |
… On Thu, May 9, 2019 at 12:46 AM A Holt ***@***.***> wrote:
@georgejhunt <https://github.com/georgejhunt> the output of these 2
commands is also necessary:
- systemctl status dnsmasq
- journalctl -u dnsnasq
REASON: different kinds of dnsmasq failures occur constantly on new
installations, for a myriad different reasons of varying hardware, varying
distros, varying network topologies, varying upstream/downstream patches —
the list goes on.
Solving these existential quagmires 10X more efficiently *(with more
data, during that very first call/contact)* is frankly THE only way
realistic for us to establish trusted+understandable baseline
infrastructure.
QUESTION: how can we make each of these reports viewable on a smartphone
(not just .tgz) for strong support volunteers like Jerry, who are unable to
use a full computer, while at work and on the road?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1596 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAOTQHA5BYJBZHFYIA2VA2DPUPJF7ANCNFSM4HGCDUYA>
.
|
That's one option. But I remain quite concerned this will structurally lower Internet-in-a-Box's global volunteerism rate, unintentionally preventing informal civic communications, in a world that's no longer centered around WHAT WE NEED: short URL's that can be passed around on universally global platforms like Facebook, WhatsApp & Skype, so bug reports are not accidentally silo'd and bureaucratized. An organic and potentially exponentially increasing community interest in solving the bugs that are most centrally affecting hundreds/thousands around the planet is a target we should not shy away from~ |
FYI collecting the [bug] reporter's email address might need to be done thru a separate channel. For both legal reasons (we don't want IIAB to be illegal in Europe under GDPR). And also to make an organic IIAB Global Community of grassroots field reports broadly possible — in a truly participatory way — rather than accidentally walling ourselves off from globally popular / contemporary platforms. |
@@ -98,6 +98,18 @@ echo "/usr/bin/iiab-gen-iptable" | |||
cat /usr/bin/iiab-gen-iptables | |||
echo | |||
echo "==========================================================" | |||
echo "/.iiab-image" | |||
cat /.iiab-image |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cat /.iiab-image
command will fail when /.iiab-image
does not exist, as is often the case.
Wrap it in a bash if
statement presumably?
a lot of other cat'd files do not exist. The set -e is not active
…On Thu, May 9, 2019 at 10:07 AM A Holt ***@***.***> wrote:
@holta commented on this pull request.
________________________________
In scripts/iiab-diagnostics:
> @@ -98,6 +98,18 @@ echo "/usr/bin/iiab-gen-iptable"
cat /usr/bin/iiab-gen-iptables
echo
echo "=========================================================="
+echo "/.iiab-image"
+cat /.iiab-image
cat /.iiab-image command will fail when /.iiab-image does not exist, as is often the case.
Wrap it in a bash if statement presumably?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
#1744 with #1702 have illustrated a few problems we still need to resolve:
|
So many issues like #1744 are a great reminder that the Specifically: whatever commands (similar to As even in 2019, DNS inevitably keeps failing for countless different reasons, in the low-budget / low-bandwidth situations where we work especially... ! |
@georgejhunt as discussed during the call today (http://minutes.iiab.io) you might consider something like
i.e. the |
That's pretty slick. I had always used less. But more is more.
…On Thu, Jun 20, 2019 at 1:30 PM A Holt ***@***.***> wrote:
@georgejhunt <https://github.com/georgejhunt> as discussed during the
call today, you might consider something like more /etc/iiab/iiab.env
/etc/iiab/iiab.ini /etc/iiab/local_vars.yml | pastebinit to place a
reasonably complete header above each file, as follows?
::::::::::::::
/etc/iiab/iiab.env
::::::::::::::
bla
bla
::::::::::::::
/etc/iiab/iiab.ini
::::::::::::::
bla
bla
bla
::::::::::::::
/etc/iiab/local_vars.yml
::::::::::::::
bla
bla
bla
bla
i.e. the more command is one decent way to put a complete path+filename
above each file, without having to program that up yourself.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1596?email_source=notifications&email_token=AAOTQHBPC6SLW6GL62JHEFDP3PSH3A5CNFSM4HGCDUYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYGQZ3I#issuecomment-504171757>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAOTQHGILRDGJAFWKQDCCW3P3PSH3ANCNFSM4HGCDUYA>
.
|
@georgejhunt if FWIW But I'm not familiar enough with it to know for sure: https://www.labnol.org/internet/github-gist-tutorial/28499/ Or, if in the end the (Such sed/awk scripts must be very standard if nec!) |
Co-Authored-By: A Holt <holta@users.noreply.github.com>
Please examine this paste for what is wanted: |
Consider these 7 ideas/recommendations to evolve on that?
|
@georgejhunt should this PR be closed in favor of PR #1757 ? |
yes
…On Fri, Jun 21, 2019 at 8:53 AM A Holt ***@***.***> wrote:
@georgejhunt <https://github.com/georgejhunt> should this PR be closed in
favor of PR #1757 <#1757> ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1596?email_source=notifications&email_token=AAOTQHE4CMYOPVNCQMSTVM3P3T2Q7A5CNFSM4HGCDUYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYI3G2Q#issuecomment-504476522>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAOTQHABYZB6OZPESZO4VMTP3T2Q7ANCNFSM4HGCDUYA>
.
|
Responds to #1575
Creates a more automated means of gathering together network settings, and communicating them back to developers.