You are not logged in.

#1 2014-05-23 04:14:52

heyom
Member
Registered: 2013-12-03
Posts: 43

[SOLVED] Network Stopped After Few Seconds/Minutes of Working

I have a weird problem that I wouldn't find a clear solution to fix it. I set my network configuration correctly by using only wpa_supplicant & wireless_tools. Here are my all configuration:

pacman.conf:

...
SigLevel = Required DatabaseOptional TrustedOnly
LocalFileSigLevel = Required DatabaseOptional TrustedOnly
...

DNSCrypt

/etc/resolv.conf:

nameserver 127.0.0.1

/etc/dhcpcd.conf:

nohook resolv.conf
noipv6rs

then I issued this:

chattr +i /etc/resolv.conf

/etc/hosts:

127.0.0.1 localhost.localdomain localhost my-pc

/usr/lib/sysctl.d/50-default.conf:

fs.protected_hardlinks = 1
fs.protected_symlinks = 1
kernel.sysrq = 0
kernel.dmesg_restrict = 1
kernel.kptr_restrict = 1
kernel.yama.ptrace_scope = 1
net.core.bpf_jit_enable = 0
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_rfc1337 = 1
net.ipv4.tcp_timestamps = 0
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.ip_forward = 0
net.ipv4.conf.all.log_martians = 1
net.ipv4.conf.default.log_martians = 1
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.icmp_echo_ignore_all = 1
net.ipv4.icmp_ignore_bogus_error_responses = 1
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.default.send_redirects = 0
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.default.accept_redirects = 0
net.ipv4.conf.all.secure_redirects = 0
net.ipv4.conf.default.secure_redirects = 0

I completely disabled the IPV6 by adding the prameter ipv6.disable=1.

Finally I connect to the internet by typing:

iwlist <interface name> scan | grep ESSID

ip link set <interface name> up

wpa_passphrase <ssid> “<password>” > /etc/wpa_supplicant/<filename>.conf

wpa_supplicant -B -i <interface name> -c /etc/wpa_supplicant/<file name>.conf

dhcpcd <interface name>

Untill now, the internet connection is normal and working just fine with DNScrypt. After about a minute of successful connection, suddenly I get errors like the following:

error: failed retrieving file 'core.db' from archlinux.limun.org : Resolving timed out after 10520 milliseconds
error: failed to update core (download library error)
...

I have no idea what's wrong with my configuration that made my connection only for couple of seconds or a minute at maximum (sometimes few minutes) I don't have clear reason what does it happened like that. I have to note that I also used netctl however, the problem is still exists.

I hope you guys can help me with this.

Thank you very much in advance.

Last edited by heyom (2014-06-03 20:39:37)

Offline

#2 2014-05-23 04:50:48

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,354

Re: [SOLVED] Network Stopped After Few Seconds/Minutes of Working

can you post the output of systemctl --type=service  --no-pager
   ?

Last edited by ewaller (2014-05-23 04:51:26)


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 2014-05-23 19:06:16

heyom
Member
Registered: 2013-12-03
Posts: 43

Re: [SOLVED] Network Stopped After Few Seconds/Minutes of Working

ewaller wrote:

can you post the output of systemctl --type=service  --no-pager
   ?

Here it is:

