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

help ! my rocket project compile error. #764

Closed
oldtree2008 opened this issue Sep 4, 2018 · 5 comments
Closed

help ! my rocket project compile error. #764

oldtree2008 opened this issue Sep 4, 2018 · 5 comments
Labels
no bug The reported bug was confirmed nonexistent

Comments

@oldtree2008
Copy link

Hello, I am new to Rocket. ask for help.

Compiling rocket v0.3.16
thread 'main' panicked at 'could not initialize thread_rng: All entropy sources failed (permanently unavailable); cause: OS RNG not yet seeded (not ready yet); cause: Resource temporarily unavailable (os error 11)', /cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.5.4/src/rngs/thread.rs:84:17
Compiling rocket_codegen v0.3.16
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
1: std::sys_common::backtrace::print
at libstd/sys_common/backtrace.rs:71
at libstd/sys_common/backtrace.rs:59
2: std::panicking::default_hook::{{closure}}
at libstd/panicking.rs:211
3: std::panicking::default_hook
at libstd/panicking.rs:227
4: rustc::util::common::panic_hook
5: std::panicking::rust_panic_with_hook
at libstd/panicking.rs:481
6: std::panicking::continue_panic_fmt
at libstd/panicking.rs:391
7: std::panicking::begin_panic_fmt 7: std::panicking::begin_panic_fmt
at libstd/panicking.rs:346
8: rand::rngs::thread::THREAD_RNG_KEY::__init::{{closure}}
9: rand::rngs::thread::THREAD_RNG_KEY::__init
10: <std::thread::local::LocalKey>::with
11: tempfile::util::tmpname
12: tempfile::util::create_helper
13: tempfile::Builder::tempdir
14: rustc_codegen_llvm::back::link::link_binary
15: <rustc_codegen_llvm::LlvmCodegenBackend as rustc_codegen_utils::codegen_backend::CodegenBackend>::join_codegen_and_link::{{closure}}
16: rustc::util::common::time
17: <rustc_codegen_llvm::LlvmCodegenBackend as rustc_codegen_utils::codegen_backend::CodegenBackend>::join_codegen_and_link
18: rustc_driver::driver::compile_input
19: rustc_driver::run_compiler_with_pool
20: <scoped_tls::ScopedKey>::set
21: rustc_driver::run_compiler
22: syntax::with_globals
23: __rust_maybe_catch_panic
at libpanic_unwind/lib.rs:103
24: rustc_driver::run
25: rustc_driver::main
26: std::rt::lang_start::{{closure}}
27: std::panicking::try::do_call
at libstd/rt.rs:59
at libstd/panicking.rs:310
28: __rust_maybe_catch_panic
at libpanic_unwind/lib.rs:103
29: std::rt::lang_start_internal
at libstd/panicking.rs:289
at libstd/panic.rs:392
at libstd/rt.rs:58
30: main
31: __libc_start_main
32:
query stack during panic:
end of query stack

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports

note: rustc 1.30.0-nightly (0f063aef6 2018-09-03) running on x86_64-unknown-linux-gnu

note: compiler flags: -C debuginfo=2 --crate-type bin

note: some of the compiler flags provided by cargo are hidden

@jebrosen
Copy link
Collaborator

jebrosen commented Sep 4, 2018

All entropy sources failed (permanently unavailable); cause: OS RNG not yet seeded (not ready yet); cause: Resource temporarily unavailable (os error 11)'

This indicates an OS-specific problem with the system random number generator. Perhaps there is not enough entropy in the pool.

What operating system are you using?

@oldtree2008
Copy link
Author

Linux iZ25u6wl3o6Z 3.10.0-514.26.2.el7.x86_64 #1 SMP Tue Jul 4 15:04:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

@oldtree2008
Copy link
Author

I write a very simple project, also compile error. but before this, it can work.

@oldtree2008
Copy link
Author

My helloworld rocket project first compile success. but I cargo clean,then cargo build . then compile error.
It's very strange.

@jebrosen
Copy link
Collaborator

jebrosen commented Sep 6, 2018

From your earlier comment it looks like you are using CentOS. Installing and configuring haveged or rngd (from the rng-tools package) may help provide more entropy, especially if this machine is a server.

I'm going to close this since it doesn't appear to be caused by or related to Rocket itself.

@jebrosen jebrosen closed this as completed Sep 6, 2018
@SergioBenitez SergioBenitez added the no bug The reported bug was confirmed nonexistent label Sep 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no bug The reported bug was confirmed nonexistent
Projects
None yet
Development

No branches or pull requests

3 participants