Page 1 of 1

[SOLVED] - WPA Wifi problems with Mageia 2.

PostPosted: Jun 7th, '12, 02:17
by tkmm
When trying to connect to a router with WPA security I get:

Code: Select all
Failed to create host name resolver: The requested operation is invalid because redundant
run-parts: /etc/sysconfig/network-scripts/hostname.d/avahi exited with return code 1


If I boot to my windows partition I can connect, but under Mageia I keep getting the above error and no wifi connection. Does anyone know why and what I can do remedy this?

Thanks!

Re: WPA Wifi problems with Mageia 2.

PostPosted: Jun 7th, '12, 12:48
by marja
tkmm wrote:When trying to connect to a router with WPA security I get:

Code: Select all
Failed to create host name resolver: The requested operation is invalid because redundant
run-parts: /etc/sysconfig/network-scripts/hostname.d/avahi exited with return code 1


If I boot to my windows partition I can connect, but under Mageia I keep getting the above error and no wifi connection. Does anyone know why and what I can do remedy this?

Thanks!


In another thread wobo mentioned the same error message, but added that that couldn't be the cause of the not working internet.

https://forums.mageia.org/en/viewtopic.php?f=15&t=782#p5402

If you have networkmanager enabled, try disabling it (by removing the tick in the box before "allow Network Manager to control this interface).

Re: WPA Wifi problems with Mageia 2.

PostPosted: Jun 7th, '12, 15:00
by tkmm
marja wrote:
tkmm wrote:When trying to connect to a router with WPA security I get:

Code: Select all
Failed to create host name resolver: The requested operation is invalid because redundant
run-parts: /etc/sysconfig/network-scripts/hostname.d/avahi exited with return code 1


If I boot to my windows partition I can connect, but under Mageia I keep getting the above error and no wifi connection. Does anyone know why and what I can do remedy this?

Thanks!


In another thread wobo mentioned the same error message, but added that that couldn't be the cause of the not working internet.

https://forums.mageia.org/en/viewtopic.php?f=15&t=782#p5402

If you have networkmanager enabled, try disabling it (by removing the tick in the box before "allow Network Manager to control this interface).


Thanks! I read wobo's thread yesterday before posting this thread. I tried unchecking the box to allow network manager to control the interface. Nothing worked, but this morning when I booted Mageia, I was automatically connected...I'm not sure what happened that made the difference, but things are working now.

Re: [SOLVED] WPA Wifi problems with Mageia 2.

PostPosted: Jun 7th, '12, 22:25
by tkmm
...And now not working again... Strange...

Re: [SOLVED] WPA Wifi problems with Mageia 2.

PostPosted: Jun 8th, '12, 07:35
by marja
tkmm wrote:...And now not working again... Strange...


You could try uninstalling networkmanager, if doing so doesn't take half your DE with it (IINM that happens when you use Gnome, but for me, using KDE, uninstalling networkmanager gave no problems).

Please remove [SOLVED], because apparently, it isn't solved.

Cheers,
marja

Re: [SOLVED] WPA Wifi problems with Mageia 2.

PostPosted: Jun 8th, '12, 08:15
by tkmm
marja wrote:
tkmm wrote:...And now not working again... Strange...


You could try uninstalling networkmanager, if doing so doesn't take half your DE with it (IINM that happens when you use Gnome, but for me, using KDE, uninstalling networkmanager gave no problems).

Please remove [SOLVED], because apparently, it isn't solved.

Cheers,
marja

I typically use fluxbox and have been dissatisfied with Gnome 3... When I have time I'll try removing network manager and maybe even Gnome and see what happens.

Sometimes wifi works and sometimes it doesn't... I'm still not sure why...

Re: WPA Wifi problems with Mageia 2.

PostPosted: Jun 9th, '12, 13:20
by doktor5000
tkmm wrote:
marja wrote:If you have networkmanager enabled, try disabling it (by removing the tick in the box before "allow Network Manager to control this interface).


Thanks! I read wobo's thread yesterday before posting this thread. I tried unchecking the box to allow network manager to control the interface.


Please reread what marja wrote. By unchecking that box, you allow the default net_applet to control the interface. Because when both net_applet and networkmanager fight over the interface, then often there will be no connection at all.

Re: WPA Wifi problems with Mageia 2.

PostPosted: Jun 9th, '12, 17:47
by tkmm
Things seem to be working now. I'm not sure what made the difference...

I deleted everything in the /etc/sysconfig/network-scripts/wireless.d/ directory and ran draknetcenter to set up the wireless interface - taking Marja's advice and disabling network manager. After doing this I had two entries in the wireless.d directory: one named with a mac address and one named with the ssid of the encrypted network.

The contents of the two files appear to be identical:
Code: Select all
BOOTPROTO=dhcp
METRIC=35
USERCTL=no
RESOLV_MODS=no
WIRELESS_MODE=Managed
WIRELESS_ESSID="the network name"
WIRELESS_ENC_KEY=s:WPAPassword
WIRELESS_WPA_DRIVER=wext
WIRELESS_WPA_REASSOCIATE=no
IPV6INIT=no
IPV6TO4INIT=no
ACCOUNTING=yes
NM_CONTROLLED=no
DHCP_CLIENT=dhclient
NEEDHOSTNAME=no
PEERDNS=yes
PEERYP=yes
PEERNTPD=no


After doing this I still didn't have a connection until I logged out and logged back in. Since then my network seems to be working just fine. I wish I knew more clearly what I did to solve this issue... Thanks, everyone for the help!