You are not logged in.

#1 2012-11-01 23:02:52

pyarch
Member
Registered: 2011-09-30
Posts: 169

NetworkManager keeps getting disconnected [SOLVED]

Hey everyone,
after the recent upgrade i installed systemd and now i am facing a weird problem :
my network manager keeps getting disconnected and only randomly gets connected to my network for like max 10 minutes.
anyone else facing this problem ?
edit: and for the time it is connected it doesn't show the network it is connected to when i click on the icon in the system tray
and if i use NetworkManager should i have to disable netcfg?
my systemctl -all and journalctl output can be found : http://pastebin.com/FCie5S77
Thanks

EDIT: Why the problem occured:  I had netcfg and NetworkManager running simultaneously.
Solution: Disable/stop one of the two services. You have to either use Netcfg or networkmanager.
Credits to: Fetid Frog

Last edited by pyarch (2012-11-02 00:02:00)

Offline

#2 2012-11-01 23:09:52

Fetid Frog
Member
From: UK
Registered: 2010-04-16
Posts: 24

Re: NetworkManager keeps getting disconnected [SOLVED]

pyarch wrote:

if i use NetworkManager should i have to disable netcfg?

You should only have one of those enabled.  Also make sure you have removed 'network' from DAEMONS if you still have initscripts installed.

Offline

#3 2012-11-01 23:11:08

pyarch
Member
Registered: 2011-09-30
Posts: 169

Re: NetworkManager keeps getting disconnected [SOLVED]

i removed initscripts
how do i know if network is conflicting with my networkmanager or no ?
or do you mean that i need to stop netcfg ?

Last edited by pyarch (2012-11-01 23:22:39)

Offline

#4 2012-11-01 23:26:07

Fetid Frog
Member
From: UK
Registered: 2010-04-16
Posts: 24

Re: NetworkManager keeps getting disconnected [SOLVED]

journalctl wrote:

Oct 31 22:41:02 arch dhcpcd[975]: dhcpcd will not work correctly unless run as root

I'm not sure how netcfg could cause this but you should make sure it is stopped if you want to use networkmanager.

You could try restarting networkmanager and see if the above message is repeated.

Offline

#5 2012-11-01 23:29:51

pyarch
Member
Registered: 2011-09-30
Posts: 169

Re: NetworkManager keeps getting disconnected [SOLVED]

Fetid Frog wrote:
journalctl wrote:

Oct 31 22:41:02 arch dhcpcd[975]: dhcpcd will not work correctly unless run as root

I'm not sure how netcfg could cause this but you should make sure it is stopped if you want to use networkmanager.

You could try restarting networkmanager and see if the above message is repeated.

i tried that ... still get the same error in journalctl
so i have to stop netcfg by :
$ systemctl stop netcfg rite ?
i tried the above no use ... not able to connect to the network at all..
EDIT: ever since i posted this thread now i am even unable to connect to my network sad

Last edited by pyarch (2012-11-01 23:32:15)

Offline

#6 2012-11-01 23:38:17

Fetid Frog
Member
From: UK
Registered: 2010-04-16
Posts: 24

Re: NetworkManager keeps getting disconnected [SOLVED]

Stop netcfg then restart networkmanager?

I assume networkmanager is configured correctly to connect to your network.

Offline

#7 2012-11-01 23:41:47

pyarch
Member
Registered: 2011-09-30
Posts: 169

Re: NetworkManager keeps getting disconnected [SOLVED]

Fetid Frog wrote:

Stop netcfg then restart networkmanager?

I assume networkmanager is configured correctly to connect to your network.

$ systemctl stop netcfg
$ systemctl restart NetworkManager
didn't help ! still doesn't connect to my network ... it gets connected sometimes but lasts for only few minutes sad
is there anything else that i need to provide you so that you can figure out where the problem is ?

Offline

#8 2012-11-01 23:46:09

