Hello,
I am relatively new to OpenVPN Access server. I am running v.2.0.24 within AWS. I am having trouble connecting one user who is on a MAC, OS version 10.11.3. The user has the latest client from the server v.2.0.18.203. I have working connections from a number of other MAC's with no troubles. Although, of those MAC's, I can only verify they are running 10.11.4. When attempting to establish a connection the user receives the following error.
Unexpected error: JSONDialog: Extra data: line 1 column 15 - line 6 column 1 (char 15 - 270)
I have tried to do a bit of googling and have not turned up much.
Anyone have an idea of what I might be missing?
Thank you
Unexpected error: JSONDialog: Extra data...when connecting
-
- OpenVpn Newbie
- Posts: 1
- Joined: Wed Apr 20, 2016 12:47 pm
-
- OpenVpn Newbie
- Posts: 1
- Joined: Tue Apr 25, 2017 9:47 pm
Re: Unexpected error: JSONDialog: Extra data...when connecting
Hello jmezinko,
I found the solution to this. Generally, I login to my mac as a user without administrative or sudo privileges. If I try to start the VPN from this user I get the exact error you report. If I login as a user with administrative privileges, I can start the VPN just fine. This defeats the security that I'm trying to maintain by having all my users non-administrative.
I also tested the old school method trying to use the shell to start the VPN. Unfortunately, it didn't work out very well. The most clean way was to login as the administrative user, start the VPN, then switch user to the regular user. If someone knows a better way, I'd love to hear it.
Specifically, the OpenVPNConnect command loses display context if you don't have a loginwindow started for the administrative user. When you start it from an su or sudo session, you'll get the icon, but you can't enter any data into the password field. I can't find a man page for OpenVPNConnect that would help me set the Display context.
$ login <admin account>
$ sudo /Applications/OpenVPN/OpenVPN\ Connect.app/Contents/MacOS/OpenVPNConnect
Hope that helps with the first problem. It doesn't solve the usability problem. The easy answer, of course, is give your regular user admin privileges.
Best.
I found the solution to this. Generally, I login to my mac as a user without administrative or sudo privileges. If I try to start the VPN from this user I get the exact error you report. If I login as a user with administrative privileges, I can start the VPN just fine. This defeats the security that I'm trying to maintain by having all my users non-administrative.
I also tested the old school method trying to use the shell to start the VPN. Unfortunately, it didn't work out very well. The most clean way was to login as the administrative user, start the VPN, then switch user to the regular user. If someone knows a better way, I'd love to hear it.
Specifically, the OpenVPNConnect command loses display context if you don't have a loginwindow started for the administrative user. When you start it from an su or sudo session, you'll get the icon, but you can't enter any data into the password field. I can't find a man page for OpenVPNConnect that would help me set the Display context.
$ login <admin account>
$ sudo /Applications/OpenVPN/OpenVPN\ Connect.app/Contents/MacOS/OpenVPNConnect
Hope that helps with the first problem. It doesn't solve the usability problem. The easy answer, of course, is give your regular user admin privileges.
Best.
-
- OpenVpn Newbie
- Posts: 2
- Joined: Wed Nov 22, 2017 1:04 pm
Re: Unexpected error: JSONDialog: Extra data...when connecting
Hello there,
I've come across the exact same problem, but my user has admin privileges on MAC.
2017-11-22 10:47:20+0200 [-] vpn_start: JSONDialog: Extra data: line 1 column 16 - line 6 column 1 (char 15 - 270): client/cliset:552,internet/defer:746,client/jsondialog:47,client/jsondialog:43,json/decoder:367 (exceptions.ValueError)
2017-11-22 10:47:20+0200 [-] *** API CALL f=xmlrpc_Poll args=['sess_<IP>_dynamic_p7972_5dlIY5uSivjgvMcx_1', 10] kw={} ret=[{'timestamp': 1511340440, 'info_type': u'exceptions.ValueError', 'type': 'INFO', 'severity': 'error', 'value': u'JSONDialog: Extra data: line 1 column 16 - line 6 column 1 (char 15 - 270)'}]
2017-11-22 10:47:20+0200 [-] *** API CALL f=xmlrpc_Poll args=['sess_TrackActiveProfiles_hsI9hSX28xyMJ0eb_2', 10] kw={} ret=[{'timestamp': 1511340440, 'state': 'disconnect', 'profile_id': '<IP>_dynamic_p7972', 'type': 'PROFILE'}]
2017-11-22 10:47:20+0200 [HTTPChannel,2672,] *** API CALL f=xmlrpc_Poll args=['sess_<IP>_dynamic_p7972_5dlIY5uSivjgvMcx_1', 10] kw={} ret=[{'timestamp': 1511340440, 'type': 'DELETE_PENDING'}]
Any idea would be much appreciated.
BRs
MAC: 10.13 with SIP enabled (but other users with SIP enabled can connect without problem), OpenVPN client: 2.1.3.120, OpenVPN server: 2.1.9
I've come across the exact same problem, but my user has admin privileges on MAC.
2017-11-22 10:47:20+0200 [-] vpn_start: JSONDialog: Extra data: line 1 column 16 - line 6 column 1 (char 15 - 270): client/cliset:552,internet/defer:746,client/jsondialog:47,client/jsondialog:43,json/decoder:367 (exceptions.ValueError)
2017-11-22 10:47:20+0200 [-] *** API CALL f=xmlrpc_Poll args=['sess_<IP>_dynamic_p7972_5dlIY5uSivjgvMcx_1', 10] kw={} ret=[{'timestamp': 1511340440, 'info_type': u'exceptions.ValueError', 'type': 'INFO', 'severity': 'error', 'value': u'JSONDialog: Extra data: line 1 column 16 - line 6 column 1 (char 15 - 270)'}]
2017-11-22 10:47:20+0200 [-] *** API CALL f=xmlrpc_Poll args=['sess_TrackActiveProfiles_hsI9hSX28xyMJ0eb_2', 10] kw={} ret=[{'timestamp': 1511340440, 'state': 'disconnect', 'profile_id': '<IP>_dynamic_p7972', 'type': 'PROFILE'}]
2017-11-22 10:47:20+0200 [HTTPChannel,2672,] *** API CALL f=xmlrpc_Poll args=['sess_<IP>_dynamic_p7972_5dlIY5uSivjgvMcx_1', 10] kw={} ret=[{'timestamp': 1511340440, 'type': 'DELETE_PENDING'}]
Any idea would be much appreciated.
BRs
MAC: 10.13 with SIP enabled (but other users with SIP enabled can connect without problem), OpenVPN client: 2.1.3.120, OpenVPN server: 2.1.9
-
- OpenVpn Newbie
- Posts: 1
- Joined: Sun Jan 14, 2018 8:59 pm
Re: Unexpected error: JSONDialog: Extra data...when connecting
I have exactly the same problem and cannot find any kind of support.
May be a good soul out there knows how to solve this issue?
Thank you
May be a good soul out there knows how to solve this issue?
Thank you