CleanUpUnmatchedIPsのエラー:タイムスタンプが紀元前270万年になっています

これは、screened_ip_addresses テーブル内の破損した last_match_at 値が原因のようです。

Railsコンソール(./launcher enter app の後に rails c)で以下を実行することで修正できます。

# まず、問題のあるレコードを特定します
ScreenedIpAddress.where("last_match_at < '0001-01-01'").each do |sip|
  puts "ID: #{sip.id}, IP: #{sip.ip_address}, last_match_at: #{sip.last_match_at}"
end

# 次に、それを削除します
ScreenedIpAddress.where("last_match_at < '0001-01-01'").destroy_all

# または、タイムスタンプを `NULL` に修正します(これにより、クリーンアップロジックで代わりに `created_at` が使用されるようになります)
ScreenedIpAddress.where("last_match_at < '0001-01-01'").update_all(last_match_at: nil)