# PG::UndefinedTable: ERROR: relation "pg\_range" does not exist

**URL:** https://meta.discourse.org/t/pg-error-relation-pg-range-does-not-exist/251451
**Category:** Development
**Created:** [January 11, 2023, 6:34pm UTC](https://meta.discourse.org/t/pg-error-relation-pg-range-does-not-exist/251451 "2023-01-11T18:34:01Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![joecooldoo](https://avatars.discourse-cdn.com/v4/letter/j/7ab992/32.png) [@joecooldoo](https://meta.discourse.org/u/joecooldoo)
#### Post date: [January 11, 2023, 9:47pm UTC](https://meta.discourse.org/t/pg-error-relation-pg-range-does-not-exist/251451/9 "2023-01-11T21:47:40Z")

</div>

So I descided to follow this guide:

> [@Install Discourse for development using Docker](https://meta.discourse.org/t/install-discourse-for-development-using-docker/102009):
>
> Developing using Docker Since Discourse runs in Docker, you should be able to run Discourse directly from your source directory using a Discourse development container. white_check_mark Pros: No need to install any system dependencies, no configuration needed at all for setting up a development environment quickly. x Cons: Will be slightly slower than the native dev environment on Ubuntu, and much slower than a native install on MacOS. See also [Developing Discourse using a Dev Container](https://meta.discourse.org/t/developing-discourse-using-a-dev-container/336366) …

I get this error after the “migrating database”  
message:

```plaintext
Migrating database...
rake aborted!
Discourse::Utils::CommandError: /src/lib/discourse.rb:134:in `exec': mkdir: cannot create directory ‘/src/public/plugins/’: Permission denied
/src/lib/discourse.rb:168:in `execute_command'
/src/lib/discourse.rb:134:in `exec'
/src/lib/discourse.rb:30:in `execute_command'
/src/lib/plugin/instance.rb:727:in `activate!'
/src/lib/discourse.rb:337:in `block in activate_plugins!'
/src/lib/discourse.rb:334:in `each'
/src/lib/discourse.rb:334:in `activate_plugins!'
/src/config/application.rb:216:in `block in <class:Application>'
/src/lib/plugin.rb:6:in `initialization_guard'
/src/config/application.rb:216:in `<class:Application>'
/src/config/application.rb:75:in `<module:Discourse>'
/src/config/application.rb:74:in `<main>'
/home/discourse/.bundle/gems/ruby/3.1.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
/home/discourse/.bundle/gems/ruby/3.1.0/gems/bootsnap-1.15.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
/src/Rakefile:7:in `<main>'
(See full trace by running task with --trace)

```

---

_[View the full topic](https://meta.discourse.org/t/pg-error-relation-pg-range-does-not-exist/251451)._
