No VPN autoconnect

Bug #1718931 reported by John Skottis on 2017-09-22
This bug affects 13 people
Affects Status Importance Assigned to Milestone
gnome-shell (Ubuntu)
Marco Trevisan (Treviño)
Nominated for Bionic by Marco Trevisan (Treviño)

Bug Description

[ Impact ]

When setting up VPN to auto connect with wifi (done through nm-connection-editor) the wifi never manages to connect. However if I unselect the auto connect option while it is attempting a reconnection then it manages to connect to both (wifi and VPN). Doing the connection manually also poses no issues

[ QA ]

This is part of the upstream fix:

ProblemType: BugDistroRelease: Ubuntu 17.10
Package: network-manager 1.8.2-1ubuntu8
ProcVersionSignature: Ubuntu 4.13.0-11.12-generic 4.13.1
Uname: Linux 4.13.0-11-generic x86_64
ApportVersion: 2.20.7-0ubuntu1
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Fri Sep 22 13:15:55 2017
 # interfaces(5) file used by ifup(8) and ifdown(8)
 auto lo
 iface lo inet loopback
InstallationDate: Installed on 2017-09-09 (12 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Alpha amd64 (20170908)
 default via dev wlp6s0 proto static metric 600 dev wlp6s0 scope link metric 1000 dev wlp6s0 proto kernel scope link src metric 600
 WWANEnabled=trueSourcePackage: network-manager
UpgradeStatus: No upgrade log present (probably fresh install)
 wlp6s0 wifi connected /org/freedesktop/NetworkManager/Devices/2 VM5055940 85b8f881-7ed9-477a-9c39-9afb5a40bda9 /org/freedesktop/NetworkManager/ActiveConnection/1
 lo loopback unmanaged /org/freedesktop/NetworkManager/Devices/1 -- -- --
 running 1.8.2 connected started full enabled enabled enabled enabled enabled

John Skottis (giannissc) wrote :
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software by following the instructions at If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about its status. Thanks in advance.

Changed in network-manager (Ubuntu):
importance: Undecided → Low
Launchpad Janitor (janitor) wrote :

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

Changed in network-manager (Ubuntu):
status: New → Confirmed
J. Snow (jon.snow) wrote :

I'm facing the same problem. In auto-mode the VPN does not manage to connect, while manual connecting to the wifi enables automatic connection on the VPN.

J. Snow (jon.snow) on 2017-10-22
no longer affects: network-manager
Nicholas Stommel (nstommel) wrote :

Yeah, I keep getting the "vpn-connection[...]: Failed to request VPN secrets #3: No agents were available for this request." error message in my syslog. I found, however, that THIS worked for me: All you have to do is go Dash->VPN->VPN Settings->connection_name_here->Identity->Password->"Store for all users" and bingo problem solved. If nm-connection-editor says that you can't save the connection (the save box is grayed out), then...just forget the network and set up the connection again (worked for me at least). Once you have checked said auto-connect box with nm-connection-editor and ensured that the VPN password is set to "Store for all users," both the primary connection AND the VPN will start successfully at the same time. See my post at

Nicholas Stommel (nstommel) wrote :

Literally just toggling that one option "Store password for all users" in the VPN settings fixes the problem entirely. Use "sudo service network-manager restart" and it connects flawlessly the first time. To avoid the error loop on bootup specifically, just uncheck the box "Make available to other users" on the primary connection.

Odd Tore (oddtore1) wrote :

Not working for me at all.

I have a PPTP VPN server at home running on a linux 12.04 server.

Connecting to this server works like a charm from Android phones/tablets, I-phone (IOS versions before they stopped supporting PPTP), and win10.

I use this primarily to get IP adress from my home country when needed.

Anyway, my first issue was after installing Ubuntu 17.10 on a PC.
Experienced all the above mentioned issues, except that whatever I try to do with "Store password for all users" does not help.

Ended up setting up the VPN connection from command-line using the following tutorial:

Now I actually get connected to my server using pon <mynetworkname>, but DNS does not work.

I can open webpages typing in ip-address directly, and when I run traceroute, traffic appears to be going through my home network.

In /etc/ppp/ the 2 nameservers I have configured on server appears in resolv.conf

Any idea before I go mad?

Apicultor (apicultor) wrote :

@oddtore1 12.04 is deprecated; have you considered upgrading?

Also, PPTP is insecure and should not be used; many modern OS have even dropped support for it as a result. I recommend IKEv2 or L2TP-over-IPSEC.

Nicholas Stommel (nstommel) wrote :

Okay, so...why isn't this a priority bugfix? I love gnome, don't get me wrong, but when I can't even autoconnect to my VPN like I did countless times in the past few years running Ubuntu on Unity without compromising the security of my system something is wrong. There needs to be an option - and a working one at that - for auto-connecting to a VPN through the Gnome NetworkManager GUI. The KDE folks fixed this ages ago with KWallet, I suspect this involves the Gnome-Keyring. This is a *very* annoying problem. Should I report the bug on the Gnome bugtracker? So frustrating when this is an extremely common problem with nobody actually looking into *why* it's happening or how to fix it. I'm afraid this one is beyond me.

Nicholas Stommel (nstommel) wrote :

Filed an upstream bug, at long last, in the Gnome bugtracker at

Changed in network-manager:
importance: Unknown → Critical
status: Unknown → Confirmed
Changed in network-manager:
status: Confirmed → Incomplete
Changed in network-manager (Ubuntu):
status: Confirmed → Triaged
importance: Low → High
Nicholas Stommel (nstommel) wrote : has been quite some time and this bug has received absolutely *zero* attention from the Gnome Shell Gitlab here escalated from the Gnome Bugzilla tracker after Gnome shell development moved to Gitlab. The issue is fully present in Ubuntu 18.04 AND in the newer version of the Gnome shell and NetworkManager in Fedora 28. Before v3.26.X, auto-connect worked fine through the NetworkManager in the Gnome environment. I'm afraid to report that months later, absolutely nothing has been done to address what should be a relatively high-priority bug in the Gnome Shell. If anyone has the capabilities to reach out farther than I already have, please do so. This critical bug has been sitting idle with no attention for months, and persists across newer versions of the Gnome shell, namely 3.28.X, seemingly independent of distribution.

Sebastien Bacher (seb128) wrote :

The issue was one in the gnome-shell agent and has been fixed in 3.28.3

affects: network-manager (Ubuntu) → gnome-shell (Ubuntu)
Changed in gnome-shell (Ubuntu):
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
status: Triaged → In Progress
tags: added: fixed-in-3.28.3
description: updated

Fixed in:

gnome-shell (3.28.3-0ubuntu1) cosmic; urgency=medium

  * debian/patches/30-remoteMenu-Prevent-the-shell-from-becoming-unrespons.patch,
    - Drop patches applied on the 3.28 branch
  * debian/patches/js-fix-invalid-access-errors.patch:
    - Refreshed to reflect upstream changes

Changed in gnome-shell (Ubuntu):
status: In Progress → Fix Released

Hello John, or anyone else affected,

Accepted gnome-shell into bionic-proposed. The package will build now and be available at in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-bionic to verification-done-bionic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-bionic. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at . Thank you in advance!

Changed in gnome-shell (Ubuntu Bionic):
status: New → Fix Committed
tags: added: verification-needed verification-needed-bionic

Fixed in gnome-shell 3.28.3-0ubuntu0.18.04.2, as per upstream verification there's no need to perform further tests.

tags: added: verification-done verification-done-bionic
removed: verification-needed verification-needed-bionic

The verification of the Stable Release Update for gnome-shell has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-shell - 3.28.3-0ubuntu0.18.04.2

gnome-shell (3.28.3-0ubuntu0.18.04.2) bionic; urgency=medium

  * New upstream release (LP: #1718931, LP: #1782614)
  * debian/patches/30-remoteMenu-Prevent-the-shell-from-becoming-unrespons.patch,
    - Drop patches applied on the 3.28 branch
  * debian/patches/js-fix-invalid-access-errors.patch:
    - Refreshed to reflect upstream changes
  * d/p/popupMenu-Don-t-handle-key-presses-directly-if-there-are-.patch
    - Don't handle key presses directly if there are modifiers (LP: #1784671)
  * debian/patches/workspace-fix-repositioned-windows-in-activities.patch:
    - Cherry-pick from upstream 3.28 branch

 -- Marco Trevisan (Treviño) <email address hidden> Fri, 03 Aug 2018 07:18:24 +0100

Changed in gnome-shell (Ubuntu Bionic):
status: Fix Committed → Fix Released


I upgraded from 19.04 to 19.10, thinking that this would have solved the bug since Gnome-shell is now 3.34, but the issue is still here.

I have no VPN auto-connect on Wifi network, but doing it manually works.

Please can you finally fix this ?

Sebastien Bacher (seb128) wrote :

@Mathieu, the issue described here was fixed, it's probably best to open a new bug (& upstream as well if possible) with a full journal log and description of your issue

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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