{"action":"created","issue":{"url":"https://api.github.com/repos/rumpelsepp/aur-packages/issues/2","labels_url":"https://api.github.com/repos/rumpelsepp/aur-packages/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/rumpelsepp/aur-packages/issues/2/comments","events_url":"https://api.github.com/repos/rumpelsepp/aur-packages/issues/2/events","html_url":"https://github.com/rumpelsepp/aur-packages/issues/2","id":125599582,"number":2,"title":"Postinstall is obsolete, can't finish Discourse setup","user":{"login":"HLFH","id":2359059,"avatar_url":"https://avatars.githubusercontent.com/u/2359059?v=3","gravatar_id":"","url":"https://api.github.com/users/HLFH","html_url":"https://github.com/HLFH","followers_url":"https://api.github.com/users/HLFH/followers","following_url":"https://api.github.com/users/HLFH/following{/other_user}","gists_url":"https://api.github.com/users/HLFH/gists{/gist_id}","starred_url":"https://api.github.com/users/HLFH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HLFH/subscriptions","organizations_url":"https://api.github.com/users/HLFH/orgs","repos_url":"https://api.github.com/users/HLFH/repos","events_url":"https://api.github.com/users/HLFH/events{/privacy}","received_events_url":"https://api.github.com/users/HLFH/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-01-08T12:05:57Z","updated_at":"2016-01-08T18:19:20Z","closed_at":"2016-01-08T13:47:24Z","body":"Related to: https://bbs.archlinux.org/viewtopic.php?id=198939\r\n\r\nInstead of:\r\n\r\n```bash\r\n[root@arch-server discourse]# sudo -u discourse -s /usr/bin/bash -c \"cd /usr/share/webapps/discourse; bundle exec rake discourse:setup RAILS_ENV=production\"\r\n```\r\nas seen here: https://aur.archlinux.org/cgit/aur.git/tree/discourse.install?h=discourse\r\nand btw, it's not discourse.config but discourse.conf\r\n\r\nI did:\r\n\r\n```bash\r\n[root@arch-server discourse]# sudo -u discourse -s /usr/bin/bash -c \"cd /usr/share/webapps/discourse; bundle exec rake db:create --trace RAILS_ENV=production\"\r\n** Invoke db:create (first_time)\r\n** Invoke db:load_config (first_time)\r\n** Execute db:load_config\r\n** Execute db:create\r\n```\r\n\r\nBut then \r\n\r\n```bash\r\n[root@arch-server discourse]# sudo -u discourse -s /usr/bin/bash -c \"cd /usr/share/webapps/discourse; bundle exec rake db:migrate db:test:prepare db:seed_fu --trace RAILS_ENV=production\"\r\n** Invoke db:migrate (first_time)\r\n** Invoke environment (first_time)\r\n** Execute environment\r\nFailed to report error: Name or service not known 2 Name or service not known subscribe failed, reconnecting in 1 second. Call stack [\"/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gem\r\ns/redis-3.2.1/lib/redis/connection/hiredis.rb:17:in `connect'\", \"/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.2.1/lib/redis/connection/hiredis.rb:17:in `connect'\", \"/usr/\r\nshare/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.2.1/lib/redis/client.rb:322:in `establish_connection'\", \"/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.2.1/li\r\nb/redis/client.rb:94:in `block in connect'\", \"/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.2.1/lib/redis/client.rb:279:in `with_reconnect'\", \"/usr/share/webapps/discourse\r\n/vendor/bundle/ruby/2.3.0/gems/redis-3.2.1/lib/redis/client.rb:93:in `connect'\", \"/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.2.1/lib/redis/client.rb:262:in `with_socket\r\n_timeout'\", \"/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.2.1/lib/redis/client.rb:273:in `without_socket_timeout'\", \"/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0\r\n/gems/redis-3.2.1/lib/redis/client.rb:125:in `call_loop'\", \"/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.2.1/lib/redis/subscribe.rb:35:in `subscription'\", \"/usr/share/web\r\napps/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.2.1/lib/redis/subscribe.rb:12:in `subscribe'\", \"/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.2.1/lib/redis.rb:2622:in\r\n `_subscription'\", \"/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.2.1/lib/redis.rb:2035:in `block in subscribe'\", \"/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/ge\r\nms/redis-3.2.1/lib/redis.rb:37:in `block in synchronize'\", \"/usr/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'\", \"/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.2.1/li\r\nb/redis.rb:37:in `synchronize'\", \"/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.2.1/lib/redis.rb:2034:in `subscribe'\", \"/usr/share/webapps/discourse/vendor/bundle/ruby/2.3\r\n.0/gems/message_bus-1.0.16/lib/message_bus/redis/reliable_pub_sub.rb:302:in `global_subscribe'\", \"/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/message_bus-1.0.16/lib/message_bus.\r\nrb:457:in `global_subscribe_thread'\", \"/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/message_bus-1.0.16/lib/message_bus.rb:409:in `block in new_subscriber_thread'\"]\r\nURGENT: Name or service not known Failed to initialize site default\r\nFailed to report error: Name or service not known 2 Name or service not known subscribe failed, reconnecting in 1 second. Call stack [\"/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gem\r\ns/redis-3.2.1/lib/redis/connection/hiredis.rb:17:in `connect'\", \"/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.2.1/lib/redis/connection/hiredis.rb:17:in `connect'\", \"/usr/\r\nshare/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.2.1/lib/redis/client.rb:322:in `establish_connection'\", \"/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.2.1/li\r\nb/redis/client.rb:94:in `block in connect'\", \"/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.2.1/lib/redis/client.rb:279:in `with_reconnect'\", \"/usr/share/webapps/discourse\r\n/vendor/bundle/ruby/2.3.0/gems/redis-3.2.1/lib/redis/client.rb:93:in `connect'\", \"/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.2.1/lib/redis/client.rb:262:in `with_socket\r\n_timeout'\", \"/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.2.1/lib/redis/client.rb:273:in `without_socket_timeout'\", \"/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0\r\n/gems/redis-3.2.1/lib/redis/client.rb:125:in `call_loop'\", \"/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.2.1/lib/redis/subscribe.rb:35:in `subscription'\", \"/usr/share/web\r\napps/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.2.1/lib/redis/subscribe.rb:12:in `subscribe'\", \"/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.2.1/lib/redis.rb:2622:in\r\n `_subscription'\", \"/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.2.1/lib/redis.rb:2035:in `block in subscribe'\", \"/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/ge\r\nms/redis-3.2.1/lib/redis.rb:37:in `block in synchronize'\", \"/usr/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'\", \"/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.2.1/li\r\nb/redis.rb:37:in `synchronize'\", \"/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/redis-3.2.1/lib/redis.rb:2034:in `subscribe'\", \"/usr/share/webapps/discourse/vendor/bundle/ruby/2.3\r\n.0/gems/message_bus-1.0.16/lib/message_bus/redis/reliable_pub_sub.rb:302:in `global_subscribe'\", \"/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/message_bus-1.0.16/lib/message_bus.\r\nrb:457:in `global_subscribe_thread'\", \"/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/message_bus-1.0.16/lib/message_bus.rb:409:in `block in new_subscriber_thread'\"]\r\nFailed to report error: Name or service not known 3 PG::UndefinedTable: ERREUR:  la relation « users » n'existe pas\r\nLINE 5:                WHERE a.attrelid = '\"users\"'::regclass\r\n                                          ^\r\n:               SELECT a.attname, format_type(a.atttypid, a.atttypmod),\r\n                     pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod\r\n                FROM pg_attribute a LEFT JOIN pg_attrdef d\r\n                  ON a.attrelid = d.adrelid AND a.attnum = d.adnum\r\n               WHERE a.attrelid = '\"users\"'::regclass\r\n                 AND a.attnum > 0 AND NOT a.attisdropped\r\n               ORDER BY a.attnum\r\n\r\nPlease require the stackprof gem falling back to fast_stack\r\nrake aborted!\r\nLoadError: cannot load such file -- memory_profiler\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/dependencies.rb:247:in `require'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/dependencies.rb:247:in `block in require'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/dependencies.rb:232:in `load_dependency'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/dependencies.rb:247:in `require'\r\n/usr/share/webapps/discourse/config/initializers/06-mini_profiler.rb:7:in `<top (required)>'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/dependencies.rb:241:in `load'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/dependencies.rb:241:in `block in load'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/dependencies.rb:232:in `load_dependency'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/dependencies.rb:241:in `load'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/railties-4.1.10/lib/rails/engine.rb:648:in `block in load_config_initializer'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/notifications.rb:161:in `instrument'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/railties-4.1.10/lib/rails/engine.rb:647:in `load_config_initializer'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/railties-4.1.10/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/railties-4.1.10/lib/rails/engine.rb:611:in `each'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/railties-4.1.10/lib/rails/engine.rb:611:in `block in <class:Engine>'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/railties-4.1.10/lib/rails/initializable.rb:30:in `instance_exec'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/railties-4.1.10/lib/rails/initializable.rb:30:in `run'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/railties-4.1.10/lib/rails/initializable.rb:55:in `block in run_initializers'\r\n/usr/lib/ruby/2.3.0/tsort.rb:228:in `block in tsort_each'\r\n/usr/lib/ruby/2.3.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'\r\n/usr/lib/ruby/2.3.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'\r\n/usr/lib/ruby/2.3.0/tsort.rb:431:in `each_strongly_connected_component_from'\r\n/usr/lib/ruby/2.3.0/tsort.rb:421:in `block in each_strongly_connected_component_from'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/railties-4.1.10/lib/rails/initializable.rb:44:in `each'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/railties-4.1.10/lib/rails/initializable.rb:44:in `tsort_each_child'\r\n/usr/lib/ruby/2.3.0/tsort.rb:415:in `call'\r\n/usr/lib/ruby/2.3.0/tsort.rb:415:in `each_strongly_connected_component_from'\r\n/usr/lib/ruby/2.3.0/tsort.rb:349:in `block in each_strongly_connected_component'\r\n/usr/lib/ruby/2.3.0/tsort.rb:347:in `each'\r\n/usr/lib/ruby/2.3.0/tsort.rb:347:in `call'\r\n/usr/lib/ruby/2.3.0/tsort.rb:347:in `each_strongly_connected_component'\r\n/usr/lib/ruby/2.3.0/tsort.rb:226:in `tsort_each'\r\n/usr/lib/ruby/2.3.0/tsort.rb:205:in `tsort_each'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/railties-4.1.10/lib/rails/initializable.rb:54:in `run_initializers'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/railties-4.1.10/lib/rails/application.rb:300:in `initialize!'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/railties-4.1.10/lib/rails/railtie.rb:194:in `public_send'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/railties-4.1.10/lib/rails/railtie.rb:194:in `method_missing'\r\n/usr/share/webapps/discourse/config/environment.rb:5:in `<top (required)>'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/dependencies.rb:247:in `require'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/dependencies.rb:247:in `block in require'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/dependencies.rb:232:in `load_dependency'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.1.10/lib/active_support/dependencies.rb:247:in `require'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/railties-4.1.10/lib/rails/application.rb:276:in `require_environment!'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/railties-4.1.10/lib/rails/application.rb:405:in `block in run_tasks_blocks'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in execute'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/rake-10.4.2/lib/rake/task.rb:235:in `each'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'\r\n/usr/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/rake-10.4.2/lib/rake/task.rb:201:in `block in invoke_prerequisites'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/rake-10.4.2/lib/rake/task.rb:199:in `each'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/rake-10.4.2/lib/rake/task.rb:199:in `invoke_prerequisites'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/rake-10.4.2/lib/rake/task.rb:178:in `block in invoke_with_call_chain'\r\n/usr/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/rake-10.4.2/lib/rake/application.rb:150:in `invoke_task'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/rake-10.4.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/rake-10.4.2/lib/rake/application.rb:106:in `each'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/rake-10.4.2/lib/rake/application.rb:106:in `block in top_level'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/rake-10.4.2/lib/rake/application.rb:115:in `run_with_threads'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/rake-10.4.2/lib/rake/application.rb:100:in `top_level'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/rake-10.4.2/lib/rake/application.rb:78:in `block in run'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/gems/rake-10.4.2/bin/rake:33:in `<top (required)>'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/bin/rake:23:in `load'\r\n/usr/share/webapps/discourse/vendor/bundle/ruby/2.3.0/bin/rake:23:in `<main>'\r\nTasks: TOP => db:migrate => environment\r\n```"},"comment":{"url":"https://api.github.com/repos/rumpelsepp/aur-packages/issues/comments/170079628","html_url":"https://github.com/rumpelsepp/aur-packages/issues/2#issuecomment-170079628","issue_url":"https://api.github.com/repos/rumpelsepp/aur-packages/issues/2","id":170079628,"user":{"login":"HLFH","id":2359059,"avatar_url":"https://avatars.githubusercontent.com/u/2359059?v=3","gravatar_id":"","url":"https://api.github.com/users/HLFH","html_url":"https://github.com/HLFH","followers_url":"https://api.github.com/users/HLFH/followers","following_url":"https://api.github.com/users/HLFH/following{/other_user}","gists_url":"https://api.github.com/users/HLFH/gists{/gist_id}","starred_url":"https://api.github.com/users/HLFH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HLFH/subscriptions","organizations_url":"https://api.github.com/users/HLFH/orgs","repos_url":"https://api.github.com/users/HLFH/repos","events_url":"https://api.github.com/users/HLFH/events{/privacy}","received_events_url":"https://api.github.com/users/HLFH/received_events","type":"User","site_admin":false},"created_at":"2016-01-08T18:19:20Z","updated_at":"2016-01-08T18:19:20Z","body":"@rumpelsepp I posted there: https://meta.discourse.org/t/nomethoderror-undefined-method-for-nil-nilclass/37647 ; thanks for everything!"}}