Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.os.linux.ubuntu > #197281 > unrolled thread
| Started by | fred flintstone <fred@server.invalid> |
|---|---|
| First post | 2017-09-24 12:36 -0700 |
| Last post | 2017-10-11 17:50 +0000 |
| Articles | 20 on this page of 38 — 6 participants |
Back to article view | Back to alt.os.linux.ubuntu
nautilus not working/wireless not responding either fred flintstone <fred@server.invalid> - 2017-09-24 12:36 -0700
Re: nautilus not working/wireless not responding either "Jonathan N. Little" <lws4art@gmail.com> - 2017-09-24 15:46 -0400
Re: nautilus not working/wireless not responding either fred flintstone <fred@server.invalid> - 2017-09-29 14:26 -0700
Re: nautilus not working/wireless not responding either fred flintstone <fred@server.invalid> - 2017-10-04 19:40 -0700
Re: nautilus not working/wireless not responding either Bit Twister <BitTwister@mouse-potato.com> - 2017-10-05 05:03 +0000
Re: nautilus not working/wireless not responding either fred flintstone <fred@server.invalid> - 2017-10-07 15:49 -0700
Re: nautilus not working/wireless not responding either Bit Twister <BitTwister@mouse-potato.com> - 2017-10-07 23:24 +0000
Re: systemd was Re: nautilus not working/wireless not responding either Bit Twister <BitTwister@mouse-potato.com> - 2017-10-10 23:22 +0000
Re: systemd was Re: nautilus not working/wireless not responding either fred flintstone <fred@server.invalid> - 2017-10-10 20:32 -0700
Re: systemd was Re: nautilus not working/wireless not responding either Bit Twister <BitTwister@mouse-potato.com> - 2017-10-11 04:52 +0000
Re: systemd was Re: nautilus not working/wireless not responding either Melzzzzz <Melzzzzz@zzzzz.com> - 2017-10-11 05:00 +0000
Re: systemd was Re: nautilus not working/wireless not responding either fred flintstone <fred@server.invalid> - 2017-10-12 16:09 -0700
Re: systemd was Re: nautilus not working/wireless not responding either Bit Twister <BitTwister@mouse-potato.com> - 2017-10-13 03:06 +0000
Re: systemd was Re: nautilus not working/wireless not responding either "Jonathan N. Little" <lws4art@gmail.com> - 2017-10-13 00:33 -0400
Re: systemd was Re: nautilus not working/wireless not responding either Bit Twister <BitTwister@mouse-potato.com> - 2017-10-13 05:00 +0000
Re: systemd was Re: nautilus not working/wireless not responding either "Jonathan N. Little" <lws4art@gmail.com> - 2017-10-13 09:31 -0400
Re: systemd was Re: nautilus not working/wireless not responding either "Jonathan N. Little" <lws4art@gmail.com> - 2017-10-13 09:32 -0400
Re: systemd was Re: nautilus not working/wireless not responding either Bit Twister <BitTwister@mouse-potato.com> - 2017-10-13 14:19 +0000
Re: systemd was Re: nautilus not working/wireless not responding either Marek Novotny <marek.novotny@marspolar.com> - 2017-10-13 09:56 -0500
Re: systemd was Re: nautilus not working/wireless not responding either fred flintstone <fred@server.invalid> - 2017-10-22 14:35 -0700
Re: systemd was Re: nautilus not working/wireless not responding either Bit Twister <BitTwister@mouse-potato.com> - 2017-10-22 23:57 +0000
Re: systemd was Re: nautilus not working/wireless not responding either fred flintstone <fred@server.invalid> - 2017-10-25 12:03 -0700
Re: systemd was Re: nautilus not working/wireless not responding either "Jonathan N. Little" <lws4art@gmail.com> - 2017-10-26 12:46 -0400
Re: systemd was Re: nautilus not working/wireless not responding either Bit Twister <BitTwister@mouse-potato.com> - 2017-10-26 23:54 +0000
Re: systemd was Re: nautilus not working/wireless not responding either fred flintstone <fred@server.invalid> - 2017-10-31 17:28 -0700
Re: systemd was Re: nautilus not working/wireless not responding either Bit Twister <BitTwister@mouse-potato.com> - 2017-11-01 01:36 +0000
Re: systemd was Re: nautilus not working/wireless not responding either fred flintstone <fred@server.invalid> - 2017-11-06 12:35 -0800
[OT] Re: systemd was Re: nautilus not working/wireless not responding either Bit Twister <BitTwister@mouse-potato.com> - 2017-10-27 00:23 +0000
Re: systemd was Re: nautilus not working/wireless not responding either fred flintstone <fred@server.invalid> - 2017-10-25 16:13 -0700
Re: systemd was Re: nautilus not working/wireless not responding either "Jonathan N. Little" <lws4art@gmail.com> - 2017-10-13 11:42 -0400
Re: systemd was Re: nautilus not working/wireless not responding either "Jonathan N. Little" <lws4art@gmail.com> - 2017-10-13 11:45 -0400
Re: systemd was Re: nautilus not working/wireless not responding either fred flintstone <fred@server.invalid> - 2017-10-13 17:03 -0700
Re: systemd was Re: nautilus not working/wireless not responding either "Jonathan N. Little" <lws4art@gmail.com> - 2017-10-13 20:25 -0400
Re: systemd was Re: nautilus not working/wireless not responding either Bit Twister <BitTwister@mouse-potato.com> - 2017-10-14 01:45 +0000
Re: systemd was Re: nautilus not working/wireless not responding either Mike Easter <MikeE@ster.invalid> - 2017-10-10 16:34 -0700
Re: systemd was Re: nautilus not working/wireless not responding either Mike Easter <MikeE@ster.invalid> - 2017-10-10 16:41 -0700
Re: nautilus not working/wireless not responding either Mike Easter <MikeE@ster.invalid> - 2017-10-11 10:28 -0700
[OT] Re: nautilus not working/wireless not responding either Bit Twister <BitTwister@mouse-potato.com> - 2017-10-11 17:50 +0000
Page 1 of 2 [1] 2 Next page →
| From | fred flintstone <fred@server.invalid> |
|---|---|
| Date | 2017-09-24 12:36 -0700 |
| Subject | nautilus not working/wireless not responding either |
| Message-ID | <f2qfqqF74g9U1@mid.individual.net> |
Hello ng, Here I am, trying to fix other people's computers, and I can barely keep my own working.... My ubuntu install has really had some hard knocks. I basically had to resurrect it from the dead (unable to boot), and like most frankensteinian objects, it seems to have some odd behaviors. One is that nautilus has stopped working. Another is that the wireless has stopped working. What do I do in such circumstances? Get on this mint partition, and see what does and doesn't work here. The 5g wireless pops up automatically and is just fine here. The GUI works just fine, so we can rule out things like a dead battery in the mouse. $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.2 LTS Release: 16.04 Codename: xenial $ Both of these events were not immediate after the "resurrection." They seemed to happen simultaneously. I wonder if my install needs a more comprehensive fix than looking at either of these problems in microcosm. Ideas? Thanks in advance, -- fred
[toc] | [next] | [standalone]
| From | "Jonathan N. Little" <lws4art@gmail.com> |
|---|---|
| Date | 2017-09-24 15:46 -0400 |
| Message-ID | <oq922b$73i$1@dont-email.me> |
| In reply to | #197281 |
fred flintstone wrote: > Hello ng, > > Here I am, trying to fix other people's computers, and I can barely keep > my own working.... My ubuntu install has really had some hard knocks. I > basically had to resurrect it from the dead (unable to boot), and like > most frankensteinian objects, it seems to have some odd behaviors. > > One is that nautilus has stopped working. Another is that the wireless > has stopped working. What do I do in such circumstances? Get on this > mint partition, and see what does and doesn't work here. The 5g wireless > pops up automatically and is just fine here. The GUI works just fine, so > we can rule out things like a dead battery in the mouse. > > > > $ lsb_release -a > No LSB modules are available. > Distributor ID: Ubuntu > Description: Ubuntu 16.04.2 LTS > Release: 16.04 > Codename: xenial > $ > > Both of these events were not immediate after the "resurrection." They > seemed to happen simultaneously. I wonder if my install needs a more > comprehensive fix than looking at either of these problems in microcosm. > Ideas? Well it certainly help to look for errors in the logs for starters. egrep -i "error|fail" /var/log/syslog Another for application is to launch it from a terminal window and see the error messages when if fails: killall nautilus; nautilus Another is tail the syslog while trying something that fails in realtime. So in a terminal window tail -f /var/log/syslog And then try connecting to WiFi and observe what happens in the tailed log... -- Take care, Jonathan ------------------- LITTLE WORKS STUDIO http://www.LittleWorksStudio.com
[toc] | [prev] | [next] | [standalone]
| From | fred flintstone <fred@server.invalid> |
|---|---|
| Date | 2017-09-29 14:26 -0700 |
| Message-ID | <f37s3hFcu7iU1@mid.individual.net> |
| In reply to | #197282 |
On 09/24/2017 12:46 PM, Jonathan N. Little wrote:
[re-ordered, for thematic reasons]
>
> killall nautilus; nautilus
This behavior has not repreated.
> Well it certainly help to look for errors in the logs for starters.
>
> egrep -i "error|fail" /var/log/syslog
>
> Another for application is to launch it from a terminal window and see
> the error messages when if fails:
Jonathan, it sometime takes me a while to follow all of your
instructions as well as I can, but I think I can reply now with what
look to me to be interesting data. I ran this yesterday and got this. I
have to edit it down to some reasonable length:
$ egrep -i "error|fail" /var/log/syslog
Sep 28 14:20:20 bob-ThinkPad-SL510 NetworkManager[914]: <info>
[1506633620.8249] device (wlp5s0): state change: activated -> failed
(reason 'ip-config-expired') [100 120 6]
Sep 28 14:20:20 bob-ThinkPad-SL510 NetworkManager[914]: <warn>
[1506633620.9026] device (wlp5s0): Activation: failed for connection
'LoveDucks-5G 1'
(process:5409): WARNING **: Failed to register client:
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
org.gnome.SessionManager was not provided by any .service files
Sep 28 14:49:11 bob-ThinkPad-SL510 bluetoothd[853]: RFCOMM server failed
for Headset Voice gateway: rfcomm_bind: Address already in use (98)
Sep 28 15:24:42 bob-ThinkPad-SL510 NetworkManager[914]: <info>
[1506637482.4356] audit: op="connection-activate"
uuid="0db29b69-028f-480f-89e3-ca996ddf0a07" name="LoveDucks-5G" pid=5624
uid=1000 result="fail" reason="Private connection already active on the
device: uid 1000 has no permission to perform this operation"
Sep 28 15:24:42 bob-ThinkPad-SL510 gnome-session[5452]:
(nm-applet:5624): nm-applet-WARNING **: Connection activation failed:
(1) Private connection already active on the device: uid 1000 has no
permission to perform this operation
How would I rewrite this command to also filter on the word 'LoveDucks'?
>
> Another is tail the syslog while trying something that fails in
> realtime. So in a terminal window
>
> tail -f /var/log/syslog
Alright, well I finally was able to run this after it crapped out. I
find the output interesting:
$ tail -f /var/log/syslog
Sep 29 13:52:12 bob-ThinkPad-SL510 dbus[883]: [system] Successfully
activated service 'org.freedesktop.nm_dispatcher'
Sep 29 13:52:12 bob-ThinkPad-SL510 systemd[1]: Started Network Manager
Script Dispatcher Service.
Sep 29 13:52:12 bob-ThinkPad-SL510 nm-dispatcher: req:1 'up' [wlp5s0]:
new request (1 scripts)
Sep 29 13:52:12 bob-ThinkPad-SL510 nm-dispatcher: req:1 'up' [wlp5s0]:
start running ordered scripts...
Sep 29 13:52:12 bob-ThinkPad-SL510 whoopsie[1141]: [13:52:12] The
default IPv4 route is: /org/freedesktop/NetworkManager/ActiveConnection/13
Sep 29 13:52:12 bob-ThinkPad-SL510 whoopsie[1141]: [13:52:12] Not a paid
data plan: /org/freedesktop/NetworkManager/ActiveConnection/13
Sep 29 13:52:12 bob-ThinkPad-SL510 whoopsie[1141]: [13:52:12] Found
usable connection: /org/freedesktop/NetworkManager/ActiveConnection/13
Sep 29 13:52:12 bob-ThinkPad-SL510 whoopsie[1141]: [13:52:12] online
Sep 29 13:52:12 bob-ThinkPad-SL510 gnome-session[5452]:
(deja-dup-monitor:6375): GLib-CRITICAL **: Source ID 3451 was not found
when attempting to remove it
Sep 29 13:52:12 bob-ThinkPad-SL510 gnome-session[1560]:
(deja-dup-monitor:2295): GLib-CRITICAL **: Source ID 4280 was not found
when attempting to remove it
^C
What's this about a default IPv4 route? With a dual-card 2G-5G router
(LoveDucks: we pay for it), and 3 repeaters, there's a lot wifi flying
around here. I like being able to be out in the cottage and still
connected. Yet our entire service is spotty in ways that we can't pin
down. Natasha's phone calls get dropped when they are on the wifi.
Netflix froze up the other day. I reset the cable box and router.
My icon for wireless has disappeared up top. I've figured out what I'm
gonna do about that: I'm gonna upgrade just as soon as I'm done typing this.
>
> And then try connecting to WiFi and observe what happens in the tailed
> log...
>
>
$ sudo service network-manager restart
[sudo] password for bob:
$ netinfo
Network Info:
================================================================================
Internal IP: 192.168.0.56
Device ID: wlp5s0
Gateway: 192.168.0.1
External IP: 76.105.207.102
ISP: AS7922 Comcast Cable Communications, LLC
Country: US
Region: Washington
City: Vancouver
Hostname: bob-ThinkPad-SL510
Reverse: c-76-105-207-102.hsd1.wa.comcast.net.
DNS IP: 8.8.8.8
DNS Name: google-public-dns-a.google.com.
Ping Test:
================================================================================
192.168.0.56: pass
192.168.0.1: pass
76.105.207.102: pass
8.8.8.8: pass
redhat.com: pass
google.com: pass
$ ifaceinfo
Interface Info:
================================================================================
Device: wlp5s0
Brand: Intel Corporation PRO/Wireless 5100 AGN
[Shiloh]
: Network Connection
Kernel Driver: ifiwlwi
Type: Wireless LAN
Source IP: 192.168.0.56
Gateway: 192.168.0.1
$ inxi -Nni
Network: Card-1: Intel PRO/Wireless 5100 AGN [Shiloh] Network Connection
driver: iwlwifi
IF: wlp5s0 state: up mac: 00:24:d6:37:21:ce
Card-2: Realtek RTL8111/8168/8411 PCI Express Gigabit
Ethernet Controller
driver: r8169
IF: enp8s0 state: down mac: 00:26:9e:93:c3:ed
WAN IP: 76.105.207.102 IF: enp8s0 ip-v4: N/A
IF: wlp5s0 ip-v4: 192.168.0.56
$
$ tail -f /var/log/syslog
Sep 29 13:55:08 bob-ThinkPad-SL510 dhclient[18561]: PRC: Address
2601:1c2:4a01:7d0::2 depreferred.
Sep 29 13:55:08 bob-ThinkPad-SL510 NetworkManager[18337]: <info>
[1506718508.2821] dhcp6 (wlp5s0): state changed unknown -> expire
Sep 29 13:55:08 bob-ThinkPad-SL510 NetworkManager[18337]: <info>
[1506718508.2837] dhcp6 (wlp5s0): canceled DHCP transaction, DHCP client
pid 18561
Sep 29 13:55:08 bob-ThinkPad-SL510 NetworkManager[18337]: <info>
[1506718508.2842] dhcp6 (wlp5s0): state changed expire -> done
Sep 29 13:55:09 bob-ThinkPad-SL510 avahi-daemon[866]: Leaving mDNS
multicast group on interface wlp5s0.IPv6 with address
fe80::4a1:df53:f29f:4197.
Sep 29 13:55:09 bob-ThinkPad-SL510 avahi-daemon[866]: Joining mDNS
multicast group on interface wlp5s0.IPv6 with address
2601:1c2:4a01:7d0:c745:7d22:292f:81b2.
Sep 29 13:55:09 bob-ThinkPad-SL510 avahi-daemon[866]: Registering new
address record for 2601:1c2:4a01:7d0:c745:7d22:292f:81b2 on wlp5s0.*.
Sep 29 13:55:09 bob-ThinkPad-SL510 avahi-daemon[866]: Withdrawing
address record for fe80::4a1:df53:f29f:4197 on wlp5s0.
Sep 29 13:55:09 bob-ThinkPad-SL510 avahi-daemon[866]: Registering new
address record for 2601:1c2:4a01:7d0::2 on wlp5s0.*.
Sep 29 13:55:09 bob-ThinkPad-SL510 avahi-daemon[866]: Registering new
address record for 2601:1c2:4a01:7d0:21aa:b360:44c:7d1b on wlp5s0.*.
^C
$
This will be the first time I have run such commands, so I'm definitely
curious what they say.
--
fred
[toc] | [prev] | [next] | [standalone]
| From | fred flintstone <fred@server.invalid> |
|---|---|
| Date | 2017-10-04 19:40 -0700 |
| Message-ID | <f3lkd8FidpgU1@mid.individual.net> |
| In reply to | #197282 |
On 09/24/2017 12:46 PM, Jonathan N. Little wrote: > fred flintstone wrote: >> Hello ng, >> >> Here I am, trying to fix other people's computers, and I can barely keep >> my own working.... My ubuntu install has really had some hard knocks. I >> basically had to resurrect it from the dead (unable to boot), and like >> most frankensteinian objects, it seems to have some odd behaviors. >> >> One is that nautilus has stopped working. Another is that the wireless >> has stopped working. What do I do in such circumstances? Get on this >> mint partition, and see what does and doesn't work here. The 5g wireless >> pops up automatically and is just fine here. The GUI works just fine, so >> we can rule out things like a dead battery in the mouse. >> >> >> >> $ lsb_release -a >> No LSB modules are available. >> Distributor ID: Ubuntu >> Description: Ubuntu 16.04.2 LTS >> Release: 16.04 >> Codename: xenial >> $ >> >> Both of these events were not immediate after the "resurrection." They >> seemed to happen simultaneously. I wonder if my install needs a more >> comprehensive fix than looking at either of these problems in microcosm. >> Ideas? > > Well it certainly help to look for errors in the logs for starters. > > egrep -i "error|fail" /var/log/syslog > > Another for application is to launch it from a terminal window and see > the error messages when if fails: > > killall nautilus; nautilus > > Another is tail the syslog while trying something that fails in > realtime. So in a terminal window > > tail -f /var/log/syslog > > And then try connecting to WiFi and observe what happens in the tailed > log... > > How do I rewrite this script so that it a)would run when there is an outage, creating a log and b) looks like it wasn't written in crayon? $ cat commands.sh egrep -i "error|fail" /var/log/syslog >1.log tail -f /var/log/syslog >>1.log ^C sudo service network-manager restart tail -f /var/log/syslog >>1.log $ -- fred
[toc] | [prev] | [next] | [standalone]
| From | Bit Twister <BitTwister@mouse-potato.com> |
|---|---|
| Date | 2017-10-05 05:03 +0000 |
| Message-ID | <slrnotbf8r.b7l.BitTwister@wb.home.test> |
| In reply to | #197411 |
On Wed, 4 Oct 2017 19:40:38 -0700, fred flintstone wrote:
>
> How do I rewrite this script so that it a)would run when there is an
> outage,
You start by learning a little bit about systemd, then much more via
man systemd.unit
Once you figure out which service unit file you want to add the
OnFailure=/where/ever/your_script_fn_here line to a drop-in file.
You create the drop-in directory /etc/systemd/system/WHICH_SERVICE.service.d/
and you create a .conf drop-in file with something like
[Unit]
OnFailure=/where/ever/commands.sh
Next time WHICH_SERVICE is started your drop-in file's additional Unit
directive(s) will be added to the service.
I can highly recommend using a unique naming convention so you can
locate those kinds of files. As an example, I have
$ locate xx__ | wc -l
38
customization files.
As an example I want the mysqld service to timeout in 150 seconds
instead of the default time out so my drop-in file
/etc/systemd/system/mysqld.service.d/xx__local.conf
has
[Service]
# Give a reasonable amount of time for the server to start up/shut down
TimeoutSec=150
> creating a log and b) looks like it wasn't written in crayon?
I suggest you might want to spend some time in "man journalctl"
and pay attention to the --since= paragraph. Then "man date" might
suggest how to get the "now minus a minute date/time" to use on
journalctl command line to get a copy of what went on a minute before
commands.sh ran.
example: journalctl --since="$date_time" >> 1.log
removes all your /var/log/syslog code
> $ cat commands.sh
What, no
#!/bin/bash
If the script is to run from a systemd invocation, I can also recommend
adding something like
export PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin
> egrep -i "error|fail" /var/log/syslog >1.log
> tail -f /var/log/syslog >>1.log
> ^C
> sudo service network-manager restart
> tail -f /var/log/syslog >>1.log
Pretty sure your "tail -f" will never return to run the next command
in your script.
Just for fun, click up a terminal and paste the following:
sudo -i
journalctl | grep -iE "error|fail"
When through playing with journal commands run
exit
You may want to bookmark this url
https://encrypted.google.com/advanced_search
and put something like the following in the first box
systemd notification network fail
[toc] | [prev] | [next] | [standalone]
| From | fred flintstone <fred@server.invalid> |
|---|---|
| Date | 2017-10-07 15:49 -0700 |
| Message-ID | <f3t3vlFakiiU1@mid.individual.net> |
| In reply to | #197414 |
On 10/04/2017 10:03 PM, Bit Twister wrote: > sudo -i > journalctl | grep -iE "error|fail" Oct 07 15:08:16 bob-ThinkPad-SL510 NetworkManager[847]: <info> [1507414096.2002] device (wlp5s0): state change: activated -> failed (reason 'ip-config-expired') [100 120 6] Oct 07 15:08:16 bob-ThinkPad-SL510 NetworkManager[847]: <warn> [1507414096.2814] device (wlp5s0): Activation: failed for connection 'LoveDucks-5G' Oct 07 15:08:16 bob-ThinkPad-SL510 NetworkManager[847]: <info> [1507414096.2831] device (wlp5s0): state change: failed -> disconnected (reason 'none') [120 30 0] Sometimes it takes me too long to respond to someone's entire post, because there's so much reading for me. There were a whole slew of them; these seem relevant. The one that really catches my eye is 'ip-config-expired'. I'm unaware of what any of the numbers in brackets mean. Thanks for your comment, BT, I'll get the rest of your article read after I get back tonight.... -- fred
[toc] | [prev] | [next] | [standalone]
| From | Bit Twister <BitTwister@mouse-potato.com> |
|---|---|
| Date | 2017-10-07 23:24 +0000 |
| Message-ID | <slrnotiogg.ov3.BitTwister@wb.home.test> |
| In reply to | #197434 |
On Sat, 7 Oct 2017 15:49:23 -0700, fred flintstone wrote: > On 10/04/2017 10:03 PM, Bit Twister wrote: >> sudo -i >> journalctl | grep -iE "error|fail" > > Oct 07 15:08:16 bob-ThinkPad-SL510 NetworkManager[847]: <info> > [1507414096.2002] device (wlp5s0): state change: activated -> failed > (reason 'ip-config-expired') [100 120 6] > Oct 07 15:08:16 bob-ThinkPad-SL510 NetworkManager[847]: <warn> > [1507414096.2814] device (wlp5s0): Activation: failed for connection > 'LoveDucks-5G' > Oct 07 15:08:16 bob-ThinkPad-SL510 NetworkManager[847]: <info> > [1507414096.2831] device (wlp5s0): state change: failed -> disconnected > (reason 'none') [120 30 0] > > Sometimes it takes me too long to respond to someone's entire post, > because there's so much reading for me. There were a whole slew of them; > these seem relevant. The one that really catches my eye is > 'ip-config-expired'. I'm unaware of what any of the numbers in brackets > mean. Depends on location in the line and/or application. I have no experience with NetworkManager so I can not comment about it. Another option to get a script to run into the nic stop/start/fail chain may be the use of dhclient-exit-hooks feature. You would create a link from your commands.sh script to dhclient-exit-hooks. Just for testing, create a dump_env script, with something like /usr/bin/env >> /var/tmp/dump_env.txt create the dhclient-exit-hooks link to /wherever/dump_env and do a network restart. Upon completion cat /var/tmp/dump_env.txt to get an ideal what variables your script could use. You may want to read man dhclient-script
[toc] | [prev] | [next] | [standalone]
| From | Bit Twister <BitTwister@mouse-potato.com> |
|---|---|
| Date | 2017-10-10 23:22 +0000 |
| Subject | Re: systemd was Re: nautilus not working/wireless not responding either |
| Message-ID | <slrnotqlh7.4dn.BitTwister@wb.home.test> |
| In reply to | #197414 |
On Tue, 10 Oct 2017 15:19:13 -0700, fred flintstone wrote: > On 10/04/2017 10:03 PM, Bit Twister wrote: > > >> man systemd.unit > > I've read it twice, but with its length, I want to see it in yet aother > format, so here it is. I find that I pick up things reading the same man > data but in thunderbird. If the length of this bothers you, you are on > the wrong thread. FRAP. deleted over 1200 lines of your f**king stupid and abusive post. If you wanted read it in thunderbird you should have redirected the man output to a file and mailed it to yourself. Do it again I will kill file you.
[toc] | [prev] | [next] | [standalone]
| From | fred flintstone <fred@server.invalid> |
|---|---|
| Date | 2017-10-10 20:32 -0700 |
| Subject | Re: systemd was Re: nautilus not working/wireless not responding either |
| Message-ID | <f45hmkF99koU1@mid.individual.net> |
| In reply to | #197440 |
On 10/10/2017 04:22 PM, Bit Twister wrote: > On Tue, 10 Oct 2017 15:19:13 -0700, fred flintstone wrote: >> On 10/04/2017 10:03 PM, Bit Twister wrote: >> >> >>> man systemd.unit >> >> I've read it twice, but with its length, I want to see it in yet aother >> format, so here it is. I find that I pick up things reading the same man >> data but in thunderbird. If the length of this bothers you, you are on >> the wrong thread. > > FRAP. deleted over 1200 lines of your f**king stupid and abusive post. > > If you wanted read it in thunderbird you should have redirected the > man output to a file and mailed it to yourself. > > Do it again I will kill file you. > I thought it was much shorter than that, and I didn't think reading the man page amounted to abuse. I found something new upon re-rereading. This post is not short, so don't read to the end if it bores you. I appreciate your constructive comments and have no desire to be killfiled by someone such as yourself with technical expertise. I've been playing around with these commands for a few days now, and I think I have a version that tells me something relevant: $ journalctl --since "5 minutes ago" >1.jctl This is what it looks like when the wireless cuts out: -- Logs begin at Thu 2017-10-05 22:38:42 PDT, end at Tue 2017-10-10 19:17:18 PDT. -- Oct 10 19:15:31 bob-ThinkPad-SL510 dhclient[16094]: DHCPREQUEST of 192.168.0.2 on wlp5s0 to 192.168.0.1 port 67 (xid=0x6cb79c3f) Oct 10 19:15:38 bob-ThinkPad-SL510 dhclient[16094]: DHCPREQUEST of 192.168.0.2 on wlp5s0 to 192.168.0.1 port 67 (xid=0x6cb79c3f) Oct 10 19:15:45 bob-ThinkPad-SL510 dhclient[16094]: DHCPREQUEST of 192.168.0.2 on wlp5s0 to 192.168.0.1 port 67 (xid=0x6cb79c3f) Oct 10 19:15:54 bob-ThinkPad-SL510 dhclient[16094]: DHCPREQUEST of 192.168.0.2 on wlp5s0 to 192.168.0.1 port 67 (xid=0x6cb79c3f) Oct 10 19:15:54 bob-ThinkPad-SL510 dhclient[16094]: DHCPNAK from 192.168.0.1 (xid=0x3f9cb76c) Oct 10 19:15:54 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507688154.3647] dhcp4 (wlp5s0): state changed bound -> expire Oct 10 19:15:54 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507688154.3811] dhcp4 (wlp5s0): canceled DHCP transaction, DHCP client pid 16094 Oct 10 19:15:54 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507688154.3812] dhcp4 (wlp5s0): state changed expire -> done Oct 10 19:15:54 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507688154.3819] device (wlp5s0): state change: activated -> failed (reason 'ip-config-expired') [100 120 6] Oct 10 19:15:54 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507688154.3833] manager: NetworkManager state is now CONNECTED_LOCAL Oct 10 19:15:54 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507688154.3843] manager: NetworkManager state is now DISCONNECTED Oct 10 19:15:54 bob-ThinkPad-SL510 whoopsie[1169]: [19:15:54] offline Oct 10 19:15:54 bob-ThinkPad-SL510 kernel: wlp5s0: deauthenticating from 94:10:3e:c0:85:cc by local choice (Reason: 3=DEAUTH_LEAVING) Oct 10 19:15:54 bob-ThinkPad-SL510 dbus[822]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' Oct 10 19:15:54 bob-ThinkPad-SL510 gnome-session[4265]: (deja-dup-monitor:5342): GLib-CRITICAL **: Source ID 16527 was not found when attempting to remove it Oct 10 19:15:54 bob-ThinkPad-SL510 NetworkManager[28084]: <warn> [1507688154.4565] device (wlp5s0): Activation: failed for connection 'LoveDucks-5G' Oct 10 19:15:54 bob-ThinkPad-SL510 avahi-daemon[808]: Withdrawing address record for 2601:1c2:4a01:7d0:e484:3b7:a7d1:8fc7 on wlp5s0. Oct 10 19:15:54 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507688154.4588] device (wlp5s0): state change: failed -> disconnected (reason 'none') [120 30 0] Oct 10 19:15:54 bob-ThinkPad-SL510 avahi-daemon[808]: Withdrawing address record for 2601:1c2:4a01:7d0:42b1:9a7a:3ae8:21b4 on wlp5s0. Then it starts a new process... Oct 10 19:15:54 bob-ThinkPad-SL510 systemd[1]: Starting Network Manager Script Dispatcher Service... Oct 10 19:15:54 bob-ThinkPad-SL510 avahi-daemon[808]: Leaving mDNS multicast group on interface wlp5s0.IPv6 with address 2601:1c2:4a01:7d0:42b1:9a7a:3ae8:21b4. Oct 10 19:15:54 bob-ThinkPad-SL510 systemd[1]: Started Network Manager Script Dispatcher Service. Oct 10 19:15:54 bob-ThinkPad-SL510 avahi-daemon[808]: Joining mDNS multicast group on interface wlp5s0.IPv6 with address fe80::63d8:ed7c:728a:4c8b. Oct 10 19:15:54 bob-ThinkPad-SL510 avahi-daemon[808]: Registering new address record for fe80::63d8:ed7c:728a:4c8b on wlp5s0.*. Oct 10 19:15:54 bob-ThinkPad-SL510 avahi-daemon[808]: Withdrawing address record for fe80::63d8:ed7c:728a:4c8b on wlp5s0. Oct 10 19:15:54 bob-ThinkPad-SL510 avahi-daemon[808]: Leaving mDNS multicast group on interface wlp5s0.IPv6 with address fe80::63d8:ed7c:728a:4c8b. Oct 10 19:15:54 bob-ThinkPad-SL510 avahi-daemon[808]: Interface wlp5s0.IPv6 no longer relevant for mDNS. Oct 10 19:15:54 bob-ThinkPad-SL510 dbus[822]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher' Oct 10 19:15:54 bob-ThinkPad-SL510 nm-dispatcher[16907]: req:1 'down' [wlp5s0]: new request (1 scripts) Oct 10 19:15:54 bob-ThinkPad-SL510 nm-dispatcher[16907]: req:1 'down' [wlp5s0]: start running ordered scripts... Oct 10 19:15:54 bob-ThinkPad-SL510 wpa_supplicant[975]: wlp5s0: CTRL-EVENT-DISCONNECTED bssid=94:10:3e:c0:85:cc reason=3 locally_generated=1 Oct 10 19:15:54 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507688154.4900] dns-mgr: Writing DNS information to /sbin/resolvconf Oct 10 19:15:54 bob-ThinkPad-SL510 avahi-daemon[808]: Withdrawing address record for 192.168.0.2 on wlp5s0. Oct 10 19:15:54 bob-ThinkPad-SL510 avahi-daemon[808]: Leaving mDNS multicast group on interface wlp5s0.IPv4 with address 192.168.0.2. Oct 10 19:15:54 bob-ThinkPad-SL510 dnsmasq[28137]: setting upstream servers from DBus Oct 10 19:15:54 bob-ThinkPad-SL510 dnsmasq[28137]: using nameserver 2001:558:feed::1#53(via wlp5s0) Oct 10 19:15:54 bob-ThinkPad-SL510 dnsmasq[28137]: using nameserver 2001:558:feed::2#53(via wlp5s0) Oct 10 19:15:54 bob-ThinkPad-SL510 avahi-daemon[808]: Interface wlp5s0.IPv4 no longer relevant for mDNS. Oct 10 19:15:54 bob-ThinkPad-SL510 wpa_supplicant[975]: wlp5s0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD Oct 10 19:15:54 bob-ThinkPad-SL510 dnsmasq[28137]: setting upstream servers from DBus Oct 10 19:15:54 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507688154.5707] dns-mgr: Writing DNS information to /sbin/resolvconf Oct 10 19:15:54 bob-ThinkPad-SL510 NetworkManager[28084]: <warn> [1507688154.5902] sup-iface[0x27326c0,wlp5s0]: connection disconnected (reason -3) Oct 10 19:15:54 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507688154.5914] device (wlp5s0): supplicant interface state: completed -> disconnected Oct 10 19:15:54 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507688154.5984] policy: auto-activating connection 'LoveDucks-5G' Oct 10 19:15:54 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507688154.6013] device (wlp5s0): Activation: starting connection 'LoveDucks-5G' (0db29b69-028f-480f-89e3-ca996ddf0a07) Oct 10 19:15:54 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507688154.6050] device (wlp5s0): state change: disconnected -> prepare (reason 'none') [30 40 0] Oct 10 19:15:54 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507688154.6059] manager: NetworkManager state is now CONNECTING Oct 10 19:15:54 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507688154.6157] device (wlp5s0): state change: prepare -> config (reason 'none') [40 50 0] Oct 10 19:15:54 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507688154.6171] device (wlp5s0): Activation: (wifi) access point 'LoveDucks-5G' has security, but secrets are required. Oct 10 19:15:54 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507688154.6176] device (wlp5s0): state change: config -> need-auth (reason 'none') [50 60 0] Oct 10 19:15:54 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507688154.6242] device (wlp5s0): state change: need-auth -> prepare (reason 'none') [60 40 0] Oct 10 19:15:54 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507688154.6288] device (wlp5s0): state change: prepare -> config (reason 'none') [40 50 0] Oct 10 19:15:54 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507688154.6299] device (wlp5s0): Activation: (wifi) connection 'LoveDucks-5G' has security, and secrets exist. No new secrets needed. Oct 10 19:15:54 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507688154.6305] Config: added 'ssid' value 'LoveDucks-5G' Oct 10 19:15:54 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507688154.6307] Config: added 'scan_ssid' value '1' Oct 10 19:15:54 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507688154.6310] Config: added 'key_mgmt' value 'WPA-PSK' Oct 10 19:15:54 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507688154.6312] Config: added 'auth_alg' value 'OPEN' Oct 10 19:15:54 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507688154.6315] Config: added 'psk' value '<omitted>' Oct 10 19:15:54 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507688154.6325] sup-iface[0x27326c0,wlp5s0]: config: set interface ap_scan to 1 Oct 10 19:15:57 bob-ThinkPad-SL510 wpa_supplicant[975]: wlp5s0: SME: Trying to authenticate with 94:10:3e:c0:85:cc (SSID='LoveDucks-5G' freq=5745 MHz) Oct 10 19:15:57 bob-ThinkPad-SL510 kernel: wlp5s0: authenticate with 94:10:3e:c0:85:cc Oct 10 19:15:57 bob-ThinkPad-SL510 kernel: wlp5s0: send auth to 94:10:3e:c0:85:cc (try 1/3) Oct 10 19:15:57 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507688157.6498] device (wlp5s0): supplicant interface state: disconnected -> authenticating Oct 10 19:15:57 bob-ThinkPad-SL510 wpa_supplicant[975]: wlp5s0: Trying to associate with 94:10:3e:c0:85:cc (SSID='LoveDucks-5G' freq=5745 MHz) Oct 10 19:15:57 bob-ThinkPad-SL510 kernel: wlp5s0: authenticated Oct 10 19:15:57 bob-ThinkPad-SL510 kernel: wlp5s0: associate with 94:10:3e:c0:85:cc (try 1/3) Oct 10 19:15:57 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507688157.6700] device (wlp5s0): supplicant interface state: authenticating -> associating Oct 10 19:15:57 bob-ThinkPad-SL510 kernel: wlp5s0: RX AssocResp from 94:10:3e:c0:85:cc (capab=0x11 status=0 aid=1) Oct 10 19:15:57 bob-ThinkPad-SL510 wpa_supplicant[975]: wlp5s0: Associated with 94:10:3e:c0:85:cc Oct 10 19:15:57 bob-ThinkPad-SL510 kernel: wlp5s0: associated Oct 10 19:15:57 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507688157.6808] device (wlp5s0): supplicant interface state: associating -> associated Oct 10 19:15:57 bob-ThinkPad-SL510 wpa_supplicant[975]: wlp5s0: WPA: Key negotiation completed with 94:10:3e:c0:85:cc [PTK=CCMP GTK=CCMP] Oct 10 19:15:57 bob-ThinkPad-SL510 wpa_supplicant[975]: wlp5s0: CTRL-EVENT-CONNECTED - Connection to 94:10:3e:c0:85:cc completed [id=0 id_str=] Oct 10 19:15:57 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507688157.8889] device (wlp5s0): supplicant interface state: associated -> completed Oct 10 19:15:57 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507688157.8890] device (wlp5s0): Activation: (wifi) Stage 2 of 5 (Device Configure) successful. Connected to wireless network 'LoveDucks-5G'. It goes on to be connected completely. $ tail -f /var/log/syslog >6.log Question) Is the service NetworkManager like the above or more like I see in the output: Oct 10 20:11:05 bob-ThinkPad-SL510 dbus[822]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher' Oct 10 20:11:05 bob-ThinkPad-SL510 systemd[1]: Started Network Manager Script Dispatcher Service. Oct 10 20:11:05 bob-ThinkPad-SL510 nm-dispatcher: req:1 'dhcp4-change' [wlp5s0]: new request (1 scripts) Oct 10 20:11:05 bob-ThinkPad-SL510 nm-dispatcher: req:1 'dhcp4-change' [wlp5s0]: start running ordered scripts... Oct 10 20:11:05 bob-ThinkPad-SL510 dhclient[16971]: bound to 192.168.0.2 -- renewal in 1553 seconds. Oct 10 20:16:32 bob-ThinkPad-SL510 dbus[822]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' Oct 10 20:16:32 bob-ThinkPad-SL510 systemd[1]: Starting Hostname Service... Oct 10 20:16:32 bob-ThinkPad-SL510 dbus[822]: [system] Successfully activated service 'org.freedesktop.hostname1' Oct 10 20:16:32 bob-ThinkPad-SL510 systemd[1]: Started Hostname Service. Oct 10 20:17:01 bob-ThinkPad-SL510 CRON[18011]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Question) Is this the unit that represents my wireless capability? Oct 10 20:16:32 bob-ThinkPad-SL510 dbus[822]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus- org.freedesktop.hostname1.service' -- fred
[toc] | [prev] | [next] | [standalone]
| From | Bit Twister <BitTwister@mouse-potato.com> |
|---|---|
| Date | 2017-10-11 04:52 +0000 |
| Subject | Re: systemd was Re: nautilus not working/wireless not responding either |
| Message-ID | <slrnotr8ss.o4l.BitTwister@wb.home.test> |
| In reply to | #197443 |
On Tue, 10 Oct 2017 20:32:34 -0700, fred flintstone wrote:
> On 10/10/2017 04:22 PM, Bit Twister wrote:
>>
>> FRAP. deleted over 1200 lines of your f**king stupid and abusive post.
>>
>> If you wanted to read it in thunderbird you should have redirected the
>> man output to a file and mailed it to yourself.
>>
>> Do it again I will kill file you.
>>
>
> I thought it was much shorter than that, and I didn't think reading the
> man page amounted to abuse.
Reading a man page is not abuse, you posting a man page to Usenet just
to read it with Thunderbird is. Now, that 1200+ man page is on all the
Usenet servers. :-(
There is no reason to waste Usenet server disk space like that.
> I found something new upon re-rereading.
> This post is not short, so don't read to the end if it bores you. I
> appreciate your constructive comments and have no desire to be killfiled
> by someone such as yourself with technical expertise.
I suggest you make an effort to not get in anybody's kill file.
Lots of "different" subject matter experts lurk in news groups.
It is entirely possible when they see someone being a jerk, or whatnot,
they will kill file you. I know I do it.
> I've been playing around with these commands for a few days now, and I
> think I have a version that tells me something relevant:
>
> $ journalctl --since "5 minutes ago" >1.jctl
>
> This is what it looks like when the wireless cuts out:
>
> -- Logs begin at Thu 2017-10-05 22:38:42 PDT, end at Tue 2017-10-10
> 19:17:18 PDT. --
> Oct 10 19:15:31 bob-ThinkPad-SL510 dhclient[16094]: DHCPREQUEST of
> 192.168.0.2 on wlp5s0 to 192.168.0.1 port 67 (xid=0x6cb79c3f)
You might want to have a little compassion for the readers of your
post and trim out/down un-need text. Yeah, I know, you might not know
what is and is not needed but, for instance run these commands
journalctl --since "1 minutes ago"
journalctl --no-hostname --since "1 minutes ago"
Notice any difference.
Don't like all the typing, Here
alias jctl='journalctl --no-hostname'
jctl --since "2 minutes ago"
jctl | tail -4
> Oct 10 19:15:38 bob-ThinkPad-SL510 dhclient[16094]: DHCPREQUEST of
> 192.168.0.2 on wlp5s0 to 192.168.0.1 port 67 (xid=0x6cb79c3f)
Seeing that your wireless is using dhclient then the -exit hook script
would be the place to place your commands.sh script.
> $ tail -f /var/log/syslog >6.log
>
> Question) Is the service NetworkManager like the above or more like I
> see in the output:
Not sure what you really mean. "the above" (did not read it for unit info)
is showing the same kinds of wireless/nic dhclient messages regardless
of who (network, NetworkManager, systemd-networkd) is managing the nic.
> Oct 10 20:11:05 dbus[822]: [system] Successfully activated
^
|
name of program ----' issuing the message.
> Question) Is this the unit that represents my wireless capability?
I do not understand that question.
I saw nothing representing your wireless capability.
[toc] | [prev] | [next] | [standalone]
| From | Melzzzzz <Melzzzzz@zzzzz.com> |
|---|---|
| Date | 2017-10-11 05:00 +0000 |
| Subject | Re: systemd was Re: nautilus not working/wireless not responding either |
| Message-ID | <ork8ib$379$3@news.albasani.net> |
| In reply to | #197444 |
On 2017-10-11, Bit Twister <BitTwister@mouse-potato.com> wrote: > On Tue, 10 Oct 2017 20:32:34 -0700, fred flintstone wrote: >> On 10/10/2017 04:22 PM, Bit Twister wrote: > >>> >>> FRAP. deleted over 1200 lines of your f**king stupid and abusive post. >>> >>> If you wanted to read it in thunderbird you should have redirected the >>> man output to a file and mailed it to yourself. >>> >>> Do it again I will kill file you. >>> >> >> I thought it was much shorter than that, and I didn't think reading the >> man page amounted to abuse. > > Reading a man page is not abuse, you posting a man page to Usenet just > to read it with Thunderbird is. Now, that 1200+ man page is on all the > Usenet servers. :-( When I see more then couple hundred of lines I just skip post, except if author is known to me and respected. -- press any key to continue or any other to quit...
[toc] | [prev] | [next] | [standalone]
| From | fred flintstone <fred@server.invalid> |
|---|---|
| Date | 2017-10-12 16:09 -0700 |
| Subject | Re: systemd was Re: nautilus not working/wireless not responding either |
| Message-ID | <f4ab27Fd0riU1@mid.individual.net> |
| In reply to | #197444 |
On 10/10/2017 09:52 PM, Bit Twister wrote: > On Tue, 10 Oct 2017 20:32:34 -0700, fred flintstone wrote: [Let's move on. Big snips.] > You might want to have a little compassion for the readers of your > post and trim out/down un-need text. Yeah, I know, you might not know > what is and is not needed but, for instance run these commands > > journalctl --since "1 minutes ago" > journalctl --no-hostname --since "1 minutes ago" > > Notice any difference. > > Don't like all the typing, Here > alias jctl='journalctl --no-hostname' > jctl --since "2 minutes ago" > jctl | tail -4 > > Again, thank for your detailed response, BT; I had never used the alias feature before, but I suspect that you are shooting from the hip and missed by a keystroke somewhere: $ cat 3.jctl.sh #!/bin/bash # if run by systemd: #export PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin alias jctl='journalctl' jctl -S "10 m ago" >3.jctl.txt echo 'last 4 in tail' >>3.jctl.txt jctl | tail -4 >>3.jctl.txt exit ... $ sh 3.jctl.sh ...runs without diagnostic... $ cat 3.jctl.txt | tail -10 Oct 12 08:53:37 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507823617.7494] dhcp6 (wlp5s0): state changed unknown -> expire Oct 12 08:53:37 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507823617.7514] dhcp6 (wlp5s0): canceled DHCP transaction, DHCP client pid 27505 Oct 12 08:53:37 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507823617.7515] dhcp6 (wlp5s0): state changed expire -> done Oct 12 08:53:39 bob-ThinkPad-SL510 avahi-daemon[808]: Registering new address record for 2601:1c2:4a01:7d0::2 on wlp5s0.*. Oct 12 08:54:33 bob-ThinkPad-SL510 org.gnome.zeitgeist.SimpleIndexer[4123]: ** (zeitgeist-fts:4874): WARNING **: Unable to get info on application://nautilus-autostart.desktop last 4 in tail Oct 12 08:53:37 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507823617.7514] dhcp6 (wlp5s0): canceled DHCP transaction, DHCP client pid 27505 Oct 12 08:53:37 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507823617.7515] dhcp6 (wlp5s0): state changed expire -> done Oct 12 08:53:39 bob-ThinkPad-SL510 avahi-daemon[808]: Registering new address record for 2601:1c2:4a01:7d0::2 on wlp5s0.*. Oct 12 08:54:33 bob-ThinkPad-SL510 org.gnome.zeitgeist.SimpleIndexer[4123]: ** (zeitgeist-fts:4874): WARNING **: Unable to get info on application://nautilus-autostart.desktop $ I use files that begin with ordinals and have a small toolbox that clones that file and munges it slightly, so I can start with a clone and test new syntax quickly: $ create.sh 3.jctl.sh This gives me a clone named 4.jctl.sh, and then I added a time stamp: $ cat 4.jctl.sh #!/bin/bash # if run by systemd: #export PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin alias jctl='journalctl --no-hostname' now=$(date +"%T") echo "Current time : $now" >4.jctl.txt jctl -S "20 m ago" >>4.jctl.txt echo 'last 4 in tail' >>4.jctl.txt jctl | tail -4 >>4.jctl.txt exit ... $ sh 4.jctl.sh journalctl: unrecognized option '--no-hostname' journalctl: unrecognized option '--no-hostname' $ cat 4.jctl.txt Current time : 09:10:56 last 4 in tail Clearly, we're looking at a deluge of information and must winnow it out along one of more criteria. >> Oct 10 20:11:05 dbus[822]: [system] Successfully activated > ^ > | > name of program ----' issuing the message. Ok, there's always at least one field in these things that i don't understand. So if I were at a terminal and I type kill 822 , then this process would disappear? Is 822 its unit ID number? Oct 12 15:48:47 bob-ThinkPad-SL510 NetworkManager[28084]: <info> [1507848527.8799] dhcp6 (wlp5s0): state changed expire -> done Likewise 28084 here for NetworkManager? -- fred >
[toc] | [prev] | [next] | [standalone]
| From | Bit Twister <BitTwister@mouse-potato.com> |
|---|---|
| Date | 2017-10-13 03:06 +0000 |
| Subject | Re: systemd was Re: nautilus not working/wireless not responding either |
| Message-ID | <slrnou0bdp.m0n.BitTwister@wb.home.test> |
| In reply to | #197450 |
On Thu, 12 Oct 2017 16:09:57 -0700, fred flintstone wrote: > On 10/10/2017 09:52 PM, Bit Twister wrote: >> On Tue, 10 Oct 2017 20:32:34 -0700, fred flintstone wrote: > > [Let's move on. Big snips.] > >> You might want to have a little compassion for the readers of your >> post and trim out/down un-need text. Yeah, I know, you might not know >> what is and is not needed but, for instance run these commands >> >> journalctl --since "1 minutes ago" >> journalctl --no-hostname --since "1 minutes ago" >> >> Notice any difference. >> >> Don't like all the typing, Here >> alias jctl='journalctl --no-hostname' >> jctl --since "2 minutes ago" >> jctl | tail -4 >> >> > > Again, thank for your detailed response, BT; I had never used the alias > feature before, but I suspect that you are shooting from the hip and > missed by a keystroke somewhere: Hehehehe, that is cute. When you make statements like that, you need to show us the command used and resulting output. I did not miss by a key stroke. I hit it dead center. I cut/passed from this reply. Watch me again very slowly. $ alias jctl='journalctl --no-hostname' $ jctl | grep fail | head -1 Oct 12 17:00:47 systemd[1]: privoxy.service: Unit entered failed state. Bash converted the alias "jctl" to journalctl --no-hostname ran it, sent output through grep, then call head to print the first line. > > $ cat 3.jctl.sh > #!/bin/bash > # if run by systemd: > #export PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin I can recommend adding line set -u # Show usage of unset variables as an error to help catch typos. > alias jctl='journalctl' > > jctl -S "10 m ago" >3.jctl.txt Recommendations: Use the long format for switch arguments in script, --since instead of -S. Use full noun instead of abbreviation, minutes instead of m. Makes it more readable, months from now if you have to work on. Even better, when you post the script/snippet it will make it much easier on anyone thinking about trying to help you. > jctl -S "10 m ago" >3.jctl.txt > echo 'last 4 in tail' >>3.jctl.txt > jctl | tail -4 >>3.jctl.txt Inefficient code. Same effect as follows: echo 'last 4 in tail' > 3.jctl.txt jctl -S "10 m ago" | tail -4 >> 3.jctl.txt You might consider having a coding standard. If you use a string more than once, put it in a variable. Example: TMP=$HOME/tmp _app=$(basename $0) _out_fn="$TMP/$(_app)_3.txt echo 'last 4 in tail' > $_out_fn jctl -S "10 m ago" | tail -4 >> $_out_fn Putting application name on start of file name with only one period in the name can help when you want to parse it for the suffix. Do not use leading numbers as file name where possible. I would have had jctl_3.sh as script name. With my suggested change you can run locate /jct which would return something like /bittwister/local/work/jctl_3.sh /bittwister/tmp/jctl_3.sh.txt Oh, yeah, forgot to mention. When I reply to someone, I keep in mind about lurkers in the thread and people who run across the reply in a search engine. All of what I post may already be known to you and may not apply so just ignore it. > exit > ... > $ sh 3.jctl.sh > ...runs without diagnostic... > $ cat 3.jctl.txt | tail -10 Congratulation, please collect your prize at http://porkmail.org/era/unix/award.html > Oct 12 08:53:37 bob-ThinkPad-SL510 NetworkManager[28084]: <info> > [1507823617.7494] dhcp6 (wlp5s0): state changed unknown -> expire Again, post just enough to make the point. > $ > > I use files that begin with ordinals and have a small toolbox that > clones that file and munges it slightly, so I can start with a clone and > test new syntax quickly: Sounds complex and runs the risk of screwing up code in the script. Personally, I work on the script in my work directory which is at the the front of $PATH. That way I run it and no other users will be impacted by my changes. > $ create.sh 3.jctl.sh > > This gives me a clone named 4.jctl.sh, and then I added a time stamp: > > $ cat 4.jctl.sh > #!/bin/bash > # if run by systemd: > #export PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin I can highly recommend always providing the path in the script. > alias jctl='journalctl --no-hostname' > now=$(date +"%T") > echo "Current time : $now" >4.jctl.txt > jctl -S "20 m ago" >>4.jctl.txt > echo 'last 4 in tail' >>4.jctl.txt > jctl | tail -4 >>4.jctl.txt > exit > ... > $ sh 4.jctl.sh > journalctl: unrecognized option '--no-hostname' > journalctl: unrecognized option '--no-hostname' Uh, huh, here is a solution for that. _jctl='journalctl --no-hostname' and fix $_jctl -S "20 m ago" >>4.jctl.txt $_jctl | tail -4 >>4.jctl.txt I like leading underscore for readability. Also helps seeing them in the environment. Example. env | grep _desktop= | sort -V -t '=' --key=2 _login desktop=1 _binaries desktop=2 _usenet desktop=3 _browsing desktop=4 _root desktop=5 _users desktop=6 _bank desktop=7 _mail desktop=8 > $ cat 4.jctl.txt > Current time : 09:10:56 > last 4 in tail > > Clearly, we're looking at a deluge of information and must winnow it out > along one of more criteria. Yep, thought that 10 minutes ago was abusive. Not to mention on a system that is really busy and has lmsensors installed. See -- Logs begin at Thu 2017-10-12 17:00:43 CDT $ journalctl --no-hostname -u sensord | wc -l 314 $ date Thu Oct 12 21:48:42 CDT 2017 Now that you are up to your ass in alligators you have forgotten why you were draining the swamp. You started out wanting code to run on network failure. If you back through the thread, I suggested a line of code to go into a dhclient-exit-hooks script and running man dhclient-script When the script runs, it would only have to go back a minute in my opinion, and tail would not be required. >>> Oct 10 20:11:05 dbus[822]: [system] Successfully activated >> ^ >> | >> name of program ----' issuing the message. > > Ok, there's always at least one field in these things that i don't > understand. So if I were at a terminal and I type kill 822 , then this > process would disappear? > Is 822 its unit ID number? Again, I do not know and have been running with the assumption that it is. > Oct 12 15:48:47 bob-ThinkPad-SL510 NetworkManager[28084]: <info> > [1507848527.8799] dhcp6 (wlp5s0): state changed expire -> done > > Likewise 28084 here for NetworkManager? Check it out for yourself. ps aux | grep NetworkManager
[toc] | [prev] | [next] | [standalone]
| From | "Jonathan N. Little" <lws4art@gmail.com> |
|---|---|
| Date | 2017-10-13 00:33 -0400 |
| Subject | Re: systemd was Re: nautilus not working/wireless not responding either |
| Message-ID | <orpfmu$gbu$1@dont-email.me> |
| In reply to | #197451 |
Bit Twister wrote:
> $ alias jctl='journalctl --no-hostname'
$ journalctl --no-hostname
journalctl: unrecognized option '--no-hostname'
$ journalctl --help | grep hostname
<blank>
$ journalctl --help | grep "\--no"
--no-tail Show all lines, even in follow mode
--no-full Ellipsize fields
--no-pager Do not pipe output into a pager
$ lsb_release -a
LSB Version:
core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[toc] | [prev] | [next] | [standalone]
| From | Bit Twister <BitTwister@mouse-potato.com> |
|---|---|
| Date | 2017-10-13 05:00 +0000 |
| Subject | Re: systemd was Re: nautilus not working/wireless not responding either |
| Message-ID | <slrnou0i41.8bc.BitTwister@wb.home.test> |
| In reply to | #197452 |
On Fri, 13 Oct 2017 00:33:30 -0400, Jonathan N. Little wrote:
> Bit Twister wrote:
>> $ alias jctl='journalctl --no-hostname'
>
> $ journalctl --no-hostname
> journalctl: unrecognized option '--no-hostname'
>
> $ journalctl --help | grep hostname
><blank>
>
> $ journalctl --help | grep "\--no"
> --no-tail Show all lines, even in follow mode
> --no-full Ellipsize fields
> --no-pager Do not pipe output into a pager
$ journalctl --help | grep "\--no"
--no-tail Show all lines, even in follow mode
--no-full Ellipsize fields
--no-pager Do not pipe output into a pager
--no-hostname Suppress output of hostname field
$ journalctl --version | head -1
systemd 230
[toc] | [prev] | [next] | [standalone]
| From | "Jonathan N. Little" <lws4art@gmail.com> |
|---|---|
| Date | 2017-10-13 09:31 -0400 |
| Subject | Re: systemd was Re: nautilus not working/wireless not responding either |
| Message-ID | <orqf77$34g$1@dont-email.me> |
| In reply to | #197453 |
Bit Twister wrote:
> journalctl --help | grep "\--no"
$ journalctl --help | grep "\--no"
--no-tail Show all lines, even in follow mode
--no-full Ellipsize fields
--no-pager Do not pipe output into a pager
$ journalctl --version | head -1
systemd 229
Apparently a feature not added until v230 which has not been backported
to Ubuntu's current LTS.
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[toc] | [prev] | [next] | [standalone]
| From | "Jonathan N. Little" <lws4art@gmail.com> |
|---|---|
| Date | 2017-10-13 09:32 -0400 |
| Subject | Re: systemd was Re: nautilus not working/wireless not responding either |
| Message-ID | <orqf9g$34g$2@dont-email.me> |
| In reply to | #197453 |
Bit Twister wrote:
> On Fri, 13 Oct 2017 00:33:30 -0400, Jonathan N. Little wrote:
>> Bit Twister wrote:
>>> $ alias jctl='journalctl --no-hostname'
>>
>> $ journalctl --no-hostname
>> journalctl: unrecognized option '--no-hostname'
>>
>> $ journalctl --help | grep hostname
>> <blank>
>>
>> $ journalctl --help | grep "\--no"
>> --no-tail Show all lines, even in follow mode
>> --no-full Ellipsize fields
>> --no-pager Do not pipe output into a pager
>
>
> $ journalctl --help | grep "\--no"
> --no-tail Show all lines, even in follow mode
> --no-full Ellipsize fields
> --no-pager Do not pipe output into a pager
> --no-hostname Suppress output of hostname field
>
> $ journalctl --version | head -1
> systemd 230
>
$ apt-cache policy systemd
systemd:
Installed: 229-4ubuntu19
Candidate: 229-4ubuntu19
Version table:
*** 229-4ubuntu19 500
500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main
amd64 Packages
100 /var/lib/dpkg/status
229-4ubuntu10 500
500 http://security.ubuntu.com/ubuntu xenial-security/main
amd64 Packages
229-4ubuntu4 500
500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[toc] | [prev] | [next] | [standalone]
| From | Bit Twister <BitTwister@mouse-potato.com> |
|---|---|
| Date | 2017-10-13 14:19 +0000 |
| Subject | Re: systemd was Re: nautilus not working/wireless not responding either |
| Message-ID | <slrnou1is6.jir.BitTwister@wb.home.test> |
| In reply to | #197455 |
On Fri, 13 Oct 2017 09:32:29 -0400, Jonathan N. Little wrote: > Bit Twister wrote: >> On Fri, 13 Oct 2017 00:33:30 -0400, Jonathan N. Little wrote: >>> Bit Twister wrote: >> >> $ journalctl --version | head -1 >> systemd 230 >> > > $ apt-cache policy systemd > systemd: > Installed: 229-4ubuntu19 poettering released v235 Oct 6, 2017
[toc] | [prev] | [next] | [standalone]
| From | Marek Novotny <marek.novotny@marspolar.com> |
|---|---|
| Date | 2017-10-13 09:56 -0500 |
| Subject | Re: systemd was Re: nautilus not working/wireless not responding either |
| Message-ID | <6dednQH9XdaBSX3EnZ2dnUU7-W2dnZ2d@giganews.com> |
| In reply to | #197456 |
On 2017-10-13, Bit Twister <BitTwister@mouse-potato.com> wrote:
> On Fri, 13 Oct 2017 09:32:29 -0400, Jonathan N. Little wrote:
>> Bit Twister wrote:
>>> On Fri, 13 Oct 2017 00:33:30 -0400, Jonathan N. Little wrote:
>>>> Bit Twister wrote:
>>>
>>> $ journalctl --version | head -1
>>> systemd 230
>>
>> $ apt-cache policy systemd
>> systemd:
>> Installed: 229-4ubuntu19
>
> poettering released v235 Oct 6, 2017
Distribution Info:
==============================================================
Distribution: Fedora release 26 (Twenty Six)
Boot Loader: Grub Legacy
Grub Version: GRUB 2.02~beta3
Kernel Release: 4.13.5-200.fc26.x86_64
Taint Status: Not Tainted (0)
Systemd Version: systemd 233
--
Marek Novotny
https://github.com/marek-novotny
[toc] | [prev] | [next] | [standalone]
| From | fred flintstone <fred@server.invalid> |
|---|---|
| Date | 2017-10-22 14:35 -0700 |
| Subject | Re: systemd was Re: nautilus not working/wireless not responding either |
| Message-ID | <f54h99Ffor4U1@mid.individual.net> |
| In reply to | #197457 |
On 10/13/2017 07:56 AM, Marek Novotny wrote:
> On 2017-10-13, Bit Twister <BitTwister@mouse-potato.com> wrote:
>> On Fri, 13 Oct 2017 09:32:29 -0400, Jonathan N. Little wrote:
>>> Bit Twister wrote:
>>>> On Fri, 13 Oct 2017 00:33:30 -0400, Jonathan N. Little wrote:
>>>>> Bit Twister wrote:
>>>>
>>>> $ journalctl --version | head -1
>>>> systemd 230
>>>
>>> $ apt-cache policy systemd
>>> systemd:
>>> Installed: 229-4ubuntu19
>>
>> poettering released v235 Oct 6, 2017
>
>
> Distribution Info:
> ==============================================================
>
> Distribution: Fedora release 26 (Twenty Six)
> Boot Loader: Grub Legacy
> Grub Version: GRUB 2.02~beta3
> Kernel Release: 4.13.5-200.fc26.x86_64
> Taint Status: Not Tainted (0)
> Systemd Version: systemd 233
>
Alright, I was able to come far enough with this script to figure out
how to proceed. There had been times when this script would fail on the
wireless, and I would try to read the tea leaves of the output to figure
out where the network had failed. 'ifaceinfo' and 'netinfo' are Marek
Novotny's utilities, available on github:
$ cat 7.jctl.sh
#!/bin/bash
export PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin
set -u # Show usage of unset variables
now="$(date +"%r")"
echo "Current time : $now" >7.jctl.txt
echo greping fail >>7.jctl.txt
journalctl --since "20 minutes ago" | grep fail | head -5 >>7.jctl.txt
echo 'last 4 in tail' >>7.jctl.txt
journalctl | tail -5 >>7.jctl.txt
journalctl --version | head -1 >>7.jctl.txt
ifaceinfo >>7.jctl.txt
netinfo >>7.jctl.txt
exit
$ cat 7.jctl.txt
Current time : 07:48:28 PM
greping fail
last 4 in tail
Oct 17 19:47:39 bob-ThinkPad-SL510 dhclient[15581]: DHCPREQUEST of
192.168.0.2 on wlp5s0 to 192.168.0.1 port 67 (xid=0x62d0bd48)
Oct 17 19:47:51 bob-ThinkPad-SL510 dhclient[15581]: DHCPREQUEST of
192.168.0.2 on wlp5s0 to 192.168.0.1 port 67 (xid=0x62d0bd48)
Oct 17 19:48:06 bob-ThinkPad-SL510 dhclient[15581]: DHCPREQUEST of
192.168.0.2 on wlp5s0 to 192.168.0.1 port 67 (xid=0x62d0bd48)
Oct 17 19:48:10 bob-ThinkPad-SL510 whoopsie[1187]: [19:48:10] Cannot
reach: https://daisy.ubuntu.com
Oct 17 19:48:27 bob-ThinkPad-SL510 dhclient[15581]: DHCPREQUEST of
192.168.0.2 on wlp5s0 to 192.168.0.1 port 67 (xid=0x62d0bd48)
systemd 229
Interface Info:
================================================================================
Device: wlp5s0
Brand: Intel Corporation PRO/Wireless 5100 AGN
[Shiloh]
: Network Connection
Kernel Driver: ifiwlwi
Type: Wireless LAN
Source IP: 192.168.0.2
Gateway: 192.168.0.1
Network Info:
================================================================================
Internal IP: 192.168.0.2
Device ID: wlp5s0
Gateway: 192.168.0.1
External IP: Not Detected
ISP: Not Detected
Country: Not Detected
Region: Not Detected
City: Not Detected
Hostname: bob-ThinkPad-SL510
Reverse: Not Detected
$
External IP not detected made me plug directly into the router with
ethernet, where I also got nothing, while comcast's cable was proceeding
without trouble. I factory-reset the router. For those who do not know,
this will wipe out all the junk in the firewall, the IP addresses, and
reset to the network name and password on the bottom of the device.
I used my 'create.sh' tool to obtain a cloned script but with
incremented and therefore unique output:
https://github.com/TBlazer66/perl/blob/master/create.sh . This passes
the above tests:
$ cat 8.jctl.txt
...
Interface Info:
================================================================================
Device: wlp5s0
Brand: Intel Corporation PRO/Wireless 5100 AGN
[Shiloh]
: Network Connection
Kernel Driver: ifiwlwi
Type: Wireless LAN
Source IP: 192.168.0.3
Gateway: 192.168.0.1
Network Info:
================================================================================
Internal IP: 192.168.0.3
Device ID: wlp5s0
Gateway: 192.168.0.1
External IP: 76.105.207.102
ISP: AS7922 Comcast Cable Communications, LLC
Country: US
Region: Washington
City: Vancouver
Hostname: bob-ThinkPad-SL510
Reverse: c-76-105-207-102.hsd1.wa.comcast.net.
DNS IP: 8.8.8.8
DNS Name: google-public-dns-a.google.com.
Ping Test:
================================================================================
192.168.0.3: pass
192.168.0.1: pass
76.105.207.102: pass
8.8.8.8: pass
redhat.com: pass
google.com: pass
$
I'd like still to get this script to run any time the wireless fails,
but this is an excellent result in that it indicates a restored
internet. Thanks all for comments.
--
fred
[toc] | [prev] | [next] | [standalone]
Page 1 of 2 [1] 2 Next page →
Back to top | Article view | alt.os.linux.ubuntu
csiph-web