Installation problem


(Bohuslav Svancara) #1

I am following


or
http://blog.discourse.org/2013/04/discourse-as-your-first-rails-app/

The command

bundle exec rake db:migrate

ends like this:

== Seed from /vagrant/db/fixtures/009_users.rb
 - User {:id=>-1, :name=>"system", :username=>"system", :username_lower=>"system", :email=>"no_email", :password=>"42607ed5e1404987f12fc0ad14581c5e",
ail_direct=>false, :approved=>true, :email_private_messages=>false, :trust_level=>4}

== Seed from /vagrant/db/fixtures/500_lounge_category.rb

== Seed from /vagrant/db/fixtures/501_meta_category.rb

== Seed from /vagrant/db/fixtures/502_staff_category.rb

== Seed from /vagrant/db/fixtures/999_settings.rb
Discourse hostname: localhost is not a valid domain for emails!

What to do please?


(Erick Guan) #2

If you want a Discourse installation, goes with Docker guide.

You installed Discourse at a development environment. It is fine.


(Bohuslav Svancara) #3

I really need a dev environment.
I am almost sure it worked three weeks ago.
Now, I am lost.

Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.

E:\DiscourseWorkSpace\discourse [master]> vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 3000 => 4000 (adapter 1)
    default: 1080 => 4080 (adapter 1)
    default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection timeout. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version of
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you see
    default: shared folder errors, please make sure the guest additions within the
    default: virtual machine match the version of VirtualBox you have installed on
    default: your host and reload your VM.
    default:
    default: Guest Additions Version: 4.2.0
    default: VirtualBox Version: 5.0
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /vagrant => E:/DiscourseWorkSpace/discourse
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: flag to force provisioning. Provisioners marked to run always will still run.
E:\DiscourseWorkSpace\discourse [master]> vagrant ssh
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic-pae i686)

 * Documentation:  https://help.ubuntu.com/
New release '14.04.2 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

