Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starting WireGuard sometimes fails #60

Open
baltpeter opened this issue Apr 13, 2023 · 5 comments
Open

Starting WireGuard sometimes fails #60

baltpeter opened this issue Apr 13, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@baltpeter
Copy link
Member

Error:

Error: Failed to automatically configure the WireGuard app. Try again or manually enable "Allow remote control apps" under "Advanced" in the app's settings.
    at Object.ensureDevice (/home/benni/coding/JS/tweasel/appstraction/dist/src/android.ts:302:27)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at <anonymous> (/home/benni/coding/JS/tweasel/cyanoacrylate/src/test.tmp.ts:25:5) {
  [cause]: Error: Command failed with exit code 1: adb shell stat -c %U /data/data/com.wireguard.android
  error: closed
      at makeError (file:///home/benni/coding/JS/tweasel/appstraction/node_modules/execa/lib/error.js:59:11)
      at handlePromise (file:///home/benni/coding/JS/tweasel/appstraction/node_modules/execa/index.js:119:26)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at Object.ensureDevice (/home/benni/coding/JS/tweasel/appstraction/dist/src/android.ts:275:49)
      at <anonymous> (/home/benni/coding/JS/tweasel/cyanoacrylate/src/test.tmp.ts:25:5) {
    shortMessage: 'Command failed with exit code 1: adb shell stat -c %U /data/data/com.wireguard.android',
    command: 'adb shell stat -c %U /data/data/com.wireguard.android',
    escapedCommand: 'adb shell stat -c "%U" "/data/data/com.wireguard.android"',
    exitCode: 1,
    signal: undefined,
    signalDescription: undefined,
    stdout: '',
    stderr: 'error: closed',
    failed: true,
    timedOut: false,
    isCanceled: false,
    killed: false
  }
}
@baltpeter baltpeter added the bug Something isn't working label Apr 13, 2023
@zner0L
Copy link
Contributor

zner0L commented Jul 10, 2023

I have to say that I have not ever seen this bug. Also, error: closed is related to the adb connection somehow. I saw this kind of error (though without any connection to Wireguard) while I still had a broken adb setup. Since this is an old bug: When was the last time you saw this?

@baltpeter
Copy link
Member Author

I think I've seen this bug again after that, though I can't remember when. Might have been a while and it's possible it's been fixed by something else. shrug

Probably doesn't need any action right now (until someone sees it again). You can decide whether to close or leave open.

@zner0L
Copy link
Contributor

zner0L commented Jul 12, 2023

I have, in fact, just seen the bug again. It occured when I was testing cyanoacrylate with an old version of appstraction without rooted debugging enabled.

@zner0L
Copy link
Contributor

zner0L commented Apr 8, 2024

I really don’t knwo how to check whether this still is an issue. Do you think I should do a probabilistic analysis?

@baltpeter
Copy link
Member Author

Well, in your last comment, you said that you had only observed the problem with an old version (unfortunately with specifying which one).

I'd say we'll leave this issue open in case we observe the problem again on the current version, but don't do anything in the meantime. I'd say it's reasonably likely that this has been "accidentally" fixed in the last year—I don't remember running into the issue for quite a while.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants