# Advanced Developer Install - rake db:create db:migrate bug

**URL:** https://meta.discourse.org/t/advanced-developer-install-rake-db-create-db-migrate-bug/122161
**Category:** Self-hosting
**Tags:** unsupported-install
**Created:** [July 5, 2019, 8:41am UTC](https://meta.discourse.org/t/advanced-developer-install-rake-db-create-db-migrate-bug/122161 "2019-07-05T08:41:12Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Neptun](https://avatars.discourse-cdn.com/v4/letter/n/b4bc9f/32.png) [@Neptun](https://meta.discourse.org/u/Neptun)
#### Post date: [July 5, 2019, 8:41am UTC](https://meta.discourse.org/t/advanced-developer-install-rake-db-create-db-migrate-bug/122161/1 "2019-07-05T08:41:12Z")

</div>

Dear all,

i hope somebody is able to help me with the bug what i have at my install try as follows:

Debian 10  
php 7.3.6  
nginx

i use this guide:

[https://github.com/discourse/discourse/blob/master/docs/DEVELOPER-ADVANCED.md](https://github.com/discourse/discourse/blob/master/docs/DEVELOPER-ADVANCED.md)

But always at the db migration i get the following error - i have also tried diff. releases, always same problem:

```plaintext
/var/www/discourse# RAILS_ENV=production bundle exec rake db:migrate
rake aborted!NoMethodError: undefined method `keys' for nil:NilClass/var/www/discourse/app/models/global_setting.rb:57:in `load_defaults'/var/www/discourse/config/application.rb:32:in `<top (required)>'/var/www/discourse/Rakefile:5:in `require'/var/www/discourse/Rakefile:5:in `<top (required)>'/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'/var/www/discourse/vendor/bundle/ruby/2.6.0/bin/ruby_executable_hooks:24:in `eval'/var/www/discourse/vendor/bundle/ruby/2.6.0/bin/ruby_executable_hooks:24:in `<main>'

```

I had also searched for different guides or anything else at the web - but nothing found how to get this error fixed or how i could continue with the install.

I have also tried the docker install way - which was working at the setup - BUT it is not compatible with my used ISPConfig - discourse at subdomain get partial broken & after admin account registration, the wizard does not continue & always blank page anymore

Thanks in advance & kind regards,

Mat

---

<div class="post-metadata">

### Author: ![rishabh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rishabh/32/179446_2.png) [@rishabh](https://meta.discourse.org/u/rishabh)
#### Post date: [July 5, 2019, 9:09am UTC](https://meta.discourse.org/t/advanced-developer-install-rake-db-create-db-migrate-bug/122161/2 "2019-07-05T09:09:48Z")

</div>

That guide is meant for setting up development environments…and not production servers. For servers, we only officially support our Docker guides: [discourse/docs/INSTALL.md at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/docs/INSTALL.md)

> [@Neptun](#):
>
> RAILS\_ENV=production

I don’t think it is reliable or even possible to install Discourse on a prod server using a guide meant for development purposes.

* * *

> [@](#):
>
> #### Why do you only officially support Docker?
> 
> Hosting Rails applications is complicated. Even if you already have Postgres, Redis and Ruby installed on your server, you still need to worry about running and monitoring your Sidekiq and Rails processes, as well as configuring Nginx. With Docker, our fully optimized Discourse configuration is available to you in a simple container, along with a web-based GUI that makes upgrading to new versions of Discourse as easy as clicking a button.
> 
> From [https://github.com/discourse/discourse/blob/master/docs/INSTALL.md.](https://github.com/discourse/discourse/blob/master/docs/INSTALL.md.)

Maybe you could try to work around the ISP problem or try hosting Discourse with an external provider?

---

<div class="post-metadata">

### Author: ![Neptun](https://avatars.discourse-cdn.com/v4/letter/n/b4bc9f/32.png) [@Neptun](https://meta.discourse.org/u/Neptun)
#### Post date: [July 5, 2019, 9:43am UTC](https://meta.discourse.org/t/advanced-developer-install-rake-db-create-db-migrate-bug/122161/3 "2019-07-05T09:43:53Z")

</div>

Thanks for fast reply

About the “guide” was just to give an idea - as mentioned i have tried with the docker - but no chance to get it working correctly.  
I have set up the reverse proxy and everything.

Setup was ok without issue  
**BUT** , Discourse get broken in style as well after admin registration only blank page & the wizard don’t start or continue - i have checked in database as well in the ruby app - admin account is/was active.

IspConfig tells me this is not related to their panel, it is an issue with Discourse - as well docker is not supported by IspConfig

I think the issue is regarding nginx vhost settings - but i don’t know which part i need to insert into the IspConfig control panel (similar as it is with other for example plesk - i have also read the postings here and tried different things)

Therefore i tried to install it without docker, what is possible for example by this guide: [Install Discourse Forum on Ubuntu 18.04 Without Docker](https://www.linuxbabe.com/ubuntu/install-discourse-ubuntu-18-04-server-without-docker)

There will be nothing special done as it is similar done by the default setup via docker

_The assistance what i need is_ - what is the error what happens at db miration as mentioned above?

I cannot find anything in the web about it - and i would like to use discourse for my wordpress website what would be the perfect integration for comments & further support

If you have an idea how to get discourse working by docker & IspConfig - also perfect - it is my own server i can use in every way

The only issue in total is - i MUST install IspConfig before Discourse - because IspConfig needs the clean server for 100% clean working - first discourse with docker and then try to get IspConfig and the rest inside - not possible

Thanks in advance

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [July 5, 2019, 12:54pm UTC](https://meta.discourse.org/t/advanced-developer-install-rake-db-create-db-migrate-bug/122161/4 "2019-07-05T12:54:12Z")

</div>

See [Run other websites on the same machine as Discourse - #281](https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247/281)

It will be difficult and perhaps impossible to get it to work with ispconfig. If you want to run discourse with ispconfig you should ask ispconfig for help.

---

<div class="post-metadata">

### Author: ![Neptun](https://avatars.discourse-cdn.com/v4/letter/n/b4bc9f/32.png) [@Neptun](https://meta.discourse.org/u/Neptun)
#### Post date: [July 5, 2019, 2:36pm UTC](https://meta.discourse.org/t/advanced-developer-install-rake-db-create-db-migrate-bug/122161/5 "2019-07-05T14:36:33Z")

</div>

i have tried this from the posting " [Running other websites on the same machine as Discourse](https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247/281)" to get it working with the docker - but after x hours, no success

my last idea is now without the docker, because docker not supported by ispconfig - but i need here assistance reg. the error message:

> /var/www/discourse# RAILS\_ENV=production bundle exec rake db:migrate

**rake aborted!NoMethodError: undefined method `keys’ for nil:NilClass**

/var/www/discourse/app/models/global\_setting.rb:57:in `load_defaults'/var/www/discourse/config/application.rb:32:in `\<top (required)\>‘/var/www/discourse/Rakefile:5:in `require'/var/www/discourse/Rakefile:5:in `\<top (required)\>’/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'/var/www/discourse/vendor/bundle/ruby/2.6.0/bin/ruby_executable_hooks:24:in `eval’/var/www/discourse/vendor/bundle/ruby/2.6.0/bin/ruby\_executable\_hooks:24:in `’

I have tried the 2.4. beta, which will be also installed with docker and different other releases from github

Thanks in advance

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [July 5, 2019, 2:40pm UTC](https://meta.discourse.org/t/advanced-developer-install-rake-db-create-db-migrate-bug/122161/6 "2019-07-05T14:40:59Z")

</div>

> [@Neptun](#):
>
> my last idea is now without the docker, because docker not supported by ispconfig

Ispconfig is not supported by the Discourse community.

No good can come from running a development installation for a production site. For $5/month you can just get a digital ocean droplet (or similar) and it will work.