Welcome to your Vagrant-built virtual machine.
Last login: Wed Sep  9 05:48:18 2015 from 10.0.2.2
[vagrant@precise32:/vagrant (master)]$ bundle install
Using rake 10.4.2
Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.6.1
Using thread_safe 0.3.5
Using tzinfo 1.2.2
Using activesupport 4.1.10
Using builder 3.2.2
Using erubis 2.7.0
Using actionview 4.1.10
Using rack 1.5.5
Using rack-test 0.6.3
Using actionpack 4.1.10
Using mime-types 1.25.1
Using polyglot 0.3.5
Using treetop 1.4.15
Using mail 2.5.4
Using actionmailer 4.1.10
Using activemodel 4.1.10
Using active_model_serializers 0.8.3
Using arel 5.0.1.20140414130214
Using activerecord 4.1.10
Using annotate 2.6.6
Using multi_json 1.11.2
Using jmespath 1.0.2
Using aws-sdk-core 2.0.45
Using aws-sdk-resources 2.0.45
Using aws-sdk 2.0.45
Using babel-source 5.8.19
Using execjs 2.5.2
Using babel-transpiler 0.7.0
Using ember-source 1.12.1
Using barber 0.9.0
Using coderay 1.1.0
Using better_errors 2.1.1
Using debug_inspector 0.0.2
Using binding_of_caller 0.7.2
Using columnize 0.9.0
Using byebug 5.0.0
Using hitimes 1.2.2
Using timers 4.0.1
Using celluloid 0.16.0
Using certified 1.0.0
Using connection_pool 2.2.0
Using crass 1.0.1
Using daemons 1.2.2
Using diff-lcs 1.2.5
Using thor 0.19.1
Using railties 4.1.10
Using discourse-qunit-rails 0.0.8
Using docile 1.1.5
Using dotenv 1.0.2
Using email_reply_parser 0.5.8
Using ember-data-source 1.0.0.beta.16.1
Using hike 1.2.3
Using tilt 1.4.1
Using sprockets 2.11.0
Using ember-handlebars-template 0.1.5
Using jquery-rails 3.1.2
Using ember-rails 0.18.2
Using eventmachine 1.0.7
Using excon 0.45.3
Using exifr 1.2.2
Using fabrication 2.9.8
Using fakeweb 1.3.0
Using multipart-post 2.0.0
Using faraday 0.9.1
Using fast_blank 0.0.2
Using rake-compiler 0.9.4
Using fast_stack 0.1.0
Using fast_xor 1.1.3
Using fast_xs 0.8.0
Using fastimage_discourse 1.6.6
Using ffi 1.9.6
Using flamegraph 0.1.0
Using foreman 0.77.0
Using fspath 2.1.1
Using sorcerer 1.0.2
Using given_core 3.5.4
Using guess_html_encoding 0.0.11
Using handlebars-source 2.0.0
Using hashie 3.4.0
Using highline 1.7.1
Using hiredis 0.6.0
Using htmlentities 4.3.3
Using image_size 1.4.1
Using in_threads 1.3.1
Using progress 3.1.0
Using image_optim 0.20.2
Using jwt 1.3.0
Using kgio 2.9.3
Using librarian 0.1.2
Using libv8 3.16.14.7
Using listen 0.7.3
Using logster 1.0.0.3.pre
Using lru_redux 1.1.0
Using memory_profiler 0.9.3
Using redis 3.2.1
Using message_bus 1.0.16
Using metaclass 0.0.4
Using method_source 0.8.2
Using mini_portile 0.6.2
Using mocha 1.1.0
Using mock_redis 0.14.0
Using moneta 0.8.0
Using msgpack 0.5.11
Using multi_xml 0.5.5
Using mustache 1.0.2
Using netrc 0.10.3
Using nokogiri 1.6.6.2
Using nokogumbo 1.2.0
Using oauth 0.4.7
Using oauth2 1.0.0
Using oj 2.12.9
Using omniauth 1.2.2
Using omniauth-oauth2 1.2.0
Using omniauth-facebook 2.0.0
Using omniauth-github-discourse 1.1.2
Using omniauth-google-oauth2 0.2.5
Using omniauth-oauth 1.0.1
Using ruby-openid 2.5.0
Using rack-openid 1.3.1
Using omniauth-openid 1.0.1
Using omniauth-twitter 1.0.1
Using onebox 1.5.24
Using openid-redis-store 0.0.2
Using pg 0.18.1
Using slop 3.6.0
Using pry 0.10.1
Using pry-nav 0.2.4
Using pry-rails 0.3.3
Using puma 2.11.1
Using r2 0.2.5
Using rack-mini-profiler 0.9.6
Using rack-protection 1.5.3
Using bundler 1.9.4
Using sprockets-rails 2.0.1
Using rails 4.1.10
Using rails-observers 0.1.2
Using rails_multisite 0.0.1 from source at vendor/gems/rails_multisite
Using raindrops 0.13.0
Using rb-fsevent 0.9.4
Using rb-inotify 0.9.5
Using trollop 2.1.1
Using rbtrace 0.4.7
Using redcarpet 3.2.2
Using redis-namespace 1.5.2
Using ref 1.0.5
Using rest-client 1.7.2
Using rinku 1.7.3
Using rmmseg-cpp 0.2.9
Using rspec-support 3.2.2
Using rspec-core 3.2.3
Using rspec-expectations 3.2.1
Using rspec-mocks 3.2.1
Using rspec 3.2.0
Using rspec-given 3.5.4
Using rspec-rails 3.2.1
Using rtlit 0.0.5
Using ruby-readability 0.7.0
Using sanitize 3.1.2
Using sass 3.2.19
Using sass-rails 4.0.5
Using seed-fu 2.3.5
Using shoulda-context 1.2.1
Using shoulda-matchers 2.7.0
Using shoulda 3.5.0
Using sidekiq 3.4.2
Using sidekiq-statistic 1.1.0
Using simple-rss 1.3.1
Using simplecov-html 0.8.0
Using simplecov 0.9.1
Using sinatra 1.4.5
Using spork 1.0.0rc4
Using spork-rails 4.0.0
Using stackprof 0.2.7
Using therubyracer 0.12.2
Using thin 1.6.3
Using timecop 0.7.3
Using uglifier 2.7.1
Using unf_ext 0.0.6
Using unf 0.1.4
Using unicorn 4.8.3
Bundle complete! 93 Gemfile dependencies, 183 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
[vagrant@precise32:/vagrant (master)]$ bundle exec rake db:migrate

== Seed from /vagrant/db/fixtures/001_categories.rb

== Seed from /vagrant/db/fixtures/002_groups.rb

