Skip to content

Retry upload - in case there is a connection issue #25

@neoneye

Description

@neoneye

Problem

This problem arises when there is a temporary network outage or the server is down for maintenance.
Then mined programs doesn't get uploaded, and is unfortunately lost.

Kotenok2000 reported these errors during upload

[2022-11-29T11:19:25Z ERROR loda_rust::mine::upload_worker] upload_worker: failed program upload of A117673, error: reqwest::Error { kind: Request, url: Url { scheme: "http", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("api.loda-lang.org")), port: None, path: "/miner/v1/programs", query: None, fragment: None }, source: hyper::Error(Connect, ConnectError("dns error", Os { code: 11001, kind: Uncategorized, message: "This host is unknown" })) }
miner discovered a "faster" program. A029371
[2022-11-29T11:19:25Z ERROR loda_rust::mine::upload_worker] upload_worker: failed program upload of A029371, error: reqwest::Error { kind: Request, url: Url { scheme: "http", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("api.loda-lang.org")), port: None, path: "/miner/v1/programs", query: None, fragment: None }, source: hyper::Error(Connect, ConnectError("dns error", Os { code: 11001, kind: Uncategorized, message: "This host is unknown" })) }

Solution

Kotenok2000 suggests that the uploader "retries" a few times.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingminerLODA-RUST miner

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions