panel shows "VPN off" when VPN is in fact running

Bug #1772636 reported by Merlijn Sebrechts
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gnome-shell (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

https://gitlab.gnome.org/GNOME/gnome-shell/issues/301

---

In Ubuntu 18.04, the VPN toggles in the dash show that all VPN's are off, even though it's on.

Attached are two screenshots from the same moment: the panel incorrectly shows no VPN, but Gnome Settings correctly shows that one VPN is running.

journalctl output when start a vpn using the panel:

```
May 22 13:38:49 travers NetworkManager[1961]: <info> [1526989129.3767] audit: op="connection-activate" uuid="d8584177-fff2-4f25-9406-226260cb0ca3" name="tengumaas" pid=3483 uid=1000 result="success"
May 22 13:38:49 travers NetworkManager[1961]: <info> [1526989129.3843] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",0]: Started the VPN service, PID 12474
May 22 13:38:49 travers NetworkManager[1961]: <info> [1526989129.3972] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",0]: Saw the service appear; activating connection
May 22 13:38:49 travers nm-openvpn[12477]: OpenVPN 2.4.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Feb 10 2018
May 22 13:38:49 travers nm-openvpn[12477]: library versions: OpenSSL 1.1.0g 2 Nov 2017, LZO 2.08
May 22 13:38:49 travers nm-openvpn[12477]: WARNING: --ns-cert-type is DEPRECATED. Use --remote-cert-tls instead.
May 22 13:38:49 travers nm-openvpn[12477]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
May 22 13:38:49 travers nm-openvpn[12477]: TCP/UDP: Preserving recently used remote address: [AF_INET]...
May 22 13:38:49 travers nm-openvpn[12477]: Attempting to establish TCP connection with [AF_INET]... [nonblock]
May 22 13:38:49 travers NetworkManager[1961]: <info> [1526989129.4095] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",0]: VPN plugin: state changed: starting (3)
May 22 13:38:49 travers NetworkManager[1961]: <info> [1526989129.4095] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",0]: VPN connection: (ConnectInteractive) reply received
May 22 13:38:50 travers nm-openvpn[12477]: TCP connection established with [AF_INET]...
May 22 13:38:50 travers nm-openvpn[12477]: TCP_CLIENT link local: (not bound)
May 22 13:38:50 travers nm-openvpn[12477]: TCP_CLIENT link remote: [AF_INET]...
May 22 13:38:50 travers nm-openvpn[12477]: NOTE: chroot will be delayed because of --client, --pull, or --up-delay
May 22 13:38:50 travers nm-openvpn[12477]: NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay
May 22 13:38:50 travers nm-openvpn[12477]: [server] Peer Connection Initiated with [AF_INET]...
May 22 13:38:51 travers nm-openvpn[12477]: WARNING: INSECURE cipher with block size less than 128 bit (64 bit). This allows attacks like SWEET32. Mitigate by using a --cipher with a larger block size (e.g. AES-256-CBC).
May 22 13:38:51 travers nm-openvpn[12477]: WARNING: INSECURE cipher with block size less than 128 bit (64 bit). This allows attacks like SWEET32. Mitigate by using a --cipher with a larger block size (e.g. AES-256-CBC).
May 22 13:38:51 travers nm-openvpn[12477]: WARNING: cipher with small block size in use, reducing reneg-bytes to 64MB to mitigate SWEET32 attacks.
May 22 13:38:51 travers nm-openvpn[12477]: TUN/TAP device tun1 opened
May 22 13:38:51 travers nm-openvpn[12477]: /usr/lib/NetworkManager/nm-openvpn-service-openvpn-helper --debug 0 12474 --bus-name org.freedesktop.NetworkManager.openvpn.Connection_10 --tun -- tun1 1500 1544 .....18 .....17 init
May 22 13:38:51 travers NetworkManager[1961]: <info> [1526989131.9937] manager: (tun1): new Tun device (/org/freedesktop/NetworkManager/Devices/9)
May 22 13:38:51 travers systemd-udevd[12485]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0065] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",0]: VPN connection: (IP Config Get) reply received.
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0084] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",9:(tun1)]: VPN connection: (IP4 Config Get) reply received
May 22 13:38:52 travers nm-openvpn[12477]: chroot to '/var/lib/openvpn/chroot' and cd to '/' succeeded
May 22 13:38:52 travers nm-openvpn[12477]: GID set to nm-openvpn
May 22 13:38:52 travers nm-openvpn[12477]: UID set to nm-openvpn
May 22 May 22 13:38:49 travers NetworkManager[1961]: <info> [1526989129.3767] audit: op="connection-activate" uuid="d8584177-fff2-4f25-9406-226260cb0ca3" name="tengumaas" pid=3483 uid=1000 result="success"
May 22 13:38:49 travers NetworkManager[1961]: <info> [1526989129.3843] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",0]: Started the VPN service, PID 12474
May 22 13:38:49 travers NetworkManager[1961]: <info> [1526989129.3972] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",0]: Saw the service appear; activating connection
May 22 13:38:49 travers nm-openvpn[12477]: OpenVPN 2.4.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Feb 10 2018
May 22 13:38:49 travers nm-openvpn[12477]: library versions: OpenSSL 1.1.0g 2 Nov 2017, LZO 2.08
May 22 13:38:49 travers nm-openvpn[12477]: WARNING: --ns-cert-type is DEPRECATED. Use --remote-cert-tls instead.
May 22 13:38:49 travers nm-openvpn[12477]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
May 22 13:38:49 travers nm-openvpn[12477]: TCP/UDP: Preserving recently used remote address: [AF_INET]...
May 22 13:38:49 travers nm-openvpn[12477]: Attempting to establish TCP connection with [AF_INET]... [nonblock]
May 22 13:38:49 travers NetworkManager[1961]: <info> [1526989129.4095] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",0]: VPN plugin: state changed: starting (3)
May 22 13:38:49 travers NetworkManager[1961]: <info> [1526989129.4095] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",0]: VPN connection: (ConnectInteractive) reply received
May 22 13:38:50 travers nm-openvpn[12477]: TCP connection established with [AF_INET]...
May 22 13:38:50 travers nm-openvpn[12477]: TCP_CLIENT link local: (not bound)
May 22 13:38:50 travers nm-openvpn[12477]: TCP_CLIENT link remote: [AF_INET]...
May 22 13:38:50 travers nm-openvpn[12477]: NOTE: chroot will be delayed because of --client, --pull, or --up-delay
May 22 13:38:50 travers nm-openvpn[12477]: NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay
May 22 13:38:50 travers nm-openvpn[12477]: [server] Peer Connection Initiated with [AF_INET]...
May 22 13:38:51 travers nm-openvpn[12477]: WARNING: INSECURE cipher with block size less than 128 bit (64 bit). This allows attacks like SWEET32. Mitigate by using a --cipher with a larger block size (e.g. AES-256-CBC).
May 22 13:38:51 travers nm-openvpn[12477]: WARNING: INSECURE cipher with block size less than 128 bit (64 bit). This allows attacks like SWEET32. Mitigate by using a --cipher with a larger block size (e.g. AES-256-CBC).
May 22 13:38:51 travers nm-openvpn[12477]: WARNING: cipher with small block size in use, reducing reneg-bytes to 64MB to mitigate SWEET32 attacks.
May 22 13:38:51 travers nm-openvpn[12477]: TUN/TAP device tun1 opened
May 22 13:38:51 travers nm-openvpn[12477]: /usr/lib/NetworkManager/nm-openvpn-service-openvpn-helper --debug 0 12474 --bus-name org.freedesktop.NetworkManager.openvpn.Connection_10 --tun -- tun1 1500 1544 .....18 .....17 init
May 22 13:38:51 travers NetworkManager[1961]: <info> [1526989131.9937] manager: (tun1): new Tun device (/org/freedesktop/NetworkManager/Devices/9)
May 22 13:38:51 travers systemd-udevd[12485]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0065] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",0]: VPN connection: (IP Config Get) reply received.
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0084] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",9:(tun1)]: VPN connection: (IP4 Config Get) reply received
May 22 13:38:52 travers nm-openvpn[12477]: chroot to '/var/lib/openvpn/chroot' and cd to '/' succeeded
May 22 13:38:52 travers nm-openvpn[12477]: GID set to nm-openvpn
May 22 13:38:52 travers nm-openvpn[12477]: UID set to nm-openvpn
May 22 13:38:52 travers nm-openvpn[12477]: Initialization Sequence Completed
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0100] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",9:(tun1)]: Data: VPN Gateway: 193.190.127.152
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0101] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",9:(tun1)]: Data: Tunnel Device: "tun1"
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0102] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",9:(tun1)]: Data: IPv4 configuration:
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0102] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",9:(tun1)]: Data: Internal Gateway: .....17
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0103] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",9:(tun1)]: Data: Internal Address: .....18
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0103] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",9:(tun1)]: Data: Internal Prefix: 32
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0104] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",9:(tun1)]: Data: Internal Point-to-Point Address: .....17
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0104] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",9:(tun1)]: Data: Static Route: ....0/16 Next Hop: .....17
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0105] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",9:(tun1)]: Data: Static Route: .....1/32 Next Hop: .....17
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0106] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",9:(tun1)]: Data: Static Route: .....17/32 Next Hop: 0.0.0.0
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0106] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",9:(tun1)]: Data: Internal DNS: ....1
May 22 13:38:52 travers dnsmasq[2308]: reading /etc/resolv.conf
May 22 13:38:52 travers dnsmasq[2308]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers dnsmasq[3225]: reading /etc/resolv.conf
May 22 13:38:52 travers dnsmasq[3225]: using local addresses only for domain lxd
May 22 13:38:52 travers dnsmasq[3225]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0114] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",9:(tun1)]: Data: DNS Domain: 'maas'
May 22 13:38:52 travers networkd-dispatcher[1978]: WARNING:Unknown index 9 seen, reloading interface list
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0116] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",9:(tun1)]: Data: No IPv6 configuration
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0116] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",9:(tun1)]: VPN plugin: state changed: started (4)
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0118] devices added (path: /sys/devices/virtual/net/tun1, iface: tun1)
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0118] device added (path: /sys/devices/virtual/net/tun1, iface: tun1): no ifupdown configuration found.
May 22 13:38:52 travers systemd-networkd[1477]: tun1: Gained carrier
May 22 13:38:52 travers dnsmasq[3225]: reading /etc/resolv.conf
May 22 13:38:52 travers dnsmasq[3225]: using local addresses only for domain lxd
May 22 13:38:52 travers dnsmasq[3225]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers dnsmasq[2308]: reading /etc/resolv.conf
May 22 13:38:52 travers systemd-networkd[1477]: tun1: Gained IPv6LL
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0161] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",9:(tun1)]: VPN connection: (IP Config Get) complete
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0162] device (tun1): state change: unmanaged -> unavailable (reason 'connection-assumed', sys-iface-state: 'external')
May 22 13:38:52 travers dnsmasq[3225]: reading /etc/resolv.conf
May 22 13:38:52 travers dnsmasq[3225]: using local addresses only for domain lxd
May 22 13:38:52 travers dnsmasq[3225]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers dnsmasq[2308]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers dnsmasq[2308]: reading /etc/resolv.conf
May 22 13:38:52 travers dnsmasq[2308]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers dnsmasq[2308]: reading /etc/resolv.conf
May 22 13:38:52 travers dnsmasq[2308]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers dnsmasq[2308]: reading /etc/resolv.conf
May 22 13:38:52 travers dnsmasq[2308]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers dnsmasq[2308]: reading /etc/resolv.conf
May 22 13:38:52 travers dnsmasq[2308]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers dnsmasq[2308]: reading /etc/resolv.conf
May 22 13:38:52 travers dnsmasq[2308]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers dnsmasq[2308]: reading /etc/resolv.conf
May 22 13:38:52 travers dnsmasq[2308]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers dnsmasq[2308]: reading /etc/resolv.conf
May 22 13:38:52 travers dnsmasq[2308]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers dnsmasq[2308]: reading /etc/resolv.conf
May 22 13:38:52 travers dnsmasq[2308]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers dnsmasq[2308]: reading /etc/resolv.conf
May 22 13:38:52 travers dnsmasq[2308]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers dnsmasq[2308]: reading /etc/resolv.conf
May 22 13:38:52 travers dnsmasq[2308]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers dnsmasq[2308]: reading /etc/resolv.conf
May 22 13:38:52 travers dnsmasq[3225]: reading /etc/resolv.conf
May 22 13:38:52 travers dnsmasq[2308]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers dnsmasq[3225]: using local addresses only for domain lxd
May 22 13:38:52 travers dnsmasq[3225]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers dbus-daemon[1945]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.12' (uid=0 pid=1961 comm="/usr/sbin/NetworkManager --no-daemon " label="unconfined")
May 22 13:38:52 travers systemd[1]: Starting Network Manager Script Dispatcher Service...
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0263] keyfile: add connection in-memory (ef645c6d-63c7-4fa3-865d-5806f2edd09c,"tun1")
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0288] device (tun1): state change: unavailable -> disconnected (reason 'connection-assumed', sys-iface-state: 'external')
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0296] device (tun1): Activation: starting connection 'tun1' (ef645c6d-63c7-4fa3-865d-5806f2edd09c)
May 22 13:38:52 travers dbus-daemon[1945]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
May 22 13:38:52 travers systemd[1]: Started Network Manager Script Dispatcher Service.
May 22 13:38:52 travers nm-dispatcher[12503]: req:1 'vpn-up' [tun1]: new request (1 scripts)
May 22 13:38:52 travers nm-dispatcher[12503]: req:1 'vpn-up' [tun1]: start running ordered scripts...
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0433] device (tun1): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'external')
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0444] device (tun1): state change: prepare -> config (reason 'none', sys-iface-state: 'external')
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0445] device (tun1): state change: config -> ip-config (reason 'none', sys-iface-state: 'external')
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0446] device (tun1): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'external')
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0448] device (tun1): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'external')
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0449] device (tun1): state change: secondaries -> activated (reason 'none', sys-iface-state: 'external')
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0480] device (tun1): Activation: successful, device activated.
May 22 13:38:52 travers nm-dispatcher[12503]: req:2 'up' [tun1]: new request (1 scripts)
May 22 13:38:52 travers nm-dispatcher[12503]: req:2 'up' [tun1]: start running ordered scripts...
May 22 13:38:57 travers dhclient[2567]: DHCPREQUEST of 172.17.226.46 on wlp1s0 to 157.193.40.250 port 67 (xid=0x135379a2)
May 22 13:39:09 travers dhclient[2567]: DHCPREQUEST of 172.17.226.46 on wlp1s0 to 157.193.40.250 port 67 (xid=0x135379a2)
May 22 13:39:11 travers wpa_supplicant[1960]: wlp1s0: WPA: Group rekeying completed with 00:c8:8b:27:65:7e [GTK=CCMP]
May 22 13:39:28 travers dhclient[2513:38:52 travers nm-openvpn[12477]: Initialization Sequence Completed
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0100] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",9:(tun1)]: Data: VPN Gateway: 193.190.127.152
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0101] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",9:(tun1)]: Data: Tunnel Device: "tun1"
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0102] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",9:(tun1)]: Data: IPv4 configuration:
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0102] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",9:(tun1)]: Data: Internal Gateway: .....17
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0103] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",9:(tun1)]: Data: Internal Address: .....18
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0103] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",9:(tun1)]: Data: Internal Prefix: 32
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0104] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",9:(tun1)]: Data: Internal Point-to-Point Address: .....17
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0104] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",9:(tun1)]: Data: Static Route: ....0/16 Next Hop: .....17
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0105] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",9:(tun1)]: Data: Static Route: .....1/32 Next Hop: .....17
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0106] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",9:(tun1)]: Data: Static Route: .....17/32 Next Hop: 0.0.0.0
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0106] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",9:(tun1)]: Data: Internal DNS: ....1
May 22 13:38:52 travers dnsmasq[2308]: reading /etc/resolv.conf
May 22 13:38:52 travers dnsmasq[2308]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers dnsmasq[3225]: reading /etc/resolv.conf
May 22 13:38:52 travers dnsmasq[3225]: using local addresses only for domain lxd
May 22 13:38:52 travers dnsmasq[3225]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0114] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",9:(tun1)]: Data: DNS Domain: 'maas'
May 22 13:38:52 travers networkd-dispatcher[1978]: WARNING:Unknown index 9 seen, reloading interface list
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0116] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",9:(tun1)]: Data: No IPv6 configuration
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0116] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",9:(tun1)]: VPN plugin: state changed: started (4)
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0118] devices added (path: /sys/devices/virtual/net/tun1, iface: tun1)
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0118] device added (path: /sys/devices/virtual/net/tun1, iface: tun1): no ifupdown configuration found.
May 22 13:38:52 travers systemd-networkd[1477]: tun1: Gained carrier
May 22 13:38:52 travers dnsmasq[3225]: reading /etc/resolv.conf
May 22 13:38:52 travers dnsmasq[3225]: using local addresses only for domain lxd
May 22 13:38:52 travers dnsmasq[3225]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers dnsmasq[2308]: reading /etc/resolv.conf
May 22 13:38:52 travers systemd-networkd[1477]: tun1: Gained IPv6LL
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0161] vpn-connection[0x5574e46c05d0,d8584177-fff2-4f25-9406-226260cb0ca3,"tengumaas",9:(tun1)]: VPN connection: (IP Config Get) complete
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0162] device (tun1): state change: unmanaged -> unavailable (reason 'connection-assumed', sys-iface-state: 'external')
May 22 13:38:52 travers dnsmasq[3225]: reading /etc/resolv.conf
May 22 13:38:52 travers dnsmasq[3225]: using local addresses only for domain lxd
May 22 13:38:52 travers dnsmasq[3225]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers dnsmasq[2308]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers dnsmasq[2308]: reading /etc/resolv.conf
May 22 13:38:52 travers dnsmasq[2308]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers dnsmasq[2308]: reading /etc/resolv.conf
May 22 13:38:52 travers dnsmasq[2308]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers dnsmasq[2308]: reading /etc/resolv.conf
May 22 13:38:52 travers dnsmasq[2308]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers dnsmasq[2308]: reading /etc/resolv.conf
May 22 13:38:52 travers dnsmasq[2308]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers dnsmasq[2308]: reading /etc/resolv.conf
May 22 13:38:52 travers dnsmasq[2308]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers dnsmasq[2308]: reading /etc/resolv.conf
May 22 13:38:52 travers dnsmasq[2308]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers dnsmasq[2308]: reading /etc/resolv.conf
May 22 13:38:52 travers dnsmasq[2308]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers dnsmasq[2308]: reading /etc/resolv.conf
May 22 13:38:52 travers dnsmasq[2308]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers dnsmasq[2308]: reading /etc/resolv.conf
May 22 13:38:52 travers dnsmasq[2308]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers dnsmasq[2308]: reading /etc/resolv.conf
May 22 13:38:52 travers dnsmasq[2308]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers dnsmasq[2308]: reading /etc/resolv.conf
May 22 13:38:52 travers dnsmasq[3225]: reading /etc/resolv.conf
May 22 13:38:52 travers dnsmasq[2308]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers dnsmasq[3225]: using local addresses only for domain lxd
May 22 13:38:52 travers dnsmasq[3225]: using nameserver 127.0.0.53#53
May 22 13:38:52 travers dbus-daemon[1945]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.12' (uid=0 pid=1961 comm="/usr/sbin/NetworkManager --no-daemon " label="unconfined")
May 22 13:38:52 travers systemd[1]: Starting Network Manager Script Dispatcher Service...
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0263] keyfile: add connection in-memory (ef645c6d-63c7-4fa3-865d-5806f2edd09c,"tun1")
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0288] device (tun1): state change: unavailable -> disconnected (reason 'connection-assumed', sys-iface-state: 'external')
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0296] device (tun1): Activation: starting connection 'tun1' (ef645c6d-63c7-4fa3-865d-5806f2edd09c)
May 22 13:38:52 travers dbus-daemon[1945]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
May 22 13:38:52 travers systemd[1]: Started Network Manager Script Dispatcher Service.
May 22 13:38:52 travers nm-dispatcher[12503]: req:1 'vpn-up' [tun1]: new request (1 scripts)
May 22 13:38:52 travers nm-dispatcher[12503]: req:1 'vpn-up' [tun1]: start running ordered scripts...
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0433] device (tun1): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'external')
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0444] device (tun1): state change: prepare -> config (reason 'none', sys-iface-state: 'external')
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0445] device (tun1): state change: config -> ip-config (reason 'none', sys-iface-state: 'external')
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0446] device (tun1): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'external')
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0448] device (tun1): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'external')
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0449] device (tun1): state change: secondaries -> activated (reason 'none', sys-iface-state: 'external')
May 22 13:38:52 travers NetworkManager[1961]: <info> [1526989132.0480] device (tun1): Activation: successful, device activated.
May 22 13:38:52 travers nm-dispatcher[12503]: req:2 'up' [tun1]: new request (1 scripts)
May 22 13:38:52 travers nm-dispatcher[12503]: req:2 'up' [tun1]: start running ordered scripts...
May 22 13:38:57 travers dhclient[2567]: DHCPREQUEST of 172.17.226.46 on wlp1s0 to 157.193.40.250 port 67 (xid=0x135379a2)
May 22 13:39:09 travers dhclient[2567]: DHCPREQUEST of 172.17.226.46 on wlp1s0 to 157.193.40.250 port 67 (xid=0x135379a2)
May 22 13:39:11 travers wpa_supplicant[1960]: wlp1s0: WPA: Group rekeying completed with 00:c8:8b:27:65:7e [GTK=CCMP]
May 22 13:39:28 travers dhclient[25
```

# All errors since last boot

```
May 22 10:48:06 travers kernel: RAS: Correctable Errors collector initialized.
May 22 10:48:06 travers kernel: EXT4-fs (dm-0): re-mounted. Opts: errors=remount-ro
May 22 10:48:06 travers kernel: int3403 thermal: probe of INT3403:03 failed with error -22
May 22 10:48:06 travers kernel: platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
May 22 10:48:07 travers snapd[1967]: 2018/05/22 10:48:07.593363 stateengine.go:101: state ensure error: cannot refresh snap-declaration for "lxd": Get https://api.snapcraft.io/api/v1/snaps/assertions/snap-declaration/16/J60k4JY0HppjwOjW8dZdYc8obXKxujRu?max-format=2: dial tcp: lookup api.snapcraft.io on 127.0.0.53:53: server misbehaving
May 22 10:48:07 travers gnome-session[2130]: gnome-session-binary[2130]: CRITICAL: Unable to create a DBus proxy for GnomeScreensaver: Error calling StartServiceByName for org.gnome.ScreenSaver: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.gnome.ScreenSaver exited with status 1
May 22 10:48:07 travers gnome-session-binary[2130]: CRITICAL: Unable to create a DBus proxy for GnomeScreensaver: Error calling StartServiceByName for org.gnome.ScreenSaver: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.gnome.ScreenSaver exited with status 1
May 22 10:48:09 travers gnome-shell[2145]: Error looking up permission: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.impl.portal.PermissionStore was not provided by any .service files
May 22 10:48:09 travers gnome-shell[2145]: JS ERROR: TypeError: item is undefined
May 22 10:51:08 travers /usr/lib/gdm3/gdm-x-session[3349]: (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
May 22 10:51:09 travers /usr/lib/gdm3/gdm-x-session[3349]: Errors from xkbcomp are not fatal to the X server
May 22 10:51:14 travers pulseaudio[3492]: [pulseaudio] backend-ofono.c: Failed to register as a handsfree audio agent with ofono: org.freedesktop.DBus.Error.ServiceUnknown: The name org.ofono was not provided by any .service files
May 22 10:51:14 travers /usr/lib/gdm3/gdm-x-session[3349]: Errors from xkbcomp are not fatal to the X server
May 22 10:51:15 travers gsd-sharing[3591]: Failed to StopUnit service: GDBus.Error:org.freedesktop.systemd1.NoSuchUnit: Unit rygel.service not loaded.
May 22 10:51:15 travers gsd-sharing[3591]: Failed to StopUnit service: GDBus.Error:org.freedesktop.systemd1.NoSuchUnit: Unit gnome-remote-desktop.service not loaded.
May 22 10:51:15 travers gnome-shell[3483]: JS ERROR: TypeError: item is undefined
May 22 10:51:15 travers gnome-shell[3483]: Error looking up permission: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.impl.portal.PermissionStore was not provided by any .service files
May 22 10:51:15 travers /usr/lib/gdm3/gdm-x-session[3349]: Errors from xkbcomp are not fatal to the X server
May 22 10:51:33 travers org.gnome.Shell.desktop[3483]: [3955:3974:0522/105133.750703:ERROR:nss_util.cc(724)] After loading Root Certs, loaded==false: NSS error code: -8018
May 22 10:51:33 travers org.gnome.Shell.desktop[3483]: [3955:3983:0522/105133.930797:ERROR:in_progress_cache_impl.cc(93)] Could not read download entries from file because there was a read failure.
May 22 10:51:56 travers /usr/lib/gdm3/gdm-x-session[3349]: Errors from xkbcomp are not fatal to the X server
May 22 11:44:37 travers dbus-daemon[1945]: [system] Rejected send message, 1 matched rules; type="method_return", sender=":1.89" (uid=1000 pid=3492 comm="/usr/bin/pulseaudio --start --log-target=syslog " label="unconfined") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.3" (uid=0 pid=1942 comm="/usr/lib/bluetooth/bluetoothd " label="unconfined")
May 22 13:15:20 travers /usr/lib/gdm3/gdm-x-session[3349]: Errors from xkbcomp are not fatal to the X server
May 22 13:15:40 travers org.gnome.Shell.desktop[3483]: [10274:10292:0522/131540.442065:ERROR:nss_util.cc(724)] After loading Root Certs, loaded==false: NSS error code: -8018
May 22 13:15:40 travers org.gnome.Shell.desktop[3483]: [10274:10300:0522/131540.538072:ERROR:in_progress_cache_impl.cc(93)] Could not read download entries from file because there was a read failure.
May 22 13:15:40 travers /usr/lib/gdm3/gdm-x-session[3349]: Errors from xkbcomp are not fatal to the X server
May 22 13:25:32 travers /usr/lib/gdm3/gdm-x-session[3349]: Errors from xkbcomp are not fatal to the X server
May 22 13:27:48 travers gnome-shell[3483]: Failed to set the markup of the actor 'ClutterText': Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as &amp;
```

Revision history for this message
Merlijn Sebrechts (merlijn-sebrechts) wrote :
Revision history for this message
Merlijn Sebrechts (merlijn-sebrechts) wrote :
summary: - "VPN off" when VPN is in fact running
+ panel shows "VPN off" when VPN is in fact running
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I'm not familiar with using VPNs with Gnome and how that changes the GUI.

Do you mean the Gnome Shell panel is showing the wrong status?

You're not calling the Settings app the "panel", right?

Changed in gnome-shell (Ubuntu):
status: New → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Changed in gnome-shell (Ubuntu):
status: Incomplete → Confirmed
Changed in gnome-shell:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
Merlijn Sebrechts (merlijn-sebrechts) wrote :

Yes, the list of vpn toggles in the panel gets out of sync with the actual state of the VPNs. The Settings app shows the correct state.

Note that I've never experienced this with 17.10 and I always experience this with 18.04. This is thus a regression in my case.

Maybe relevant:

If I add a new VPN in the settings app, the panel also doesn't get updated; the new vpn doesn't show up in the list of available vpn's in the applet.

In attachment a screenshot which shows the issue in one shot. Notice that the `vmware-tengu-vpn` is active according to settings, but not active according to the panel and note how `NEWVPN` is not shown at all in the panel.

Revision history for this message
Merlijn Sebrechts (merlijn-sebrechts) wrote :

Also, if you want a vpn to do some testing yourself, let me know and I'll send you one. <firstname>.<lastname>@gmail.com

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I suggest you comment on the upstream bug(s) where the Gnome developers will see it:
https://bugzilla.gnome.org/show_bug.cgi?id=730446

Revision history for this message
Merlijn Sebrechts (merlijn-sebrechts) wrote :

I do not think those bugs are related to this issue since this is a regression and since the bug explicitly mentions that the menu is correct, but the status icon is not.

In my case neither the status icon nor menu are correct and it seems as if the menu in its entirety just doesn't get updated when any (vpn) state changes.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

In that case please report the bug upstream on the new Gnome bug tracker here:
https://gitlab.gnome.org/GNOME/gnome-shell/issues

and let us know the URL of the new bug.

Changed in gnome-shell (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Merlijn Sebrechts (merlijn-sebrechts) wrote :
description: updated
Changed in gnome-shell (Ubuntu):
status: Incomplete → New
no longer affects: gnome-shell
Revision history for this message
joe smith (joe9804) wrote :

I was also facing the same problem a few days ago. Then i contact <a href="https://netgears.support/netgear-router-support-usa/">netgear router support usa</a> and the solved my problem. But I cannot find a proper solution on the web. how could we fix this type of problems manually?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-shell (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.