You are not logged in.

#1 2016-07-06 12:53:03

Purgator
Member
Registered: 2016-03-02
Posts: 102

[Solved] Connect to the wifi can be very long. Network Manager.

Hello !

I have noticed that connecting to a wifi network can take a very long time, as it can be very fast.
That very problematic while i'm using my computer for my job.

If i switch to an other wifi, it can take a very long time too.

Many times i reboot several times until the process become instant, then i'm not sure but sometimes it can be probably take infinite time to connect.

I'm using Network Manager, but i don't know where are the logs.

Here some commands results :

sudo journalctl -S today | grep -i network | nopaste

http://pastie.org/private/aymswt1sbpsasi4beddqa

$ NetworkManager --version
1.2.2
$ cat /etc/NetworkManager/NetworkManager.conf
[main]
plugins=keyfile
dhcp=internal
dns=default

## HTTP-based connectivity check
#[connectivity]
#uri=http://nmcheck.gnome.org/check_network_status.txt
#interval=100
$ find / -iname *dhcp* 2>/dev/null | grep -Evi 'virtualbox|arduino|wine'
/etc/netctl/examples/vlan-dhcp
/etc/netctl/examples/ethernet-dhcp
/etc/netctl/examples/macvlan-dhcp
/etc/dhcpcd.secret
/etc/systemd/system/multi-user.target.wants/dhcpcd.service
/etc/dhcpcd.duid
/var/abs/core/dhcpcd
/var/abs/core/dhcpcd/dhcpcd.service
/var/abs/core/dhcpcd/dhcpcd_.service
/var/abs/extra/vde2/dhcpd.conf.sample
/var/abs/extra/dhcp
/var/abs/extra/dhcp/dhcpd4.service
/var/abs/extra/dhcp/dhcp-honor-expired.patch
/var/abs/extra/dhcp/dhcp-4.3.1-missing_ipv6-1.patch
/var/abs/extra/dhcp/dhcp-4.3.1-client_script-1.patch
/var/abs/extra/dhcp/dhcpd6.service
/var/abs/extra/dhcp/dhcp.install
/var/cache/pacman/pkg/dhcpcd-6.10.1-1-x86_64.pkg.tar.xz
/var/lib/dhcpcd
/var/lib/dhcpcd/dhcpcd-enp1s0f2.lease6
/var/lib/dhcpcd/dhcpcd-wlp2s0-HUAWEI-9D94.lease
/var/lib/dhcpcd/dhcpcd-wlp2s0-Livebox-B210.lease
/var/lib/dhcpcd/dhcpcd-wlp2s0-BUISSON2.lease
/var/lib/dhcpcd/dhcpcd-wlp2s0-BUISSON3.lease
/var/lib/dhcpcd/dhcpcd-wlp2s0-Livebox-B210.lease6
/var/lib/dhcpcd/dhcpcd-enp1s0f2.lease
/usr/share/gtk-doc/html/libnm-glib/NMDHCP4Config.html
/usr/share/gtk-doc/html/libnm-glib/NMDHCP6Config.html
/usr/share/gtk-doc/html/libnm/NMDhcpConfig.html
/usr/share/gtk-doc/html/NetworkManager/gdbus-org.freedesktop.NetworkManager.DHCP4Config.html
/usr/share/gtk-doc/html/NetworkManager/gdbus-org.freedesktop.NetworkManager.DHCP6Config.html
/usr/share/doc/iproute2/examples/dhcp-client-script
/usr/include/libnm-glib/nm-dhcp6-config.h
/usr/include/libnm-glib/nm-dhcp4-config.h
/usr/include/libnm/nm-dhcp-config.h
/usr/lib/networkmanager/nm-dhcp-helper
/usr/lib/network/dhcp
/usr/lib/network/dhcp/dhcpcd

I'm up to post more commands result but to be honest i don't know what to do.

Thank you in advance.

Last edited by Purgator (2016-07-07 10:11:21)

Offline

#2 2016-07-06 15:01:58

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: [Solved] Connect to the wifi can be very long. Network Manager.

Could you please post the output of find /etc/systemd   ?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2016-07-06 15:13:51

Purgator
Member
Registered: 2016-03-02
Posts: 102

Re: [Solved] Connect to the wifi can be very long. Network Manager.

Hello

