You are not logged in.

#1 2016-12-16 02:34:19

TheKoopaKingdom
Member
Registered: 2016-12-15
Posts: 2
Website

[Solved] NetworkManager hangs at boot, breaks all GUI applications

I've recently installed Arch Linux with Budgie Desktop alongside my Windows 10 installation, and the process went relatively smooth ('cept for some outdated parts of the tutorial I was following tongue), but I'm having trouble setting up NetworkManager.

I'm able to open a terminal, and use wifi-menu to start a connection, and that works fine, but it's cumbersome to do every time I boot and I'd rather use the GUI built into settings to manage WIFI, so I'm looking to use NetworkManager instead.

When I enable it to run during boot, Arch Linux just hangs at boot, and I have to use Ctrl + Alt + F2 to disable it. When I start it from the terminal in Budgie I become unable to open any applications, they all fail with weird errors, some related to X server and some about GTK. I tried booting into Gnome instead of Budgie, and there I was able to configure the network after starting NetworkManager, but the unable to open anything problem still persisted on Gnome.

So, now on Budgie I can start NetworkManager and use the internet on already open apps, but not open new ones.

Here's a log of some system info, starting NetworkManager, and then trying to open a few programs:

[kyle@localhost ~]$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp1s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 20:89:84:1e:c6:7c brd ff:ff:ff:ff:ff:ff
3: wlp2s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 60:36:dd:14:f5:23 brd ff:ff:ff:ff:ff:ff
[kyle@localhost ~]$ ping www.google.com
ping: www.google.com: Name or service not known
[kyle@localhost ~]$ sudo systemctl start NetworkManager.service
[sudo] password for kyle: 
[kyle@localhost ~]$ ping www.google.com
PING www.google.com (216.58.219.196) 56(84) bytes of data.
64 bytes from lga25s40-in-f4.1e100.net (216.58.219.196): icmp_seq=1 ttl=55 time=10.4 ms
64 bytes from lga25s40-in-f4.1e100.net (216.58.219.196): icmp_seq=5 ttl=55 time=22.6 ms
64 bytes from lga25s40-in-f4.1e100.net (216.58.219.196): icmp_seq=6 ttl=55 time=18.2 ms
^C
--- www.google.com ping statistics ---
7 packets transmitted, 3 received, 57% packet loss, time 6035ms
rtt min/avg/max/mdev = 10.490/17.121/22.646/5.023 ms
[kyle@localhost ~]$ chromium 
No protocol specified
[1232:1232:1215/203605:ERROR:browser_main_loop.cc(265)] Gtk: cannot open display: :0
[kyle@localhost ~]$ gedit
No protocol specified
Unable to init server: Could not connect: Connection refused

(gedit:1275): Gtk-WARNING **: cannot open display: :0
[kyle@localhost DiscordCanary]$ ./DiscordCanary 
No protocol specified

One more thing not shown in that log is that I'm able to run Chromium and Gedit fine before starting NetworkManager.

Also, here's the output of the status of the NetworkManager service:

● NetworkManager.service - Network Manager
   Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; disabled; vendor preset: disabled)
   Active: active (running) since Thu 2016-12-15 20:40:13 EST; 1min 5s ago
     Docs: man:NetworkManager(8)
 Main PID: 1315 (NetworkManager)
    Tasks: 3 (limit: 4915)
   CGroup: /system.slice/NetworkManager.service
           └─1315 /usr/bin/NetworkManager --no-daemon

Dec 15 20:40:15 localhost.localdomain NetworkManager[1315]: <info>  [1481852415.9772] dhcp4 (wlp2s0): state changed unknown -> bound
Dec 15 20:40:15 localhost.localdomain NetworkManager[1315]: <info>  [1481852415.9784] device (wlp2s0): state change: ip-config -> ip-check (reason 'none') [70 80 0]
Dec 15 20:40:15 localhost.localdomain NetworkManager[1315]: <info>  [1481852415.9789] device (wlp2s0): state change: ip-check -> secondaries (reason 'none') [80 90 0]
Dec 15 20:40:15 localhost.localdomain NetworkManager[1315]: <info>  [1481852415.9794] device (wlp2s0): state change: secondaries -> activated (reason 'none') [90 100 0]
Dec 15 20:40:15 localhost.localdomain NetworkManager[1315]: <info>  [1481852415.9795] manager: NetworkManager state is now CONNECTED_LOCAL
Dec 15 20:40:15 localhost.localdomain NetworkManager[1315]: <info>  [1481852415.9839] manager: NetworkManager state is now CONNECTED_GLOBAL
Dec 15 20:40:15 localhost.localdomain NetworkManager[1315]: <info>  [1481852415.9845] policy: set 'WonkaWorld' (wlp2s0) as default for IPv4 routing and DNS
Dec 15 20:40:15 localhost.localdomain NetworkManager[1315]: <info>  [1481852415.9852] dns-mgr: Writing DNS information to /usr/bin/resolvconf
Dec 15 20:40:16 localhost.localdomain NetworkManager[1315]: <info>  [1481852416.0384] device (wlp2s0): Activation: successful, device activated.
Dec 15 20:40:18 localhost.localdomain NetworkManager[1315]: <info>  [1481852418.2651] manager: startup complete

I can provide more info if necessary.

Last edited by TheKoopaKingdom (2016-12-16 20:28:47)

Offline

#2 2016-12-16 08:36:16

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,182

Re: [Solved] NetworkManager hangs at boot, breaks all GUI applications

> kyle@localhost
https://wiki.archlinux.org/index.php?ti … e_hostname

Make sure you followed at least the other installation instructions.

Offline

#3 2016-12-16 14:46:32

Daerandin
Member
From: Norway
Registered: 2013-05-07
Posts: 281
Website

Re: [Solved] NetworkManager hangs at boot, breaks all GUI applications

I do not know what installation instructions you have followed, but you do mentioned that they are outdated. I do want to point out that the only supported way to install Arch is by following the official installation guide[1]. Third party guides are not supported and may result in moderators dustbinning your topic. Third party guides are quickly outdated (as yours seem to be) and often wrong. Most importantly, nobody here can know how your system if configured when you have not followed the officially supported method.

[1] https://wiki.archlinux.org/index.php/Installation_guide

Offline

#4 2016-12-16 20:27:55

TheKoopaKingdom
Member
Registered: 2016-12-15
Posts: 2
Website

Re: [Solved] NetworkManager hangs at boot, breaks all GUI applications

seth wrote:

> kyle@localhost
https://wiki.archlinux.org/index.php?ti … e_hostname

Make sure you followed at least the other installation instructions.

Setting the hostname fixed it, thanks a bunch.

Daerandin wrote:

I do not know what installation instructions you have followed, but you do mentioned that they are outdated. I do want to point out that the only supported way to install Arch is by following the official installation guide[1]. Third party guides are not supported and may result in moderators dustbinning your topic. Third party guides are quickly outdated (as yours seem to be) and often wrong. Most importantly, nobody here can know how your system if configured when you have not followed the officially supported method.

[1] https://wiki.archlinux.org/index.php/Installation_guide

My bad, I thought the rule was to not use premade scripts / video tutorials.

Offline

Board footer

Powered by FluxBB