Static wired connection never succeeds

Bug #870638 reported by jwoithe
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
wicd
Confirmed
Undecided
Unassigned

Bug Description

When configured to use DHCP, a connection to my wired network succeeds (assuming I have the DHCP server running elsewhere). However, if I configure the wired connection to use a static IP number instead, wicd never succeeds to make a connection. When "connect" is hit wicd goes off to do its thing. Using "ifconfig" in a terminal shows that it does in fact correctly set up the interface. However, after a few seconds this is undone and the GUI connection status reverts to "disconnected".

After turning on "debug" the following is written to the log file during a connection attempt as described above.

{{{
2011/09/16 22:38:02 :: Putting interface up...
2011/09/16 22:38:02 :: ifconfig eth0 up
2011/09/16 22:38:04 :: Setting static IP : 192.168.1.199
2011/09/16 22:38:04 :: ifconfig eth0 192.168.1.199 netmask 255.255.255.0
2011/09/16 22:38:04 :: Setting default gateway : 192.168.1.254
2011/09/16 22:38:04 :: route add default gw 192.168.1.254 dev eth0
2011/09/16 22:38:04 :: Setting DNS : 192.168.1.254
2011/09/16 22:38:04 :: Connecting thread exiting.
2011/09/16 22:38:04 :: ifconfig eth0
2011/09/16 22:38:04 :: IP Address is: 192.168.1.199
2011/09/16 22:38:04 :: Sending connection attempt result Success
2011/09/16 22:38:04 :: ifconfig wlan0
2011/09/16 22:38:04 :: Forced disconnect on
2011/09/16 22:38:04 :: iwconfig wlan0
2011/09/16 22:38:04 :: /sbin/dhcpcd -k wlan0
2011/09/16 22:38:04 :: ifconfig wlan0 0.0.0.0
2011/09/16 22:38:04 :: /sbin/ip route flush dev wlan0
2011/09/16 22:38:04 :: ifconfig wlan0 down
2011/09/16 22:38:04 :: ifconfig wlan0 up
2011/09/16 22:38:05 :: wpa_cli -i wlan0 terminate
2011/09/16 22:38:05 :: /sbin/dhcpcd -k eth0
2011/09/16 22:38:05 :: ifconfig eth0 0.0.0.0
2011/09/16 22:38:05 :: /sbin/ip route flush dev eth0
2011/09/16 22:38:05 :: ifconfig eth0 down
}}}

In other words, the daemon believes it has connected successfully and sends a message to this effect. However, the GUI doesn't seem to understand this, concludes that there was a problem and promptly shuts the connection down.

This is with wicd 1.7.0 running on Slackware 13.37, using the package provided in extra/ on the Slackware 13.37 distribution.

Revision history for this message
Uriel32 (max-faul) wrote :

I have the same problem on Ubuntu 12.04 using wicd 1.7.2.3

Revision history for this message
Lars (schallundrauch) wrote :

I also have this problem on Gentoo (3.7.9-gentoo x86_64) and wicd-1.7.2.4-r2.

I think it is this command, that causes the disconnect:

/sbin/dhcpcd -k eth0

See man dhcpcd:

" -k, --release
             This causes an existing dhcpcd process running on the interface to release its
             lease, de-configure the interface and then exit. dhcpcd then waits until this
             process has exited."

It *de-configures the interface*.

Revision history for this message
Lars (schallundrauch) wrote :

I have to admit that my last post was not very useful as it described the symptom not the cause.

But maybe this is of interest:

<pre>
wicd -f
dhcpcd[24122]: sending commands to master dhcpcd process
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
</pre>

This is the output whenever I try to connect using the GUI/curses/cli to any network (wired, wireless with or without static IP).

Wireless connections via GUI only work with static IP

However, it also connects using DHCP when I issue the wpa_supplicant command with the parameters taken from /var/log/wicd/wicd.log directly in the terminal:

<pre>
wpa_supplicant -B -i wlan0 -c /var/lib/wicd/configurations/7444018d97c6 -Dwext
</pre>

Wired connections (static as well as DHCP) do not work using the GUI
However, when the network cable is plugged in it reconnects silently without problem.

Btw, I removed my old /etc/wicd dir and reinstalled wicd before testing. Gentoo's net.* initscripts (except net.lo) are not running.

I would like to help tracking this down, so please tell me what information I could provide.

Revision history for this message
Lars (schallundrauch) wrote :

Sry - I had dhcpcd running in the background....
After stopping dhcpcd everything works except wired connections with static IP using the GUI.

The output of wicd -f now is:

<pre>
dhcpcd[13366]: dhcpcd not running
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
</pre>

However, wired connection with static IP works using wicd-cli and wicd-curses.

Sorry for 3 posts with little new information.

Revision history for this message
Thomas Tsai (thomas.tsai) wrote :

I have same bug and report here
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=711757

I guess it's because update state and call disconnect after connect successful
so i mark daemon.Disconnect() in monitor.py

Revision history for this message
Dieter (dieter-exc) wrote :

This bug also affects us. Latest version (1.7.4+tb2-5~deb9u1) on Debian 9.

Connecting a profile with wired static IP address via wicd-cli always works, with wicd-gtk almost always fails.
Applying the "time.sleep(3)" patch in monitor.py (as mentioned in the Debian bug report https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=711757) solves the issue for wicd-gtk.

Please consider solving this issue permanently (preferably in a less hacky way :).

Changed in wicd:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.