Bootstrapping Discourse hangs on Redis "ready to accept connections" on Amazon EC2

Hello,

First timer here, have been following the instructions here: https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md but I’m doing it on an Amazon EC2 instance instead of a Digital Ocean droplet. I’m not very good at server admin stuff so I tend to follow the instructions and get a bit lost when things don’t go right, but I’ve managed to get to the bit about bootstrapping Discourse mostly successfully!

However, when I run the command ./launcher bootstrap app (Actually, I do sudo ./launcher bootstrap app) it begins the process but always ‘hangs’ for lack of a better word, at the following line:

The server is now ready to accept connections on port 6379

It becomes unresponsive, I then get ‘connection reset by peer’ and I cannot SSH back in… Also, stuff I have on the instance times out when you try to visit it online, trying to FTP into the instance times out too and the only way I’ve found to regain control is to reboot the instance from the Amazon EC2 Dashboard.

Here’s my Docker Info

Containers: 4
Images: 6
Storage Driver: devicemapper
 Pool Name: docker-202:1-25685-pool
 Pool Blocksize: 65.54 kB
 Backing Filesystem: extfs
 Data file: /dev/loop0
 Metadata file: /dev/loop1
 Data Space Used: 222.2 MB
 Data Space Total: 107.4 GB
 Data Space Available: 4.962 GB
 Metadata Space Used: 1.745 MB
 Metadata Space Total: 2.147 GB
 Metadata Space Available: 2.146 GB
 Udev Sync Supported: false
 Data loop file: /var/lib/docker/devicemapper/devicemapper/data
 Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
 Library Version: 1.02.82-git (2013-10-04)
Execution Driver: native-0.2
Kernel Version: 3.5.0-51-generic
Operating System: Ubuntu quantal (12.10)
CPUs: 1
Total Memory: 589.9 MiB

Any guidance would be much appreciated!

According to Sam, that’s known to lead to problems and, in your case, probably crashes the kernel. Use aufs3 or btrfs instead.

Also, you should consider upgrading to Ubuntu 14.04.

2 Likes

I tried adding

DOCKER_OPTS="--storage-driver=aufs"

to my /etc/default/docker file and ran the bootstrap command again, but it had the same effect. Any further ideas?

Did you run this?

apt-get install linux-image-extra-`uname -r`

You really need to be on the current LTS release of Ubuntu Server, 14.04.

The version 12.10 is old and unsupported… why would anyone build a new server with an old OS?

OK guys, I’ve been updating everything to try and make sure I’m all up to date. Seems like that was the problem, because I was able to get slightly further now, but the bootstrapping is now failing with this:

    FAILED
--------------------
RuntimeError: cd /var/www/discourse && su discourse -c 'bundle exec rake assets:precompile' failed with return #<Process::Status: pid 547 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:105:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle install --deployment --verbose --without test --without development'", "su discourse -c 'bundle exec rake db:migrate'", "su discourse -c 'bundle exec rake assets:precompile'"]}
ee69c065e20e53fdd9b42beeb22f09b256205d2f3622c354eb11d9d4e678239e
FAILED TO BOOTSTRAP

Should I make a new topic for this new error? Or is it OK to discuss here? I do appreciate the advice you’ve provided so far.

This is still installation support, so it’s fine.

You’re missing the actual error, can you paste logs from farther up? It’s most likely right below su discourse -c 'bundle exec rake db:migrate'.

It’s pretty long, but I copied from the line you suggested to the end. Here it is.

I, [2015-04-27T19:04:43.533141 #38]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
I, [2015-04-27T19:04:58.302150 #38]  INFO -- :
== Seed from /var/www/discourse/db/fixtures/001_categories.rb

== Seed from /var/www/discourse/db/fixtures/002_groups.rb

== Seed from /var/www/discourse/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 /var/www/discourse/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 /var/www/discourse/db/fixtures/005_badge_types.rb
 - BadgeType {:id=>1, :name=>"Gold"}
 - BadgeType {:id=>2, :name=>"Silver"}
 - BadgeType {:id=>3, :name=>"Bronze"}

== Seed from /var/www/discourse/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 IN (: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 IN (: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_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}
 - 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 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}
 - 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_grouping_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      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}
 - 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.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}
 - 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=>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_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.post_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_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.post_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.post_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) granted_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 up 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_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=>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 users 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_grouping_id=>2, :trigger=>0, :auto_revoke=>false, :system=>true}

