NetworkManager VPN configuration export does not work

Bug #264144 reported by Alexey Balmashnov
304
This bug affects 67 people
Affects Status Importance Assigned to Milestone
NetworkManager
Invalid
Wishlist
NetworkManager-OpenVPN
Fix Released
Wishlist
network-manager (Ubuntu)
Invalid
Undecided
Unassigned
network-manager-openvpn (Ubuntu)
Fix Released
Medium
Unassigned
network-manager-pptp (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Intrepid,
network-manager: 0.7~~svn20080818t061112+eni0-0ubuntu1

Subject says it. To reproduce:
1. Configure VPN connection
2. Try to Export it to a file

As a result I got cryptic error message dialog:
===
Cannot export VPN connection

The VPN connection 'vpn_test' could not be exported to vpn_test (pptp).conf.

Error: unknown error.
===

Expected behavior:
Configuration saved to a file.

=============
WORKAROUND
The configuration is saved in a file in /etc/NetworkManager/system-connections/
that has the same name as the connection.
This file can be examined with a text editor and/or copied around to other machines.
source: https://bugs.launchpad.net/ubuntu/+source/network-manager-openvpn/+bug/264144/comments/27
WORKAROUND
=============

Related branches

Revision history for this message
Alexander Sack (asac) wrote :

0.7 vpn support was quite new when i last uploaded it. There have been substantial improvements in the meantime. Please test when the next upload when i make the next snapshot available and comment her whether that helped. Thanks!

Changed in network-manager:
status: New → Incomplete
Revision history for this message
Alexey Balmashnov (a.balmashnov) wrote :

No improvements in NM 0.7~~svn20080908t183521+eni0-0ubuntu2

Revision history for this message
Alexander Sack (asac) wrote : Re: [Bug 264144] Re: NetworkManager VPN configuration export does not work

On Fri, Sep 12, 2008 at 07:28:31AM -0000, Alexey Balmashnov wrote:
> No improvements in NM 0.7~~svn20080908t183521+eni0-0ubuntu2
>

could you please file this bug in bugzilla.gnome.org against NM? and
let us know about the gnome bug id?

 - Alexander

Revision history for this message
Alexey Balmashnov (a.balmashnov) wrote :
Alexander Sack (asac)
Changed in network-manager:
importance: Undecided → Medium
status: Incomplete → Triaged
Changed in network-manager:
status: Unknown → New
Revision history for this message
Sergei Orlov (sergei-orlov) wrote :

I have the same bug...

Revision history for this message
Dmytro Korzhevin (korg) wrote :

I can confirm this bug in network-manager Version: 0.7~~svn20081018t105859-0ubuntu1

Revision history for this message
Daniel Knittl-Frank (knittl) wrote :

confirmed here

using ubuntu intrepid with latest updates and trying to export a microsoft pptp configuration

Revision history for this message
Kjell Braden (afflux) wrote :

Looking at their code, both network-manager-openvpn and network-manager-pptp don't seem to support exporting configs yet. However, they should at least set a sensible error message.

Changed in network-manager-pptp:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Robert (robrwo) wrote :

If they don't support exporting configuration, then please disable the export button.

Revision history for this message
Phoenix (phoenix-dominion) wrote :

Still the same here on up-to-date jaunty

Changed in network-manager:
status: New → Invalid
Revision history for this message
davee (davee-sungate) wrote :

The correct upstream bug is http://bugzilla.gnome.org/show_bug.cgi?id=573987 not 551939 - the Gnome bugs were re-organised. The new bug is to "implement import/export", i.e. it's just not implemented at all right now.

Revision history for this message
yyy (yyyy) wrote :

This bug is present also in version 0.7.0.100 (default for ubuntu 9.4)

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Reassigning to another GNOME bugzilla number, since there is a more specific entry -- also added the tracker for the same bug for the openvpn plugin

Changed in network-manager:
status: Invalid → Unknown
Changed in network-manager-openvpn:
status: Unknown → In Progress
Revision history for this message
pdf (pdffs) wrote :
Revision history for this message
Marc Poulhiès (marc-poulhies) wrote :

Applying this patch to the source package of karmic works. The export produces a nearly correct file (it uses bad uid/gid).

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Targetting this for karmic-updates, since we should be releasing the fix shortly.

Changed in network-manager-openvpn (Ubuntu):
milestone: none → karmic-updates
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package network-manager-openvpn - 0.8~rc1-0ubuntu1

---------------
network-manager-openvpn (0.8~rc1-0ubuntu1) lucid; urgency=low

  * upstream release tagged 0.7.997 (NM 0.8~rc1)
    + 0.7.997
    - export: implement export and fix a few import/export bugs (LP: #264144)
    - tls: handle PEM files without an ending newline (rh #507315)
    - export: implement export for static-key configurations (bgo #573986)
  * Add logic to map ~rc1 to 0.7.997 tag, as per the main NM branch.
  * Bump build-deps to require NM 0.8~rc1.
  * Update Standards-Version to 3.8.3.
 -- Mathieu Trudel <email address hidden> Tue, 22 Dec 2009 13:55:04 -0500

Changed in network-manager-openvpn (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

I'm marking this bug against network-manager as invalid, since it instead affects the various VPN plugins directly.

For the time being, network-manager-pptp still does not seem to export configs properly.

Changed in network-manager (Ubuntu):
status: New → Invalid
Revision history for this message
Oliver Herrmann (oliver-herrmann80) wrote :

I had this Issue too, but now im under Lucid Beta1 and it works like charm.

Export and also Import ... thx for this importent work

Revision history for this message
Michael Doube (michael-doube) wrote :

Export is still failing for me on today's Lucid ISO. Connecting to Imperial College's VPN, following these instructions:
http://www3.imperial.ac.uk/ict/services/securitynetworkdatacentreandtelephonyservices/collegenetwork/networkconnections/vpnconnection/linux

Revision history for this message
Martin McDowell (martin-mcdowell) wrote :

Still not working in network-manager-pptp-gnome / network-manager-pptp

Changed in network-manager:
status: Unknown → In Progress
papukaija (papukaija)
tags: added: patch
tags: added: patch-needswork
tags: removed: patch
Revision history for this message
Elvis Dominguez (elvisd79) wrote :

the problem still here in nm-applet 0.8 (ubuntu 10.04)

Changed in network-manager:
importance: Unknown → Wishlist
Changed in network-manager-openvpn:
importance: Unknown → Wishlist
status: In Progress → Fix Released
Revision history for this message
Alan Lord (theopensourcerer) wrote :

Am seeing this problem on 10.10 64bit

Revision history for this message
George Calianu (george-calianu) wrote :

I have the same problem in 11.04.

Revision history for this message
Nathan Salwen (salwen-1) wrote :

I am running 12.04 and am unable to do

VPN Connections->Configure VPN... then selext VPN and then Export for a pptp vpn connection. I get the error:

"The VPN connection 'myvpn' could not be exported to myvpn.conf.

Error: unknown error"

Revision history for this message
Exeleration-G (exeleration-g) wrote :

The error also appears in Ubuntu 13.04, using a PPTP VPN connection.

Revision history for this message
Exeleration-G (exeleration-g) wrote :

Possible workaround:

On the first machine:

cd /etc/NetworkManager/system-connections/
sudo cp NameOfConnection ~
cd ~
sudo chown yourusername.yourusername NameOfConnection
[copy file to second machine's home directory]
sudo chown root.root NameOfConnection
sudo chmod 600 NameOfConnection
sudo cp NameOfConnection /etc/NetworkManager/system-connections/
cd /etc/NetworkManager/system-connections/
ls -hl

Make sure that NameOfConnection is there, and make sure its permissions are set like this:
-rw------- 1 root root

Can anyone confirm that this works?

Revision history for this message
superxor (phaneendra-chiruvella) wrote :

I get this error on 13.04 while trying to export a PPTP VPN Connection.

Revision history for this message
Michael Nagel (nailor) wrote :

I am on Ubuntu 12.04 LTS where this is an issue.
I can confirm that the file-based workaround outlined in comment #27 by exeleration-g works.

description: updated
Changed in network-manager:
status: In Progress → Invalid
Revision history for this message
senya (senya) wrote :

Confirming the issue on Ubuntu 14.04.

Revision history for this message
citizendelta (dghallau) wrote :

Confirming the issue on Ubuntu 15.04.

Revision history for this message
公输目 (yue937) wrote :

confirming the issue on Ubuntu 14.04 amd64.
 https://clbin.com/7OgauO.png

Revision history for this message
Jorge Valhondo (jrg-valhondo) wrote :

I confirm this issue in 14.04 LTS x64

Revision history for this message
Esel (glumpad) wrote :

I confirm this issue in 16.04 x64

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.