Crash due to database.log file already exists
Opened this issue · 0 comments
clarkyx commented
Encountered this issue both on Muon
and Proton
.
Error Report for Muon
delegator> :task_update {:stage=>:task_delegated, :id=>"d178523d-9d37-4c4e-b3dd-a641d8df5874", :worker=>"huajies-MacBook-Pro.local#24418"}
/Users/huajiechen/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/birling-0.2.2/lib/birling/logger.rb:294: warning: Using the last argument as keyword parameters is deprecated
/Users/huajiechen/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/birling-0.2.2/lib/birling/logger.rb:294: warning: Using the last argument as keyword parameters is deprecated
66m55s error: Async::Task [oid=0x449f8] [pid=24395] [2021-01-20 17:21:38 -0500]
| Errno::EEXIST: File exists @ syserr_fail2_in - /Users/huajiechen/programming/work/postageapp/muon/log/database.log
| → /Users/huajiechen/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/birling-0.2.2/lib/birling/logger.rb:302 in `symlink'
| /Users/huajiechen/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/birling-0.2.2/lib/birling/logger.rb:302 in `log_open!'
| /Users/huajiechen/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/birling-0.2.2/lib/birling/logger.rb:284 in `check_log_rotation!'
| /Users/huajiechen/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/birling-0.2.2/lib/birling/logger.rb:195 in `block (2 levels) in <class
| /Users/huajiechen/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/sequel-5.40.0/lib/sequel/database/logging.rb:88 in `public_send'
| /Users/huajiechen/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/sequel-5.40.0/lib/sequel/database/logging.rb:88 in `block in log_each'
| /Users/huajiechen/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/sequel-5.40.0/lib/sequel/database/logging.rb:88 in `each'
| /Users/huajiechen/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/sequel-5.40.0/lib/sequel/database/logging.rb:88 in `log_each'
| /Users/huajiechen/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/sequel-5.40.0/lib/sequel/database/logging.rb:82 in `log_duration'
| /Users/huajiechen/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/sequel-5.40.0/lib/sequel/database/logging.rb:48 in `log_connection_yield'
| /Users/huajiechen/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/sequel-5.40.0/lib/sequel/adapters/postgres.rb:156 in `execute_query'
| /Users/huajiechen/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/sequel-5.40.0/lib/sequel/adapters/postgres.rb:144 in `block in execute'
| /Users/huajiechen/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/sequel-5.40.0/lib/sequel/adapters/postgres.rb:120 in `check_disconnect_errors'
| /Users/huajiechen/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/sequel-5.40.0/lib/sequel/adapters/postgres.rb:144 in `execute'
| /Users/huajiechen/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/sequel-5.40.0/lib/sequel/adapters/postgres.rb:601 in `log_connection_execute'
| /Users/huajiechen/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/sequel-5.40.0/lib/sequel/database/transactions.rb:351 in `begin_new_transaction'
| /Users/huajiechen/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/sequel-5.40.0/lib/sequel/adapters/shared/postgres.rb:916 in `begin_new_transaction'
| /Users/huajiechen/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/sequel-5.40.0/lib/sequel/database/transactions.rb:360 in `begin_transaction'
| /Users/huajiechen/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/sequel-5.40.0/lib/sequel/database/transactions.rb:248 in `_transaction'
| /Users/huajiechen/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/sequel-5.40.0/lib/sequel/database/transactions.rb:233 in `block in transaction'
| /Users/huajiechen/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/sequel-5.40.0/lib/sequel/connection_pool/threaded.rb:92 in `hold'
| /Users/huajiechen/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/sequel-5.40.0/lib/sequel/database/connecting.rb:269 in `synchronize'
| /Users/huajiechen/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/sequel-5.40.0/lib/sequel/database/transactions.rb:195 in `transaction'
| /Users/huajiechen/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/sequel-5.40.0/lib/sequel/model/base.rb:1942 in `checked_transaction'
| /Users/huajiechen/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/sequel-5.40.0/lib/sequel/model/base.rb:1488 in `block in save'
| /Users/huajiechen/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/sequel-5.40.0/lib/sequel/model/base.rb:1930 in `checked_save_failure'
| /Users/huajiechen/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/sequel-5.40.0/lib/sequel/model/base.rb:1488 in `save'
| /Users/huajiechen/programming/work/postageapp/muon/lib/muon/models/task.rb:124 in `import'
| /Users/huajiechen/programming/work/postageapp/muon/lib/muon/cluster/commands/agent_proxy.rb:195 in `command_task_inject'
| /Users/huajiechen/programming/work/postageapp/muon/lib/muon/cluster/delegator/worker_handler.rb:108 in `block in delegate'
| /Users/huajiechen/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/bundler/gems/portage-d94419c324cb/lib/portage/bridge.rb:29 in `block (2 levels) in async'
| /Users/huajiechen/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/async-1.28.3/lib/async/task.rb:265 in `block in make_fiber