VM:Husarnet API is not ready when running husarnet/ros2router container

Hi, I’m facing an issue when launching the husarnet/ros2router:1.9.2 container inside the VM Here’s the console output:

ros2router-1  | >> Husarnet participant enabled
ros2router-1  | Checking if Husarnet API (http://127.0.0.1:16216) is ready 
ros2router-1  | Husarnet API is not ready
ros2router-1  | Husarnet API is not ready
ros2router-1  | ...
ros2router-1  | Error: Exiting...
ros2router-1  | 2025-07-15 04:49:18.755 [DDSROUTER_ARGS Error] Option 'c' requires an existing readable file as argument. -> Function Readable_File
ros2router-1  | Usage: Fast DDS Router 
...
ros2router-1 exited with code 10

compose.yaml

services:
ros2router:
image: husarnet/ros2router:1.9.2
restart: always
network_mode: host
ipc: host
volumes:
- ./filter.yaml:/filter.yaml
environment:
- PARTICIPANTS=husarnet,lo
- ROS_DISCOVERY_SERVER=;;;[fc94:2452:3445:38a4:a117:2fc1:21f5:ffe7]
- USER

Thanks!
Pavan
Team Shunya

1 Like

I am encountering the same issue, did you manage to solve this?

Hello,

so it seems that the container can’t contact Husarnet daemon running locally. What’s the output of husarnet status on this machine?

You can also check curl -s http://127.0.0.1:16216/api/status

BR,
Szymon

Hi we are getting the same issue the output after running that was

team@team-53-criss:~$ curl -s http://127.0.0.1:16216/api/status
{
    "result": {
        "config": {
            "dashboard": {
                "claim_info": {
                    "hostname": "team-XX-criss",
                    "owner": "erc@husarion.com"
                },
                "features": {
                    "AccountAdmin": false,
                    "SyncHostname": false
                },
                "is_claimed": true,
                "peers": [
                    {
                        "address": "fc94:e46a:238e:e84c:a299:8403:b893:61XX",
                        "aliases": [],
                        "hostname": "aryan"
                    },
                    {
                        "address": "fc94:a408:ff5a:2b19:229a:36c2:6dac:a0XX",
                        "aliases": [],
                        "hostname": "gautham"
                    }
                ]
            },
            "env": {
                "instance_fqdn": "beta.husarnet.com",
                "log_verbosity": 5
            },
            "license": {
                "api_servers": [
                    "fc94:cfa1:6f6a:74bd:7532:79c7:9752:cfXX"
                ],
                "base_server_addresses": [
                    "188.165.23.196"
                ],
                "dashboard_url": "deprecated",
                "eb_servers": [
                    "fc94:3ff1:c58a:1702:ca37:0e9e:03af:02XX"
                ],
                "installation_id": "0bcb0930-7da8-4b1a-a14d-091362a41e7cXX",
                "issued": "2025-07-04T16:50:32.848647+00:00",
                "license_id": "a897c037-b2cb-4ebe-8967-4d3e6d8f5ad6",
                "max_devices": 2147483647,
                "name": "Husarnet Beta",
                "signature": "wu8zO4+WqYhetBpzccTb7IFytARKlvcZgjpjk33/QD+HD1Smz4LtnQBMinz8s9f7zjbW2jsGD2YoktEZpfbZDA==",
                "signature_v2": "IZKfGgFVDYtFRlhyNh3Hi+2eTIOSGApHZAjqz4eB/IrLv2uCdFgWgAObZc8XSeBFouZaathOPQZTOhmvWuI9DQ==",
                "valid_until": "2026-07-04",
                "version": 1,
                "websetup_host": "fc94:88c0:d363:df00:5400:dfdd:1f22:d4a5"
            },
            "user_config": {
                "whitelist": []
            }
        },
        "live": {
            "base_connection": {
                "address": "188.165.23.196",
                "port": 5582,
                "type": "UDP"
            },
            "dashboard_connection": true,
            "health": {
                "summary": true
            },
            "local_ip": "fc94:fbaf:189d:6fb7:0e4b:478b:3d17:2e4eXX",
            "peers": [
                {
                    "address": "fc94:3ff1:c58a:1702:ca37:0e9e:03af:0294XX",
                    "is_active": false,
                    "is_reestablishing": true,
                    "is_secure": true,
                    "is_tunelled": true
                },
                {
                    "address": "fc94:cfa1:6f6a:74bd:7532:79c7:9752:cf5bXX",
                    "is_active": true,
                    "is_reestablishing": true,
                    "is_secure": true,
                    "is_tunelled": true
                },
                {
                    "address": "fc94:a408:ff5a:2b19:229a:36c2:6dac:a061XX",
                    "is_active": true,
                    "is_reestablishing": true,
                    "is_secure": true,
                    "is_tunelled": true
                },
                {
                    "address": "fc94:e46a:238e:e84c:a299:8403:b893:6144XX",
                    "is_active": true,
                    "is_reestablishing": false,
                    "is_secure": true,
                    "is_tunelled": false
                }
            ]
        },
        "user_agent": "Husarnet,Linux,AMD64,2.0.321",
        "version": "2.0.321"
    },
    "status": "success"

Hi,

We are unable to access the VM using ssh and the husarnet status shows
● active ● no data flow ● tunelled for the VM

Output of the suggested commands on the VM:

husarnet status output:

...
This device
  Health:                    healthy
  User agent:                Husarnet,Linux,AMD64,2.0.321
  fc94:97ad:0c27:e3b9:9cc1:49e5:5f62:0c71
...

curl -s http://127.0.0.1:16216/api/status output

{
    "result": {
        "config": {
            "dashboard": {
                "claim_info": {
                    "hostname": "...",
                    "owner": "erc@husarion.com"
                },
                "features": {
                    "AccountAdmin": false,
                    "SyncHostname": false
                },
                "is_claimed": true,
                "peers": [
                    {
                        "address": "fc94:9a41:2887:d6dd:da49:72d4:e571:9094",
                        "aliases": [],
                        "hostname": "gianmarco_ubuntu"
                    },
                    {
                        "address": "fc94:4235:6c2e:d0a2:a10a:bd0a:5fc1:f928",
                        "aliases": [],
                        "hostname": "alepc"
                    }
                ]
            },
            "env": {
                "instance_fqdn": "beta.husarnet.com",
                "log_verbosity": 5
            },
            "license": {
                "api_servers": [
                    "fc94:cfa1:6f6a:74bd:7532:79c7:9752:cf5b"
                ],
                "base_server_addresses": [
                    "188.165.23.196"
                ],
                "dashboard_url": "deprecated",
                "eb_servers": [
                    "fc94:3ff1:c58a:1702:ca37:0e9e:03af:0294"
                ],
                "installation_id": "0bcb0930-7da8-4b1a-a14d-091362a41e7c",
                "issued": "2025-07-04T16:50:32.848647+00:00",
                "license_id": "a897c037-b2cb-4ebe-8967-4d3e6d8f5ad6",
                "max_devices": 2147483647,
                "name": "Husarnet Beta",
                "signature": "wu8zO4+WqYhetBpzccTb7IFytARKlvcZgjpjk33/QD+HD1Smz4LtnQBMinz8s9f7zjbW2jsGD2YoktEZpfbZDA==",
                "signature_v2": "IZKfGgFVDYtFRlhyNh3Hi+2eTIOSGApHZAjqz4eB/IrLv2uCdFgWgAObZc8XSeBFouZaathOPQZTOhmvWuI9DQ==",
                "valid_until": "2026-07-04",
                "version": 1,
                "websetup_host": "fc94:88c0:d363:df00:5400:dfdd:1f22:d4a5"
            },
            "user_config": {
                "whitelist": []
            }
        },
        "live": {
            "base_connection": {
                "address": "188.165.23.196",
                "port": 5582,
                "type": "UDP"
            },
            "dashboard_connection": true,
            "health": {
                "summary": true
            },
            "local_ip": "fc94:97ad:0c27:e3b9:9cc1:49e5:5f62:0c71",
            "peers": [
                {
                    "address": "fc94:3ff1:c58a:1702:ca37:0e9e:03af:0294",
                    "is_active": false,
                    "is_reestablishing": true,
                    "is_secure": true,
                    "is_tunelled": true
                },
                {
                    "address": "fc94:cfa1:6f6a:74bd:7532:79c7:9752:cf5b",
                    "is_active": true,
                    "is_reestablishing": true,
                    "is_secure": true,
                    "is_tunelled": true
                },
                {
                    "address": "fc94:4235:6c2e:d0a2:a10a:bd0a:5fc1:f928",
                    "is_active": true,
                    "is_reestablishing": false,
                    "is_secure": true,
                    "is_tunelled": false
                },
                {
                    "address": "fc94:9a41:2887:d6dd:da49:72d4:e571:9094",
                    "is_active": false,
                    "is_reestablishing": true,
                    "is_secure": false,
                    "is_tunelled": true
                }
            ]
        },
        "user_agent": "Husarnet,Linux,AMD64,2.0.321",
        "version": "2.0.321"
    },
    "status": "success"

Thank you guys for the outputs,

These look healthy; the problem is inside ros2router container - it is not aligned with the new beta version and Husarnet API is not ready is coming from checking the wrong field in curl output

Unfortunately will need to wait for new version of the container, we will keep you updated

Best regards,
Szymon

We’ve updated the ros2router image to support the nightly build of Husarnet too. Please try again.