unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* dhcpcd logs
@ 2019-04-05 10:40 znavko
  2019-04-17  6:05 ` Chris Marusich
  2019-04-17  9:26 ` znavko
  0 siblings, 2 replies; 3+ messages in thread
From: znavko @ 2019-04-05 10:40 UTC (permalink / raw)
  To: Help Guix


[-- Attachment #1.1: Type: text/plain, Size: 415 bytes --]

I try to configure wpa-supplicant + dhcpcd without success.
I cannot see dhcpcd logs.

# ls /var/log
debug  guix/            maillog   nscd.log  slim.log  Xorg.0.log
gdm/   guix-daemon.log  messages  secure    wtmp      Xorg.0.log.old
There are dhclient logs in message, when I run dhclient manually. But herd runs dhcpv4-daemon but I cannot see logs.

Where are dhcpcd logs?


[-- Attachment #1.2: Type: text/html, Size: 1010 bytes --]

[-- Attachment #2: var-log-messages.txt --]
[-- Type: text/plain, Size: 12881 bytes --]

/var/log/messages

Apr  5 13:07:21 localhost NetworkManager[1193]: <info>  [1554458841.1519] manager: (wlp2s0): new 802.11 WiFi device (/org/freedesktop/NetworkManager/Devices/4)
Apr  5 13:07:21 localhost NetworkManager[1193]: <info>  [1554458841.1542] device (wlp2s0): state change: unmanaged -> unavailable (reason 'managed', internal state 'external')
Apr  5 13:07:21 localhost vmunix: [  165.652892] wlp2s0: deauthenticating from xx:xx:xx:xx:xx:55 by local choice (Reason: 3=DEAUTH_LEAVING)
Apr  5 13:07:21 localhost dhclient: receive_packet failed on wlp2s0: Network is down
Apr  5 13:07:21 localhost NetworkManager[1193]: <info>  [1554458841.1719] device (wlp2s0): set-hw-addr: set MAC address to xx:xx:xx:xx:xx:22 (scanning)
Apr  5 13:07:21 localhost NetworkManager[1193]: <info>  [1554458841.1967] device (tun0): state change: disconnected -> prepare (reason 'none', internal state 'external')
Apr  5 13:07:21 localhost NetworkManager[1193]: <info>  [1554458841.2007] device (tun0): state change: prepare -> config (reason 'none', internal state 'external')
Apr  5 13:07:21 localhost NetworkManager[1193]: <info>  [1554458841.2021] device (tun0): state change: config -> ip-config (reason 'none', internal state 'external')
Apr  5 13:07:21 localhost NetworkManager[1193]: <info>  [1554458841.2033] device (tun0): state change: ip-config -> ip-check (reason 'none', internal state 'external')
Apr  5 13:07:21 localhost NetworkManager[1193]: <info>  [1554458841.2042] device (tun0): state change: ip-check -> secondaries (reason 'none', internal state 'external')
Apr  5 13:07:21 localhost NetworkManager[1193]: <warn>  [1554458841.2046] error poking ModemManager: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ModemManager1 was not provided by any .service files
Apr  5 13:07:21 localhost NetworkManager[1193]: <info>  [1554458841.2051] device (tun0): state change: secondaries -> activated (reason 'none', internal state 'external')
Apr  5 13:07:21 localhost NetworkManager[1193]: <info>  [1554458841.2054] manager: NetworkManager state is now CONNECTED_LOCAL
Apr  5 13:07:21 localhost NetworkManager[1193]: <info>  [1554458841.2113] device (tun0): Activation: successful, device activated.
Apr  5 13:07:21 localhost NetworkManager[1193]: <info>  [1554458841.2276] supplicant: wpa_supplicant running
Apr  5 13:07:21 localhost NetworkManager[1193]: <info>  [1554458841.2277] device (wlp2s0): supplicant interface state: init -> starting
Apr  5 13:07:21 localhost NetworkManager[1193]: <info>  [1554458841.2395] sup-iface[0xb64d30,wlp2s0]: supports 4 scan SSIDs
Apr  5 13:07:21 localhost NetworkManager[1193]: <warn>  [1554458841.2397] sup-iface[0xb64d30,wlp2s0]: connection disconnected (reason -3)
Apr  5 13:07:21 localhost NetworkManager[1193]: <info>  [1554458841.2419] device (wlp2s0): supplicant interface state: starting -> ready
Apr  5 13:07:21 localhost NetworkManager[1193]: <info>  [1554458841.2422] device (wlp2s0): state change: unavailable -> disconnected (reason 'supplicant-available', internal state 'managed')
Apr  5 13:07:22 localhost vmunix: [  166.691802] wlp2s0: authenticate with xx:xx:xx:xx:xx:55
Apr  5 13:07:22 localhost vmunix: [  166.711812] wlp2s0: send auth to xx:xx:xx:xx:xx:55 (try 1/3)
Apr  5 13:07:23 localhost vmunix: [  167.636273] wlp2s0: authenticate with xx:xx:xx:xx:xx:55
Apr  5 13:07:23 localhost vmunix: [  167.636282] wlp2s0: send auth to xx:xx:xx:xx:xx:55 (try 1/3)
Apr  5 13:07:24 localhost vmunix: [  167.643904] wlp2s0: xx:xx:xx:xx:xx:55 denied authentication (status 1)
Apr  5 13:07:23 localhost NetworkManager[1193]: <info>  [1554458843.1479] device (wlp2s0): supplicant interface state: ready -> authenticating
Apr  5 13:07:24 localhost vmunix: [  168.692982] wlp2s0: authenticate with xx:xx:xx:xx:xx:55
Apr  5 13:07:25 localhost vmunix: [  168.711751] wlp2s0: send auth to xx:xx:xx:xx:xx:55 (try 1/3)
Apr  5 13:07:25 localhost vmunix: [  168.712398] wlp2s0: authenticate with xx:xx:xx:xx:xx:55
Apr  5 13:07:25 localhost vmunix: [  168.712407] wlp2s0: send auth to xx:xx:xx:xx:xx:55 (try 1/3)
Apr  5 13:07:26 localhost vmunix: [  168.714898] wlp2s0: xx:xx:xx:xx:xx:55 denied authentication (status 1)
Apr  5 13:07:23 localhost NetworkManager[1193]: <info>  [1554458843.1762] device (wlp2s0): supplicant interface state: authenticating -> disconnected
Apr  5 13:07:27 localhost vmunix: [  169.928284] wlp2s0: authenticate with xx:xx:xx:xx:xx:55
Apr  5 13:07:28 localhost vmunix: [  169.946021] wlp2s0: send auth to xx:xx:xx:xx:xx:55 (try 1/3)
Apr  5 13:07:28 localhost vmunix: [  170.859720] wlp2s0: authenticate with xx:xx:xx:xx:xx:55
Apr  5 13:07:29 localhost vmunix: [  170.859729] wlp2s0: send auth to xx:xx:xx:xx:xx:55 (try 1/3)
Apr  5 13:07:29 localhost vmunix: [  170.865104] wlp2s0: xx:xx:xx:xx:xx:55 denied authentication (status 1)
Apr  5 13:07:23 localhost NetworkManager[1193]: <info>  [1554458843.2771] device (wlp2s0): supplicant interface state: disconnected -> scanning
Apr  5 13:07:30 localhost vmunix: [  172.804230] wlp2s0: authenticate with xx:xx:xx:xx:xx:55
Apr  5 13:07:30 localhost vmunix: [  172.821689] wlp2s0: send auth to xx:xx:xx:xx:xx:55 (try 1/3)
Apr  5 13:07:31 localhost vmunix: [  172.823581] wlp2s0: xx:xx:xx:xx:xx:55 denied authentication (status 1)
Apr  5 13:07:24 localhost NetworkManager[1193]: <info>  [1554458844.2185] device (wlp2s0): supplicant interface state: scanning -> authenticating
Apr  5 13:07:24 localhost NetworkManager[1193]: <info>  [1554458844.2595] device (wlp2s0): supplicant interface state: authenticating -> disconnected
Apr  5 13:07:25 localhost NetworkManager[1193]: <info>  [1554458845.4503] device (wlp2s0): supplicant interface state: disconnected -> authenticating
Apr  5 13:07:26 localhost NetworkManager[1193]: <info>  [1554458846.4031] device (wlp2s0): supplicant interface state: authenticating -> disconnected
Apr  5 13:07:26 localhost NetworkManager[1193]: <info>  [1554458846.5116] manager: startup complete
Apr  5 13:07:27 localhost NetworkManager[1193]: <info>  [1554458847.4094] device (wlp2s0): supplicant interface state: disconnected -> scanning
Apr  5 13:07:28 localhost NetworkManager[1193]: <info>  [1554458848.3261] device (wlp2s0): supplicant interface state: scanning -> authenticating
Apr  5 13:07:28 localhost NetworkManager[1193]: <info>  [1554458848.3601] device (wlp2s0): supplicant interface state: authenticating -> disconnected
Apr  5 13:07:33 localhost NetworkManager[1193]: <info>  [1554458853.3662] device (wlp2s0): supplicant interface state: disconnected -> scanning
Apr  5 13:07:36 localhost vmunix: [  180.796823] wlp2s0: authenticate with xx:xx:xx:xx:xx:55
Apr  5 13:07:36 localhost vmunix: [  180.812462] wlp2s0: send auth to xx:xx:xx:xx:xx:55 (try 1/3)
Apr  5 13:07:36 localhost vmunix: [  180.823420] wlp2s0: xx:xx:xx:xx:xx:55 denied authentication (status 1)
Apr  5 13:07:38 localhost vmunix: [  182.763057] wlp2s0: authenticate with xx:xx:xx:xx:xx:55
Apr  5 13:07:38 localhost vmunix: [  182.778957] wlp2s0: send auth to xx:xx:xx:xx:xx:55 (try 1/3)
Apr  5 13:07:38 localhost NetworkManager[1193]: <info>  [1554458858.2836] device (wlp2s0): supplicant interface state: scanning -> authenticating
Apr  5 13:07:38 localhost vmunix: [  182.781139] wlp2s0: xx:xx:xx:xx:xx:55 denied authentication (status 1)
Apr  5 13:07:38 localhost NetworkManager[1193]: <info>  [1554458858.3116] device (wlp2s0): supplicant interface state: authenticating -> disconnected
Apr  5 13:07:49 localhost NetworkManager[1193]: <info>  [1554458869.3167] device (wlp2s0): supplicant interface state: disconnected -> scanning
Apr  5 13:07:57 localhost vmunix: [  201.692734] wlp2s0: authenticate with xx:xx:xx:xx:xx:55
Apr  5 13:07:57 localhost vmunix: [  201.710929] wlp2s0: send auth to xx:xx:xx:xx:xx:55 (try 1/3)
Apr  5 13:07:57 localhost vmunix: [  201.714268] wlp2s0: xx:xx:xx:xx:xx:55 denied authentication (status 1)
Apr  5 13:07:58 localhost vmunix: [  202.713816] wlp2s0: authenticate with xx:xx:xx:xx:xx:55
Apr  5 13:07:58 localhost vmunix: [  202.729847] wlp2s0: send auth to xx:xx:xx:xx:xx:55 (try 1/3)
Apr  5 13:07:58 localhost vmunix: [  202.731760] wlp2s0: xx:xx:xx:xx:xx:55 denied authentication (status 1)
Apr  5 13:07:58 localhost NetworkManager[1193]: <info>  [1554458878.2344] device (wlp2s0): supplicant interface state: scanning -> authenticating
Apr  5 13:07:58 localhost NetworkManager[1193]: <info>  [1554458878.2679] device (wlp2s0): supplicant interface state: authenticating -> disconnected
Apr  5 13:08:08 localhost NetworkManager[1193]: <info>  [1554458888.2688] device (wlp2s0): supplicant interface state: disconnected -> scanning
Apr  5 13:08:28 localhost vmunix: [  232.561951] wlp2s0: authenticate with xx:xx:xx:xx:xx:55
Apr  5 13:08:28 localhost vmunix: [  232.578484] wlp2s0: send auth to xx:xx:xx:xx:xx:55 (try 1/3)
Apr  5 13:08:28 localhost vmunix: [  232.583501] wlp2s0: xx:xx:xx:xx:xx:55 denied authentication (status 1)
Apr  5 13:08:28 localhost vmunix: [  232.917159] wlp2s0: authenticate with xx:xx:xx:xx:xx:55
Apr  5 13:08:28 localhost vmunix: [  232.932789] wlp2s0: send auth to xx:xx:xx:xx:xx:55 (try 1/3)
Apr  5 13:08:28 localhost NetworkManager[1193]: <info>  [1554458908.4377] device (wlp2s0): supplicant interface state: scanning -> authenticating
Apr  5 13:08:28 localhost vmunix: [  232.935358] wlp2s0: xx:xx:xx:xx:xx:55 denied authentication (status 1)
Apr  5 13:08:28 localhost NetworkManager[1193]: <info>  [1554458908.4679] device (wlp2s0): supplicant interface state: authenticating -> disconnected
Apr  5 13:08:29 localhost NetworkManager[1193]: <info>  [1554458909.1200] device (tun0): state change: activated -> unmanaged (reason 'unmanaged', internal state 'removed')
Apr  5 13:08:29 localhost NetworkManager[1193]: <info>  [1554458909.1211] manager: NetworkManager state is now DISCONNECTED
Apr  5 13:08:35 localhost NetworkManager[1193]: <info>  [1554458915.1097] caught SIGTERM, shutting down normally.
Apr  5 13:08:35 localhost shepherd[1]: Service networking has been stopped. 
Apr  5 13:08:35 localhost shepherd[1]: Service wpa-supplicant has been stopped. 
Apr  5 13:08:35 localhost NetworkManager[1193]: <info>  [1554458915.1235] device (wlp2s0): state change: disconnected -> unmanaged (reason 'unmanaged', internal state 'managed')
Apr  5 13:08:35 localhost dhclient: receive_packet failed on wlp2s0: Network is down
Apr  5 13:08:35 localhost NetworkManager[1193]: <info>  [1554458915.1355] device (wlp2s0): set-hw-addr: reset MAC address to xx:xx:xx:xx:xx:33 (unmanage)
Apr  5 13:08:35 localhost NetworkManager[1193]: <info>  [1554458915.1462] exiting (success)
Apr  5 13:08:37 localhost rfkill: unblock set for type wifi
Apr  5 13:08:38 localhost vmunix: [  242.760489] wlp2s0: authenticate with xx:xx:xx:xx:xx:55
Apr  5 13:08:38 localhost vmunix: [  242.778881] wlp2s0: send auth to xx:xx:xx:xx:xx:55 (try 1/3)
Apr  5 13:08:38 localhost vmunix: [  242.781263] wlp2s0: authenticated
Apr  5 13:08:38 localhost vmunix: [  242.786869] wlp2s0: associate with xx:xx:xx:xx:xx:55 (try 1/3)
Apr  5 13:08:38 localhost vmunix: [  242.791182] wlp2s0: RX AssocResp from xx:xx:xx:xx:xx:55 (capab=0xc11 status=0 aid=3)
Apr  5 13:08:38 localhost vmunix: [  242.791332] wlp2s0: associated
Apr  5 13:08:38 localhost wpa_supplicant: Libgcrypt warning: missing initialization - please fix the application
Apr  5 13:08:38 localhost vmunix: [  242.897528] IPv6: ADDRCONF(NETDEV_CHANGE): wlp2s0: link becomes ready
Apr  5 13:08:39 localhost dhclient: Internet Systems Consortium DHCP Client 4.4.1
Apr  5 13:08:39 localhost dhclient: Copyright 2004-2018 Internet Systems Consortium.
Apr  5 13:08:39 localhost dhclient: All rights reserved.
Apr  5 13:08:39 localhost dhclient: For info, please visit https://www.isc.org/software/dhcp/
Apr  5 13:08:39 localhost dhclient: 
Apr  5 13:08:39 localhost dhclient: Listening on LPF/wlp2s0/xx:xx:xx:xx:xx:33
Apr  5 13:08:39 localhost dhclient: Sending on   LPF/wlp2s0/xx:xx:xx:xx:xx:33
Apr  5 13:08:39 localhost dhclient: Sending on   Socket/fallback
Apr  5 13:08:39 localhost dhclient: DHCPREQUEST for 192.168.1.33 on wlp2s0 to 255.255.255.255 port 67
Apr  5 13:08:39 localhost dhclient: DHCPACK of 192.168.1.33 from 192.168.1.1
Apr  5 13:08:39 localhost nscd: 336 monitored file `/etc/resolv.conf` was moved into place, adding watch
Apr  5 13:08:39 localhost dhclient: bound to 192.168.1.33 -- renewal in 11501 seconds.
Apr  5 13:12:31 localhost vmunix: [  476.490379] mmc0: new high speed SDHC card at address e624
Apr  5 13:12:32 localhost vmunix: [  476.516708] mmcblk0: mmc0:e624 SU08G 7.40 GiB 
Apr  5 13:12:32 localhost vmunix: [  476.528697]  mmcblk0: p1
Apr  5 13:12:35 localhost vmunix: [  479.526449] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
Apr  5 13:14:13 localhost vmunix: [  578.469200] mmc0: card e624 removed
Apr  5 13:24:44 localhost -- MARK --


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: dhcpcd logs
  2019-04-05 10:40 dhcpcd logs znavko
@ 2019-04-17  6:05 ` Chris Marusich
  2019-04-17  9:26 ` znavko
  1 sibling, 0 replies; 3+ messages in thread
From: Chris Marusich @ 2019-04-17  6:05 UTC (permalink / raw)
  To: znavko; +Cc: Help Guix

[-- Attachment #1: Type: text/plain, Size: 3076 bytes --]

<znavko@tutanota.com> writes:

> Where are dhcpcd logs?

We start dhcpd as described in gnu/services/networking.scm:

  (define dhcpd-shepherd-service
    (match-lambda
      (($ <dhcpd-configuration> package config-file version run-directory
                                lease-file pid-file interfaces)
       (unless config-file
         (error "Must supply a config-file"))
       (list (shepherd-service
              ;; Allow users to easily run multiple versions simultaneously.
              (provision (list (string->symbol
                                (string-append "dhcpv" version "-daemon"))))
              (documentation (string-append "Run the DHCPv" version " daemon"))
              (requirement '(networking))
              (start #~(make-forkexec-constructor
                        '(#$(file-append package "/sbin/dhcpd")
                          #$(string-append "-" version)
                          "-lf" #$lease-file
                          "-pf" #$pid-file
                          "-cf" #$config-file
                          #$@interfaces)
                        #:pid-file #$pid-file))
              (stop #~(make-kill-destructor)))))))

I checked the manual page for dhcpd ("man dhcpd").  None of those
options (-4, -lf, -pf, -cf) seem to tell dhcpd to change the way it
emits logs.  However, -cf tells it to look at a config file, which might
change the way it behaves.  What dhcpd config are you using?

By default, according to the manual, dhcpd emits logs to syslog:

  "Normally, dhcpd will log all output using the syslog(3) function with
  the log facility set to LOG_DAEMON."

Have you customized the syslog config at all?  By default, it is the
following (defined in gnu/services/base.scm):

  ;; Snippet adapted from the GNU inetutils manual.
  (define %default-syslog.conf
    (plain-file "syslog.conf" "
       # Log all error messages, authentication messages of
       # level notice or higher and anything of level err or
       # higher to the console.
       # Don't log private authentication messages!
       *.alert;auth.notice;authpriv.none       /dev/console

       # Log anything (except mail) of level info or higher.
       # Don't log private authentication messages!
       *.info;mail.none;authpriv.none          /var/log/messages

       # Like /var/log/messages, but also including \"debug\"-level logs.
       *.debug;mail.none;authpriv.none         /var/log/debug

       # Same, in a different place.
       *.info;mail.none;authpriv.none          /dev/tty12

       # The authpriv file has restricted access.
       authpriv.*                              /var/log/secure

       # Log all the mail messages in one place.
       mail.*                                  /var/log/maillog
  "))

It might be good to check all of the places mentioned above, to see if
you can find the logs.  It looks like the "daemon" log facility might
get sent to different locations depending on the severity.

I hope that helps!

-- 
Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: dhcpcd logs
  2019-04-05 10:40 dhcpcd logs znavko
  2019-04-17  6:05 ` Chris Marusich
@ 2019-04-17  9:26 ` znavko
  1 sibling, 0 replies; 3+ messages in thread
From: znavko @ 2019-04-17  9:26 UTC (permalink / raw)
  To: Chris Marusich, znavko; +Cc: Help Guix

Ok. I use dhcp-client instead, cause I need only to get Ip address but not to have dncp server.
Some of threads in help-guix has solved my troubles with wifi. and I published config to my site live-znavko.pantheonsite.io

April 17, 2019 6:06 AM, "Chris Marusich" <cmmarusich@gmail.com> wrote:

> <znavko@tutanota.com> writes:
> 
>> Where are dhcpcd logs?
> 
> We start dhcpd as described in gnu/services/networking.scm:
> 
> (define dhcpd-shepherd-service
> (match-lambda
> (($ <dhcpd-configuration> package config-file version run-directory
> lease-file pid-file interfaces)
> (unless config-file
> (error "Must supply a config-file"))
> (list (shepherd-service
> ;; Allow users to easily run multiple versions simultaneously.
> (provision (list (string->symbol
> (string-append "dhcpv" version "-daemon"))))
> (documentation (string-append "Run the DHCPv" version " daemon"))
> (requirement '(networking))
> (start #~(make-forkexec-constructor
> '(#$(file-append package "/sbin/dhcpd")
> #$(string-append "-" version)
> "-lf" #$lease-file
> "-pf" #$pid-file
> "-cf" #$config-file
> #$@interfaces)
> #:pid-file #$pid-file))
> (stop #~(make-kill-destructor)))))))
> 
> I checked the manual page for dhcpd ("man dhcpd"). None of those
> options (-4, -lf, -pf, -cf) seem to tell dhcpd to change the way it
> emits logs. However, -cf tells it to look at a config file, which might
> change the way it behaves. What dhcpd config are you using?
> 
> By default, according to the manual, dhcpd emits logs to syslog:
> 
> "Normally, dhcpd will log all output using the syslog(3) function with
> the log facility set to LOG_DAEMON."
> 
> Have you customized the syslog config at all? By default, it is the
> following (defined in gnu/services/base.scm):
> 
> ;; Snippet adapted from the GNU inetutils manual.
> (define %default-syslog.conf
> (plain-file "syslog.conf" "
> # Log all error messages, authentication messages of
> # level notice or higher and anything of level err or
> # higher to the console.
> # Don't log private authentication messages!
> *.alert;auth.notice;authpriv.none /dev/console
> 
> # Log anything (except mail) of level info or higher.
> # Don't log private authentication messages!
> *.info;mail.none;authpriv.none /var/log/messages
> 
> # Like /var/log/messages, but also including \"debug\"-level logs.
> *.debug;mail.none;authpriv.none /var/log/debug
> 
> # Same, in a different place.
> *.info;mail.none;authpriv.none /dev/tty12
> 
> # The authpriv file has restricted access.
> authpriv.* /var/log/secure
> 
> # Log all the mail messages in one place.
> mail.* /var/log/maillog
> "))
> 
> It might be good to check all of the places mentioned above, to see if
> you can find the logs. It looks like the "daemon" log facility might
> get sent to different locations depending on the severity.
> 
> I hope that helps!
> 
> --
> Chris

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-04-17  9:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-05 10:40 dhcpcd logs znavko
2019-04-17  6:05 ` Chris Marusich
2019-04-17  9:26 ` znavko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).