VPN doesn't connect automatically

Bug #1902596 reported by Keiva
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
New
Low
Unassigned

Bug Description

I have set up my Network Connections manager to automatically connect to my VPN. My VPN is saved with its credentials. When I first log in (newly started, rebooted or woken from sleep/suspend), the VPN doesn't connect on its own.

It sometimes doesn't connect at all, and sometimes it tells me that the VPN requires a password. I haven't noticed a pattern.

Description: Ubuntu 20.10
Release: 20.10

network-manager:
  Installed: 1.26.2-1ubuntu1
  Candidate: 1.26.2-1ubuntu1
  Version table:
 *** 1.26.2-1ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu groovy/main amd64 Packages
        100 /var/lib/dpkg/status
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu50.1
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 20.10
InstallationDate: Installed on 2020-10-25 (22 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
IpRoute:
 default via 192.168.1.1 dev wlp1s0 proto dhcp metric 600
 169.254.0.0/16 dev virbr0 scope link metric 1000 linkdown
 192.168.1.0/24 dev wlp1s0 proto kernel scope link src 192.168.1.106 metric 600
 192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1 linkdown
Package: network-manager 1.26.2-1ubuntu1
PackageArchitecture: amd64
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 5.8.0-29.31-generic 5.8.14
Tags: groovy
Uname: Linux 5.8.0-29-generic x86_64
UpgradeStatus: Upgraded to groovy on 2020-10-25 (22 days ago)
UserGroups: adm cdrom dip libvirt lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
nmcli-nm:
 RUNNING VERSION STATE STARTUP CONNECTIVITY NETWORKING WIFI-HW WIFI WWAN-HW WWAN
 running 1.26.2 connected started full enabled enabled enabled enabled enabled

Revision history for this message
Keiva (keiva) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command only once, as it will automatically gather debugging information, in a terminal:
apport-collect 1902596

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Could you also add the 'journalctl -b 0' log of a session showing the issue?

Changed in network-manager (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Keiva (keiva) wrote : CRDA.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Keiva (keiva) wrote : Dependencies.txt

apport information

Revision history for this message
Keiva (keiva) wrote : IpAddr.txt

apport information

Revision history for this message
Keiva (keiva) wrote : IwConfig.txt

apport information

Revision history for this message
Keiva (keiva) wrote : NetDevice.lo.txt

apport information

Revision history for this message
Keiva (keiva) wrote : NetDevice.virbr0.txt

apport information

Revision history for this message
Keiva (keiva) wrote : NetDevice.virbr0-nic.txt

apport information

Revision history for this message
Keiva (keiva) wrote : NetDevice.wlp1s0.txt

apport information

Revision history for this message
Keiva (keiva) wrote : NetworkManager.conf.txt

apport information

Revision history for this message
Keiva (keiva) wrote : PciNetwork.txt

apport information

Revision history for this message
Keiva (keiva) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Keiva (keiva) wrote : RfKill.txt

apport information

Revision history for this message
Keiva (keiva) wrote : WifiSyslog.txt

apport information

Revision history for this message
Keiva (keiva) wrote : nmcli-con.txt

apport information

Revision history for this message
Keiva (keiva) wrote : nmcli-dev.txt

apport information

Revision history for this message
Keiva (keiva) wrote : Re: [Bug 1902596] Re: VPN doesn't connect automatically

I'm still learning, so I'm not entirely sure which lines you need other
than the obvious.  I attached a txt file so you have as much as
possible.  Thank goodness for CTRL-F :)

Also, I tried to do ubuntu-bug but it didn't pull anything about the
network manager so I thought it wasn't correct.

Godspeed,
Jen

On 11/3/20 1:32 PM, Sebastien Bacher wrote:
> journalctl -b 0

Revision history for this message
Keiva (keiva) wrote :

Hi, I shorted that log file.  You probably don't need 100k lines.

Godspeed,
Jen

On 11/16/20 9:42 AM, Jen Doty | The Silverwire Company wrote:
>
> I'm still learning, so I'm not entirely sure which lines you need
> other than the obvious.  I attached a txt file so you have as much as
> possible.  Thank goodness for CTRL-F :)
>
> Also, I tried to do ubuntu-bug but it didn't pull anything about the
> network manager so I thought it wasn't correct.
>
> Godspeed,
> Jen
>
>
>
> On 11/3/20 1:32 PM, Sebastien Bacher wrote:
>> journalctl -b 0

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks, the log has one error

'Failed to request VPN secrets #3: No agents were available for this reques>'

it's sound possible that it tries connecting before the shell is loaded which is the component handling the secrets

Changed in network-manager (Ubuntu):
status: Incomplete → New
Revision history for this message
Sebastien Bacher (seb128) wrote :

Could you perhaps report it upstream as well on https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues ? that's probably a better place to discuss the issue since they know the project better

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.