== Seed from /var/www/discourse/db/fixtures/009_users.rb
 - User {:id=>-1, :name=>"system", :username=>"system", :username_lower=>"system", :email=>"no_email", :password=>"7d1abb1c234589bd1022a4ea3aa8d61e", :active=>true, :admin=>true, :moderator=>true, :email_direct=>false, :approved=>true, :email_private_messages=>false, :trust_level=>4}

== Seed from /var/www/discourse/db/fixtures/500_lounge_category.rb

== Seed from /var/www/discourse/db/fixtures/501_meta_category.rb

== Seed from /var/www/discourse/db/fixtures/502_staff_category.rb

== Seed from /var/www/discourse/db/fixtures/999_settings.rb

== Seed from /var/www/discourse/db/fixtures/999_topics.rb

I, [2015-04-27T19:04:58.303670 #38]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake assets:precompile'
I, [2015-04-27T19:05:35.959117 #312]  INFO -- : Writing /var/www/discourse/public/assets/FontAwesome-f0cc90e7889236bdb6c0ca55b79770d2.otf
I, [2015-04-27T19:05:35.971605 #312]  INFO -- : Writing /var/www/discourse/public/assets/fontawesome-webfont-73827efc2a64a873027d05873d392cb6.eot
I, [2015-04-27T19:05:35.979570 #312]  INFO -- : Writing /var/www/discourse/public/assets/fontawesome-webfont-363ddc01c466373791837427fe5a768e.svg
I, [2015-04-27T19:05:35.986934 #312]  INFO -- : Writing /var/www/discourse/public/assets/fontawesome-webfont-743c128c2e48ae20145724e61f9998b4.ttf
I, [2015-04-27T19:05:35.992625 #312]  INFO -- : Writing /var/www/discourse/public/assets/fontawesome-webfont-eeaf3e983ade434b10eda37dfbd6c6d7.woff
I, [2015-04-27T19:05:36.001154 #312]  INFO -- : Writing /var/www/discourse/public/assets/fontawesome-webfont-b751eaa685c70dec5404c9f509ab6f0f.woff2
I, [2015-04-27T19:05:36.005713 #312]  INFO -- : Writing /var/www/discourse/public/assets/zocial-regular-webfont-3846cbc7b3397872177752c20149ff45.eot
I, [2015-04-27T19:05:36.011050 #312]  INFO -- : Writing /var/www/discourse/public/assets/zocial-regular-webfont-fa3fc124d7d87fba0c66eebefb8495ba.svg
I, [2015-04-27T19:05:36.015210 #312]  INFO -- : Writing /var/www/discourse/public/assets/zocial-regular-webfont-2aac6a4951f536aa302b3bcdc3424499.ttf
I, [2015-04-27T19:05:36.019365 #312]  INFO -- : Writing /var/www/discourse/public/assets/zocial-regular-webfont-b21460bf44daf98b04c5339edbd9f462.woff
I, [2015-04-27T19:05:36.023201 #312]  INFO -- : Writing /var/www/discourse/public/assets/chosen-sprite-8a7b0de8c79afad2d63363d145d7bf88.png
I, [2015-04-27T19:05:36.027157 #312]  INFO -- : Writing /var/www/discourse/public/assets/favicon-16465536d00aeb9da2ca290e11c392b4.ico
I, [2015-04-27T19:05:36.030678 #312]  INFO -- : Writing /var/www/discourse/public/assets/favicons/1282043220-favicon-441c1164492cfd82fcb1354eaacd429d.ico
I, [2015-04-27T19:05:36.034113 #312]  INFO -- : Writing /var/www/discourse/public/assets/favicons/amazon-39970d950fbaec1718160041d85360bf.png
I, [2015-04-27T19:05:36.037518 #312]  INFO -- : Writing /var/www/discourse/public/assets/favicons/apple-c309549cf49f942dc8e215a7b226e04e.png
I, [2015-04-27T19:05:36.040915 #312]  INFO -- : Writing /var/www/discourse/public/assets/favicons/discourse-86a574c39af8a8a91ceb1653864f4075.png
I, [2015-04-27T19:05:36.044314 #312]  INFO -- : Writing /var/www/discourse/public/assets/favicons/github-5fa3b2ccc92f5b98d37a0659af27fd10.png
I, [2015-04-27T19:05:36.047769 #312]  INFO -- : Writing /var/www/discourse/public/assets/favicons/google_play-98295ccf28cf32625e7ac1c911e0fca8.png
I, [2015-04-27T19:05:36.051174 #312]  INFO -- : Writing /var/www/discourse/public/assets/favicons/rottentomatoes-b74810e5dc40fba50327844156787af9.png
I, [2015-04-27T19:05:36.054829 #312]  INFO -- : Writing /var/www/discourse/public/assets/favicons/stackexchange-a6cbc6e0306560317a954c30f212f975.png
I, [2015-04-27T19:05:36.058164 #312]  INFO -- : Writing /var/www/discourse/public/assets/favicons/twitter-9389be3611fd4dc8c32adb5a7b1ae0de.png
I, [2015-04-27T19:05:36.061539 #312]  INFO -- : Writing /var/www/discourse/public/assets/favicons/wikipedia-0de28d211999427f24ae8b5a840f2935.png
I, [2015-04-27T19:05:36.065065 #312]  INFO -- : Writing /var/www/discourse/public/assets/grippie-d28a6f65e22c0033dcf0d63883bcc590.png
I, [2015-04-27T19:05:36.071906 #312]  INFO -- : Writing /var/www/discourse/public/assets/logo-dev-ff0fcd6922e8e1aa031304b1d3e424a6.png
I, [2015-04-27T19:05:36.075617 #312]  INFO -- : Writing /var/www/discourse/public/assets/logo-single-dev-76ec62e48f4251d3fa00e42a29ae753b.png
I, [2015-04-27T19:05:36.079077 #312]  INFO -- : Writing /var/www/discourse/public/assets/logo-single-de2a438ad98c6df5f93ac6ac57f0c9f3.png
I, [2015-04-27T19:05:36.082513 #312]  INFO -- : Writing /var/www/discourse/public/assets/logo-50f2863a2f5ecac8825ee69b11dcfdbb.png
I, [2015-04-27T19:05:36.086056 #312]  INFO -- : Writing /var/www/discourse/public/assets/select2-spinner-65869c1d0a2498dd002aa563048a2253.gif
I, [2015-04-27T19:05:36.089535 #312]  INFO -- : Writing /var/www/discourse/public/assets/select2-20942152ca4c9717f914877da87804af.png
I, [2015-04-27T19:05:36.093072 #312]  INFO -- : Writing /var/www/discourse/public/assets/select2x2-c0736823da71c0955b2fb807af671f0a.png
I, [2015-04-27T19:05:36.096694 #312]  INFO -- : Writing /var/www/discourse/public/assets/spinner_96-8091be87c9cf1abef73e3899ec7645c1.gif
I, [2015-04-27T19:05:55.194172 #312]  INFO -- : Writing /var/www/discourse/public/assets/admin-88a72cb4270cac72cc81bc19a48017c4.js
I, [2015-04-27T19:06:46.113356 #312]  INFO -- : Writing /var/www/discourse/public/assets/application-5363d637f89f201eefd8731eb99c2015.js
I, [2015-04-27T19:06:46.394609 #312]  INFO -- : Writing /var/www/discourse/public/assets/defer/html-sanitizer-bundle-baf4a044cd2299e33c41055ec9cbd444.js
I, [2015-04-27T19:06:46.399197 #312]  INFO -- : Writing /var/www/discourse/public/assets/discourse/controllers/application-9e5b0e0653f9e6eebc8cdb9cf71cb194.js
I, [2015-04-27T19:06:46.402680 #312]  INFO -- : Writing /var/www/discourse/public/assets/discourse/routes/application-d6184ccc0f849d9ff7c0416a52fcf2bc.js
I, [2015-04-27T19:06:46.405817 #312]  INFO -- : Writing /var/www/discourse/public/assets/discourse/templates/application-31d5b479af432e58c7538e6d3a84f0ba.js
I, [2015-04-27T19:06:46.408949 #312]  INFO -- : Writing /var/www/discourse/public/assets/discourse/views/application-8d5a0ed0093f5692aff04442dabbfb4a.js
I, [2015-04-27T19:06:46.413502 #312]  INFO -- : Writing /var/www/discourse/public/assets/docs/yuidoc-cf304cb678763161e669e0722ddaf1c6.json
I, [2015-04-27T19:06:46.656634 #312]  INFO -- : Writing /var/www/discourse/public/assets/locales/ar-4744284d72773d0df9bb90f24c0858e3.js
I, [2015-04-27T19:06:46.933630 #312]  INFO -- : Writing /var/www/discourse/public/assets/locales/cs-c35342134237d553555a49e124a2c7ee.js
I, [2015-04-27T19:06:47.089392 #312]  INFO -- : Writing /var/www/discourse/public/assets/locales/da-d9be4149f2e12786e0374e696f5e157e.js
I, [2015-04-27T19:06:47.282823 #312]  INFO -- : Writing /var/www/discourse/public/assets/locales/de-94727bd16bcbdc71f67409a880b288c1.js
I, [2015-04-27T19:06:47.655449 #312]  INFO -- : Writing /var/www/discourse/public/assets/locales/en-5729ff56b059ddefa6f22f9197a6e9f8.js
I, [2015-04-27T19:06:47.946478 #312]  INFO -- : Writing /var/www/discourse/public/assets/locales/es-597fed7b47a0589aa9ba8a9235e7ef22.js
I, [2015-04-27T19:06:48.107870 #312]  INFO -- : Writing /var/www/discourse/public/assets/locales/fa_IR-41ffcc7a1a29812ec824de9f03bfbd51.js
I, [2015-04-27T19:06:48.279199 #312]  INFO -- : Writing /var/www/discourse/public/assets/locales/fi-159861481d530d10fcf2a9708135653e.js
I, [2015-04-27T19:06:48.450624 #312]  INFO -- : Writing /var/www/discourse/public/assets/locales/fr-d57a7f121cf66e0ccbfbd0ff6d224db0.js
I, [2015-04-27T19:06:48.893591 #312]  INFO -- : Writing /var/www/discourse/public/assets/locales/he-160e61f6f4df68a311e81c0fc6ac1310.js
I, [2015-04-27T19:06:48.939936 #312]  INFO -- : Writing /var/www/discourse/public/assets/locales/id-36f0ed3e920d69f0f817da0b847a62cc.js
I, [2015-04-27T19:06:49.126652 #312]  INFO -- : Writing /var/www/discourse/public/assets/locales/it-20c47af492e05a0b1807c1b9b1bac39d.js
I, [2015-04-27T19:06:49.286778 #312]  INFO -- : Writing /var/www/discourse/public/assets/locales/ja-c0ae5d23748c8a5bc4e3dc04e3b3decf.js
I, [2015-04-27T19:06:49.554718 #312]  INFO -- : Writing /var/www/discourse/public/assets/locales/ko-ac501e9e3352134d1d7d74e564e84929.js
I, [2015-04-27T19:06:49.679578 #312]  INFO -- : Writing /var/www/discourse/public/assets/locales/nb_NO-bca3384be7c7083e0f4a7bd545d9a1b7.js
I, [2015-04-27T19:06:49.810356 #312]  INFO -- : Writing /var/www/discourse/public/assets/locales/nl-6442640ad71f9ad21b7cdef354d35a4f.js
I, [2015-04-27T19:06:50.060323 #312]  INFO -- : Writing /var/www/discourse/public/assets/locales/pl_PL-bb0ad83139c439330d49ef3eb92684cd.js
I, [2015-04-27T19:06:50.363565 #312]  INFO -- : Writing /var/www/discourse/public/assets/locales/pt-199b6d53f22471ffabfed035931bef54.js
I, [2015-04-27T19:06:50.528777 #312]  INFO -- : Writing /var/www/discourse/public/assets/locales/pt_BR-42ccebb48b76874d64f28b2ad3543754.js
I, [2015-04-27T19:06:50.662560 #312]  INFO -- : Writing /var/www/discourse/public/assets/locales/ro-d62b049ec59129aaa31efd47c9ee804d.js
I, [2015-04-27T19:06:51.035588 #312]  INFO -- : Writing /var/www/discourse/public/assets/locales/ru-8ab951fecd6a226532655757fb8288ab.js
I, [2015-04-27T19:06:51.332768 #312]  INFO -- : Writing /var/www/discourse/public/assets/locales/sq-173fdf02127ec56fdafba146f706c265.js
I, [2015-04-27T19:06:51.467539 #312]  INFO -- : Writing /var/www/discourse/public/assets/locales/sv-ea264cdff7a6909630f6644ddd5d0eee.js
I, [2015-04-27T19:06:51.624919 #312]  INFO -- : Writing /var/www/discourse/public/assets/locales/te-37ddf013cb4160684e46842f208f0dbb.js
I, [2015-04-27T19:06:51.818616 #312]  INFO -- : Writing /var/www/discourse/public/assets/locales/tr_TR-53a4b682c87dc5ef6a73439150a8236b.js
I, [2015-04-27T19:06:52.212761 #312]  INFO -- : Writing /var/www/discourse/public/assets/locales/uk-dd90670e9a703680b794810bdd85c6bc.js
I, [2015-04-27T19:06:52.590077 #312]  INFO -- : Writing /var/www/discourse/public/assets/locales/zh_CN-3852c1bfadadd741478fd2ebf238c216.js
I, [2015-04-27T19:06:52.731673 #312]  INFO -- : Writing /var/www/discourse/public/assets/locales/zh_TW-8fef4735ec8ab2c1636fc2815509bc6d.js
I, [2015-04-27T19:06:52.758288 #312]  INFO -- : Writing /var/www/discourse/public/assets/preload_store-94f4bd070fd59503324a33618a0e2597.js
I, [2015-04-27T19:06:53.977630 #312]  INFO -- : Writing /var/www/discourse/public/assets/vendor-2ccb77c8e690d9d5ab56bd1c770279d6.js
I, [2015-04-27T19:06:56.743729 #312]  INFO -- : Writing /var/www/discourse/public/assets/admin-94caddaead67104ed46f21faab32386d.css
I, [2015-04-27T19:07:21.862222 #312]  INFO -- : Writing /var/www/discourse/public/assets/common-dca47d39273debdd0f69327b20ed9946.css
I, [2015-04-27T19:07:39.347404 #312]  INFO -- : Writing /var/www/discourse/public/assets/desktop-442a2206b41c5546e00d6200e8293e11.css
I, [2015-04-27T19:07:41.576685 #312]  INFO -- : Writing /var/www/discourse/public/assets/embed-17d8f60f6bef0ff7ff3339164c8d3a5b.css
I, [2015-04-27T19:07:53.508506 #312]  INFO -- : Writing /var/www/discourse/public/assets/mobile-4c3c4d75221a2187a370c1ab0190f02b.css
I, [2015-04-27T19:07:53.527579 #312]  INFO -- : Writing /var/www/discourse/public/assets/break_string-74164c014039e0e583bb09c83a4c08dd.js
I, [2015-04-27T19:07:53.563653 #312]  INFO -- : Writing /var/www/discourse/public/assets/browser-update-fa863883c58483fff66be30c496dfe53.js
I, [2015-04-27T19:07:53.592845 #312]  INFO -- : Writing /var/www/discourse/public/assets/docker-manager-app-52f5bea23b67a1f8a760adf24261ec41.css
I, [2015-04-27T19:07:53.602790 #312]  INFO -- : Writing /var/www/discourse/public/assets/docker-manager-app-0788dbd739ea1f569df344d727ff35e8.js
I, [2015-04-27T19:07:55.725791 #312]  INFO -- : Writing /var/www/discourse/public/assets/docker-manager-vendor-78572dacef8e79905fead5c465caee44.css
I, [2015-04-27T19:07:56.011578 #312]  INFO -- : Writing /var/www/discourse/public/assets/docker-manager-vendor-cab67493a5df9cd1381b9205281344ea.js
I, [2015-04-27T19:07:56.113102 #312]  INFO -- : Writing /var/www/discourse/public/assets/images/docker-manager-ea64623b074c8ec2b0303bae846e21e6.png
Compressing: admin-88a72cb4270cac72cc81bc19a48017c4.js
rake aborted!
Errno::ENOMEM: Cannot allocate memory - which
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/core_ext/kernel/agnostics.rb:7:in ``'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/core_ext/kernel/agnostics.rb:7:in ``'
/var/www/discourse/lib/tasks/assets.rake:125:in `compress'
/var/www/discourse/lib/tasks/assets.rake:157:in `block (2 levels) in <top (required)>'
/var/www/discourse/lib/tasks/assets.rake:143:in `each'
/var/www/discourse/lib/tasks/assets.rake:143:in `block in <top (required)>'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
190:M 27 Apr 19:08:19.127 * 10 changes in 300 seconds. Saving...
190:M 27 Apr 19:08:19.336 * Background saving started by pid 842
842:C 27 Apr 19:08:19.699 * DB saved on disk
842:C 27 Apr 19:08:19.701 * RDB: 0 MB of memory used by copy-on-write
190:M 27 Apr 19:08:19.814 * Background saving terminated with success
I, [2015-04-27T19:08:21.515982 #38]  INFO -- : Purging temp files
Bundling assets
Compiling css for default
desktop_146a33faf68ecb1855c10533cf8538492be3ab37.css
mobile_146a33faf68ecb1855c10533cf8538492be3ab37.css
Compressing Javascript and Generating Source Maps

I, [2015-04-27T19:08:21.536261 #38]  INFO -- : Terminating async processes
I, [2015-04-27T19:08:21.536859 #38]  INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/9.3/bin/postmaster -D /etc/postgresql/9.3/main pid: 67
I, [2015-04-27T19:08:21.539137 #38]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 190
190:signal-handler (1430161701) Received SIGTERM scheduling shutdown...
190:M 27 Apr 19:08:21.591 # User requested shutdown...
190:M 27 Apr 19:08:21.591 * Saving the final RDB snapshot before exiting.
2015-04-27 19:08:21 UTC [67-2] LOG:  received fast shutdown request
2015-04-27 19:08:21 UTC [67-3] LOG:  aborting any active transactions
2015-04-27 19:08:21 UTC [74-2] LOG:  autovacuum launcher shutting down
190:M 27 Apr 19:08:21.706 * DB saved on disk
190:M 27 Apr 19:08:21.707 # Redis is now ready to exit, bye bye...
2015-04-27 19:08:21 UTC [71-1] LOG:  shutting down
2015-04-27 19:08:22 UTC [71-2] LOG:  database system is shut down


FAILED
--------------------
RuntimeError: cd /var/www/discourse && su discourse -c 'bundle exec rake assets:precompile' failed with return #<Process::Status: pid 310 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:105:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle install --deployment --verbose --without test --without development'", "su discourse -c 'bundle exec rake db:migrate'", "su discourse -c 'bundle exec rake assets:precompile'"]}
86ec45f3a954978355867c3ece7dc145fc4a382a30c72d54e9c946eba57e0d61
FAILED TO BOOTSTRAP

Does that help? If not I can copy the whole output but I didn’t want to post a ridiculously huge snippet.

Thanks for any advice!

Can you up the memory?

Found it.

How much memory? Did you set up swap?