accounts-daemon.service                                                                              loaded   active   running   Accounts Service
colord.service                                                                                                           loaded   active   running   Manage, Install and Generate Color Profiles
dbus.service                                                                                                             loaded   active   running   D-Bus System Message Bus
dnscrypt-proxy.service                                                                                             loaded   active   running   A tool for securing communications between a client and DNS resolver.
getty@tty1.service                                                                                                   loaded   active   running   Getty on tty1
kmod-static-nodes.serivce                                                                                       loaded   active   exited     Create list of required static device nodes for the current kernel
polkit.service                                                                                                            loaded   active   running   Authorization Manager
systemd-backlight@backlight:acpi_video0.service                                                loaded   active   exited   Load/Save Screen Backlight Brightness of backlight:acpi_video0
systemd-backlight@backlight:intel_backlight.service                                           loaded   active   exited   Load/Save Screen Backlight Brightness of backlight:intel_backlight
systemd-backlight@backlight:kbd_blacklight.service                                           loaded   active   exited   Load/Save Screen Backlight Brightness of backlight:kbd_blacklight
systemd-fsck@dev-disk-by\x2duuid-0F80\x2d405D.service                                 loaded   active   exited   File System Check on /dev/disk/by-uuid/0F80-405D
systemd-fsck-root.service                                                                                       loaded   active   exited   File System Check on Root Device
systemd-journald.service                                                                                        loaded   active   running   Journal Service
systemd-localed.service                                                                                         loaded   active   running   Locale Service
systemd-logind.service                                                                                           loaded   active   running   Login Service
systemd-random-seed.service                                                                               loaded   active   exited   Load/Save Random Seed
systemd-remount-fs.service                                                                                  loaded   active   exited   Remount Root Kernel File Systems
systemd-rfkill@rfkill0.service                                                                                loaded   active   exited   Loaded/Save RF Kill Switch Status of rfkill0
systemd-sysctl.service                                                                                           loaded   active   exited   Apply Kernel Variables
systemd-tmpfiles-setup-dev.service                                                                      loaded   active   exited   Create Static Device Nodes in /dev
systemd-tmpfiles-setup.service                                                                             loaded   active   exited   Create Volatile Files and Directories
systemd-udev-trigger.service                                                                                 loaded   active   exited   udev Coldplug all Devices
systemd-udevd.service                                                                                           loaded   active   running   udev Kernel Device Manager
systemd-update-utmp.service                                                                                loaded   active   exited   Update UTMP about System Boot/Shutdown
systemd-user-sessions.service                                                                               loaded   active   exited   Permit User Sessions
systemd-vconsole-setup.service                                                                            loaded   active   exited   Setup Virtual Console
upower.service                                                                                                        loaded   active   running   Daemon for power managment
user@0.service                                                                                                        loaded   active   running   User Manager for UID 0

Last edited by heyom (2014-05-23 19:11:11)

Offline

#4 2014-05-23 19:50:05

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,354

Re: [SOLVED] Network Stopped After Few Seconds/Minutes of Working

I was looking to see if there were any services running that might be fighting you.  There do not appear to be any.
After the errors start, did you check to see if you were still associated with your access point?
iw <network name> link
Any messages from dhcpcd in the journal?


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 2014-05-23 20:30:31

heyom
Member
Registered: 2013-12-03
Posts: 43

Re: [SOLVED] Network Stopped After Few Seconds/Minutes of Working

I'm pretty sure something is blocking the connection despite the fact that the network connection association seems fine to me at the beginning. However, NetworkManager.service has just failed to load:

iw <network interface> link
Connected to 00:1a:2b:af:83:44 (on <network interface>)
     SSID: <SSID_NAME>
     freq: 2437
     RX: 11170436 bytes (44293 packets)
     TX: 1167572 bytes (6861 packets)
     signal: -60 dBm
     tx bitrate: 7.2 MBit/s MCS 0 short GI

     bss flags:     short-slot-time
     dtim period:     0
     beacon int:      100
journal -xn
-- Logs begin at Wed 2014-05-21 15:40:54 CEST, end at Fri 2014-5-23 12:04:58 CERT. --
May 23 12:04:41 pc dbus[329]: [system] Activating via systemd: service name='org.freedesktop.NetworkManager' unit='dbus-org.freedesktop.NetworkManager.service'
May 23 12:04:41 pc dbus[329]: [system] Activating via systemd failed for unit 'dbus-org.freedesktop.NetworkManager.service': Unit dbus-org.freedesktop.NetworkManager.service failed to load: No such file or directory
May 23 12:04:41 pc dbus[329]: [system] Activating via systemd: service name='org.freedesktop.NetworkManager' unit='dbus-org.freedesktop.NetworkManager.service'
May 23 12:04:41 pc dbus[329]: [system] Activating via systemd failed for unit 'dbus-org.freedesktop.NetworkManager.service': Unit dbus-org.freedesktop.NetworkManager.service failed to load: No such file or directory
May 23 12:04:41 pc colord[583]: Device added: xrandr-Apple Computer Inc
May 23 12:04:41 pc gnome-session[501]: (gnome-settings-daemon:522): color-plugin-WARNING **: failed to create profile from EDID data: failed to create profile with chroma and gamma
May 23 12:04:41 pc gnome-session[501]: Window manager warning: Log lvel 16: fetch_connections_done: error fetching connections: (32) Unit dbus-org.freedesktop.NetworkManager.service failed to loaded: No such file or directory
May 23 12:04:58 pc firefox.desktop[644]: (process:644) GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
May 23 12:04:58 pc dbus[329]: [system] Activating via systemd: service name='org.freedesktop.NetworkManager' unit='dbus-org.freedesktop.NetworkManager.service'
May 23 12:04:58 pc dbus[329]: [system] Activating via systemd failed for unit 'dbus-org.freedesktop.NetworkManager.service': Unit dbus-org.freedesktop.NetworkManager.service failed to load: No such file or directory

