Skip to content

aw-qt-0^20240903 always fails to locate aw-server on first invocation after server boot. #113

@RokeJulianLockhart

Description

@RokeJulianLockhart

The Reproduction Method 1

  1. #!/usr/bin/env sh
    aw-server && \
    aw-qt
  2. Image
  3. Restart

Its Consequence

2025-08-12 10:55:24 [WARNING]: Tried to stop module aw-server, but it wasn't running  (aw_qt.manager:185)
2025-08-12 10:55:55 [INFO ]: Starting module aw-server  (aw_qt.manager:148)
[2025-08-12 10:55:55][INFO][aw_server]: Using DB at path "/home/RokeJulianLockhart/.local/share/activitywatch/aw-server-rust/sqlite.db"
[2025-08-12 10:55:55][INFO][aw_server]: Using aw-webui assets at path None
[2025-08-12 10:55:55][INFO][aw_server::endpoints]: Starting aw-server-rust at 127.0.0.1:5600
Error: Bind(Os { code: 98, kind: AddrInUse, message: "Address already in use" })

My Diagnosis

Could it be because the aw-server option comes disabled (that is, by default) in the System Tray icon's QMenu's "Modules" QAction?

My Environment

  1. The Server And Client

    1. #!/usr/bin/env sh
      rpm -qa *-aw*
    2. python3-aw-core-0.5.17-3.fc42.noarch
      python3-aw-client-0.5.14-2.fc42.noarch
      nodejs-aw-webui-0^20250507.9259df7-2.fc42.noarch
      python3-aw-qt-0^20240903.43864b2-2.fc42.noarch
  2. The OS And DE

    1. #!/usr/bin/env sh
      fastfetch -l none
    2. OS: Fedora Linux 42 (KDE Plasma Desktop Edition) x86_64
      Host: Laptop 16 (AMD Ryzen 7040 Series) (A7)
      Kernel: Linux 6.15.9-201.fc42.x86_64
      Uptime: 1 hour, 1 min
      Packages: 2926 (rpm), 23 (flatpak)
      Shell: bash 5.2.37
      Display (BOE0BC9): 2560x1600 @ 165 Hz (as 1706x1066) in 16" [Built-in]
      DE: KDE Plasma 6.4.4
      WM: KWin (Wayland)
      WM Theme: Breeze
      Theme: Breeze (Dark) [Qt], Breeze-Dark [GTK3/4]
      Icons: breeze-dark [Qt], breeze-dark [GTK3/4]
      Font: Monospace (10pt) [Qt], Monospace (10pt) [GTK3/4]
      Cursor: breeze (24px)
      Terminal: konsole 25.4.3
      CPU: AMD Ryzen 7 7840HS (16) @ 5.14 GHz
      GPU: AMD Radeon 780M Graphics [Integrated]
      Memory: 11.11 GiB / 30.65 GiB (36%)
      Swap: 0 B / 8.00 GiB (0%)
      Disk (/): 190.47 GiB / 929.91 GiB (20%) - btrfs
      Local IP (wlp1s0): 192.168.1.219/24
      Battery (FRANDBA): 87% [Charging, AC Connected]
      Locale: en_GB.UTF-8

Footnotes

  1. discussions/1168#discussioncomment-14080795

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions