ServerStatus-Rust icon indicating copy to clipboard operation
ServerStatus-Rust copied to clipboard

[Bug] 自编版本会报 no process-level CryptoProvider available

Open fuleru opened this issue 1 year ago • 1 comments

Checklist

  • [X] I have updated the version to the latest Release version
  • [X] I've read the documentation in detail and still can't solve it
  • [X] I have searched existing Issues | Discussions, but still can't solve it
  • [X] I've tried a Google search and still can't figure it out

💻 Operating System

Ubuntu

🐛 Bug Description

使用ubuntu 22.04 x64或 debian 12.9 x86版本都报同样的问题,主要是发邮件时候发不了。

minidebianx40:~/h2monitor/target/release# ./stat_server -c /tmp/cc.toml -t
✨ stat_server v1.8.1 (03b626d, 2025-01-13 06:28:45 UTC, rustc 1.84.0, i686-unknown-linux-gnu)
✨ the conf file /tmp/cc.toml syntax is ok
✨ the conf file /tmp/cc.toml test is successful
minidebianx40:~/h2monitor/target/release#  ./stat_server  -c /tmp/cc.toml --notify-test
✨ stat_server v1.8.1 (03b626d, 2025-01-13 06:28:45 UTC, rustc 1.84.0, i686-unknown-linux-gnu)
✨ run in normal mode, load conf from local file `/tmp/cc.toml
✨ admin_user: xxxxx_admin
✨ admin_pass: xxxxxxxxxxxx@YBBBBBD_2025
send test message to email
thread 'tokio-runtime-worker' panicked at /root/.cargo/registry/src/index.crates.io-1cd66030c949c28d/rustls-0.23.5/src/crypto/mod.rs:260:14:
no process-level CryptoProvider available -- call CryptoProvider::install_default() before this point
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted

docker版本编译也同样遇到问题了。

 RUST_BACKTRACE=full  ./stat_server -c config.toml --notify-test
✨ stat_server v1.8.1 (03b626d, 2025-01-15 07:10:56 UTC, rustc 1.76.0, x86_64-unknown-linux-musl)
✨ run in normal mode, load conf from local file `config.toml
✨ admin_user:  
✨ admin_pass:  
send test message to email
thread 'tokio-runtime-worker' panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/rustls-0.23.5/src/crypto/mod.rs:260:14:
no process-level CryptoProvider available -- call CryptoProvider::install_default() before this point
stack backtrace:
   0:     0x715796f11839 - <unknown>
   1:     0x715796c347a0 - <unknown>
   2:     0x715796ee7d7e - <unknown>
   3:     0x715796f1317e - <unknown>
   4:     0x715796f12a95 - <unknown>
   5:     0x715796f1399e - <unknown>
   6:     0x715796f134e0 - <unknown>
   7:     0x715796f13436 - <unknown>
   8:     0x715796f1342f - <unknown>
   9:     0x715796aec334 - <unknown>
  10:     0x715796aec912 - <unknown>
  11:     0x715796babdc9 - <unknown>
  12:     0x715796b59491 - <unknown>
  13:     0x715796f18c3c - <unknown>
  14:     0x715796f205fd - <unknown>
  15:     0x715796f1744b - <unknown>
  16:     0x715796f1706a - <unknown>
  17:     0x715796f1be05 - <unknown>
  18:     0x715796f14555 - <unknown>
Aborted (core dumped)

🚦 Expected Behavior

No response

📷 Recurrence Steps

No response

📝 Additional Information

No response

fuleru avatar Jan 14 '25 06:01 fuleru

参考 ci 编译参数

zdz avatar Feb 12 '25 12:02 zdz