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

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

Open
neoneye opened this issue Nov 29, 2022 · 1 comment
Open

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

neoneye opened this issue Nov 29, 2022 · 1 comment
Labels
bug Something isn't working miner LODA-RUST miner

Comments

@neoneye
Copy link
Collaborator

neoneye commented Nov 29, 2022

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.

@neoneye neoneye added bug Something isn't working miner LODA-RUST miner labels Nov 29, 2022
@neoneye
Copy link
Collaborator Author

neoneye commented Dec 6, 2022

I encountered this problem on my raspberrypi. Firefox couldn't open any webpages and showed the error DNS_PROBE_FINISHED_NO_INTERNET. I couldn't ping any other devices on the network. Solution was to reboot the computer. Here a retry upload mechanism makes good sense.

curl: (6) Could not resolve host: api.loda-lang.org
[2022-12-06T11:28:40Z ERROR loda_rust::mine::upload_worker] upload_worker: failed program upload of A201739, 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", Custom { kind: Uncategorized, error: "failed to lookup address information: Temporary failure in name resolution" })) }
curl: (6) Could not resolve host: api.loda-lang.org
curl: (6) Could not resolve host: api.loda-lang.org
curl: (6) Could not resolve host: api.loda-lang.org
curl: (6) Could not resolve host: api.loda-lang.org
miner discovered a "faster" program. A119681
██████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6/38curl: (6) Could not resolve host: api.loda-lang.org
[2022-12-06T11:32:41Z ERROR loda_rust::mine::upload_worker] upload_worker: failed program upload of A119681, 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", Custom { kind: Uncategorized, error: "failed to lookup address information: Temporary failure in name resolution" })) }
curl: (6) Could not resolve host: api.loda-lang.org
curl: (6) Could not resolve host: api.loda-lang.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working miner LODA-RUST miner
Projects
None yet
Development

No branches or pull requests

1 participant