# Rake api\_key:get broken

**URL:** https://meta.discourse.org/t/rake-api-key-get-broken/132948
**Category:** Support
**Created:** [November 8, 2019, 5:37pm UTC](https://meta.discourse.org/t/rake-api-key-get-broken/132948 "2019-11-08T17:37:38Z")
**Posts on this page:** 1
**Showing post:** 1

<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: [November 8, 2019, 5:37pm UTC](https://meta.discourse.org/t/rake-api-key-get-broken/132948/1 "2019-11-08T17:37:38Z")

</div>

Well, an install failed (my install script gets an API key so that it can set the `mailgun_api_key`). I checked too on my local dev instance.

```plaintext
$ rake api_key:get
rake aborted!
NoMethodError: undefined method `create_master_key' for ApiKey (call 'ApiKey.connection' to establish a connection):Class
Did you mean? create_with
/home/pfaffman/src/discourse/lib/tasks/api.rake:5:in `block in <main>'
Tasks: TOP => api_key:get
(See full trace by running task with --trace)

```

It’s [this commit](https://github.com/discourse/discourse/commit/52c5cf33f87990a5828a34f68ff9df833cdc4a15#diff-4ae3b8df24c11943c19750fd06a1528d). @david

Here’s PR: [FIX: create\_master\_key got renamed by pfaffman · Pull Request #8325 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/8325)

---

_[View the full topic](https://meta.discourse.org/t/rake-api-key-get-broken/132948)._
