Public bug reported:

**Title:** NetworkManager aborts (SIGABRT) in nms-keyfile-writer.c:551
when importing an .ovpn profile on 26.04

**Package:** network-manager

**Ubuntu version:** 26.04 LTS (resolute), upgraded from 24.04 LTS

**Package versions:** (run `apt policy network-manager libnm0 network-
manager-openvpn network-manager-openvpn-gnome libnetplan1` and paste the
result here)

**What happened:**
Importing an OpenVPN profile makes the NetworkManager daemon crash. This 
happens from both the GUI (Settings → Network → VPN → Import from file) and the 
command line:

```
nmcli connection import type openvpn file client.ovpn
Error: Failed to add 'client' connection: Message recipient disconnected from 
message bus without replying
```

systemd then restarts the daemon. It happened every time I tried, at
least five times in one session.

**Expected:** The profile is imported, or the import fails with an error
message. The daemon should not abort.

**Log (`journalctl -u NetworkManager -b`):**

```
<error> BUG: the profile cannot be stored in keyfile format without becoming 
unusable: cannot access file: No such file or directory
nm:ERROR:../src/core/settings/plugins/keyfile/nms-keyfile-writer.c:551:<unknown-fcn>:
 assertion failed: (<dropped>)
Bail out! nm:ERROR:../src/core/settings/plugins/keyfile/nms-keyfile-writer.c:551
NetworkManager.service: Main process exited, code=dumped, status=6/ABRT
```

**Notes:**
- The `.ovpn` file has the CA, certificate and private key inline (`<ca>`, 
`<cert>`, `<key>` blocks). The private key is passphrase-protected, and the 
profile uses `auth-user-pass`.
- After the failed imports, `~/.cert/nm-openvpn/` contained only certificate 
files from earlier imports on the old system. No new files were written. I 
don't know whether the missing certificate files cause the "cannot access file" 
error, but it may be related.
- The same assertion at the same line appears in earlier reports with different 
triggers: LP #2039825 (EAP settings) and LP #2055148 (DNS over TLS).
- Running `openvpn` directly with the same file works fine. Only the 
NetworkManager import crashes.

ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: network-manager 1.54.3-2ubuntu3.1
ProcVersionSignature: Ubuntu 7.0.0-34.34-generic 7.0.14
Uname: Linux 7.0.0-34-generic x86_64
ApportVersion: 2.34.1-0ubuntu0.1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Sun Oct  4 11:15:21 2026
InstallationDate: Installed on 2024-05-02 (885 days ago)
InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240424)
IpRoute:
 default via 192.168.0.1 dev wlp2s0 proto dhcp src 192.168.0.197 metric 600
 127.0.0.0/8 dev lo proto kernel scope link src 127.0.0.1 metric 30
 172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown
 192.168.0.0/24 dev wlp2s0 proto kernel scope link src 192.168.0.197 metric 600
 192.168.49.0/24 dev br-db26dcff5fea proto kernel scope link src 192.168.49.1 
linkdown
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: network-manager
UpgradeStatus: Upgraded to resolute on 2026-10-01 (3 days ago)
mtime.conffile..etc.NetworkManager.NetworkManager.conf: 
2025-03-23T08:58:25.756072
nmcli-nm:
 RUNNING  VERSION  STATE      STARTUP  CONNECTIVITY  NETWORKING  WIFI-HW  WIFI  
   WWAN-HW  WWAN     METERED
 running  1.54.3   connected  started  full          enabled     enabled  
enabled  missing  enabled  no (guessed)