$ find /etc/systemd
/etc/systemd
/etc/systemd/journal-upload.conf
/etc/systemd/user
/etc/systemd/user/default.target.wants
/etc/systemd/user/default.target.wants/xdg-user-dirs-update.service
/etc/systemd/user.conf
/etc/systemd/logind.conf.oldConf
/etc/systemd/coredump.conf
/etc/systemd/system
/etc/systemd/system/multi-user.target.wants
/etc/systemd/system/multi-user.target.wants/lm_sensors.service
/etc/systemd/system/multi-user.target.wants/sshd.service
/etc/systemd/system/multi-user.target.wants/remote-fs.target
/etc/systemd/system/multi-user.target.wants/dhcpcd.service
/etc/systemd/system/multi-user.target.wants/ntpd.service
/etc/systemd/system/multi-user.target.wants/NetworkManager.service
/etc/systemd/system/sockets.target.wants
/etc/systemd/system/sockets.target.wants/sshd.socket
/etc/systemd/system/dbus-org.freedesktop.NetworkManager.service
/etc/systemd/system/display-manager.service
/etc/systemd/system/getty.target.wants
/etc/systemd/system/getty.target.wants/getty@tty1.service
/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service
/etc/systemd/system.conf
/etc/systemd/journald.conf
/etc/systemd/timesyncd.conf
/etc/systemd/resolved.conf
/etc/systemd/logind.conf.pacnew
/etc/systemd/logind.conf
/etc/systemd/journal-remote.conf
/etc/systemd/network

Thank you for answering.

Last edited by Purgator (2016-07-06 15:17:22)

Offline

#4 2016-07-06 15:19:58

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: [Solved] Connect to the wifi can be very long. Network Manager.

Purgator wrote:

Thank you for answering.

My pleasure.

You have the dhcpcd.service enabled.  It will spawn a dhcpcd daemon. 
You also have NetworkManager.service enabled (of course), which will also spawn its own dhcpcd daemon *when it needs it*

The two daemons *will* fight for control.   Stop and disable the dhcpcd.service.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2016-07-06 15:51:25

Purgator
Member
Registered: 2016-03-02
Posts: 102

Re: [Solved] Connect to the wifi can be very long. Network Manager.

I already heard about dhcp conflict but i was pretty lost about it. But it seems the issue is still unsolved.

$ sudo systemctl stop dhcpcd.service
Failed to stop dhcpcd.service: Unit dhcpcd.service not loaded.
$ sudo systemctl disable dhcpcd.service
Failed to disable unit: No such file or directory

Something wrong ?

Last edited by Purgator (2016-07-06 15:51:43)

Offline

#6 2016-07-06 16:09:49

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: [Solved] Connect to the wifi can be very long. Network Manager.

Purgator wrote:

Something wrong ?

Yes, but I've no idea what hmm

What is the output of ls- l /etc/systemd/system/multi-user.target.wants/dhcpcd.service   ?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#7 2016-07-06 16:19:36

Purgator
Member
Registered: 2016-03-02
Posts: 102

Re: [Solved] Connect to the wifi can be very long. Network Manager.

Ok tongue

$ ls -l /etc/systemd/system/multi-user.target.wants/dhcpcd.service 
lrwxrwxrwx 1 root root 38 13 févr. 08:15 /etc/systemd/system/multi-user.target.wants/dhcpcd.service -> /usr/lib/systemd/system/dhcpcd.service

I also tryed

$ sudo systemctl stop /usr/lib/systemd/system/dhcpcd.servic
Failed to stop usr-lib-systemd-system-dhcpcd.service.mount: Unit usr-lib-systemd-system-dhcpcd.service.mount not loaded.
$ sudo systemctl stop /etc/systemd/system/multi-user.target.wants/dhcpcd.service
Failed to stop etc-systemd-system-multi\x2duser.target.wants-dhcpcd.service.mount: Unit etc-systemd-system-multi\x2duser.target.wants-dhcpcd.service.mount not loaded.

Last edited by Purgator (2016-07-06 16:19:54)

Offline

#8 2016-07-06 16:29:59

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: [Solved] Connect to the wifi can be very long. Network Manager.

Let's use brute force.  Remove /etc/systemd/system/multi-user.target.wants/dhcpcd.service by hand and reboot.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#9 2016-07-06 16:34:36

Purgator
Member
Registered: 2016-03-02
Posts: 102

Re: [Solved] Connect to the wifi can be very long. Network Manager.

Ok i will do it in 30mn.

By the way, would it not be better to uninstall dhcpcd ? with pacman -Rsn dhcpcd
Just to be sure

Offline

#10 2016-07-06 17:02:13

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: [Solved] Connect to the wifi can be very long. Network Manager.

No.  You need dhcpcd.  We just want NetworkManager to spawn it so that it can control it.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#11 2016-07-07 10:10:45

Purgator
Member
Registered: 2016-03-02
Posts: 102

Re: [Solved] Connect to the wifi can be very long. Network Manager.

It seems it's solved. Maybe it's just luck right now but the wifi connection was really fast.
Better, i can switch from a wifi network to an other very fast !

Thank you very much !

Last edited by Purgator (2016-07-07 10:11:03)

Offline

Board footer

Powered by FluxBB