== Seed from /vagrant/db/fixtures/003_post_action_types.rb
 - PostActionType {:id=>1, :name_key=>"bookmark", :is_flag=>false, :position=>1}
 - PostActionType {:id=>2, :name_key=>"like", :is_flag=>false, :icon=>"heart", :position=>2}
 - PostActionType {:id=>3, :name_key=>"off_topic", :is_flag=>true, :position=>3}
 - PostActionType {:id=>4, :name_key=>"inappropriate", :is_flag=>true, :position=>4}
 - PostActionType {:id=>5, :name_key=>"vote", :is_flag=>false, :position=>5}
 - PostActionType {:id=>8, :name_key=>"spam", :is_flag=>true, :position=>6}
 - PostActionType {:id=>6, :name_key=>"notify_user", :is_flag=>true, :position=>7}
 - PostActionType {:id=>7, :name_key=>"notify_moderators", :is_flag=>true, :position=>8}

== Seed from /vagrant/db/fixtures/004_screened_ip_addresses.rb
 - ScreenedIpAddress {:id=>1, :ip_address=>"10.0.0.0/8", :action_type=>2}
 - ScreenedIpAddress {:id=>2, :ip_address=>"192.168.0.0/16", :action_type=>2}
 - ScreenedIpAddress {:id=>3, :ip_address=>"127.0.0.0/8", :action_type=>2}
 - ScreenedIpAddress {:id=>4, :ip_address=>"172.16.0.0/12", :action_type=>2}
 - ScreenedIpAddress {:id=>5, :ip_address=>"fc00::/7", :action_type=>2}

== Seed from /vagrant/db/fixtures/005_badge_types.rb
 - BadgeType {:id=>1, :name=>"Gold"}
 - BadgeType {:id=>2, :name=>"Silver"}
 - BadgeType {:id=>3, :name=>"Bronze"}