Fetid Frog
Member
From: UK
Registered: 2010-04-16
Posts: 24

Re: NetworkManager keeps getting disconnected [SOLVED]

What type of network are you trying to connect to (wired|wireless) and how did you connect to it before systemd (network|netcfg|networkmanager|other)?

Offline

#9 2012-11-01 23:50:59

pyarch
Member
Registered: 2011-09-30
Posts: 169

Re: NetworkManager keeps getting disconnected [SOLVED]

Fetid Frog wrote:

What type of network are you trying to connect to (wired|wireless) and how did you connect to it before systemd (network|netcfg|networkmanager|other)?

before systemd i had NetworkManager in my initscripts and it just worked smile
with systemd i did a bunch of stuff from archwiki like an idiot/fool not giving it much thought because i wanted my arch up and running .. now by force i am wasting time fixing stuff which if i had paid attention to at the beginning could have saved me all this time tongue
edit: forgot to answer your question I connect using wireless

Last edited by pyarch (2012-11-01 23:51:39)

Offline

#10 2012-11-01 23:52:27

Fetid Frog
Member
From: UK
Registered: 2010-04-16
Posts: 24

Re: NetworkManager keeps getting disconnected [SOLVED]

sudo systemctl --all wrote:

net-auto-wired.service                loaded failed   failed
net-auto-wireless.service            loaded active   running
NetworkManager.service             loaded active   running

Try stopping net-auto-wired and net-auto-wireless.  They are services of netcfg.

Offline

#11 2012-11-01 23:54:44

pyarch
Member
Registered: 2011-09-30
Posts: 169

Re: NetworkManager keeps getting disconnected [SOLVED]

Fetid Frog wrote:
sudo systemctl --all wrote:

net-auto-wired.service                loaded failed   failed
net-auto-wireless.service            loaded active   running
NetworkManager.service             loaded active   running

Try stopping net-auto-wired and net-auto-wireless.  They are services of netcfg.

bingo !!! smile
Thanks alot Fetid Frog ... all this while i have been doing systemctl stop/disable netcfg when i should have done
systemctl stop net-auto-wired/wireless

Offline

#12 2012-11-01 23:55:19

Fetid Frog
Member
From: UK
Registered: 2010-04-16
Posts: 24

Re: NetworkManager keeps getting disconnected [SOLVED]

If you just want to use networkmanager, you don't even need netcfg installed.  The wiki says that users of the network daemon should switch to netcfg.

Offline

#13 2012-11-01 23:56:43

pyarch
Member
Registered: 2011-09-30
Posts: 169

Re: NetworkManager keeps getting disconnected [SOLVED]

Fetid Frog wrote:

If you just want to use networkmanager, you don't even need netcfg installed.  The wiki says that users of the network daemon should switch to netcfg.

yeah ... like i said ... i didn't do stuff properly which could have saved this hazzle tongue
anyways thanks alot Fetid :cheers:

Offline

#14 2012-11-01 23:56:46

Fetid Frog
Member
From: UK
Registered: 2010-04-16
Posts: 24

Re: NetworkManager keeps getting disconnected [SOLVED]

pyarch wrote:

bingo !!! smile

I'm glad you got it working now.

Offline

#15 2012-11-01 23:58:19

Fetid Frog
Member
From: UK
Registered: 2010-04-16
Posts: 24

Re: NetworkManager keeps getting disconnected [SOLVED]

BTW, don't forget to

systemctl disable net-auto-wired
systemctl disable net-auto-wireless

Offline

#16 2012-11-01 23:59:40

pyarch
Member
Registered: 2011-09-30
Posts: 169

Re: NetworkManager keeps getting disconnected [SOLVED]

Fetid Frog wrote:

BTW, don't forget to

systemctl disable net-auto-wired
systemctl disable net-auto-wireless

did that restarted the computer and now everything is fine smile Thanks a bunch once again ...

Offline

Board footer

Powered by FluxBB