Skip to content

Panic/timeout connecting to postgres #626

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

Closed
jyn514 opened this issue Feb 27, 2020 · 1 comment · Fixed by #759
Closed

Panic/timeout connecting to postgres #626

jyn514 opened this issue Feb 27, 2020 · 1 comment · Fixed by #759

Comments

@jyn514
Copy link
Member

jyn514 commented Feb 27, 2020

Feb 25 19:38:47 docsrs cratesfyi[29874]: thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Error(None)', src/libcore/result.rs:1165:5
Feb 25 19:38:47 docsrs cratesfyi[29874]: stack backtrace:
Feb 25 19:38:47 docsrs cratesfyi[29874]: thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Error(None)', src/libcore/result.rs:1165:5
Feb 25 19:38:47 docsrs cratesfyi[29874]: thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Error(None)', src/libcore/result.rs:1165:5
Feb 25 19:38:47 docsrs cratesfyi[29874]: thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Error(None)', src/libcore/result.rs:1165:5
...
Feb 25 19:38:48 docsrs cratesfyi[29874]:   14: core::result::unwrap_failed
Feb 25 19:38:48 docsrs cratesfyi[29874]:              at src/libcore/result.rs:1165
Feb 25 19:38:48 docsrs cratesfyi[29874]:   15: <cratesfyi::web::pool::Pool as iron::middleware::BeforeMiddleware>::before
Feb 25 19:38:48 docsrs cratesfyi[29874]:   16: iron::middleware::Chain::continue_from_before
Feb 25 19:38:48 docsrs cratesfyi[29874]:   17: <iron::middleware::Chain as iron::middleware::Handler>::handle
Feb 25 19:38:48 docsrs cratesfyi[29874]:   18: <alloc::boxed::Box<dyn iron::middleware::Handler> as iron::middleware::Handler>::handle
Feb 25 19:38:48 docsrs cratesfyi[29874]:   19: <cratesfyi::web::CratesfyiHandler as iron::middleware::Handler>::handle
Feb 25 19:38:48 docsrs cratesfyi[29874]:   20: <iron::iron::RawHandler<H> as hyper::server::Handler>::handle
Feb 25 19:38:48 docsrs cratesfyi[29874]:   21: hyper::server::Worker<H>::handle_connection
Feb 25 19:38:48 docsrs cratesfyi[29874]:   22: hyper::server::listener::spawn_with::{{closure}}
Feb 25 19:38:48 docsrs cratesfyi[29874]: note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
...
Feb 25 19:40:34 docsrs cratesfyi[29874]: thread 'thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Error(None)', src/libcore/result.rs:<unnamed>' 
Feb 25 19:40:34 docsrs cratesfyi[29874]: 1165:5
Feb 25 19:40:35 docsrs kernel: nginx invoked oom-killer: gfp_mask=0x14200ca(GFP_HIGHUSER_MOVABLE), nodemask=(null), order=0, oom_score_adj=0

Relevant code: https://github.com/rust-lang/docs.rs/blob/master/src/web/pool.rs#L34

@jyn514
Copy link
Member Author

jyn514 commented Feb 27, 2020

Secondary problem: apparently crates that are fetched but not added to the index will be lost and not build. Relevant code: https://github.com/rust-lang/docs.rs/blob/master/src/docbuilder/queue.rs#L13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant