The other day I rebooted into Precise 5.7.1 and started to capture the pdiag*.tar.gz files that you requested for both the unmodified frisbee from Precise 5.7.1 and the version with my patch. But I ran into some confusion.
You said you were specifically interested in the dhcpcd.log and wpa_supplicant.log files. The problem was that the pdiag*.tar.gz files that were created had no dhcpcd.log, and only an empty wpa_supplicant.log.
Wondering what I was doing wrong, I looked into the matter and found a couple of unexpected things:
1. wpa_supplicant.log
Using wpa_supplicant v0.7.3 (that comes with Precise 5.7.1), I am unable to redirect stdout to a file using the following line:
Code: Select all
setsid wpa_supplicant -B -d -Dwext -iwlan0 -c/etc/frisbee/wpa_supplicant.conf > /tmp/wpa_supplicant.log
On my hardware, the above line is the command sent by the start-wpa function in /usr/local/frisbee/func after it evaluates this line:
Code: Select all
setsid wpa_supplicant -B -d -Dwext -i$INTERFACE -c$WPACFGFILE > /tmp/wpa_supplicant.log
Code: Select all
setsid wpa_supplicant -B -d -Dwext -iwlan0 -c/etc/frisbee/wpa_supplicant.conf -f/tmp/wpa_supplicant.log
Code: Select all
if grep -q '^wpa_log_mode=1' /etc/frisbee/frisbee.conf ; then
setsid wpa_supplicant -B -d -Dwext -i$INTERFACE -c$WPACFGFILE -f/tmp/wpa_supplicant.log
else
setsid wpa_supplicant -B -Dwext -i$INTERFACE -c$WPACFGFILE -f/tmp/wpa_supplicant.log
fi
2. dhcpcd.log
Clicking the Generate Diagnostic Data in frisbee doesn't actually generate a dhcpcd.log file. Apparently that file is only generated when the user chooses the Network Interfaces tab and then clicks View DHCP Log. If the log file has already been generated, it will be grabbed by clicking Generate Diagnostic Data, but the log is only as recent as the last time the user clicked View DHCP Log, which could've been at the time of the last blue moon. This can be a bit confusing.
So in order to generate a current dhcpcd.log for you, I will click View DHCP Log just prior to clicking Generate Diagnostic Data. Of course, since that log file is just stuff extracted from /var/log/messages, dhcpcd.log is a bit redundant, since /var/log/messages is also included in the tar ball, but I'll include it for convenience.
I'll be sending you four pdiag*.tar.gz files:
1. Generated after clicking Save Profile, with my patch
2. Generated after stopping and starting /etc/init.d/frisbee, with my patch
3. Generated after clicking Save Profile, no patch
4. Generated after stopping and starting /etc/init.d/frisbee, no patch
So that you know what steps were taken before the files were created, here is my general procedure:
- Boot Precise 5.7.1 with: "puppy pfix=ram".
- Overwrite /etc/init.d/frisbee with my patched version.
- Edit /usr/local/frisbee/func to use -f option when starting wpa_supplicant, as described above.
- Start frisbee configuration script.
- Click Diagnostics button.
- Tick Enable Debug Logging check box.
- Close "Wireless Diagnostic Tools" window.
- Select access point from table.
- Click Connect button.
- Enter key and key type.
- Wait for connection to be established.
- Click Manage Saved Networks button.
- Enter static ip address, subnet mask, gateway, DNS server.
- Click Save Profile button.
- Wait for connection to be established.
- Click OK button under "Profile updated" message.
- Close "Manage Saved Network Profiles" window.
- Click Network Interfaces tab.
- Click View DHCP Log button.
- Close "DHCP Log" window.
- Click Wireless Networks tab.
- Click Diagnostics button.
- Click Generate Diagnostic Data button.
- Enter name.
- Click No to not exclude WPA files.
- Click OK to close "Pdialog Diagnostic Information Capture" window.
- Close "Wireless Diagnostic Tools" window.
- Click Exit button.
- Enter these two commands:
Code: Select all
/etc/init.d/frisbee stop /etc/init.d/frisbee start
- Wait for connection to be established.
- Start frisbee configuration script.
- Click Network Interfaces tab.
- Click View DHCP Log button.
- Close "DHCP Log" window.
- Click Wireless Networks tab.
- Click Diagnostics button.
- Click Generate Diagnostic Data button.
- Enter name.
- Click No to not exclude WPA files.
- Click OK to close "Pdialog Diagnostic Information Capture" window.
- Close "Wireless Diagnostic Tools" window.
- Click Exit button.
Don't be confused by the fact that the connection will first be made to a leased ip address when I click the Connect button, even though I want to use a static address. That's not the bug we are discussing in this thread. (That's more of a design flaw than a bug: I am unable to manage a profile and configure it to use a static address until the profile has been created; and I am unable to create a profile except by clicking the Connect button which automatically connects using a leased address, if available. So the cart is before the horse.)
The problem discussed in this thread happens after I restart the frisbee initialization script. With the unmodified script, a leased address is used, as indicated in the fourth pdiag*.tar.gz by these lines in pdiag-201401092052/network/dhcpcd.log:
Code: Select all
Jan 9 20:50:42 puppypc30828 daemon.debug dhcpcd[25625]: wlan0: using hwaddr 00:13:02:3d:a2:fe
Jan 9 20:50:42 puppypc30828 daemon.debug dhcpcd[25625]: wlan0: executing `/lib/dhcpcd/dhcpcd-run-hooks', reason PREINIT
Jan 9 20:50:42 puppypc30828 daemon.debug dhcpcd[25625]: wlan0: executing `/lib/dhcpcd/dhcpcd-run-hooks', reason CARRIER
Jan 9 20:50:43 puppypc30828 daemon.info dhcpcd[25625]: wlan0: broadcasting for a lease
Jan 9 20:50:43 puppypc30828 daemon.debug dhcpcd[25625]: wlan0: sending DISCOVER (xid 0x329d5c44), next in 4.64 seconds
Jan 9 20:50:43 puppypc30828 daemon.info dhcpcd[25625]: eth0: waiting for carrier
Jan 9 20:50:43 puppypc30828 daemon.info dhcpcd[25625]: wlan0: offered 192.168.1.21 from 192.168.1.1
Jan 9 20:50:43 puppypc30828 daemon.debug dhcpcd[25625]: wlan0: sending REQUEST (xid 0x329d5c44), next in 4.56 seconds
Jan 9 20:50:43 puppypc30828 daemon.info dhcpcd[25625]: wlan0: acknowledged 192.168.1.21 from 192.168.1.1
Jan 9 20:50:43 puppypc30828 daemon.info dhcpcd[25625]: wlan0: checking for 192.168.1.21
Jan 9 20:50:43 puppypc30828 daemon.debug dhcpcd[25625]: wlan0: sending ARP probe (1 of 3), next in 1.19 seconds
Jan 9 20:50:44 puppypc30828 daemon.debug dhcpcd[25625]: wlan0: sending ARP probe (2 of 3), next in 1.68 seconds
Jan 9 20:50:45 puppypc30828 daemon.debug dhcpcd[25625]: wlan0: sending ARP probe (3 of 3), next in 2.00 seconds
Jan 9 20:50:47 puppypc30828 daemon.info dhcpcd[25625]: wlan0: leased 192.168.1.21 for 86400 seconds
Jan 9 20:50:47 puppypc30828 daemon.debug dhcpcd[25625]: wlan0: renew in 43200 seconds, rebind in 75600 seconds
Jan 9 20:50:47 puppypc30828 daemon.debug dhcpcd[25625]: wlan0: adding IP address 192.168.1.21/24
Jan 9 20:50:47 puppypc30828 daemon.debug dhcpcd[25625]: wlan0: adding route to 192.168.1.0/24
Jan 9 20:50:47 puppypc30828 daemon.debug dhcpcd[25625]: wlan0: adding default route via 192.168.1.1
Code: Select all
Jan 9 18:11:56 puppypc3672 daemon.debug dhcpcd[26819]: wlan0: using hwaddr 00:13:02:3d:a2:fe
Jan 9 18:11:56 puppypc3672 daemon.debug dhcpcd[26819]: wlan0: executing `/lib/dhcpcd/dhcpcd-run-hooks', reason PREINIT
Jan 9 18:11:56 puppypc3672 daemon.debug dhcpcd[26819]: wlan0: executing `/lib/dhcpcd/dhcpcd-run-hooks', reason CARRIER
Jan 9 18:11:56 puppypc3672 daemon.info dhcpcd[26819]: wlan0: using static address 192.168.1.4
Jan 9 18:11:56 puppypc3672 daemon.debug dhcpcd[26819]: wlan0: adding IP address 192.168.1.4/24
Jan 9 18:11:56 puppypc3672 daemon.debug dhcpcd[26819]: wlan0: adding route to 192.168.1.0/24
Jan 9 18:11:56 puppypc3672 daemon.debug dhcpcd[26819]: wlan0: adding default route via 192.168.1.1
OK, now I'll go send you a PM with the four files. I hope this is helpful to you.
Norm