Skip to content

Training does not start – /ws/train/progress returns 404 and no model is generated #1233

Description

@PiotrBejza

Hi,

I'm testing the latest main branch of RuView with 4× ESP32-C6 nodes and I cannot get model training to work.

Environment
Latest main branch (fresh clone)
Ubuntu 24.04
Python 3.12
Docker image: ruvnet/wifi-densepose:latest
4× ESP32-C6
Full CSI frames are being received correctly (--edge-tier 0)
What works
ESP32 nodes connect successfully.
UDP packets are received.
Live visualization works.
Recording works correctly.

Example:

Recording stopped: rec_1782994280 (629s)
Recording rec_1782994280: stop signal received (57367 frames)
Recording rec_1782994280 finished: 57367 frames written

The recording file (rec_1782994280.jsonl) is created correctly.

Problem

When I start training from the web dashboard, the frontend reports:

Connecting progress stream
ws://localhost:3000/ws/train/progress

Immediately afterwards:

GET ws://localhost:3000/ws/train/progress
HTTP/1.1 404 Not Found

Browser console:

Firefox can't establish a connection to ws://localhost:3000/ws/train/progress

[TRAIN-ERROR]
Progress stream error

Progress stream disconnected

The backend logs only show:

Training started with config:
{
"dataset_ids":["rec_1782994280"],
"config":{
"batch_size":32,
"epochs":100,
"learning_rate":0.0003,
"patience":15
}
}

After that:

CPU usage stays near idle.
No additional training logs appear.
No trained .rvf model is generated.
Additional information

Initially I had an installation issue caused by:

allowed_hosts

in .env, which expected a JSON array. After changing it to:

ALLOWED_HOSTS=["*"]

installation completed successfully, but the training issue remains.

Questions
Is model training currently supported in the latest main branch?
Is /ws/train/progress expected to exist?
Is there a CLI command or REST API that should be used instead of the dashboard?
Is there any additional service or feature flag that needs to be enabled for training?
Could someone provide the current workflow for training a custom .rvf model from recorded CSI data?

Image

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions