Hi @bhyoo Updated. Your pkg works like a charm. Thank you.
-fredg
Git Clone URL: | https://aur.archlinux.org/openvpn3.git (read-only, click to copy) |
---|---|
Package Base: | openvpn3 |
Description: | OpenVPN 3 Linux client |
Upstream URL: | https://github.com/OpenVPN/openvpn3-linux |
Licenses: | AGPL3 |
Submitter: | bhyoo |
Maintainer: | bhyoo |
Last Packager: | bhyoo |
Votes: | 14 |
Popularity: | 0.75 |
First Submitted: | 2020-07-04 06:51 (UTC) |
Last Updated: | 2023-11-24 00:02 (UTC) |
Hi @bhyoo Updated. Your pkg works like a charm. Thank you.
-fredg
Because the origin source code does not support upstream glib2, this package delivers statically compiled glib2 2.74.6 within binary starting from 21-1. Please give any feedback if it does not work.
@LGXerxes,
paru --sync --rebuild openvpn3
helped in my case. Relevant issue: https://github.com/OpenVPN/openvpn3-linux/issues/97
Is there anything I can do about this?
openvpn3 session-start --config ./client.ovpn 9s
** ERROR ** Failed preparing proxy: Error calling StartServiceByName for net.openvpn.v3.sessions: Launch helper exited with unknown return code 127
I'm majorly struggling with this libprotobuf issue-
openvpn3 session-start --config <my config>
net.openvpn.v3.sessions[206260]: /usr/libexec/openvpn3-linux/openvpn3-service-sessionmgr: error while loading shared libraries: libprotobuf.so.23: cannot open shared object file: No such file or directory
I've tried:
1. Switching between openvpn3
and openvpn3-git
2. Symlinking a newer libprotobuf.so
to libprotobuf.so.23
3. Downgrading glib2
All with no success. Would greatly appreciate some debugging help. Thanks!
Add automake to the build dependenices.
Can't exec "aclocal": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 274.
autoreconf: error: aclocal failed with exit status: 2
Fuzzy is spot on - the libprotobuf.so issue comes about because other software updates have modified files which openvpn3 depends on.
Rebuilding will cause openvpn3 to use the updated files and the error will go away.
I also recommend installing rebuild-detector - this will warn you when AUR packages have been affected by similar problems so you can be proactive about rebuilding (and avoid similar errors in future).
The below problem was fixed by reinstallation of openvpn3 package from AUR with clean rebuild.
I got the same problem:
** ERROR ** Failed preparing proxy: Error calling StartServiceByName for net.openvpn.v3.sessions: Launch helper exited with unknown return code 127
And I see that libprotobuf.so.32 is not found (I have extra/protobuf 23.4-1 installed)
$ ldd /usr/libexec/openvpn3-linux/openvpn3-service-sessionmgr
linux-vdso.so.1 (0x00007ffea9b75000)
libgio-2.0.so.0 => /usr/lib/libgio-2.0.so.0 (0x00007f022b9f1000)
libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x00007f022b98f000)
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007f022b844000)
libjsoncpp.so.25 => /usr/lib/libjsoncpp.so.25 (0x00007f022b80a000)
libuuid.so.1 => /usr/lib/libuuid.so.1 (0x00007f022b801000)
libsystemd.so.0 => /usr/lib/libsystemd.so.0 (0x00007f022b719000)
libprotobuf.so.32 => not found
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f022b400000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f022b6f2000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007f022b216000)
libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x00007f022b6eb000)
libz.so.1 => /usr/lib/libz.so.1 (0x00007f022b6d1000)
libmount.so.1 => /usr/lib/libmount.so.1 (0x00007f022b67e000)
libffi.so.8 => /usr/lib/libffi.so.8 (0x00007f022b20b000)
libpcre2-8.so.0 => /usr/lib/libpcre2-8.so.0 (0x00007f022b170000)
libm.so.6 => /usr/lib/libm.so.6 (0x00007f022b083000)
/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f022bc85000)
libcap.so.2 => /usr/lib/libcap.so.2 (0x00007f022b077000)
libgcrypt.so.20 => /usr/lib/libgcrypt.so.20 (0x00007f022af2f000)
liblzma.so.5 => /usr/lib/liblzma.so.5 (0x00007f022aefc000)
libzstd.so.1 => /usr/lib/libzstd.so.1 (0x00007f022ae29000)
liblz4.so.1 => /usr/lib/liblz4.so.1 (0x00007f022ae07000)
libblkid.so.1 => /usr/lib/libblkid.so.1 (0x00007f022adcb000)
libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x00007f022ada5000)
Hey, had the same issue as below when trying to start a session. I tried reinstalling the AUR pkg, but there are build errors. I have glib2 v2.76.4, but to me this looks related to protobuf:
In file included from src/netcfg/proxy-netcfg-device.cpp:34:
src/netcfg/dco-keyconfig.pb.h:17:2: error: #error This file was generated by an older version of protoc which is
17 | #error This file was generated by an older version of protoc which is
| ^~~~~
src/netcfg/dco-keyconfig.pb.h:18:2: error: #error incompatible with your Protocol Buffer headers. Please
18 | #error incompatible with your Protocol Buffer headers. Please
| ^~~~~
src/netcfg/dco-keyconfig.pb.h:19:2: error: #error regenerate this file with a newer version of protoc.
19 | #error regenerate this file with a newer version of protoc.
| ^~~~~
CXX src/netcfg/dco-keyconfig.pb.o
In file included from src/netcfg/dco-keyconfig.pb.cc:4:
./src/netcfg/dco-keyconfig.pb.h:17:2: error: #error This file was generated by an older version of protoc which is
17 | #error This file was generated by an older version of protoc which is
| ^~~~~
./src/netcfg/dco-keyconfig.pb.h:18:2: error: #error incompatible with your Protocol Buffer headers. Please
18 | #error incompatible with your Protocol Buffer headers. Please
| ^~~~~
./src/netcfg/dco-keyconfig.pb.h:19:2: error: #error regenerate this file with a newer version of protoc.
19 | #error regenerate this file with a newer version of protoc.
| ^~~~~
src/netcfg/dco-keyconfig.pb.h:173:35: error: ‘StringPiece’ in namespace ‘google::protobuf’ does not name a type
173 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
| ^~~~~~~~~~~
src/netcfg/dco-keyconfig.pb.h: In member function ‘void openvpn::DcoKeyConfig_KeyDirection::UnsafeArenaSwap(openvpn::DcoKeyConfig_KeyDirection*)’:
src/netcfg/dco-keyconfig.pb.h:138:5: error: ‘GOOGLE_DCHECK’ was not declared in this scope; did you mean ‘ABSL_DCHECK’?
138 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
| ^~~~~~~~~~~~~
| ABSL_DCHECK
src/netcfg/dco-keyconfig.pb.h: At global scope:
src/netcfg/dco-keyconfig.pb.h:396:35: error: ‘StringPiece’ in namespace ‘google::protobuf’ does not name a type
396 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
| ^~~~~~~~~~~
src/netcfg/dco-keyconfig.pb.h: In member function ‘void openvpn::DcoKeyConfig::UnsafeArenaSwap(openvpn::DcoKeyConfig*)’:
src/netcfg/dco-keyconfig.pb.h:361:5: error: ‘GOOGLE_DCHECK’ was not declared in this scope; did you mean ‘ABSL_DCHECK’?
361 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
| ^~~~~~~~~~~~~
| ABSL_DCHECK
./src/netcfg/dco-keyconfig.pb.h:173:35: error: ‘StringPiece’ in namespace ‘google::protobuf’ does not name a type
173 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
| ^~~~~~~~~~~
./src/netcfg/dco-keyconfig.pb.h: In member function ‘void openvpn::DcoKeyConfig_KeyDirection::UnsafeArenaSwap(openvpn::DcoKeyConfig_KeyDirection*)’:
./src/netcfg/dco-keyconfig.pb.h:138:5: error: ‘GOOGLE_DCHECK’ was not declared in this scope; did you mean ‘ABSL_DCHECK’?
138 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
| ^~~~~~~~~~~~~
| ABSL_DCHECK
./src/netcfg/dco-keyconfig.pb.h: At global scope:
./src/netcfg/dco-keyconfig.pb.h:396:35: error: ‘StringPiece’ in namespace ‘google::protobuf’ does not name a type
396 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
| ^~~~~~~~~~~
./src/netcfg/dco-keyconfig.pb.h: In member function ‘void openvpn::DcoKeyConfig::UnsafeArenaSwap(openvpn::DcoKeyConfig*)’:
./src/netcfg/dco-keyconfig.pb.h:361:5: error: ‘GOOGLE_DCHECK’ was not declared in this scope; did you mean ‘ABSL_DCHECK’?
361 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
| ^~~~~~~~~~~~~
| ABSL_DCHECK
src/netcfg/dco-keyconfig.pb.cc: At global scope:
src/netcfg/dco-keyconfig.pb.cc:117:16: error: ‘once_flag’ in namespace ‘_pbi’ does not name a type
117 | static ::_pbi::once_flag descriptor_table_src_2fnetcfg_2fdco_2dkeyconfig_2eproto_once;
| ^~~~~~~~~
src/netcfg/dco-keyconfig.pb.cc:121:6: error: ‘descriptor_table_src_2fnetcfg_2fdco_2dkeyconfig_2eproto_once’ was not declared in this scope; did you mean ‘descriptor_table_src_2fnetcfg_2fdco_2dkeyconfig_2eproto’?
121 | &descriptor_table_src_2fnetcfg_2fdco_2dkeyconfig_2eproto_once, nullptr, 0, 2,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| descriptor_table_src_2fnetcfg_2fdco_2dkeyconfig_2eproto
src/netcfg/dco-keyconfig.pb.cc: In constructor ‘openvpn::DcoKeyConfig_KeyDirection::DcoKeyConfig_KeyDirection(google::protobuf::Arena*, bool)’:
src/netcfg/dco-keyconfig.pb.cc:158:61: error: no matching function for call to ‘google::protobuf::Message::Message(google::protobuf::Arena*&, bool&)’
158 | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
| ^
In file included from ./src/netcfg/dco-keyconfig.pb.h:29:
/usr/include/google/protobuf/message.h:416:19: note: candidate: ‘google::protobuf::Message::Message(google::protobuf::Arena*)’
416 | inline explicit Message(Arena* arena) : MessageLite(arena) {}
| ^~~~~~~
/usr/include/google/protobuf/message.h:416:19: note: candidate expects 1 argument, 2 provided
/usr/include/google/protobuf/message.h:252:13: note: candidate: ‘constexpr google::protobuf::Message::Message()’
252 | constexpr Message() {}
| ^~~~~~~
/usr/include/google/protobuf/message.h:252:13: note: candidate expects 0 arguments, 2 provided
src/netcfg/dco-keyconfig.pb.cc: In member function ‘void openvpn::DcoKeyConfig_KeyDirection::SharedDtor()’:
src/netcfg/dco-keyconfig.pb.cc:238:3: error: ‘GOOGLE_DCHECK’ was not declared in this scope; did you mean ‘ABSL_DCHECK’?
238 | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
| ^~~~~~~~~~~~~
| ABSL_DCHECK
src/netcfg/dco-keyconfig.pb.cc: In static member function ‘static void openvpn::DcoKeyConfig_KeyDirection::MergeImpl(google::protobuf::Message&, const google::protobuf::Message&)’:
src/netcfg/dco-keyconfig.pb.cc:446:3: error: ‘GOOGLE_DCHECK_NE’ was not declared in this scope; did you mean ‘ABSL_DCHECK_NE’?
446 | GOOGLE_DCHECK_NE(&from, _this);
| ^~~~~~~~~~~~~~~~
| ABSL_DCHECK_NE
src/netcfg/dco-keyconfig.pb.cc: In member function ‘virtual google::protobuf::Metadata openvpn::DcoKeyConfig_KeyDirection::GetMetadata() const’:
src/netcfg/dco-keyconfig.pb.cc:504:73: error: ‘descriptor_table_src_2fnetcfg_2fdco_2dkeyconfig_2eproto_once’ was not declared in this scope; did you mean ‘descriptor_table_src_2fnetcfg_2fdco_2dkeyconfig_2eproto_getter’?
504 | scriptor_table_src_2fnetcfg_2fdco_2dkeyconfig_2eproto_getter, &descriptor_table_src_2fnetcfg_2fdco_2dkeyconfig_2eproto_once,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| descriptor_table_src_2fnetcfg_2fdco_2dkeyconfig_2eproto_getter
src/netcfg/dco-keyconfig.pb.cc: In constructor ‘openvpn::DcoKeyConfig::DcoKeyConfig(google::protobuf::Arena*, bool)’:
src/netcfg/dco-keyconfig.pb.cc:545:61: error: no matching function for call to ‘google::protobuf::Message::Message(google::protobuf::Arena*&, bool&)’
545 | : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
| ^
/usr/include/google/protobuf/message.h:416:19: note: candidate: ‘google::protobuf::Message::Message(google::protobuf::Arena*)’
416 | inline explicit Message(Arena* arena) : MessageLite(arena) {}
| ^~~~~~~
/usr/include/google/protobuf/message.h:416:19: note: candidate expects 1 argument, 2 provided
/usr/include/google/protobuf/message.h:252:13: note: candidate: ‘constexpr google::protobuf::Message::Message()’
252 | constexpr Message() {}
| ^~~~~~~
/usr/include/google/protobuf/message.h:252:13: note: candidate expects 0 arguments, 2 provided
src/netcfg/dco-keyconfig.pb.cc: In member function ‘void openvpn::DcoKeyConfig::SharedDtor()’:
src/netcfg/dco-keyconfig.pb.cc:599:3: error: ‘GOOGLE_DCHECK’ was not declared in this scope; did you mean ‘ABSL_DCHECK’?
599 | GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
| ^~~~~~~~~~~~~
| ABSL_DCHECK
src/netcfg/dco-keyconfig.pb.cc: In member function ‘virtual void openvpn::DcoKeyConfig::Clear()’:
src/netcfg/dco-keyconfig.pb.cc:617:7: error: ‘GOOGLE_DCHECK’ was not declared in this scope; did you mean ‘ABSL_DCHECK’?
617 | GOOGLE_DCHECK(_impl_.encrypt_ != nullptr);
| ^~~~~~~~~~~~~
| ABSL_DCHECK
src/netcfg/dco-keyconfig.pb.cc:621:7: error: ‘GOOGLE_DCHECK’ was not declared in this scope; did you mean ‘ABSL_DCHECK’?
621 | GOOGLE_DCHECK(_impl_.decrypt_ != nullptr);
| ^~~~~~~~~~~~~
| ABSL_DCHECK
src/netcfg/dco-keyconfig.pb.cc: In static member function ‘static void openvpn::DcoKeyConfig::MergeImpl(google::protobuf::Message&, const google::protobuf::Message&)’:
src/netcfg/dco-keyconfig.pb.cc:835:3: error: ‘GOOGLE_DCHECK_NE’ was not declared in this scope; did you mean ‘ABSL_DCHECK_NE’?
835 | GOOGLE_DCHECK_NE(&from, _this);
| ^~~~~~~~~~~~~~~~
| ABSL_DCHECK_NE
src/netcfg/dco-keyconfig.pb.cc: In member function ‘virtual google::protobuf::Metadata openvpn::DcoKeyConfig::GetMetadata() const’:
src/netcfg/dco-keyconfig.pb.cc:895:73: error: ‘descriptor_table_src_2fnetcfg_2fdco_2dkeyconfig_2eproto_once’ was not declared in this scope; did you mean ‘descriptor_table_src_2fnetcfg_2fdco_2dkeyconfig_2eproto_getter’?
895 | scriptor_table_src_2fnetcfg_2fdco_2dkeyconfig_2eproto_getter, &descriptor_table_src_2fnetcfg_2fdco_2dkeyconfig_2eproto_once,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| descriptor_table_src_2fnetcfg_2fdco_2dkeyconfig_2eproto_getter
make[2]: *** [Makefile:4247: src/netcfg/proxy-netcfg-device.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile:3699: src/netcfg/dco-keyconfig.pb.o] Error 1
Hey now I have (with/without downgrade 'glib2=2.74.6'
)
openvpn3 session-start --config client.ovpn
** ERROR ** Failed preparing proxy: Error calling StartServiceByName for net.openvpn.v3.sessions: Launch helper exited with unknown return code 127
Pinned Comments
bhyoo commented on 2023-11-04 09:27 (UTC)
Because the origin source code does not support upstream glib2, this package delivers statically compiled glib2 2.74.6 within binary starting from 21-1. Please give any feedback if it does not work.