** Affects: network-manager (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug resolute wayland-session

** Description changed:

- Here is a short report you can paste into Launchpad. Fill in the version
- numbers in the brackets first.
- 
- ---
- 
  **Title:** NetworkManager aborts (SIGABRT) in nms-keyfile-writer.c:551
  when importing an .ovpn profile on 26.04
  
  **Package:** network-manager
  
  **Ubuntu version:** 26.04 LTS (resolute), upgraded from 24.04 LTS
  
  **Package versions:** (run `apt policy network-manager libnm0 network-
  manager-openvpn network-manager-openvpn-gnome libnetplan1` and paste the
  result here)
  
  **What happened:**
  Importing an OpenVPN profile makes the NetworkManager daemon crash. This 
happens from both the GUI (Settings → Network → VPN → Import from file) and the 
command line:
  
  ```
  nmcli connection import type openvpn file client.ovpn
  Error: Failed to add 'client' connection: Message recipient disconnected from 
message bus without replying
  ```
  
  systemd then restarts the daemon. It happened every time I tried, at
  least five times in one session.
  
  **Expected:** The profile is imported, or the import fails with an error
  message. The daemon should not abort.
  
  **Log (`journalctl -u NetworkManager -b`):**
  
  ```
  <error> BUG: the profile cannot be stored in keyfile format without becoming 
unusable: cannot access file: No such file or directory
  
nm:ERROR:../src/core/settings/plugins/keyfile/nms-keyfile-writer.c:551:<unknown-fcn>:
 assertion failed: (<dropped>)
  Bail out! 
nm:ERROR:../src/core/settings/plugins/keyfile/nms-keyfile-writer.c:551
  NetworkManager.service: Main process exited, code=dumped, status=6/ABRT
  ```
  
  **Notes:**
  - The `.ovpn` file has the CA, certificate and private key inline (`<ca>`, 
`<cert>`, `<key>` blocks). The private key is passphrase-protected, and the 
profile uses `auth-user-pass`.
  - After the failed imports, `~/.cert/nm-openvpn/` contained only certificate 
files from earlier imports on the old system. No new files were written. I 
don't know whether the missing certificate files cause the "cannot access file" 
error, but it may be related.
  - The same assertion at the same line appears in earlier reports with 
different triggers: LP #2039825 (EAP settings) and LP #2055148 (DNS over TLS).
  - Running `openvpn` directly with the same file works fine. Only the 
NetworkManager import crashes.
  
  ProblemType: Bug
  DistroRelease: Ubuntu 26.04
  Package: network-manager 1.54.3-2ubuntu3.1
  ProcVersionSignature: Ubuntu 7.0.0-34.34-generic 7.0.14
  Uname: Linux 7.0.0-34-generic x86_64
  ApportVersion: 2.34.1-0ubuntu0.1
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: ubuntu:GNOME
  Date: Sun Oct  4 11:15:21 2026
  InstallationDate: Installed on 2024-05-02 (885 days ago)
  InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240424)
  IpRoute:
-  default via 192.168.0.1 dev wlp2s0 proto dhcp src 192.168.0.197 metric 600 
-  127.0.0.0/8 dev lo proto kernel scope link src 127.0.0.1 metric 30 
-  172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown 
-  192.168.0.0/24 dev wlp2s0 proto kernel scope link src 192.168.0.197 metric 
600 
-  192.168.49.0/24 dev br-db26dcff5fea proto kernel scope link src 192.168.49.1 
linkdown
+  default via 192.168.0.1 dev wlp2s0 proto dhcp src 192.168.0.197 metric 600
+  127.0.0.0/8 dev lo proto kernel scope link src 127.0.0.1 metric 30
+  172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown
+  192.168.0.0/24 dev wlp2s0 proto kernel scope link src 192.168.0.197 metric 
600
+  192.168.49.0/24 dev br-db26dcff5fea proto kernel scope link src 192.168.49.1 
linkdown
  ProcEnviron:
-  LANG=en_US.UTF-8
-  PATH=(custom, no user)
-  SHELL=/bin/bash
-  TERM=xterm-256color
-  XDG_RUNTIME_DIR=<set>
+  LANG=en_US.UTF-8
+  PATH=(custom, no user)
+  SHELL=/bin/bash
+  TERM=xterm-256color
+  XDG_RUNTIME_DIR=<set>
  RebootRequiredPkgs: Error: path contained symlinks.
  SourcePackage: network-manager
  UpgradeStatus: Upgraded to resolute on 2026-10-01 (3 days ago)
  mtime.conffile..etc.NetworkManager.NetworkManager.conf: 
2025-03-23T08:58:25.756072
  nmcli-nm:
-  RUNNING  VERSION  STATE      STARTUP  CONNECTIVITY  NETWORKING  WIFI-HW  
WIFI     WWAN-HW  WWAN     METERED      
-  running  1.54.3   connected  started  full          enabled     enabled  
enabled  missing  enabled  no (guessed)
+  RUNNING  VERSION  STATE      STARTUP  CONNECTIVITY  NETWORKING  WIFI-HW  
WIFI     WWAN-HW  WWAN     METERED
+  running  1.54.3   connected  started  full          enabled     enabled  
enabled  missing  enabled  no (guessed)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2169445

Title:
  NetworkManager crashes (SIGABRT, nms-keyfile-writer.c:551) when
  importing an .ovpn profile on Ubuntu 26.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/2169445/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to