== Seed from /vagrant/db/fixtures/006_badges.rb
 - BadgeGrouping {:id=>1, :name=>"Getting Started", :default_position=>10}
 - BadgeGrouping {:id=>2, :name=>"Community", :default_position=>11}
 - BadgeGrouping {:id=>3, :name=>"Posting", :default_position=>12}
 - BadgeGrouping {:id=>4, :name=>"Trust Level", :default_position=>13}
 - BadgeGrouping {:id=>5, :name=>"Other", :default_position=>14}
 - Badge {:id=>1, :default_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}
 - Badge {:id=>2, :default_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 I
N (:user_ids)\n    )\n", :default_badge_grouping_id=>4, :trigger=>4, :default_allow_title=>false, :default_icon=>"fa-user", :system=>true}
 - Badge {:id=>3, :default_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}
 - Badge {:id=>4, :default_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 I
N (:user_ids)\n    )\n", :default_badge_grouping_id=>4, :trigger=>4, :default_allow_title=>true, :default_icon=>"fa-user", :system=>true}
 - Badge {:id=>17, :default_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_i
d, pt.topic_id, t.posts_count\n      HAVING count(*) >= t.posts_count\n    )\n", :default_badge_grouping_id=>1, :auto_revoke=>false, :system=>true}
 - Badge {:id=>16, :default_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 use
r_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}
 - Badge {:id=>14, :default_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_grou
ping_id=>1, :trigger=>2, :system=>true}
 - Badge {:id=>15, :default_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      WHE
RE (: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}
 - Badge {:id=>11, :default_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.pos
t_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}
 - Badge {:id=>13, :default_name=>"First Flag", :badge_type_id=>3, :multiple_grant=>false, :target_posts=>true, :show_posts=>false, :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 IN (3,4,7,8) 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=>2, :trigger=>1, :auto_revoke=>false, :system=>true}
 - Badge {:id=>25, :default_name=>"Promoter", :default_icon=>"fa-user-plus", :badge_type_id=>3, :multiple_grant=>false, :target_posts=>false, :show_posts=>false, :query=>"\n    SELECT u.id user_id, cu
rrent_timestamp granted_at\n    FROM users u\n    WHERE u.id IN (\n      SELECT invited_by_id\n      FROM invites i\n      JOIN users u2 ON u2.id = i.user_id\n      WHERE i.deleted_at IS NULL AND u2.a
ctive AND u2.trust_level >= 0 AND not u2.blocked\n      GROUP BY invited_by_id\n      HAVING COUNT(*) > 1\n    ) AND u.active AND NOT u.blocked AND u.id > 0 AND\n      (:backfill OR u.id IN (:user_ids
) )\n", :default_badge_grouping_id=>2, :trigger=>0, :auto_revoke=>true, :system=>true}
 - Badge {:id=>26, :default_name=>"Campaigner", :default_icon=>"fa-user-plus", :badge_type_id=>2, :multiple_grant=>false, :target_posts=>false, :show_posts=>false, :query=>"\n    SELECT u.id user_id,
current_timestamp granted_at\n    FROM users u\n    WHERE u.id IN (\n      SELECT invited_by_id\n      FROM invites i\n      JOIN users u2 ON u2.id = i.user_id\n      WHERE i.deleted_at IS NULL AND u2
.active AND u2.trust_level >= 1 AND not u2.blocked\n      GROUP BY invited_by_id\n      HAVING COUNT(*) > 3\n    ) AND u.active AND NOT u.blocked AND u.id > 0 AND\n      (:backfill OR u.id IN (:user_i
ds) )\n", :default_badge_grouping_id=>2, :trigger=>0, :auto_revoke=>true, :system=>true}
 - Badge {:id=>27, :default_name=>"Champion", :default_icon=>"fa-user-plus", :badge_type_id=>1, :multiple_grant=>false, :target_posts=>false, :show_posts=>false, :query=>"\n    SELECT u.id user_id, cu
rrent_timestamp granted_at\n    FROM users u\n    WHERE u.id IN (\n      SELECT invited_by_id\n      FROM invites i\n      JOIN users u2 ON u2.id = i.user_id\n      WHERE i.deleted_at IS NULL AND u2.a
ctive AND u2.trust_level >= 2 AND not u2.blocked\n      GROUP BY invited_by_id\n      HAVING COUNT(*) > 5\n    ) AND u.active AND NOT u.blocked AND u.id > 0 AND\n      (:backfill OR u.id IN (:user_ids
) )\n", :default_badge_grouping_id=>2, :trigger=>0, :auto_revoke=>true, :system=>true}
 - Badge {:id=>12, :default_name=>"First Share", :badge_type_id=>3, :multiple_grant=>false, :target_posts=>true, :show_posts=>true, :query=>"    SELECT views.user_id, i2.post_id, i2.created_at granted
_at\n    FROM\n    (\n      SELECT i.user_id, MIN(i.id) i_id\n      FROM incoming_links i\n      JOIN badge_posts p on p.id = i.post_id\n      WHERE i.user_id IS NOT NULL\n      GROUP BY i.user_id\n
  ) as views\n    JOIN incoming_links i2 ON i2.id = views.i_id\n", :default_badge_grouping_id=>1, :trigger=>0, :system=>true}
 - Badge {:id=>21, :default_name=>"Nice Share", :badge_type_id=>3, :multiple_grant=>true, :target_posts=>true, :show_posts=>true, :query=>"    SELECT views.user_id, i2.post_id, i2.created_at granted_a
t\n    FROM\n    (\n      SELECT i.user_id, MIN(i.id) i_id\n      FROM incoming_links i\n      JOIN badge_posts p on p.id = i.post_id\n      WHERE i.user_id IS NOT NULL\n      GROUP BY i.user_id,i.pos
t_id\n      HAVING COUNT(*) > 25\n    ) as views\n    JOIN incoming_links i2 ON i2.id = views.i_id\n", :default_badge_grouping_id=>2, :trigger=>0, :system=>true}
 - Badge {:id=>22, :default_name=>"Good Share", :badge_type_id=>2, :multiple_grant=>true, :target_posts=>true, :show_posts=>true, :query=>"    SELECT views.user_id, i2.post_id, i2.created_at granted_a
t\n    FROM\n    (\n      SELECT i.user_id, MIN(i.id) i_id\n      FROM incoming_links i\n      JOIN badge_posts p on p.id = i.post_id\n      WHERE i.user_id IS NOT NULL\n      GROUP BY i.user_id,i.pos
t_id\n      HAVING COUNT(*) > 300\n    ) as views\n    JOIN incoming_links i2 ON i2.id = views.i_id\n", :default_badge_grouping_id=>2, :trigger=>0, :system=>true}
 - Badge {:id=>23, :default_name=>"Great Share", :badge_type_id=>1, :multiple_grant=>true, :target_posts=>true, :show_posts=>true, :query=>"    SELECT views.user_id, i2.post_id, i2.created_at granted_
at\n    FROM\n    (\n      SELECT i.user_id, MIN(i.id) i_id\n      FROM incoming_links i\n      JOIN badge_posts p on p.id = i.post_id\n      WHERE i.user_id IS NOT NULL\n      GROUP BY i.user_id,i.po
st_id\n      HAVING COUNT(*) > 1000\n    ) as views\n    JOIN incoming_links i2 ON i2.id = views.i_id\n", :default_badge_grouping_id=>2, :trigger=>0, :system=>true}
 - Badge {:id=>5, :default_name=>"Welcome", :badge_type_id=>3, :multiple_grant=>false, :target_posts=>true, :show_posts=>true, :query=>"    SELECT p.user_id, min(post_id) post_id, min(pa.created_at) g
ranted_at\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 p.user_id\n", :
default_badge_grouping_id=>2, :trigger=>1, :system=>true}
 - Badge {:id=>9, :default_name=>"Autobiographer", :badge_type_id=>3, :multiple_grant=>false, :query=>"    SELECT u.id user_id, current_timestamp granted_at\n    FROM users u\n    JOIN user_profiles u
p on u.id = up.user_id\n    WHERE bio_raw IS NOT NULL AND LENGTH(TRIM(bio_raw)) > 10 AND\n          uploaded_avatar_id IS NOT NULL AND\n          (:backfill OR u.id IN (:user_ids) )\n", :default_badge
_grouping_id=>1, :trigger=>8, :system=>true}
 - Badge {:id=>10, :default_name=>"Editor", :badge_type_id=>3, :multiple_grant=>false, :query=>"    SELECT p.user_id, min(p.id) post_id, min(p.created_at) granted_at\n    FROM badge_posts p\n    WHERE
 p.self_edits > 0 AND\n        (:backfill OR p.id IN (:post_ids) )\n    GROUP BY p.user_id\n", :default_badge_grouping_id=>2, :trigger=>2, :system=>true}
 - Badge {:id=>6, :default_name=>"Nice Post", :badge_type_id=>3, :multiple_grant=>true, :target_posts=>true, :show_posts=>true, :query=>"\n    SELECT p.user_id, p.id post_id, p.updated_at granted_at\n
    FROM badge_posts p\n    WHERE p.post_number > 1 AND p.like_count >= 10 AND\n      (:backfill OR p.id IN (:post_ids) )\n", :default_badge_grouping_id=>3, :trigger=>1, :system=>true}
 - Badge {:id=>7, :default_name=>"Good Post", :badge_type_id=>2, :multiple_grant=>true, :target_posts=>true, :show_posts=>true, :query=>"\n    SELECT p.user_id, p.id post_id, p.updated_at granted_at\n
    FROM badge_posts p\n    WHERE p.post_number > 1 AND p.like_count >= 25 AND\n      (:backfill OR p.id IN (:post_ids) )\n", :default_badge_grouping_id=>3, :trigger=>1, :system=>true}
 - Badge {:id=>8, :default_name=>"Great Post", :badge_type_id=>1, :multiple_grant=>true, :target_posts=>true, :show_posts=>true, :query=>"\n    SELECT p.user_id, p.id post_id, p.updated_at granted_at\
n    FROM badge_posts p\n    WHERE p.post_number > 1 AND p.like_count >= 50 AND\n      (:backfill OR p.id IN (:post_ids) )\n", :default_badge_grouping_id=>3, :trigger=>1, :system=>true}
 - Badge {:id=>18, :default_name=>"Nice Topic", :badge_type_id=>3, :multiple_grant=>true, :target_posts=>true, :show_posts=>true, :query=>"\n    SELECT p.user_id, p.id post_id, p.updated_at granted_at
\n    FROM badge_posts p\n    WHERE p.post_number = 1 AND p.like_count >= 10 AND\n      (:backfill OR p.id IN (:post_ids) )\n", :default_badge_grouping_id=>3, :trigger=>1, :system=>true}
 - Badge {:id=>19, :default_name=>"Good Topic", :badge_type_id=>2, :multiple_grant=>true, :target_posts=>true, :show_posts=>true, :query=>"\n    SELECT p.user_id, p.id post_id, p.updated_at granted_at
\n    FROM badge_posts p\n    WHERE p.post_number = 1 AND p.like_count >= 25 AND\n      (:backfill OR p.id IN (:post_ids) )\n", :default_badge_grouping_id=>3, :trigger=>1, :system=>true}
 - Badge {:id=>20, :default_name=>"Great Topic", :badge_type_id=>1, :multiple_grant=>true, :target_posts=>true, :show_posts=>true, :query=>"\n    SELECT p.user_id, p.id post_id, p.updated_at granted_a
t\n    FROM badge_posts p\n    WHERE p.post_number = 1 AND p.like_count >= 50 AND\n      (:backfill OR p.id IN (:post_ids) )\n", :default_badge_grouping_id=>3, :trigger=>1, :system=>true}
 - Badge {:id=>24, :default_name=>"Anniversary", :default_icon=>"fa-clock-o", :badge_type_id=>2, :query=>"    SELECT u.id AS user_id, MIN(u.created_at + interval '1 year') AS granted_at\n      FROM us
ers u\n      JOIN posts p ON p.user_id = u.id\n     WHERE u.id > 0\n       AND u.active\n       AND NOT u.blocked\n       AND u.created_at + interval '1 year' < now()\n       AND p.deleted_at IS NULL\
n       AND NOT p.hidden\n       AND p.created_at + interval '1 year' > now()\n       AND (:backfill OR u.id IN (:user_ids))\n     GROUP BY u.id\n     HAVING COUNT(p.id) > 0\n", :default_badge_groupin
g_id=>2, :trigger=>0, :auto_revoke=>false, :system=>true}
 - Badge {:id=>28, :default_name=>"Popular Link", :badge_type_id=>3, :multiple_grant=>true, :target_posts=>true, :show_posts=>true, :query=>"          SELECT tl.user_id, post_id, MIN(tl.created_at) gr
anted_at\n            FROM topic_links tl\n            JOIN posts p  ON p.id = post_id    AND p.deleted_at IS NULL\n            JOIN topics t ON t.id = p.topic_id AND t.deleted_at IS NULL AND t.archet
ype <> 'private_message'\n           WHERE NOT tl.internal\n             AND tl.clicks >= 50\n        GROUP BY tl.user_id, tl.post_id\n", :default_badge_grouping_id=>2, :trigger=>0, :system=>true}
 - Badge {:id=>29, :default_name=>"Hot Link", :badge_type_id=>2, :multiple_grant=>true, :target_posts=>true, :show_posts=>true, :query=>"          SELECT tl.user_id, post_id, MIN(tl.created_at) grante
d_at\n            FROM topic_links tl\n            JOIN posts p  ON p.id = post_id    AND p.deleted_at IS NULL\n            JOIN topics t ON t.id = p.topic_id AND t.deleted_at IS NULL AND t.archetype
<> 'private_message'\n           WHERE NOT tl.internal\n             AND tl.clicks >= 300\n        GROUP BY tl.user_id, tl.post_id\n", :default_badge_grouping_id=>2, :trigger=>0, :system=>true}
 - Badge {:id=>30, :default_name=>"Famous Link", :badge_type_id=>1, :multiple_grant=>true, :target_posts=>true, :show_posts=>true, :query=>"          SELECT tl.user_id, post_id, MIN(tl.created_at) gra
nted_at\n            FROM topic_links tl\n            JOIN posts p  ON p.id = post_id    AND p.deleted_at IS NULL\n            JOIN topics t ON t.id = p.topic_id AND t.deleted_at IS NULL AND t.archety
pe <> 'private_message'\n           WHERE NOT tl.internal\n             AND tl.clicks >= 1000\n        GROUP BY tl.user_id, tl.post_id\n", :default_badge_grouping_id=>2, :trigger=>0, :system=>true}

== Seed from /vagrant/db/fixtures/009_users.rb
 - User {:id=>-1, :name=>"system", :username=>"system", :username_lower=>"system", :email=>"no_email", :password=>"4718e53d335ef726d51edc1fef70bb38", :active=>true, :admin=>true, :moderator=>true, :em
ail_direct=>false, :approved=>true, :email_private_messages=>false, :trust_level=>4}

== Seed from /vagrant/db/fixtures/500_lounge_category.rb

== Seed from /vagrant/db/fixtures/501_meta_category.rb

== Seed from /vagrant/db/fixtures/502_staff_category.rb

== Seed from /vagrant/db/fixtures/999_settings.rb
Discourse hostname: localhost is not a valid domain for emails!

== Seed from /vagrant/db/fixtures/999_topics.rb
[vagrant@precise32:/vagrant (master)]$

(Neil Lalonde) #4

You can ignore that message. Notice that the migration continues to run because 999_topics.rb gets run successfully after that message is printed. From that output, db:migrate completed successfully.


(Bohuslav Svancara) #5

Ah, really. Thank you.

I got an error after

bundle exec rails s

and

http://localhost:4000/

yesterday.

It works today.

Thank you.


(Bohuslav Svancara) #6

Ah, too quick…

This is what I have now:

[vagrant@precise32:/vagrant (master)]$ bundle exec rails s
=> Booting Thin
=> Rails 4.1.10 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
=> Ctrl-C to shutdown server
Thin web server (v1.6.3 codename Protein Powder)
Maximum connections set to 1024
Listening on 0.0.0.0:3000, CTRL+C to stop
Invalid request: Invalid HTTP format, parsing fails.
        /var/lib/gems/2.2.0/gems/thin-1.6.3/lib/thin/request.rb:84:in `execute'
        /var/lib/gems/2.2.0/gems/thin-1.6.3/lib/thin/request.rb:84:in `parse'
        /var/lib/gems/2.2.0/gems/thin-1.6.3/lib/thin/connection.rb:39:in `receive_data'
        /var/lib/gems/2.2.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run_machine'
        /var/lib/gems/2.2.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run'
        /var/lib/gems/2.2.0/gems/thin-1.6.3/lib/thin/backends/base.rb:73:in `start'
        /var/lib/gems/2.2.0/gems/thin-1.6.3/lib/thin/server.rb:162:in `start'
        /var/lib/gems/2.2.0/gems/rack-1.5.5/lib/rack/handler/thin.rb:16:in `run'
        /var/lib/gems/2.2.0/gems/rack-1.5.5/lib/rack/server.rb:264:in `start'
        /var/lib/gems/2.2.0/gems/railties-4.1.10/lib/rails/commands/server.rb:69:in `start'
        /var/lib/gems/2.2.0/gems/railties-4.1.10/lib/rails/commands/commands_tasks.rb:81:in `block in server'
        /var/lib/gems/2.2.0/gems/railties-4.1.10/lib/rails/commands/commands_tasks.rb:76:in `tap'
        /var/lib/gems/2.2.0/gems/railties-4.1.10/lib/rails/commands/commands_tasks.rb:76:in `server'
        /var/lib/gems/2.2.0/gems/railties-4.1.10/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
        /var/lib/gems/2.2.0/gems/railties-4.1.10/lib/rails/commands.rb:17:in `<top (required)>'
        bin/rails:4:in `require'
        bin/rails:4:in `<main>'

Invalid request: Invalid HTTP format, parsing fails.
        /var/lib/gems/2.2.0/gems/thin-1.6.3/lib/thin/request.rb:84:in `execute'
        /var/lib/gems/2.2.0/gems/thin-1.6.3/lib/thin/request.rb:84:in `parse'
        /var/lib/gems/2.2.0/gems/thin-1.6.3/lib/thin/connection.rb:39:in `receive_data'
        /var/lib/gems/2.2.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run_machine'
        /var/lib/gems/2.2.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run'
        /var/lib/gems/2.2.0/gems/thin-1.6.3/lib/thin/backends/base.rb:73:in `start'
        /var/lib/gems/2.2.0/gems/thin-1.6.3/lib/thin/server.rb:162:in `start'
        /var/lib/gems/2.2.0/gems/rack-1.5.5/lib/rack/handler/thin.rb:16:in `run'
        /var/lib/gems/2.2.0/gems/rack-1.5.5/lib/rack/server.rb:264:in `start'
        /var/lib/gems/2.2.0/gems/railties-4.1.10/lib/rails/commands/server.rb:69:in `start'
        /var/lib/gems/2.2.0/gems/railties-4.1.10/lib/rails/commands/commands_tasks.rb:81:in `block in server'
        /var/lib/gems/2.2.0/gems/railties-4.1.10/lib/rails/commands/commands_tasks.rb:76:in `tap'
        /var/lib/gems/2.2.0/gems/railties-4.1.10/lib/rails/commands/commands_tasks.rb:76:in `server'
        /var/lib/gems/2.2.0/gems/railties-4.1.10/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
        /var/lib/gems/2.2.0/gems/railties-4.1.10/lib/rails/commands.rb:17:in `<top (required)>'
        bin/rails:4:in `require'
        bin/rails:4:in `<main>'

(Bohuslav Svancara) #7

It runs.

I used HTTPS by mistake.


(Régis Hanol) #8