Can not connect to vpn: error setting gid -1 Invalid argument
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Connection Manager |
New
|
Undecided
|
Unassigned |
Bug Description
Hi
I'm gettung error, while connecting to a vpn:
May 25 16:44:55 sul connmand[338]: ipconfig state 2 ipconfig method 1
May 25 16:44:55 sul connmand[338]: vpn0 {create} index 14 type 65534 <NONE>
May 25 16:44:55 sul connmand[338]: vpn0 {update} flags 4240 <DOWN>
May 25 16:44:55 sul connmand[338]: vpn0 {newlink} index 14 address 00:00:00:00:00:00 mtu 1500
May 25 16:44:55 sul connmand[338]: vpn0 {newlink} index 14 operstate 2 <DOWN>
May 25 16:44:55 sul connman-vpnd[4774]: error setting gid -1 Invalid argument
May 25 16:44:55 sul connman-vpnd[4774]: error setting uid -1 Invalid argument
May 25 16:44:55 sul connman-vpnd[4767]: vpn0 {create} index 14 type 65534 <NONE>
May 25 16:44:55 sul connman-vpnd[4767]: connman-vpnd[4767]: vpn0 {create} index 14 type 65534 <NONE>
May 25 16:44:55 sul connman-vpnd[4767]: connman-vpnd[4767]: vpn0 {update} flags 4240 <DOWN>
May 25 16:44:55 sul connman-vpnd[4767]: connman-vpnd[4767]: vpn0 {newlink} index 14 operstate 2 <DOWN>
May 25 16:44:55 sul systemd-
May 25 16:44:55 sul connman-vpnd[4767]: vpn0 {update} flags 4240 <DOWN>
May 25 16:44:55 sul connman-vpnd[4767]: vpn0 {newlink} index 14 operstate 2 <DOWN>
But when I stop daemon and start connman-vpnd by myself, connection was established
sudo systemctl stop connman-vpn
sudo connman-vpnd -n
connman-vpnd[5309]: Connection Manager VPN daemon version 1.39
connman-vpnd[5309]: Adding configuration ivi
connman-vpnd[5309]: Added provider configuration openvpn
connman-vpnd[5309]: lo {newlink} index 1 operstate 0 <UNKNOWN>
connman-vpnd[5309]: enp1s0 {create} index 2 type 1 <ETHER>
connman-vpnd[5309]: enp1s0 {update} flags 36867 <UP>
connman-vpnd[5309]: enp1s0 {newlink} index 2 address E4:E7:49:3E:25:A3 mtu 1500
connman-vpnd[5309]: enp1s0 {newlink} index 2 operstate 2 <DOWN>
connman-vpnd[5309]: wlan0 {create} index 3 type 1 <ETHER>
connman-vpnd[5309]: wlan0 {update} flags 102467 <UP,RUNNING,
connman-vpnd[5309]: wlan0 {newlink} index 3 address 0C:96:E6:30:8D:7D mtu 1500
connman-vpnd[5309]: wlan0 {newlink} index 3 operstate 6 <UP>
connman-vpnd[5309]: vpn0 {create} index 15 type 65534 <NONE>
connman-vpnd[5309]: vpn0 {update} flags 4240 <DOWN>
connman-vpnd[5309]: vpn0 {newlink} index 15 operstate 2 <DOWN>
connman-vpnd[5309]: Connected management socket
connman-vpnd[5309]: openvpn request >INFO:OpenVPN Management Interface Version 3 -- type 'help' for more info
connman-vpnd[5309]: vpn0 {update} flags 102609 <UP,RUNNING,
connman-vpnd[5309]: vpn0 {newlink} index 15 operstate 6 <UP>
My versions:
connman-vpnd --version
1.39
openvpn --version
OpenVPN 2.5.2 [git:makepkg/
library versions: OpenSSL 1.1.1k 25 Mar 2021, LZO 2.10
Originally developed by James Yonan
Copyright (C) 2002-2018 OpenVPN Inc <email address hidden>
Compile time defines:
My vpn config (without sencitive data)
[provider_openvpn]
Type = OpenVPN
Name = some_name
Host = some_ip_here
Domain = some_domain_here
Networks =
OpenVPN.ConfigFile = /etc/openvpn/
My connman-vpn.service
[Unit]
Description=ConnMan VPN service
[Service]
Type=dbus
BusName=
ExecStart=
StandardOutput=null
CapabilityBound
ProtectHome=
ProtectSystem=full
[Install]
WantedBy=
I also checked myvpn.ovpn and it's all right
sudo openvpn /etc/openvpn/
.
.
.
2021-05-25 17:07:43 Initialization Sequence Completed