Offline

#6 2014-05-23 20:35:23

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,354

Re: [SOLVED] Network Stopped After Few Seconds/Minutes of Working

Reading your post now. Give me a second.  As moderator, I can tell you that the first time you tried to post, you hit the 'report' link, not the 'reply' link.  It happens smile

Edit:  Okay, when did NetworkManager get involved in this?  tongue   I think you need to stop wpa_supplicant and down the interface before you try to start NetworkManager

Last edited by ewaller (2014-05-23 20:39:10)


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 2014-05-23 20:36:52

heyom
Member
Registered: 2013-12-03
Posts: 43

Re: [SOLVED] Network Stopped After Few Seconds/Minutes of Working

Oh I'm sorry didn't noticed hehe. Take your time.

Offline

#8 2014-05-23 21:08:44

heyom
Member
Registered: 2013-12-03
Posts: 43

Re: [SOLVED] Network Stopped After Few Seconds/Minutes of Working

I have no idea why the NetworkManager got involved by sudden...

This is strange. I did shutdown the network interface using

ip link set <network interface> down

then

up

again and the network connection works fine. But again, after a minute or so of working connection, it suddenly stopped. I checked the

journal -xn

but this time there is no error...

I still don't understand what makes my connection blocked... :(

Offline

#9 2014-05-26 20:46:37

heyom
Member
Registered: 2013-12-03
Posts: 43

Re: [SOLVED] Network Stopped After Few Seconds/Minutes of Working

"Edit:  Okay, when did NetworkManager get involved in this?  tongue   I think you need to stop wpa_supplicant and down the interface before you try to start NetworkManager"

UPDATE: I have stopped & disabled dhcpcd.service and tried several times to connect to the internet in a hope of solving the problem and unfortunately it remains unclear why the internet connection stops after few sec. or min at max. I have tried to use several network adapters to connect wirelessly but the problem still exists. Wired connection is completely fine though.

I have discovered another problem here:

May 26 05:07:18 pc dhcpcd[15757]: wlp0s29u1u7: leased 192.168.1.46 for 43200 seconds
May 26 05:07:18 pc dhcpcd[15757]: wlp0s29u1u7: adding route to 192.168.1.0/24
May 26 05:07:18 pc dhcpcd[15757]: wlp0s29u1u7: adding default route via 192.168.1.1
May 26 05:07:18 pc dhcpcd[15757]: wlp0s29u1u7: removing route to 192.168.1.0/24
May 26 05:07:18 pc dhcpcd[15757]: wlp0s29u1u7: removing default route via 192.168.1.1
May 26 05:07:40 pc dhcpcd[15757]: wlp0s29u1u7: control command: dhcpcd
May 26 05:07:40 pc dhcpcd[15757]: wlp0s29u1u7: adding route to 192.168.1.0/24
May 26 05:07:40 pc dhcpcd[15757]: wlp0s29u1u7: adding default route via 192.168.1.1
May 26 05:07:40 pc dhcpcd[15757]: wlp0s29u1u7: removing route to 192.168.1.0/24
May 26 05:07:40 pc dhcpcd[15757]: wlp0s29u1u7: removing default route via 192.168.1.1

Why does it remove routing?

Another problem here that I have found:

May 26 05:07:40 pc systemd[1]: Unit dhcpcd@wlp0s29u1u7.service entered failed state.
May 26 05:07:40 pc dhcpcd[15836]: wlp0s29u1u7: IAID 3b:69:fa:2a
May 26 05:07:40 pc dhcpcd[15836]: wlp0s29u1u7: rebinding lease of 192.168.1.46
May 26 05:07:53 pc dhcpcd[15836]: wlp0s29u1u7: DHCP lease expired
May 26 05:07:53 pc dhcpcd[15836]: wlp0s29u1u7:soliciting a DHCP lease

Can anyone explain the issues above to me?

Thank you in advance.

Offline

#10 2014-06-03 20:39:19

heyom
Member
Registered: 2013-12-03
Posts: 43

Re: [SOLVED] Network Stopped After Few Seconds/Minutes of Working

Offline

Board footer

Powered by FluxBB