[GH-ISSUE #22] kernel backend not working #13

Open
opened 2026-10-13 21:05:07 +00:00 by bsakaguchi · 2 comments
Owner

Originally created by @bol-van on GitHub (Dec 12, 2024).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-android/issues/22

I'm trying to set up kernel backed for amnezia wg android v1.1.1.1.
I've successfully built kernel module, loaded it.
Could switch it on in app.
But when I try to enable any tunnel I immediately get

12-12 23:14:58.107  7328  7344 W AmneziaWG/AwgQuickBackend:     at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(SourceFile:92)
12-12 23:14:58.157  7328  7328 E AmneziaWG/BaseFragment: Ошибка при запуске туннеля: Required tools unavailable
12-12 23:14:58.157  7328  7328 E AmneziaWG/BaseFragment: java.io.FileNotFoundException: Required tools unavailable
12-12 23:14:58.157  7328  7328 E AmneziaWG/BaseFragment:        at org.amnezia.awg.util.ToolsInstaller.ensureToolsAvailable(Unknown Source:57)
12-12 23:14:58.157  7328  7328 E AmneziaWG/BaseFragment:        at org.amnezia.awg.backend.AwgQuickBackend.setState(SourceFile:48)
12-12 23:14:58.157  7328  7328 E AmneziaWG/BaseFragment:        at org.amnezia.awg.model.TunnelManager$setTunnelState$2$1.invokeSuspend(Unknown Source:75)
12-12 23:14:58.157  7328  7328 E AmneziaWG/BaseFragment:        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Unknown Source:8)
12-12 23:14:58.157  7328  7328 E AmneziaWG/BaseFragment:        at kotlinx.coroutines.DispatchedTask.run(Unknown Source:96)
12-12 23:14:58.157  7328  7328 E AmneziaWG/BaseFragment:        at androidx.fragment.app.Fragment$4.run(SourceFile:14)
12-12 23:14:58.157  7328  7328 E AmneziaWG/BaseFragment:        at kotlinx.coroutines.scheduling.TaskImpl.run(Unknown Source:2)
12-12 23:14:58.157  7328  7328 E AmneziaWG/BaseFragment:        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(SourceFile:92)

There's nothing in /data/data/org.amnezia.awg/code_cache/bin
I also built awg-tools and put wg/wg-quick there (as in original wireguard) with no effect. (also set up chmod and chcon)
Renamed wg->awg wg_quick->awg_quick with not effect.

strace shows that it doesn't even try to open any files when I press tunnel enable

Originally created by @bol-van on GitHub (Dec 12, 2024). Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-android/issues/22 I'm trying to set up kernel backed for amnezia wg android v1.1.1.1. I've successfully built kernel module, loaded it. Could switch it on in app. But when I try to enable any tunnel I immediately get ``` 12-12 23:14:58.107 7328 7344 W AmneziaWG/AwgQuickBackend: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(SourceFile:92) 12-12 23:14:58.157 7328 7328 E AmneziaWG/BaseFragment: Ошибка при запуске туннеля: Required tools unavailable 12-12 23:14:58.157 7328 7328 E AmneziaWG/BaseFragment: java.io.FileNotFoundException: Required tools unavailable 12-12 23:14:58.157 7328 7328 E AmneziaWG/BaseFragment: at org.amnezia.awg.util.ToolsInstaller.ensureToolsAvailable(Unknown Source:57) 12-12 23:14:58.157 7328 7328 E AmneziaWG/BaseFragment: at org.amnezia.awg.backend.AwgQuickBackend.setState(SourceFile:48) 12-12 23:14:58.157 7328 7328 E AmneziaWG/BaseFragment: at org.amnezia.awg.model.TunnelManager$setTunnelState$2$1.invokeSuspend(Unknown Source:75) 12-12 23:14:58.157 7328 7328 E AmneziaWG/BaseFragment: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Unknown Source:8) 12-12 23:14:58.157 7328 7328 E AmneziaWG/BaseFragment: at kotlinx.coroutines.DispatchedTask.run(Unknown Source:96) 12-12 23:14:58.157 7328 7328 E AmneziaWG/BaseFragment: at androidx.fragment.app.Fragment$4.run(SourceFile:14) 12-12 23:14:58.157 7328 7328 E AmneziaWG/BaseFragment: at kotlinx.coroutines.scheduling.TaskImpl.run(Unknown Source:2) 12-12 23:14:58.157 7328 7328 E AmneziaWG/BaseFragment: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(SourceFile:92) ``` There's nothing in `/data/data/org.amnezia.awg/code_cache/bin` I also built awg-tools and put wg/wg-quick there (as in original wireguard) with no effect. (also set up chmod and chcon) Renamed wg->awg wg_quick->awg_quick with not effect. strace shows that it doesn't even try to open any files when I press tunnel enable
Author
Owner
<!-- gh-comment-id:5241341073 --> @erophey7 commented on GitHub (Aug 10, 2026): https://github.com/amnezia-vpn/amneziawg-tools/pull/64 https://github.com/amnezia-vpn/amneziawg-android/pull/89 https://github.com/amnezia-vpn/amneziawg-android/pull/90
Author
Owner

@bol-van commented on GitHub (Sep 20, 2026):

Checked on the latest version of the 3.1.x kernel module and application - v3.1.20260813.
backend of the kernel is seen, turned on, but when trying to raise the tunnel "required tools not found"
judging by strace, there are no exec attempts, although the log says "executing: awg show......."
apparently this execute is virtual from the built-in libs

kernel 4.9. had to do some compat magic to make the module compile.
module loads, ip link type amneziawg rises, awg from amneziawg-tools correctly shows the interface parameters

kernel backend seem to be broken in this version

<!-- gh-comment-id:5750742720 --> @bol-van commented on GitHub (Sep 20, 2026): Checked on the latest version of the 3.1.x kernel module and application - v3.1.20260813. backend of the kernel is seen, turned on, but when trying to raise the tunnel "required tools not found" judging by strace, there are no exec attempts, although the log says "executing: awg show......." apparently this execute is virtual from the built-in libs kernel 4.9. had to do some compat magic to make the module compile. module loads, ip link type amneziawg rises, awg from amneziawg-tools correctly shows the interface parameters kernel backend seem to be broken in this version
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amneziawg-android#13
No description provided.