I am trying to setup discourse_docker so I can migrate my old, non-docker installation. The server is on DigitalOcean and runs Arch Linux x64, kernel 3.8.4-1. I'm following this guide and can't get past the step Bootstrap Discourse.
I have installed docker
and lxc
(standard packages). Not sure what about aufs
support since I can't update the kernel normally on a droplet, and DigitalOcean's instructions are only for apt-based systems...
As the discourse user, I clone discourse_docker to /var/discourse, edit containers/app.yml
, then run ./launcher bootstrap app
, where rake fails:
...
I, [2014-09-27T15:44:09.852087 #39] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
rake aborted!
NameError: uninitialized constant Onebox
/var/www/discourse/plugins/lazyYT/plugin.rb:14:in `activate!'
...
If I try this as root, it gets a bit further, then fails with a different error:
...
I, [2014-09-27T16:34:02.876802 #38] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake assets:precompile'
...
I, [2014-09-27T16:36:44.987772 #5653] INFO -- : Writing /var/www/discourse/public/assets/preload_store-48dc8094f8aedcfa1c243aae5eff1400.js
I, [2014-09-27T16:37:42.763873 #5653] INFO -- : Writing /var/www/discourse/public/assets/vendor-b4a7d12c6e9c7418690f53abd46456a1.js
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/sass-3.2.16/lib/sass/script/number.rb:53: [BUG] Segmentation fault
ruby 2.0.0p576 (2014-09-19 revision 47628) [x86_64-linux]
...
-- C level backtrace information -------------------------------------------
Segmentation fault
I, [2014-09-27T16:37:45.658779 #38] INFO -- : 2014-09-27T16:34:07Z 5653 TID-osqtuq1zg INFO: Sidekiq client with redis options {:url=>"redis://localhost:6379/0", :namespace=>"sidekiq"}
Purging temp files
...
There's 8 GB of free space and a few hundred MB of free memory. I have tried rebooting the droplet a few times.
What's going on here? I don't know if it's obvious but I don't know Ruby, Rails or these ecosystems...