freelensia

20210621 Prod server current folder problems with rake commands

Jun 20th, 2021
974
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ➜  ~ cd app/freelensia/current
  2. ➜  current bundle exec rake freelensia_db:delete_users_between_time "2021/6/19 10:00:00" "2021/6/19 10:10:00"
  3. rake aborted!
  4. NameError: uninitialized constant Annotate
  5. /home/ubuntu/app/freelensia/releases/20210620153440/lib/tasks/auto_annotate_models.rake:33:in `<top (required)>'
  6. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:650:in `block in run_tasks_blocks'
  7. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:650:in `each'
  8. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:650:in `run_tasks_blocks'
  9. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/application.rb:515:in `run_tasks_blocks'
  10. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:459:in `load_tasks'
  11. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/railtie.rb:190:in `public_send'
  12. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/railtie.rb:190:in `method_missing'
  13. /home/ubuntu/app/freelensia/releases/20210620153440/Rakefile:13:in `<top (required)>'
  14. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
  15. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/bin/ruby_executable_hooks:24:in `eval'
  16. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/bin/ruby_executable_hooks:24:in `<main>'
  17. (See full trace by running task with --trace)
  18. ➜  current RAILS_ENV=production bundle exec rake freelensia_db:delete_users_between_time "2021/6/19 10:00:00" "2021/6/19 10:01:00"
  19. ^Crake aborted!
  20. Interrupt:
  21. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:120:in `_query'
  22. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:120:in `block in query'
  23. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:119:in `handle_interrupt'
  24. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:119:in `query'
  25. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/rack-mini-profiler-1.0.2/lib/patches/db/mysql2.rb:22:in `query'
  26. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:187:in `block (2 levels) in execute'
  27. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies/interlock.rb:48:in `block in permit_concurrent_loads'
  28. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
  29. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies/interlock.rb:47:in `permit_concurrent_loads'
  30. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:186:in `block in execute'
  31. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract_adapter.rb:581:in `block (2 levels) in log'
  32. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract_adapter.rb:580:in `block in log'
  33. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
  34. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract_adapter.rb:571:in `log'
  35. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:185:in `execute'
  36. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/mysql/database_statements.rb:28:in `execute'
  37. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:196:in `execute_and_free'
  38. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/mysql/database_statements.rb:33:in `exec_query'
  39. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/database_statements.rb:478:in `select'
  40. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/database_statements.rb:70:in `select_all'
  41. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/query_cache.rb:106:in `select_all'
  42. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/mysql/database_statements.rb:12:in `select_all'
  43. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/querying.rb:41:in `find_by_sql'
  44. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/relation.rb:560:in `block in exec_queries'
  45. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/relation.rb:581:in `block in skip_query_cache_if_necessary'
  46. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/query_cache.rb:78:in `uncached'
  47. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/query_cache.rb:21:in `uncached'
  48. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/relation/delegation.rb:114:in `public_send'
  49. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/relation/delegation.rb:114:in `block in method_missing'
  50. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/relation.rb:281:in `scoping'
  51. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/relation/delegation.rb:114:in `method_missing'
  52. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/relation.rb:580:in `skip_query_cache_if_necessary'
  53. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/relation.rb:547:in `exec_queries'
  54. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/relation.rb:422:in `load'
  55. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/relation.rb:200:in `records'
  56. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/relation/batches.rb:224:in `block in in_batches'
  57. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/relation/batches.rb:222:in `loop'
  58. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/relation/batches.rb:222:in `in_batches'
  59. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/relation/batches.rb:135:in `find_in_batches'
  60. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/relation/batches.rb:69:in `find_each'
  61. /home/ubuntu/app/freelensia/releases/20210620153440/lib/tasks/freelensia_db.rake:48:in `block (2 levels) in <top (required)>'
  62. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/airbrake-9.1.0/lib/airbrake/rake.rb:17:in `execute'
  63. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
  64. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/bin/ruby_executable_hooks:24:in `eval'
  65. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/bin/ruby_executable_hooks:24:in `<main>'
  66. Tasks: TOP => freelensia_db:delete_users_between_time
  67. (See full trace by running task with --trace)
  68. ➜  current bundle exec RAILS_ENV=production rake freelensia_db:delete_users_between_time "2021/6/19 10:00:00" "2021/6/19 10:01:00"
  69. bundler: command not found: RAILS_ENV=production
  70. Install missing gem executables with `bundle install`
  71. ➜  current bundle exec rake freelensia_db:delete_users_between_time "2021/6/19 10:00:00" "2021/6/19 10:01:00" RAILS_ENV=production
  72. rake aborted!
  73. Don't know how to build task '2021/6/19 10:00:00' (See the list of available tasks with `rake --tasks`)
  74. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
  75. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/bin/ruby_executable_hooks:24:in `eval'
  76. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/bin/ruby_executable_hooks:24:in `<main>'
  77. (See full trace by running task with --trace)
  78. ➜  current bundle exec rake db:delete_users_between_time "2021/6/19 10:00:00" "2021/6/19 10:01:00" RAILS_ENV=production
  79. rake aborted!
  80. Don't know how to build task 'db:delete_users_between_time' (See the list of available tasks with `rake --tasks`)
  81. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
  82. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/bin/ruby_executable_hooks:24:in `eval'
  83. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/bin/ruby_executable_hooks:24:in `<main>'
  84. (See full trace by running task with --trace)
  85. ➜  current RAILS_ENV=production bundle exec rake freelensia_db:delete_users_between_time "2021/6/19 10:00:00" "2021/6/19 10:01:00"
  86. rake aborted!
  87. Don't know how to build task '2021/6/19 10:00:00' (See the list of available tasks with `rake --tasks`)
  88. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
  89. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/bin/ruby_executable_hooks:24:in `eval'
  90. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/bin/ruby_executable_hooks:24:in `<main>'
  91. (See full trace by running task with --trace)
  92. ➜  current RAILS_ENV=production bundle exec rake freelensia_db:delete_users_between_time "2021/6/19 10:00:00" "2021/6/19 10:01:00" --trace
  93. ** Invoke freelensia_db:delete_users_between_time (first_time)
  94. ** Invoke environment (first_time)
  95. ** Execute environment
  96. ** Execute freelensia_db:delete_users_between_time
  97. rake aborted!
  98. Don't know how to build task '2021/6/19 10:00:00' (See the list of available tasks with `rake --tasks`)
  99. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/task_manager.rb:59:in `[]'
  100. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:159:in `invoke_task'
  101. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:116:in `block (2 levels) in top_level'
  102. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:116:in `each'
  103. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:116:in `block in top_level'
  104. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:125:in `run_with_threads'
  105. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:110:in `top_level'
  106. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:83:in `block in run'
  107. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:186:in `standard_exception_handling'
  108. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:80:in `run'
  109. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
  110. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/bin/rake:23:in `load'
  111. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/bin/rake:23:in `<main>'
  112. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/bin/ruby_executable_hooks:24:in `eval'
  113. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/bin/ruby_executable_hooks:24:in `<main>'
  114. ➜  current RAILS_ENV=production bundle exec rake freelensia_db:delete_users_between_time '2021/6/19 10:00:00' '2021/6/19 10:01:00'
  115. rake aborted!
  116. Don't know how to build task '2021/6/19 10:00:00' (See the list of available tasks with `rake --tasks`)
  117. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
  118. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/bin/ruby_executable_hooks:24:in `eval'
  119. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/bin/ruby_executable_hooks:24:in `<main>'
  120. (See full trace by running task with --trace)
  121. ➜  current RAILS_ENV=production bundle exec rake freelensia_blog:update_slug
  122. ^Z
  123. [1]  + 24513 suspended  RAILS_ENV=production bundle exec rake freelensia_blog:update_slug
  124. ➜  current rake db:migrate
  125. rake aborted!
  126. Gem::LoadError: You have already activated rake 12.3.2, but your Gemfile requires rake 12.3.3. Prepending `bundle exec` to your command may solve this.
  127. /home/ubuntu/app/freelensia/releases/20210620174810/config/boot.rb:3:in `<top (required)>'
  128. /home/ubuntu/app/freelensia/releases/20210620174810/config/application.rb:3:in `require_relative'
  129. /home/ubuntu/app/freelensia/releases/20210620174810/config/application.rb:3:in `<top (required)>'
  130. /home/ubuntu/app/freelensia/releases/20210620174810/Rakefile:4:in `<top (required)>'
  131. (See full trace by running task with --trace)
  132. ➜  current bundle exec rake db:migrate
  133. rake aborted!
  134. NameError: uninitialized constant Annotate
  135. /home/ubuntu/app/freelensia/releases/20210620174810/lib/tasks/auto_annotate_models.rake:33:in `<top (required)>'
  136. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:650:in `block in run_tasks_blocks'
  137. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:650:in `each'
  138. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:650:in `run_tasks_blocks'
  139. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/application.rb:515:in `run_tasks_blocks'
  140. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:459:in `load_tasks'
  141. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/railtie.rb:190:in `public_send'
  142. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/railties-5.2.3/lib/rails/railtie.rb:190:in `method_missing'
  143. /home/ubuntu/app/freelensia/releases/20210620174810/Rakefile:13:in `<top (required)>'
  144. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
  145. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/bin/ruby_executable_hooks:24:in `eval'
  146. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/bin/ruby_executable_hooks:24:in `<main>'
  147. (See full trace by running task with --trace)
  148. ➜  current RAILS_ENV=production bundle exec rake db:migrate
  149. ➜  current RAILS_ENV=production bundle exec rake freelensia_blog:update_slug
  150. ^Crake aborted!
  151. Interrupt:
  152. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:120:in `_query'
  153. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:120:in `block in query'
  154. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:119:in `handle_interrupt'
  155. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:119:in `query'
  156. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/rack-mini-profiler-1.0.2/lib/patches/db/mysql2.rb:22:in `query'
  157. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:187:in `block (2 levels) in execute'
  158. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies/interlock.rb:48:in `block in permit_concurrent_loads'
  159. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
  160. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies/interlock.rb:47:in `permit_concurrent_loads'
  161. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:186:in `block in execute'
  162. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract_adapter.rb:581:in `block (2 levels) in log'
  163. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract_adapter.rb:580:in `block in log'
  164. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
  165. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract_adapter.rb:571:in `log'
  166. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:185:in `execute'
  167. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/mysql/database_statements.rb:28:in `execute'
  168. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:200:in `begin_db_transaction'
  169. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/transaction.rb:175:in `initialize'
  170. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/transaction.rb:201:in `new'
  171. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/transaction.rb:201:in `block in begin_transaction'
  172. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/transaction.rb:197:in `begin_transaction'
  173. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/transaction.rb:238:in `block in within_new_transaction'
  174. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/transaction.rb:236:in `within_new_transaction'
  175. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/connection_adapters/abstract/database_statements.rb:267:in `transaction'
  176. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/transactions.rb:212:in `transaction'
  177. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/transactions.rb:385:in `with_transaction_returning_status'
  178. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/persistence.rb:426:in `update'
  179. /home/ubuntu/app/freelensia/releases/20210620174810/app/models/article.rb:93:in `block in encode_slug'
  180. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/relation/delegation.rb:71:in `each'
  181. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/relation/delegation.rb:71:in `each'
  182. /home/ubuntu/app/freelensia/releases/20210620174810/app/models/article.rb:90:in `encode_slug'
  183. /home/ubuntu/app/freelensia/releases/20210620174810/lib/tasks/freelensia_blog.rake:14:in `block (3 levels) in <top (required)>'
  184. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/relation/delegation.rb:71:in `each'
  185. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/activerecord-5.2.3/lib/active_record/relation/delegation.rb:71:in `each'
  186. /home/ubuntu/app/freelensia/releases/20210620174810/lib/tasks/freelensia_blog.rake:14:in `block (2 levels) in <top (required)>'
  187. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/airbrake-9.1.0/lib/airbrake/rake.rb:17:in `execute'
  188. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
  189. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/bin/ruby_executable_hooks:24:in `eval'
  190. /home/ubuntu/app/freelensia/shared/bundle/ruby/2.6.0/bin/ruby_executable_hooks:24:in `<main>'
  191. Tasks: TOP => freelensia_blog:update_slug
  192. (See full trace by running task with --trace)
  193. ➜  current RAILS_ENV=production bundle exec rake freelensia_blog:update_slug --trace
  194. ** Invoke freelensia_blog:update_slug (first_time)
  195. ** Invoke environment (first_time)
  196. ** Execute environment
  197. ** Execute freelensia_blog:update_slug
  198. ^Z
  199. [2]  + 28619 suspended  RAILS_ENV=production bundle exec rake freelensia_blog:update_slug --trace
  200. ➜  current RAILS_ENV=production bundle exec rake db:migrate --trace
  201. ** Invoke db:migrate (first_time)
  202. ** Invoke db:load_config (first_time)
  203. ** Invoke environment (first_time)
  204. ** Execute environment
  205. ** Execute db:load_config
  206. ** Execute db:migrate
  207. ** Invoke db:_dump (first_time)
  208. ** Execute db:_dump
  209. ➜  current
RAW Paste Data