# Error after cleaning tmp folder

**URL:** https://meta.discourse.org/t/error-after-cleaning-tmp-folder/95205
**Category:** Development
**Created:** [August 20, 2018, 3:52pm UTC](https://meta.discourse.org/t/error-after-cleaning-tmp-folder/95205 "2018-08-20T15:52:46Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![bekircem](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bekircem/32/44582_2.png) [@bekircem](https://meta.discourse.org/u/bekircem)
#### Post date: [August 20, 2018, 3:52pm UTC](https://meta.discourse.org/t/error-after-cleaning-tmp-folder/95205/1 "2018-08-20T15:52:46Z")

</div>

Hi,

I installed Discourse development environment with official guide on my MacOS. I changed plugin file and it warned me for “remove the TMP folder”. I cleaned tmp folder in Discourse and after that when i use that command Discourse doesn’t work: `bundle exec rails server`

 ![image](https://global.discourse-cdn.com/meta/original/3X/8/4/8450aba59cedf5f06c5c64e552184afc28e228cb.png)

Any idea?

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [August 20, 2018, 3:57pm UTC](https://meta.discourse.org/t/error-after-cleaning-tmp-folder/95205/2 "2018-08-20T15:57:04Z")

</div>

This error means rails can’t talk to your postgresql server. Is your postgresql server running?

---

<div class="post-metadata">

### Author: ![bekircem](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bekircem/32/44582_2.png) [@bekircem](https://meta.discourse.org/u/bekircem)
#### Post date: [August 20, 2018, 3:57pm UTC](https://meta.discourse.org/t/error-after-cleaning-tmp-folder/95205/3 "2018-08-20T15:57:46Z")

</div>

How i can check it? It worked before removing the tmp folder.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [August 20, 2018, 4:00pm UTC](https://meta.discourse.org/t/error-after-cleaning-tmp-folder/95205/4 "2018-08-20T16:00:49Z")

</div>

> [@bekircem](#):
>
> How i can check it?

Depends on how you installed it.

> [@bekircem](#):
>
> It worked before removing the tmp folder.

I’m guessing you removed `/tmp/` instead of `tmp/`? That’s kinda baaad…

---

<div class="post-metadata">

### Author: ![bekircem](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bekircem/32/44582_2.png) [@bekircem](https://meta.discourse.org/u/bekircem)
#### Post date: [August 20, 2018, 4:03pm UTC](https://meta.discourse.org/t/error-after-cleaning-tmp-folder/95205/5 "2018-08-20T16:03:20Z")

</div>

I installed with that guide:

> [@Install Discourse on macOS for development](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-macos-for-development/15772):
>
> warning This guide covers installation instructions for a macOS development environment, for production guides see: [Install Discourse in production with the official supported instructions](https://meta.discourse.org/t/how-to-install-discourse-in-production/142537) So you want to set up Discourse on macOS to hack on and develop with? We’ll assume that you don’t have Ruby/Rails/Postgres/Redis installed on your Mac. Let’s begin rocket ! Install Discourse Dependencies You will need the following packages on your system: [Git](http://git-scm.com/)[rbenv](https://github.com/sstephenson/rbenv) or [asdf](https://asdf-vm.com/guide/getting-started.html)[ruby-build](https://github.com/sstephenson/ruby-build)[Ruby](https://www.ruby-lang.org/) (latest s…

I cleaned up files and folders in TMP folder. So i cleaned` tmp/?` :slight_smile: But my operating system shows hidden files and folders. I must have deleted the hidden files and folders. Is it problem?

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [August 20, 2018, 4:06pm UTC](https://meta.discourse.org/t/error-after-cleaning-tmp-folder/95205/6 "2018-08-20T16:06:04Z")

</div>

Here’s how to stop/start services with Homebrew

> **[Starting and stopping background services with Homebrew](https://thoughtbot.com/blog/starting-and-stopping-background-services-with-homebrew)**
>
> Don’t fiddle with launctl when there’s a better way.

---

<div class="post-metadata">

### Author: ![bekircem](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bekircem/32/44582_2.png) [@bekircem](https://meta.discourse.org/u/bekircem)
#### Post date: [August 20, 2018, 4:09pm UTC](https://meta.discourse.org/t/error-after-cleaning-tmp-folder/95205/7 "2018-08-20T16:09:48Z")

</div>

Do i start postgresql?

---

<div class="post-metadata">

### Author: ![bekircem](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bekircem/32/44582_2.png) [@bekircem](https://meta.discourse.org/u/bekircem)
#### Post date: [August 20, 2018, 4:14pm UTC](https://meta.discourse.org/t/error-after-cleaning-tmp-folder/95205/8 "2018-08-20T16:14:57Z")

</div>

I restarted postgresql, but it still did not work.

 ![image](https://global.discourse-cdn.com/meta/original/3X/5/e/5e9e7b5f6873c9c77c86721e25516a6de231efe4.png)

---

<div class="post-metadata">

### Author: ![bekircem](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bekircem/32/44582_2.png) [@bekircem](https://meta.discourse.org/u/bekircem)
#### Post date: [August 20, 2018, 9:05pm UTC](https://meta.discourse.org/t/error-after-cleaning-tmp-folder/95205/9 "2018-08-20T21:05:20Z")

</div>

This works for me.

```
rm /usr/local/var/postgres/postmaster.pid

```

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [September 19, 2018, 9:05pm UTC](https://meta.discourse.org/t/error-after-cleaning-tmp-folder/95205/10 "2018-09-19T21:05:37Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
