Closed ghost closed 2 years ago
I also sometimes see this:
Error closing /tmp/2022_05_18_16_02_37_DEFAULT__LOADSIM__PKT128__reduced__minute.idx : IOError : closed stream /usr/lib/ruby/gems/3.0.0/gems/cosmos-5.0.4.pre.beta0/lib/cosmos/logs/packet_log_writer.rb:276:in `write' /usr/lib/ruby/gems/3.0.0/gems/cosmos-5.0.4.pre.beta0/lib/cosmos/logs/packet_log_writer.rb:276:in `write_index_file_footer' /usr/lib/ruby/gems/3.0.0/gems/cosmos-5.0.4.pre.beta0/lib/cosmos/logs/packet_log_writer.rb:142:in `close_file' /usr/lib/ruby/gems/3.0.0/gems/cosmos-5.0.4.pre.beta0/lib/cosmos/logs/log_writer.rb:175:in `start_new_file' /usr/lib/ruby/gems/3.0.0/gems/cosmos-5.0.4.pre.beta0/lib/cosmos/logs/packet_log_writer.rb:111:in `start_new_file' /usr/lib/ruby/gems/3.0.0/gems/cosmos-5.0.4.pre.beta0/lib/cosmos/logs/log_writer.rb:195:in `prepare_write' /usr/lib/ruby/gems/3.0.0/gems/cosmos-5.0.4.pre.beta0/lib/cosmos/logs/packet_log_writer.rb:99:in `block in write' /usr/lib/ruby/gems/3.0.0/gems/cosmos-5.0.4.pre.beta0/lib/cosmos/logs/packet_log_writer.rb:98:in `synchronize' /usr/lib/ruby/gems/3.0.0/gems/cosmos-5.0.4.pre.beta0/lib/cosmos/logs/packet_log_writer.rb:98:in `write' reducer_microservice.rb:181:in `block in process_file' /usr/lib/ruby/gems/3.0.0/gems/cosmos-5.0.4.pre.beta0/lib/cosmos/logs/packet_log_reader.rb:74:in `each' reducer_microservice.rb:157:in `process_file' reducer_microservice.rb:99:in `block (2 levels) in reduce_minute' reducer_microservice.rb:98:in `each' reducer_microservice.rb:98:in `block in reduce_minute' reducer_microservice.rb:83:in `metric' reducer_microservice.rb:95:in `reduce_minute' reducer_microservice.rb:55:in `block in run' /usr/lib/ruby/gems/3.0.0/gems/rufus-scheduler-3.8.1/lib/rufus/scheduler/jobs_core.rb:233:in `block in do_call' /usr/lib/ruby/gems/3.0.0/gems/rufus-scheduler-3.8.1/lib/rufus/scheduler.rb:130:in `around_trigger' /usr/lib/ruby/gems/3.0.0/gems/rufus-scheduler-3.8.1/lib/rufus/scheduler/jobs_core.rb:232:in `do_call' /usr/lib/ruby/gems/3.0.0/gems/rufus-scheduler-3.8.1/lib/rufus/scheduler/jobs_core.rb:280:in `trigger_now' /usr/lib/ruby/gems/3.0.0/gems/rufus-scheduler-3.8.1/lib/rufus/scheduler/jobs_core.rb:331:in `block (3 levels) in start_work_thread' /usr/lib/ruby/gems/3.0.0/gems/rufus-scheduler-3.8.1/lib/rufus/scheduler/jobs_core.rb:334:in `block (2 levels) in start_work_thread' /usr/lib/ruby/gems/3.0.0/gems/rufus-scheduler-3.8.1/lib/rufus/scheduler/jobs_core.rb:317:in `loop' /usr/lib/ruby/gems/3.0.0/gems/rufus-scheduler-3.8.1/lib/rufus/scheduler/jobs_core.rb:317:in `block in start_work_thread'
and this
Error saving log file to bucket: TypeError : no implicit conversion of nil into String /usr/lib/ruby/gems/3.0.0/gems/cosmos-5.0.4.pre.beta0/lib/cosmos/utilities/s3.rb:132:in `initialize' /usr/lib/ruby/gems/3.0.0/gems/cosmos-5.0.4.pre.beta0/lib/cosmos/utilities/s3.rb:132:in `open' /usr/lib/ruby/gems/3.0.0/gems/cosmos-5.0.4.pre.beta0/lib/cosmos/utilities/s3.rb:132:in `block in move_log_file_to_s3'