# Failing to bootstrap after configuring SSL

**URL:** https://meta.discourse.org/t/failing-to-bootstrap-after-configuring-ssl/21494
**Category:** Self-hosting
**Created:** [10월 25, 2014, 8:01오전 UTC](https://meta.discourse.org/t/failing-to-bootstrap-after-configuring-ssl/21494 "2014-10-25T08:01:23Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![akraut](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/akraut/32/108147_2.png) [@akraut](https://meta.discourse.org/u/akraut)
#### Post date: [10월 25, 2014, 8:01오전 UTC](https://meta.discourse.org/t/failing-to-bootstrap-after-configuring-ssl/21494/1 "2014-10-25T08:01:23Z")

</div>

I added the web ssl template, then issued `./launcher rebuild app` and now it fails to bootstrap:

```
FAILED
--------------------
RuntimeError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 362 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:105:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"web", "cmd"=>["gem update bundler", "chown -R discourse $home", "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'"]}
0ffcf6cbc3b36241997d17f99638c61fb8405441417adcb75aade0305c1acf9b
FAILED TO BOOTSTRAP

```

Further up, I also see this:

```
I, [2014-10-25T07:58:38.004253 #45] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
rake aborted!
NoMethodError: undefined method `after_after_initialize' for #<Plugin::Instance:0x007f161e6b0ab8>
/var/www/discourse/plugins/discourse-plugin-permalink/plugin.rb:12:in `activate!'
/var/www/discourse/lib/plugin/instance.rb:171:in `instance_eval'
/var/www/discourse/lib/plugin/instance.rb:171:in `activate!'
/var/www/discourse/lib/discourse.rb:84:in `block in activate_plugins!'
/var/www/discourse/lib/discourse.rb:84:in `each'
/var/www/discourse/lib/discourse.rb:84:in `activate_plugins!'
/var/www/discourse/config/application.rb:149:in `<class:Application>'
/var/www/discourse/config/application.rb:19:in `<module:Discourse>'
/var/www/discourse/config/application.rb:18:in `<top (required)>'
/var/www/discourse/Rakefile:5:in `require'
/var/www/discourse/Rakefile:5:in `<top (required)>'
(See full trace by running task with --trace)

```

Any ideas what’s going wrong?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [10월 25, 2014, 8:17오전 UTC](https://meta.discourse.org/t/failing-to-bootstrap-after-configuring-ssl/21494/2 "2014-10-25T08:17:58Z")

</div>

Looks like a bug in your container config

---

<div class="post-metadata">

### Author: ![akraut](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/akraut/32/108147_2.png) [@akraut](https://meta.discourse.org/u/akraut)
#### Post date: [10월 26, 2014, 12:17오전 UTC](https://meta.discourse.org/t/failing-to-bootstrap-after-configuring-ssl/21494/3 "2014-10-26T00:17:32Z")

</div>

This morning I reverted my container config to the Pre-SSL config and I’m still having the same issue. Looking at that second snippet, doesn’t it look like a bug within discourse-plugin-permalink?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [10월 26, 2014, 2:25오전 UTC](https://meta.discourse.org/t/failing-to-bootstrap-after-configuring-ssl/21494/4 "2014-10-26T02:25:02Z")

</div>

I can’t help debugging this without seeing the container definition

It looks like a typo in the hooks section
