golemcloud / golem

Golem is an open source durable computing platform that makes it easy to build and deploy highly reliable distributed systems.
https://learn.golem.cloud/
Apache License 2.0
530 stars 59 forks source link

shard manager fails to start trying to parse IpAddr in docker sqlite example #1052

Closed smndtrl closed 22 hours ago

smndtrl commented 2 weeks ago

I tried to run a local setup using the compose file in /docker-examples and the shard manager fails trying to read 9000 as an IP address.

I pulled the containers again and made sure they are all 1.0.25

2024-11-07T09:54:24.779973Z  INFO golem_common::tracing: Tracing initialized tracing_config="{\"stdout\":{\"enabled\":true,\"json\":false,\"json_flatten\":true,\"json_flatten_span\":true,\"ansi\":true,\"compact\":false,\"pretty\":false,\"without_time\":false,\"span_events_active\":false,\"span_events_full\":false},\"file\":{\"enabled\":false,\"json\":true,\"json_flatten\":true,\"json_flatten_span\":true,\"ansi\":false,\"compact\":false,\"pretty\":false,\"without_time\":false,\"span_events_active\":false,\"span_events_full\":false},\"file_dir\":null,\"file_name\":\"shard-manager.log\",\"file_truncate\":true,\"console\":false,\"dtor_friendly\":false}"
2024-11-07T09:54:24.801633Z  INFO golem_shard_manager: Golem Shard Manager starting up...
2024-11-07T09:54:24.801723Z  INFO golem_shard_manager: Using Redis at redis://redis:6380/0
2024-11-07T09:54:24.801829Z  INFO Server::run{addr=0.0.0.0:8081}: warp::server: listening on http://0.0.0.0:8081
2024-11-07T09:54:24.801885Z  INFO golem_shard_manager: The port read from env is 9002
2024-11-07T09:54:24.801888Z  INFO golem_shard_manager: Listening on port 9002
2024-11-07T09:54:24.804829Z ERROR golem_common::tracing: panic panic_info=panicked at golem-shard-manager/src/shard_management.rs:49:62:
called `Result::unwrap()` on an `Err` value: SerializationError("Failed to deserialize value: UnexpectedVariant { type_name: \"core::net::ip_addr::IpAddr\", allowed: Range { min: 0, max: 1 }, found: 9000 }") panic_backtrace=   0: std::backtrace::Backtrace::create
   1: golem_common::tracing::init_tracing::{{closure}}
   2: std::panicking::rust_panic_with_hook
   3: std::panicking::begin_panic_handler::{{closure}}
   4: std::sys::backtrace::__rust_end_short_backtrace
   5: rust_begin_unwind
   6: core::panicking::panic_fmt
   7: core::result::unwrap_failed
   8: golem_shard_manager::async_main::{{closure}}
   9: tokio::runtime::park::CachedParkThread::block_on
  10: tokio::runtime::context::runtime::enter_runtime
  11: tokio::runtime::runtime::Runtime::block_on
  12: golem_shard_manager::server_main
  13: std::sys::backtrace::__rust_begin_short_backtrace
  14: std::rt::lang_start::{{closure}}
  15: std::rt::lang_start_internal
  16: main
  17: <unknown>
  18: __libc_start_main
  19: _start