Skip to content

[GOWS] - Deleting sessions causes worker to hang and fully restart #1804

@trojantm

Description

@trojantm

When deleting some instances/sessions in WAHA, the worker hangs and then restarts entirely.
At the same time, the Dashboard returns a timeout error for the delete operation.

So far, I haven’t been able to capture useful logs during the failure, as the restart happens very quickly.

Expected behavior

Deleting a session should:

  • Stop and clean up the session properly
  • Free related resources
  • Return a success or controlled error response
  • The worker should not hang or restart during this process.

Actual behavior

When deleting certain sessions:

The request times out in the Dashboard
The worker becomes unresponsive
The whole service/container restarts

Environment

WAHA image: 2026.1.2
Engine: GOWS
Usage: Dashboard / API
OS / Infrastructure: Docker

Steps to reproduce

  • Create multiple sessions
  • Start some of them
  • Delete specific sessions (does not happen consistently with all sessions)

Observe:

  • Timeout error in the Dashboard
  • Worker hanging
  • Full restart of the service

Logs

❌ No relevant logs captured yet
Will update the issue as soon as logs are available

Additional notes

The issue appears to be intermittent
It may be related to session cleanup or resource handling when using the GOWS engine
I’m happy to help test debug builds, flags, or alternative versions if needed

patron:PLUS

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions