Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows: GUI can't connect to revaultd daemon #279

Open
danielabrozzoni opened this issue Dec 15, 2021 · 2 comments
Open

windows: GUI can't connect to revaultd daemon #279

danielabrozzoni opened this issue Dec 15, 2021 · 2 comments
Labels
bug Something isn't working Windows Specific to the Windows OS

Comments

@danielabrozzoni
Copy link
Collaborator

Cattura

Logs on GUI side:

[1639565436][revault_gui::daemon::client][DEBUG] Connecting to revaultd
[1639565436][revault_gui::daemon::client][INFO] getinfo
[1639565436][revault_gui::daemon::client::jsonrpc][DEBUG] Sending to revaultd: Request {
    method: "getinfo",
    params: None,
    id: 29920,
    jsonrpc: "2.0",
}
[1639565508][revault_gui::daemon::client][ERROR] method getinfo failed: Json(Error("invalid type: null, expected u32", line: 1, column: 74))

Logs on revaultd side:

[1639565508][rpc][TRACE] Request: "method":"getinfo","params":null,"id":29920,"jsonrpc":"2.0"}.
[1639565508][rpc][DEBUG] Response: {"jsonrpc":"2.0","error":{"code":-32700,"message":"Parse error"},"id":null}.
[1639565508][revaultd::daemon::jsonrpc::server][TRACE] Wrote '75', total '75'
@danielabrozzoni danielabrozzoni added the bug Something isn't working label Dec 15, 2021
@darosior
Copy link
Member

I think it's a parse error with revaultd's JSONRPC Windows-specifc code. Can you share the entire logs for revaultd?

@danielabrozzoni
Copy link
Collaborator Author

Entire revaultd logs:

C:\Users\Daniela\Downloads\revaultd-master\target\debug>.\revaultd.exe --conf ..\..\contrib\config_regtest.toml
[1639822372][revaultd::daemon::revaultd][WARN] CPFP key not found, consider creating a cpfp_secret file in the datadir. Automated CPFP won't be available.
[1639822372][revaultd][INFO] Using Noise static public key: '0154cb22bdeb6a5875c136fcc65b85f3e162d25367090b809d09fb749d1c3540'
[1639822372][revaultd][DEBUG] Coordinator static public key: 'f35b02f12ff3d64f3c7982b88ffb66fec37bce5796374a7be9e8e2dd9abbb558'
Started revaultd daemon
[1639822372][revaultd::daemon][INFO] Setting up database
[1639822372][revaultd::daemon][INFO] Setting up bitcoind connection
[1639822372][revaultd::daemon::bitcoind::interface][TRACE] Sending to bitcoind: Request {
    method: "getblockchaininfo",
    params: [],
    id: Number(
        1,
    ),
    jsonrpc: Some(
        "2.0",
    ),
}
[1639822372][revaultd::daemon::bitcoind::interface][TRACE] Got from bitcoind: Object({
    "bestblockhash": String(
        "105ff877545f4faccbd20f3b15d5946bc9201a8c9d35a051ad30a2c49045b140",
    ),
    "blocks": Number(
        10,
    ),
    "chain": String(
        "regtest",
    ),
    "chainwork": String(
        "0000000000000000000000000000000000000000000000000000000000000016",
    ),
    "difficulty": Number(
        0.00000000046565423739069247,
    ),
    "headers": Number(
        10,
    ),
    "initialblockdownload": Bool(
        true,
    ),
    "mediantime": Number(
        1639561937,
    ),
    "pruned": Bool(
        false,
    ),
    "size_on_disk": Number(
        3393,
    ),
    "softforks": Object({
        "bip34": Object({
            "active": Bool(
                false,
            ),
            "height": Number(
                500,
            ),
            "type": String(
                "buried",
            ),
        }),
        "bip65": Object({
            "active": Bool(
                false,
            ),
            "height": Number(
                1351,
            ),
            "type": String(
                "buried",
            ),
        }),
        "bip66": Object({
            "active": Bool(
                false,
            ),
            "height": Number(
                1251,
            ),
            "type": String(
                "buried",
            ),
        }),
        "csv": Object({
            "active": Bool(
                false,
            ),
            "height": Number(
                432,
            ),
            "type": String(
                "buried",
            ),
        }),
        "segwit": Object({
            "active": Bool(
                true,
            ),
            "height": Number(
                0,
            ),
            "type": String(
                "buried",
            ),
        }),
        "taproot": Object({
            "active": Bool(
                true,
            ),
            "bip9": Object({
                "min_activation_height": Number(
                    0,
                ),
                "since": Number(
                    0,
                ),
                "start_time": Number(
                    -1,
                ),
                "status": String(
                    "active",
                ),
                "timeout": Number(
                    9223372036854775807,
                ),
            }),
            "height": Number(
                0,
            ),
            "type": String(
                "bip9",
            ),
        }),
        "testdummy": Object({
            "active": Bool(
                false,
            ),
            "bip9": Object({
                "min_activation_height": Number(
                    0,
                ),
                "since": Number(
                    0,
                ),
                "start_time": Number(
                    0,
                ),
                "status": String(
                    "defined",
                ),
                "timeout": Number(
                    9223372036854775807,
                ),
            }),
            "type": String(
                "bip9",
            ),
        }),
    }),
    "verificationprogress": Number(
        1,
    ),
    "warnings": String(
        "",
    ),
})
[1639822372][revaultd::daemon][INFO] Starting JSONRPC server
[1639822372][revaultd::daemon::jsonrpc::server][DEBUG] Removing leftover rpc socket.
[1639822372][revaultd::daemon][INFO] revaultd started on network regtest
[1639822372][revaultd::daemon::sigfetcher][INFO] Signature fetcher thread started.
[1639822372][revaultd::daemon::jsonrpc::server][INFO] JSONRPC server started.
[1639822372][revaultd::daemon::bitcoind::interface][TRACE] Sending to bitcoind: Request {
    method: "getblockchaininfo",
    params: [],
    id: Number(
        2,
    ),
    jsonrpc: Some(
        "2.0",
    ),
}
[1639822372][revaultd::daemon::bitcoind::interface][TRACE] Got from bitcoind: Object({
    "bestblockhash": String(
        "105ff877545f4faccbd20f3b15d5946bc9201a8c9d35a051ad30a2c49045b140",
    ),
    "blocks": Number(
        10,
    ),
    "chain": String(
        "regtest",
    ),
    "chainwork": String(
        "0000000000000000000000000000000000000000000000000000000000000016",
    ),
    "difficulty": Number(
        0.00000000046565423739069247,
    ),
    "headers": Number(
        10,
    ),
    "initialblockdownload": Bool(
        true,
    ),
    "mediantime": Number(
        1639561937,
    ),
    "pruned": Bool(
        false,
    ),
    "size_on_disk": Number(
        3393,
    ),
    "softforks": Object({
        "bip34": Object({
            "active": Bool(
                false,
            ),
            "height": Number(
                500,
            ),
            "type": String(
                "buried",
            ),
        }),
        "bip65": Object({
            "active": Bool(
                false,
            ),
            "height": Number(
                1351,
            ),
            "type": String(
                "buried",
            ),
        }),
        "bip66": Object({
            "active": Bool(
                false,
            ),
            "height": Number(
                1251,
            ),
            "type": String(
                "buried",
            ),
        }),
        "csv": Object({
            "active": Bool(
                false,
            ),
            "height": Number(
                432,
            ),
            "type": String(
                "buried",
            ),
        }),
        "segwit": Object({
            "active": Bool(
                true,
            ),
            "height": Number(
                0,
            ),
            "type": String(
                "buried",
            ),
        }),
        "taproot": Object({
            "active": Bool(
                true,
            ),
            "bip9": Object({
                "min_activation_height": Number(
                    0,
                ),
                "since": Number(
                    0,
                ),
                "start_time": Number(
                    -1,
                ),
                "status": String(
                    "active",
                ),
                "timeout": Number(
                    9223372036854775807,
                ),
            }),
            "height": Number(
                0,
            ),
            "type": String(
                "bip9",
            ),
        }),
        "testdummy": Object({
            "active": Bool(
                false,
            ),
            "bip9": Object({
                "min_activation_height": Number(
                    0,
                ),
                "since": Number(
                    0,
                ),
                "start_time": Number(
                    0,
                ),
                "status": String(
                    "defined",
                ),
                "timeout": Number(
                    9223372036854775807,
                ),
            }),
            "type": String(
                "bip9",
            ),
        }),
    }),
    "verificationprogress": Number(
        1,
    ),
    "warnings": String(
        "",
    ),
})
[1639822372][revaultd::daemon::bitcoind::poller][INFO] Bitcoind is currently performing IBD, this is going to take some time.
[1639822372][revaultd::daemon::bitcoind::poller][INFO] We'll poll bitcoind again in Some(5s) seconds
[1639822372][revaultd::daemon::bitcoind::poller][INFO] Not creating the CPFP wallet, as we don't have a CPFP key
[1639822372][revaultd::daemon::bitcoind::interface][TRACE] Sending to bitcoind: Request {
    method: "listwallets",
    params: [],
    id: Number(
        3,
    ),
    jsonrpc: Some(
        "2.0",
    ),
}
[1639822372][revaultd::daemon::bitcoind::interface][TRACE] Got from bitcoind: Array([
    String(
        "\\\\?\\C:\\Users\\Daniela\\RevaultdData\\regtest\\revaultd-watchonly-wallet-1",
    ),
])
[1639822372][revaultd::daemon::bitcoind::poller][INFO] Watchonly wallet '\\?\C:\Users\Daniela\RevaultdData\regtest\revaultd-watchonly-wallet-1' already loaded.
[1639822372][revaultd::daemon::bitcoind::poller][INFO] bitcoind now synced.
[1639822376][revaultd::daemon::bitcoind::interface][TRACE] Sending to bitcoind: Request {
    method: "getblockcount",
    params: [],
    id: Number(
        4,
    ),
    jsonrpc: Some(
        "2.0",
    ),
}
[1639822376][revaultd::daemon::bitcoind::interface][TRACE] Got from bitcoind: Number(
    10,
)
[1639822376][revaultd::daemon::bitcoind::interface][TRACE] Sending to bitcoind: Request {
    method: "getblockhash",
    params: [
        RawValue(
            10,
        ),
    ],
    id: Number(
        5,
    ),
    jsonrpc: Some(
        "2.0",
    ),
}
[1639822376][revaultd::daemon::bitcoind::interface][TRACE] Got from bitcoind: String(
    "105ff877545f4faccbd20f3b15d5946bc9201a8c9d35a051ad30a2c49045b140",
)
[1639822376][revaultd::daemon::bitcoind::interface][TRACE] Sending to bitcoind: Request {
    method: "listunspent",
    params: [
        RawValue(
            0,
        ),
        RawValue(
            9999999,
        ),
        RawValue(
            [],
        ),
        RawValue(
            true,
        ),
        RawValue(
            {"minimumAmount":0},
        ),
    ],
    id: Number(
        1,
    ),
    jsonrpc: Some(
        "2.0",
    ),
}
[1639822376][revaultd::daemon::bitcoind::interface][TRACE] Got from bitcoind: Array([])
[1639822376][revaultd::daemon::bitcoind::interface][TRACE] Sending to bitcoind: Request {
    method: "listunspent",
    params: [
        RawValue(
            0,
        ),
    ],
    id: Number(
        2,
    ),
    jsonrpc: Some(
        "2.0",
    ),
}
[1639822376][revaultd::daemon::bitcoind::interface][TRACE] Got from bitcoind: Array([])
[1639822379][revaultd::daemon::bitcoind::interface][TRACE] Sending to bitcoind: Request {
    method: "getblockcount",
    params: [],
    id: Number(
        6,
    ),
    jsonrpc: Some(
        "2.0",
    ),
}
[1639822379][revaultd::daemon::bitcoind::interface][TRACE] Got from bitcoind: Number(
    10,
)
[1639822379][revaultd::daemon::bitcoind::interface][TRACE] Sending to bitcoind: Request {
    method: "getblockhash",
    params: [
        RawValue(
            10,
        ),
    ],
    id: Number(
        7,
    ),
    jsonrpc: Some(
        "2.0",
    ),
}
[1639822379][revaultd::daemon::bitcoind::interface][TRACE] Got from bitcoind: String(
    "105ff877545f4faccbd20f3b15d5946bc9201a8c9d35a051ad30a2c49045b140",
)
[1639822379][revaultd::daemon::bitcoind::interface][TRACE] Sending to bitcoind: Request {
    method: "listunspent",
    params: [
        RawValue(
            0,
        ),
        RawValue(
            9999999,
        ),
        RawValue(
            [],
        ),
        RawValue(
            true,
        ),
        RawValue(
            {"minimumAmount":0},
        ),
    ],
    id: Number(
        3,
    ),
    jsonrpc: Some(
        "2.0",
    ),
}
[1639822379][revaultd::daemon::bitcoind::interface][TRACE] Got from bitcoind: Array([])
[1639822379][revaultd::daemon::bitcoind::interface][TRACE] Sending to bitcoind: Request {
    method: "listunspent",
    params: [
        RawValue(
            0,
        ),
    ],
    id: Number(
        4,
    ),
    jsonrpc: Some(
        "2.0",
    ),
}
[1639822379][revaultd::daemon::bitcoind::interface][TRACE] Got from bitcoind: Array([])
[1639822379][rpc][TRACE] Request: {.
[1639822379][rpc][DEBUG] Response: {"jsonrpc":"2.0","error":{"code":-32700,"message":"Parse error"},"id":null}.
[1639822379][revaultd::daemon::jsonrpc::server][TRACE] Wrote '75', total '75'
[1639822379][rpc][TRACE] Request: "method":"getinfo","params":null,"id":11196,"jsonrpc":"2.0"}.
[1639822379][rpc][DEBUG] Response: {"jsonrpc":"2.0","error":{"code":-32700,"message":"Parse error"},"id":null}.
[1639822379][revaultd::daemon::jsonrpc::server][TRACE] Wrote '75', total '75'
[1639822382][revaultd::daemon::bitcoind::interface][TRACE] Sending to bitcoind: Request {
    method: "getblockcount",
    params: [],
    id: Number(
        8,
    ),
    jsonrpc: Some(
        "2.0",
    ),
}
[1639822382][revaultd::daemon::bitcoind::interface][TRACE] Got from bitcoind: Number(
    10,
)
[1639822382][revaultd::daemon::bitcoind::interface][TRACE] Sending to bitcoind: Request {
    method: "getblockhash",
    params: [
        RawValue(
            10,
        ),
    ],
    id: Number(
        9,
    ),
    jsonrpc: Some(
        "2.0",
    ),
}
[1639822382][revaultd::daemon::bitcoind::interface][TRACE] Got from bitcoind: String(
    "105ff877545f4faccbd20f3b15d5946bc9201a8c9d35a051ad30a2c49045b140",
)
[1639822382][revaultd::daemon::bitcoind::interface][TRACE] Sending to bitcoind: Request {
    method: "listunspent",
    params: [
        RawValue(
            0,
        ),
        RawValue(
            9999999,
        ),
        RawValue(
            [],
        ),
        RawValue(
            true,
        ),
        RawValue(
            {"minimumAmount":0},
        ),
    ],
    id: Number(
        5,
    ),
    jsonrpc: Some(
        "2.0",
    ),
}
[1639822382][revaultd::daemon::bitcoind::interface][TRACE] Got from bitcoind: Array([])
[1639822382][revaultd::daemon::bitcoind::interface][TRACE] Sending to bitcoind: Request {
    method: "listunspent",
    params: [
        RawValue(
            0,
        ),
    ],
    id: Number(
        6,
    ),
    jsonrpc: Some(
        "2.0",
    ),
}
[1639822382][revaultd::daemon::bitcoind::interface][TRACE] Got from bitcoind: Array([])
[1639822385][revaultd::daemon::bitcoind::interface][TRACE] Sending to bitcoind: Request {
    method: "getblockcount",
    params: [],
    id: Number(
        10,
    ),
    jsonrpc: Some(
        "2.0",
    ),
}
[1639822385][revaultd::daemon::bitcoind::interface][TRACE] Got from bitcoind: Number(
    10,
)
[1639822385][revaultd::daemon::bitcoind::interface][TRACE] Sending to bitcoind: Request {
    method: "getblockhash",
    params: [
        RawValue(
            10,
        ),
    ],
    id: Number(
        11,
    ),
    jsonrpc: Some(
        "2.0",
    ),
}
[1639822385][revaultd::daemon::bitcoind::interface][TRACE] Got from bitcoind: String(
    "105ff877545f4faccbd20f3b15d5946bc9201a8c9d35a051ad30a2c49045b140",
)
[1639822385][revaultd::daemon::bitcoind::interface][TRACE] Sending to bitcoind: Request {
    method: "listunspent",
    params: [
        RawValue(
            0,
        ),
        RawValue(
            9999999,
        ),
        RawValue(
            [],
        ),
        RawValue(
            true,
        ),
        RawValue(
            {"minimumAmount":0},
        ),
    ],
    id: Number(
        7,
    ),
    jsonrpc: Some(
        "2.0",
    ),
}
[1639822385][revaultd::daemon::bitcoind::interface][TRACE] Got from bitcoind: Array([])
[1639822385][revaultd::daemon::bitcoind::interface][TRACE] Sending to bitcoind: Request {
    method: "listunspent",
    params: [
        RawValue(
            0,
        ),
    ],
    id: Number(
        8,
    ),
    jsonrpc: Some(
        "2.0",
    ),
}
[1639822385][revaultd::daemon::bitcoind::interface][TRACE] Got from bitcoind: Array([])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Windows Specific to the Windows OS
Projects
None yet
Development

No branches or pull requests

2 participants