Advertisement
burke

Discourse Upgrade Error 2017

Jul 24th, 2017
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.67 KB | None | 0 0
  1. ********************************************************
  2. *** Please be patient, next steps might take a while ***
  3. ********************************************************
  4. Stopping job queue to reclaim memory, master pid is 12278
  5. $ cd /var/www/discourse/plugins/docker_manager && git fetch --tags && git reset --hard HEAD@{upstream}
  6. HEAD is now at 7cbb814 Bump minimum ruby version to 2.4 & force full rebuild
  7. $ bundle install --deployment --without test --without development
  8. Warning: the running version of Bundler (1.13.5) is older than the version that created the lockfile (1.14.6). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
  9. Fetching gem metadata from https://rubygems.org/...............
  10. Fetching version metadata from https://rubygems.org/...
  11. Fetching dependency metadata from https://rubygems.org/..
  12. Using rake 11.2.2
  13. Using i18n 0.7.0
  14. Using json 1.8.6
  15. Using minitest 5.9.1
  16. Using thread_safe 0.3.5
  17. Using builder 3.2.2
  18. Using erubis 2.7.0
  19. Using mini_portile2 2.1.0
  20. Using rack 1.6.5
  21. Using mime-types 2.99.2
  22. Using arel 6.0.3
  23. Using jmespath 1.3.1
  24. Using babel-source 5.8.34
  25. Using execjs 2.7.0
  26. Using ember-source 2.10.0
  27. Using byebug 9.0.6
  28. Using certified 1.0.0
  29. Using coderay 1.1.1
  30. Using concurrent-ruby 1.0.2
  31. Using connection_pool 2.2.0
  32. Using crass 1.0.2
  33. Using diff-lcs 1.2.5
  34. Using thor 0.19.1
  35. Using discourse_fastimage 2.0.3
  36. Using unf_ext 0.0.7.1
  37. Using email_reply_trimmer 0.1.6
  38. Using excon 0.53.0
  39. Using exifr 1.2.4
  40. Using fabrication 2.9.8
  41. Using fakeweb 1.3.0
  42. Using multipart-post 2.0.0
  43. Using fast_blank 1.0.0
  44. Using fast_xs 0.8.0
  45. Using ffi 1.9.17
  46. Using flamegraph 0.9.5
  47. Using fspath 2.1.1
  48. Using gc_tracer 1.5.1
  49. Using guess_html_encoding 0.0.11
  50. Using hashie 3.4.6
  51. Using highline 1.7.8
  52. Using hiredis 0.6.1
  53. Using htmlentities 4.3.4
  54. Using http_accept_language 2.0.5
  55. Using image_size 1.4.1
  56. Using in_threads 1.3.1
  57. Using progress 3.1.1
  58. Using jwt 1.5.2
  59. Using kgio 2.10.0
  60. Using libv8 5.3.332.38.5
  61. Using listen 0.7.3
  62. Using logster 1.2.7
  63. Using lru_redux 1.1.0
  64. Using memory_profiler 0.9.7
  65. Using metaclass 0.0.4
  66. Using method_source 0.8.2
  67. Using mock_redis 0.15.4
  68. Using moneta 0.8.1
  69. Using msgpack 1.0.2
  70. Using multi_json 1.12.1
  71. Using multi_xml 0.5.5
  72. Using mustache 1.0.3
  73. Using netrc 0.11.0
  74. Using oauth 0.5.1
  75. Using oj 2.17.5
  76. Using ruby-openid 2.7.0
  77. Using redis 3.3.3
  78. Using pg 0.19.0
  79. Using slop 3.6.0
  80. Using puma 3.6.0
  81. Using r2 0.2.6
  82. Using bundler 1.13.5
  83. Using raindrops 0.17.0
  84. Using rb-fsevent 0.9.7
  85. Using trollop 2.1.2
  86. Using rinku 2.0.0
  87. Using rmmseg-cpp 0.2.9
  88. Using rspec-support 3.4.1
  89. Using rtlit 0.0.5
  90. Using sass 3.2.19
  91. Using tilt 2.0.5
  92. Using shoulda-context 1.2.2
  93. Using simple-rss 1.3.1
  94. Using spork 1.0.0rc4
  95. Using stackprof 0.2.10
  96. Using timecop 0.8.1
  97. Using rake-compiler 0.9.9
  98. Using tzinfo 1.2.2
  99. Using nokogiri 1.6.8.1
  100. Using rack-test 0.6.3
  101. Using message_bus 2.0.2
  102. Using rack-mini-profiler 0.10.1
  103. Using rack-protection 1.5.3
  104. Using mail 2.6.4
  105. Using aws-sdk-core 2.5.3
  106. Using babel-transpiler 0.7.0
  107. Using uglifier 3.0.2
  108. Using barber 0.11.2
  109. Using ember-data-source 2.2.1
  110. Using sprockets 3.6.3
  111. Using unf 0.1.4
  112. Using faraday 0.9.2
  113. Using rb-inotify 0.9.7
  114. Using omniauth 1.3.1
  115. Using image_optim 0.20.2
  116. Using mini_racer 0.1.9
  117. Using mocha 1.1.0
  118. Using rack-openid 1.3.1
  119. Using openid-redis-store 0.0.2
  120. Using redis-namespace 1.5.2
  121. Using pry 0.10.4
  122. Using unicorn 5.2.0
  123. Using rbtrace 0.4.8
  124. Using rspec-core 3.4.4
  125. Using rspec-expectations 3.4.0
  126. Using rspec-mocks 3.4.1
  127. Using fast_xor 1.1.3
  128. Using activesupport 4.2.7.1
  129. Using loofah 2.0.3
  130. Using nokogumbo 1.4.10
  131. Using ruby-readability 0.7.0
  132. Using sidekiq 4.2.4
  133. Using sinatra 1.4.6
  134. Using aws-sdk-resources 2.5.3
  135. Using ember-handlebars-template 0.7.5
  136. Using domain_name 0.5.25
  137. Using oauth2 1.0.0
  138. Using omniauth-oauth 1.1.0
  139. Using omniauth-openid 1.0.1
  140. Using pry-nav 0.2.4
  141. Using pry-rails 0.3.4
  142. Using rspec 3.4.0
  143. Using rails-deprecated_sanitizer 1.0.3
  144. Using globalid 0.3.7
  145. Using activemodel 4.2.7.1
  146. Using shoulda-matchers 2.8.0
  147. Using rails-html-sanitizer 1.0.3
  148. Using sanitize 4.4.0
  149. Using sidekiq-statistic 1.2.0
  150. Using aws-sdk 2.5.3
  151. Using http-cookie 1.0.2
  152. Using omniauth-oauth2 1.3.1
  153. Using omniauth-twitter 1.3.0
  154. Using rspec-html-matchers 0.7.0
  155. Using rails-dom-testing 1.0.7
  156. Using activejob 4.2.7.1
  157. Using active_model_serializers 0.8.3
  158. Using activerecord 4.2.7.1
  159. Using shoulda 3.5.0
  160. Using onebox 1.8.3
  161. Using rest-client 1.8.0
  162. Using omniauth-facebook 3.0.0
  163. Using omniauth-github-discourse 1.1.2
  164. Using omniauth-google-oauth2 0.3.1
  165. Using omniauth-instagram 1.0.2
  166. Using actionview 4.2.7.1
  167. Using seed-fu 2.3.5
  168. Using actionpack 4.2.7.1
  169. Using actionmailer 4.2.7.1
  170. Using railties 4.2.7.1
  171. Using sprockets-rails 3.1.1
  172. Using discourse-qunit-rails 0.0.9
  173. Using jquery-rails 4.2.1
  174. Using rspec-rails 3.4.2
  175. Using rails 4.2.7.1
  176. Using sass-rails 5.0.4
  177. Using ember-rails 0.18.5
  178. Using rails_multisite 1.0.6
  179. Using spork-rails 4.0.0
  180. Bundle complete! 95 Gemfile dependencies, 168 gems now installed.
  181. Gems in the group development were not installed.
  182. Bundled gems are installed into ./vendor/bundle.
  183. $ bundle exec rake multisite:migrate
  184. rake aborted!
  185. ActiveRecord::RecordNotUnique: PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_badges_on_name"
  186. DETAIL: Key (name)=(First Like) already exists.
  187. : UPDATE "badges" SET "name" = 'First Like', "updated_at" = '2017-07-24 17:55:42.155478' WHERE "badges"."id" = 11
  188. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/runner.rb:46:in `eval'
  189. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rack-mini-profiler-0.10.1/lib/patches/db/pg.rb:90:in `async_exec'
  190. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/postgresql_adapter.rb:592:in `block in exec_no_cache'
  191. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log'
  192. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
  193. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log'
  194. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/postgresql_adapter.rb:592:in `exec_no_cache'
  195. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/postgresql_adapter.rb:584:in `execute_and_clear'
  196. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:173:in `exec_delete'
  197. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/database_statements.rb:114:in `update'
  198. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `update'
  199. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/relation.rb:88:in `_update_record'
  200. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/persistence.rb:515:in `_update_record'
  201. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/locking/optimistic.rb:79:in `_update_record'
  202. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/attribute_methods/dirty.rb:129:in `_update_record'
  203. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/callbacks.rb:310:in `block in _update_record'
  204. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:117:in `call'
  205. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
  206. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'
  207. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
  208. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_update_callbacks'
  209. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/callbacks.rb:310:in `_update_record'
  210. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/timestamp.rb:70:in `_update_record'
  211. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/persistence.rb:504:in `create_or_update'
  212. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/callbacks.rb:302:in `block in create_or_update'
  213. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:117:in `call'
  214. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
  215. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'
  216. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
  217. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_save_callbacks'
  218. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/callbacks.rb:302:in `create_or_update'
  219. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/persistence.rb:120:in `save'
  220. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/validations.rb:37:in `save'
  221. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/attribute_methods/dirty.rb:21:in `save'
  222. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/transactions.rb:286:in `block (2 levels) in save'
  223. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status'
  224. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `transaction'
  225. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/transactions.rb:220:in `transaction'
  226. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/transactions.rb:348:in `with_transaction_returning_status'
  227. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/transactions.rb:286:in `block in save'
  228. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/transactions.rb:301:in `rollback_active_record_state!'
  229. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/transactions.rb:285:in `save'
  230. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/seeder.rb:74:in `seed_record'
  231. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/seeder.rb:36:in `block (2 levels) in seed'
  232. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/seeder.rb:36:in `map'
  233. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/seeder.rb:36:in `block in seed'
  234. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `transaction'
  235. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/transactions.rb:220:in `transaction'
  236. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/seeder.rb:35:in `seed'
  237. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/active_record_extension.rb:32:in `seed'
  238. (eval):116:in `block (2 levels) in run_file'
  239. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/runner.rb:46:in `eval'
  240. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/runner.rb:46:in `block (2 levels) in run_file'
  241. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/runner.rb:58:in `block in open'
  242. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/runner.rb:57:in `open'
  243. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/runner.rb:57:in `open'
  244. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/runner.rb:36:in `block in run_file'
  245. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction'
  246. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction'
  247. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'
  248. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/transactions.rb:220:in `transaction'
  249. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/runner.rb:35:in `run_file'
  250. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/runner.rb:26:in `block in run'
  251. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/runner.rb:25:in `each'
  252. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/runner.rb:25:in `run'
  253. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu.rb:29:in `seed'
  254. /var/www/discourse/lib/tasks/db.rake:8:in `block in <top (required)>'
  255. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rails_multisite-1.0.6/lib/tasks/db.rake:8:in `block (2 levels) in <top (required)>'
  256. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rails_multisite-1.0.6/lib/rails_multisite/connection_management.rb:126:in `block in each_connection'
  257. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rails_multisite-1.0.6/lib/rails_multisite/connection_management.rb:124:in `each'
  258. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rails_multisite-1.0.6/lib/rails_multisite/connection_management.rb:124:in `each_connection'
  259. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rails_multisite-1.0.6/lib/tasks/db.rake:3:in `block in <top (required)>'
  260. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
  261. /usr/local/bin/bundle:23:in `load'
  262. /usr/local/bin/bundle:23:in `<main>'
  263. PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_badges_on_name"
  264. DETAIL: Key (name)=(First Like) already exists.
  265. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/runner.rb:46:in `eval'
  266. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rack-mini-profiler-0.10.1/lib/patches/db/pg.rb:90:in `async_exec'
  267. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/postgresql_adapter.rb:592:in `block in exec_no_cache'
  268. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log'
  269. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
  270. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log'
  271. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/postgresql_adapter.rb:592:in `exec_no_cache'
  272. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/postgresql_adapter.rb:584:in `execute_and_clear'
  273. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:173:in `exec_delete'
  274. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/database_statements.rb:114:in `update'
  275. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `update'
  276. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/relation.rb:88:in `_update_record'
  277. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/persistence.rb:515:in `_update_record'
  278. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/locking/optimistic.rb:79:in `_update_record'
  279. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/attribute_methods/dirty.rb:129:in `_update_record'
  280. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/callbacks.rb:310:in `block in _update_record'
  281. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:117:in `call'
  282. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
  283. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'
  284. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
  285. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_update_callbacks'
  286. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/callbacks.rb:310:in `_update_record'
  287. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/timestamp.rb:70:in `_update_record'
  288. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/persistence.rb:504:in `create_or_update'
  289. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/callbacks.rb:302:in `block in create_or_update'
  290. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:117:in `call'
  291. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
  292. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:505:in `call'
  293. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
  294. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_save_callbacks'
  295. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/callbacks.rb:302:in `create_or_update'
  296. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/persistence.rb:120:in `save'
  297. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/validations.rb:37:in `save'
  298. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/attribute_methods/dirty.rb:21:in `save'
  299. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/transactions.rb:286:in `block (2 levels) in save'
  300. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status'
  301. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `transaction'
  302. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/transactions.rb:220:in `transaction'
  303. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/transactions.rb:348:in `with_transaction_returning_status'
  304. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/transactions.rb:286:in `block in save'
  305. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/transactions.rb:301:in `rollback_active_record_state!'
  306. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/transactions.rb:285:in `save'
  307. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/seeder.rb:74:in `seed_record'
  308. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/seeder.rb:36:in `block (2 levels) in seed'
  309. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/seeder.rb:36:in `map'
  310. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/seeder.rb:36:in `block in seed'
  311. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `transaction'
  312. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/transactions.rb:220:in `transaction'
  313. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/seeder.rb:35:in `seed'
  314. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/active_record_extension.rb:32:in `seed'
  315. (eval):116:in `block (2 levels) in run_file'
  316. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/runner.rb:46:in `eval'
  317. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/runner.rb:46:in `block (2 levels) in run_file'
  318. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/runner.rb:58:in `block in open'
  319. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/runner.rb:57:in `open'
  320. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/runner.rb:57:in `open'
  321. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/runner.rb:36:in `block in run_file'
  322. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction'
  323. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction'
  324. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'
  325. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/transactions.rb:220:in `transaction'
  326. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/runner.rb:35:in `run_file'
  327. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/runner.rb:26:in `block in run'
  328. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/runner.rb:25:in `each'
  329. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu/runner.rb:25:in `run'
  330. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/seed-fu-2.3.5/lib/seed-fu.rb:29:in `seed'
  331. /var/www/discourse/lib/tasks/db.rake:8:in `block in <top (required)>'
  332. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rails_multisite-1.0.6/lib/tasks/db.rake:8:in `block (2 levels) in <top (required)>'
  333. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rails_multisite-1.0.6/lib/rails_multisite/connection_management.rb:126:in `block in each_connection'
  334. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rails_multisite-1.0.6/lib/rails_multisite/connection_management.rb:124:in `each'
  335. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rails_multisite-1.0.6/lib/rails_multisite/connection_management.rb:124:in `each_connection'
  336. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rails_multisite-1.0.6/lib/tasks/db.rake:3:in `block in <top (required)>'
  337. /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
  338. /usr/local/bin/bundle:23:in `load'
  339. /usr/local/bin/bundle:23:in `<main>'
  340. Tasks: TOP => db:migrate
  341. (See full trace by running task with --trace)
  342. Migrating default
  343. ---------------------------------
  344.  
  345. == Seed from /var/www/discourse/db/fixtures/001_categories.rb
  346.  
  347. == Seed from /var/www/discourse/db/fixtures/002_groups.rb
  348.  
  349. == Seed from /var/www/discourse/db/fixtures/003_post_action_types.rb
  350. - PostActionType {:id=>1, :name_key=>"bookmark", :is_flag=>false, :position=>1}
  351. - PostActionType {:id=>2, :name_key=>"like", :is_flag=>false, :icon=>"heart", :position=>2}
  352. - PostActionType {:id=>3, :name_key=>"off_topic", :is_flag=>true, :position=>3}
  353. - PostActionType {:id=>4, :name_key=>"inappropriate", :is_flag=>true, :position=>4}
  354. - PostActionType {:id=>5, :name_key=>"vote", :is_flag=>false, :position=>5}
  355. - PostActionType {:id=>8, :name_key=>"spam", :is_flag=>true, :position=>6}
  356. - PostActionType {:id=>6, :name_key=>"notify_user", :is_flag=>true, :position=>7}
  357. - PostActionType {:id=>7, :name_key=>"notify_moderators", :is_flag=>true, :position=>8}
  358.  
  359. == Seed from /var/www/discourse/db/fixtures/004_screened_ip_addresses.rb
  360. - ScreenedIpAddress {:id=>1, :ip_address=>"10.0.0.0/8", :action_type=>2}
  361. - ScreenedIpAddress {:id=>2, :ip_address=>"192.168.0.0/16", :action_type=>2}
  362. - ScreenedIpAddress {:id=>3, :ip_address=>"127.0.0.0/8", :action_type=>2}
  363. - ScreenedIpAddress {:id=>4, :ip_address=>"172.16.0.0/12", :action_type=>2}
  364. - ScreenedIpAddress {:id=>5, :ip_address=>"fc00::/7", :action_type=>2}
  365.  
  366. == Seed from /var/www/discourse/db/fixtures/005_badge_types.rb
  367. - BadgeType {:id=>1, :name=>"Gold"}
  368. - BadgeType {:id=>2, :name=>"Silver"}
  369. - BadgeType {:id=>3, :name=>"Bronze"}
  370.  
  371. == Seed from /var/www/discourse/db/fixtures/006_badges.rb
  372. - BadgeGrouping {:id=>1, :name=>"Getting Started", :default_position=>10}
  373. - BadgeGrouping {:id=>2, :name=>"Community", :default_position=>11}
  374. - BadgeGrouping {:id=>3, :name=>"Posting", :default_position=>12}
  375. - BadgeGrouping {:id=>4, :name=>"Trust Level", :default_position=>13}
  376. - BadgeGrouping {:id=>5, :name=>"Other", :default_position=>14}
  377. - Badge {:id=>1, :name=>"Basic User", :badge_type_id=>3, :query=>"\n SELECT u.id user_id, current_timestamp granted_at FROM users u\n WHERE trust_level >= 1 AND (\n :backfill OR u.id IN (:user_ids)\n )\n", :default_badge_grouping_id=>4, :trigger=>4, :default_allow_title=>false, :default_icon=>"fa-user", :system=>true}
  378. - Badge {:id=>2, :name=>"Member", :badge_type_id=>3, :query=>"\n SELECT u.id user_id, current_timestamp granted_at FROM users u\n WHERE trust_level >= 2 AND (\n :backfill OR u.id IN (:user_ids)\n )\n", :default_badge_grouping_id=>4, :trigger=>4, :default_allow_title=>false, :default_icon=>"fa-user", :system=>true}
  379. - Badge {:id=>3, :name=>"Regular", :badge_type_id=>2, :query=>"\n SELECT u.id user_id, current_timestamp granted_at FROM users u\n WHERE trust_level >= 3 AND (\n :backfill OR u.id IN (:user_ids)\n )\n", :default_badge_grouping_id=>4, :trigger=>4, :default_allow_title=>true, :default_icon=>"fa-user", :system=>true}
  380. - Badge {:id=>4, :name=>"Leader", :badge_type_id=>1, :query=>"\n SELECT u.id user_id, current_timestamp granted_at FROM users u\n WHERE trust_level >= 4 AND (\n :backfill OR u.id IN (:user_ids)\n )\n", :default_badge_grouping_id=>4, :trigger=>4, :default_allow_title=>true, :default_icon=>"fa-user", :system=>true}
  381. - Badge {:id=>17, :name=>"Reader", :badge_type_id=>3, :multiple_grant=>false, :target_posts=>false, :show_posts=>false, :query=>" SELECT id user_id, current_timestamp granted_at\n FROM users\n WHERE id IN\n (\n SELECT pt.user_id\n FROM post_timings pt\n JOIN badge_posts b ON b.post_number = pt.post_number AND\n b.topic_id = pt.topic_id\n JOIN topics t ON t.id = pt.topic_id\n LEFT JOIN user_badges ub ON ub.badge_id = 17 AND ub.user_id = pt.user_id\n WHERE ub.id IS NULL AND t.posts_count > 100\n GROUP BY pt.user_id, pt.topic_id, t.posts_count\n HAVING count(*) >= t.posts_count\n )\n", :default_badge_grouping_id=>1, :auto_revoke=>false, :system=>true}
  382. - Badge {:id=>16, :name=>"Read Guidelines", :badge_type_id=>3, :multiple_grant=>false, :target_posts=>false, :show_posts=>false, :query=>" SELECT user_id, read_faq granted_at\n FROM user_stats\n WHERE read_faq IS NOT NULL AND (user_id IN (:user_ids) OR :backfill)\n", :default_badge_grouping_id=>1, :trigger=>8, :system=>true}
  383. - Badge {:id=>14, :name=>"First Link", :badge_type_id=>3, :multiple_grant=>false, :target_posts=>true, :show_posts=>true, :query=>" SELECT l.user_id, l.post_id, l.created_at granted_at\n FROM\n (\n SELECT MIN(l1.id) id\n FROM topic_links l1\n JOIN badge_posts p1 ON p1.id = l1.post_id\n JOIN badge_posts p2 ON p2.id = l1.link_post_id\n WHERE NOT reflection AND p1.topic_id <> p2.topic_id AND not quote AND\n (:backfill OR ( p1.id in (:post_ids) ))\n GROUP BY l1.user_id\n ) ids\n JOIN topic_links l ON l.id = ids.id\n", :default_badge_grouping_id=>1, :trigger=>2, :system=>true}
  384. - Badge {:id=>15, :name=>"First Quote", :badge_type_id=>3, :multiple_grant=>false, :target_posts=>true, :show_posts=>true, :query=>" SELECT ids.user_id, q.post_id, q.created_at granted_at\n FROM\n (\n SELECT p1.user_id, MIN(q1.id) id\n FROM quoted_posts q1\n JOIN badge_posts p1 ON p1.id = q1.post_id\n JOIN badge_posts p2 ON p2.id = q1.quoted_post_id\n WHERE (:backfill OR ( p1.id IN (:post_ids) ))\n GROUP BY p1.user_id\n ) ids\n JOIN quoted_posts q ON q.id = ids.id\n", :default_badge_grouping_id=>1, :trigger=>2, :system=>true}
  385. - Badge {:id=>11, :name=>"First Like", :badge_type_id=>3, :multiple_grant=>false, :target_posts=>true, :show_posts=>true, :query=>" SELECT pa1.user_id, pa1.created_at granted_at, pa1.post_id\n FROM (\n SELECT pa.user_id, min(pa.id) id\n FROM post_actions pa\n JOIN badge_posts p on p.id = pa.post_id\n WHERE post_action_type_id = 2 AND\n (:backfill OR pa.post_id IN (:post_ids) )\n GROUP BY pa.user_id\n ) x\n JOIN post_actions pa1 on pa1.id = x.id\n", :default_badge_grouping_id=>1, :trigger=>1, :system=>true}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement