Skip to content

VPN tunnel closes going into doze mode #7

@nphalem

Description

@nphalem

Describe the Bug

After some time the VPN connection stops and never restores.

Click to view logs
2026-01-30 12:10:38.381 [INFO] PangolinGo: [Android] [PowerState] Device ENTERED Doze mode
2026-01-30 12:10:38.383 [INFO] PangolinGo: Setting power mode to: low
2026-01-30 12:10:38.383 [INFO] PangolinGo: Switching to low power mode
2026-01-30 12:10:38.383 [INFO] PangolinGo: Switched to low power mode
2026-01-30 12:10:38.383 [INFO] PangolinGo: Power mode set to: low
2026-01-30 12:13:31.456 [INFO] PangolinGo: [Android] [PowerState] Device EXITED Doze mode
2026-01-30 12:13:31.457 [INFO] PangolinGo: Setting power mode to: normal
2026-01-30 12:13:31.457 [INFO] PangolinGo: Wake-up requested, starting 0s debounce timer
2026-01-30 12:13:31.457 [INFO] PangolinGo: Power mode set to: normal
2026-01-30 12:13:31.457 [INFO] PangolinGo: Debounce complete, switching to normal power mode
2026-01-30 12:13:31.457 [INFO] PangolinGo: Reconnecting websocket for normal power mode
2026-01-30 12:13:31.457 [INFO] PangolinGo: Switched to normal power mode
2026-01-30 12:13:34.612 [DEBUG] PangolinGo: Stopping tunnel
2026-01-30 12:13:34.612 [INFO] PangolinGo: Stopping tunnel process
2026-01-30 12:13:34.612 [DEBUG] PangolinGo: Cancelling tunnel context
2026-01-30 12:13:34.612 [DEBUG] PangolinGo: Waiting for tunnel goroutine to finish
2026-01-30 12:13:34.612 [INFO] PangolinGo: Tunnel process context cancelled, cleaning up

Environment

  • OS Type & Version: GrapheneOS Android 16
  • Pangolin Version: 1.15.1
  • Gerbil Version: 1.3.0
  • Traefik Version: v3.6
  • Newt Version: 1.9.0
  • Client Version: 0.1.3

To Reproduce

Run in background while connected for some time.
Override DNS enabled.

Expected Behavior

VPN doesn't stop while in the background.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions