I reverted the package to 1.0.2, i was hoping the next update will work again but 2.0.0 is broken as well.
Search Criteria
Package Details: awsvpnclient 4.1.0-3
Package Actions
Git Clone URL: | https://aur.archlinux.org/awsvpnclient.git (read-only, click to copy) |
---|---|
Package Base: | awsvpnclient |
Description: | AWS VPN Client |
Upstream URL: | https://aws.amazon.com/vpn/ |
Keywords: | aws aws-clientvpn aws-vpn aws-vpnclient clientvpn |
Licenses: | custom |
Submitter: | project0 |
Maintainer: | project0 |
Last Packager: | project0 |
Votes: | 10 |
Popularity: | 0.90 |
First Submitted: | 2021-06-26 08:56 (UTC) |
Last Updated: | 2024-12-13 18:25 (UTC) |
Dependencies (3)
- lsof (lsof-gitAUR)
- xdg-utils (busking-gitAUR, xdg-utils-slockAUR, mimiAUR, mimi-gitAUR, xdg-utils-handlrAUR, openerAUR, xdg-utils-mimeoAUR, mimejs-gitAUR)
- zstd (zstd-gitAUR, zstd-staticAUR) (make)
Required by (0)
Sources (2)
Latest Comments
« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 Next › Last »
project0 commented on 2022-01-21 11:32 (UTC)
butla commented on 2022-01-21 09:45 (UTC)
Looks like I need 2.0.0 to connect with my organisation, and that version also crashes with a segfault :/
sitano commented on 2022-01-14 08:55 (UTC) (edited on 2022-01-14 08:57 (UTC) by sitano)
@spurgelaurels check out these instructions to get your own 1.0.2-1:
$ git clone https://aur.archlinux.org/awsvpnclient.git
$ cd awsvpnclient
$ git checkout f8455bf
$ makepkg
$ sudo pacman -U ./awsvpnclient-1.0.2-1-x86_64.pkg.tar.zst
^^^ this works perfectly for me
then apply metrics sqlite db fix with chmod-ing awsvpnclientmetrics.db to 000.
$ chmod 000 ~/.config/AWSVPNClient/awsvpnclientmetrics.db
spurgelaurels commented on 2022-01-13 17:57 (UTC)
Same segfault on my end. Was going to downgrade, but noticed that the previous version points to a non-versioned .deb file, which tells me that this issue is upstream from AWS.
Wondering if anyone has a previous version .deb that can help downgrade this package to 1.0.2?
aemonge commented on 2021-12-28 11:08 (UTC)
Reverting to 1.0.2 works like a charm <3 thanks @K5HV
K5HV commented on 2021-12-28 10:20 (UTC)
@aemonge: Yes I do. Version 1.0.3-1 doesn't work on my side either, I'm still on 1.0.2-1. Problem with awsvpnclientmetrics.db (when on 1.0.2-1) can be solved using the damentz method.
sitano commented on 2021-12-27 17:22 (UTC)
As of the current date, the problem is not with the aforementioned awsvpnclientmetrics.db
but with /opt/awsvpnclient/SQLite.Interop.dll
itself.
/opt/awsvpnclient/AWS VPN Client
crashes even before trying to open openDatabase (zFilename=0x7fff58218650 "~/.config/AWSVPNClient/awsvpnclientmetrics.db"
in the following position:
/*
** Initialize the memory allocation subsystem.
*/
int sqlite3MallocInit(void){
int rc;
if( sqlite3GlobalConfig.m.xMalloc==0 ){
sqlite3MemSetDefault();
}
...
rc = sqlite3GlobalConfig.m.xInit(sqlite3GlobalConfig.m.pAppData); // <---- segfault
at https://github.com/sqlite/sqlite/blob/master/src/malloc.c#L170.
Why? Because sqlite3GlobalConfig.m == NULL
.
But how sqlite3GlobalConfig.m
can be equal to NULL? if it is initialized by the sqlite3MemSetDefault
call right before it.
The answer is a wrong build: there is an instance of SQLite in the /opt/awsvpnclient/SQLite.Interop.dll
AND also in the dynamically loaded /usr/lib/libsqlite3.so
.
So that there are exists multiple instances of the global variables like sqlite3Config
and functions. At some point of the callstack the execution of SQLite.Interop.dll dynamically resolves a function in libsqlite3.so and jumps in. But they observe different instances of the same global variables. So segfaults after writing to another .m
.
#0 sqlite3MemSetDefault () at ../core/sqlite3-see.c:24401
#1 0x00007fff562f60d5 in sqlite3MallocInit () at ../core/sqlite3-see.c:28040
#2 0x00007fff563bd682 in sqlite3_initialize () at ../core/sqlite3-see.c:165762
#3 0x00007fff563c1ca9 in openDatabase ...
$ vmmap 0x00007fff562f60d5
Start End Perm Name
0x00007fff562e2000 0x00007fff56470000 r-xp /opt/awsvpnclient/SQLite.Interop.dll
// but the call to the sqlite3_config resolves to
0x00007ffff1723440 in sqlite3_config () from /usr/lib/libsqlite3.so.0
gdb-peda$ vmmap 0x00007ffff1723440
Start End Perm Name
0x00007ffff16ac000 0x00007ffff178c000 r-xp /usr/lib/libsqlite3.so.0.8.6
I don't have ideas yet on how to fix it. Anyway, this looks just wrong.
aemonge commented on 2021-12-14 10:12 (UTC)
Hi @damentz, I can't find the awsvpnclientmetrics.db
file anywhere to apply your solution.
I've seen so far, Arch Linux is a bit more problematic. I've tried all your comment so far, and I haven't been successful.
@K5HV Are you working with Arch ? If so, can you please let me know how did you manage to run this ?
damentz commented on 2021-11-15 20:01 (UTC)
@project0, I get the same thing with 1.0.3. The strace output doesn't make it clear what the real problem is (unless someone else here is good at reading and dissecting them).
For now I locked this package to 1.0.2 on my end. Hopefully AWS fixes this in their next version.
Pinned Comments
project0 commented on 2021-06-28 15:58 (UTC) (edited on 2024-02-12 11:07 (UTC) by project0)
Please note the following requirements for AWS VPN Client:
If you depend on DNS servers from VPN you need to have a running systemd-resolved.service. Please ensure it does not conflict with any other DNS resolver service or configuration you may use.
sudo systemctl --now enable systemd-resolved.service
You have to enable and start the awsvpnclient.service after installation:
sudo systemctl --now enable awsvpnclient
For troubelshooting its worth checking first the logs:
See also the official docs: https://docs.aws.amazon.com/vpn/latest/clientvpn-user/client-vpn-connect-linux.html
If you face any other problem please check the troubleshooting guide (DNS issues): https://docs.aws.amazon.com/vpn/latest/clientvpn-user/linux-troubleshooting.html#aws-provided-client