[SOLVED] - WPA Wifi problems with Mageia 2.

[SOLVED] - WPA Wifi problems with Mageia 2.

Postby tkmm » Jun 7th, '12, 02:17

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!
Last edited by tkmm on Jun 9th, '12, 17:48, edited 3 times in total.
0x4D616765696120757365722073696E63652056657273696F6E2D31
User avatar
tkmm
 
Posts: 74
Joined: May 6th, '12, 01:06

Re: WPA Wifi problems with Mageia 2.

Postby marja » Jun 7th, '12, 12:48

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).
User avatar
marja
 
Posts: 541
Joined: Aug 22nd, '11, 20:50

Re: WPA Wifi problems with Mageia 2.

Postby tkmm » Jun 7th, '12, 15:00

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.
0x4D616765696120757365722073696E63652056657273696F6E2D31
User avatar
tkmm
 
Posts: 74
Joined: May 6th, '12, 01:06

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

Postby tkmm » Jun 7th, '12, 22:25

...And now not working again... Strange...
0x4D616765696120757365722073696E63652056657273696F6E2D31
User avatar
tkmm
 
Posts: 74
Joined: May 6th, '12, 01:06

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

Postby marja » Jun 8th, '12, 07:35

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
User avatar
marja
 
Posts: 541
Joined: Aug 22nd, '11, 20:50

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

Postby tkmm » Jun 8th, '12, 08:15

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...
0x4D616765696120757365722073696E63652056657273696F6E2D31
User avatar
tkmm
 
Posts: 74
Joined: May 6th, '12, 01:06

Re: WPA Wifi problems with Mageia 2.

Postby doktor5000 » Jun 9th, '12, 13:20

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: WPA Wifi problems with Mageia 2.

Postby tkmm » Jun 9th, '12, 17:47

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!
0x4D616765696120757365722073696E63652056657273696F6E2D31
User avatar
tkmm
 
Posts: 74
Joined: May 6th, '12, 01:06


Return to Networking

Who is online

Users browsing this forum: No registered users and 1 guest

cron