Jupitor$ bundle exec rake db:create db:migrate
APP_development already exists
rake aborted!
PG::Error: ERROR: invalid value for parameter \"TimeZone\": \"UTC\"
: SET ti
I had the same problem using the Postgres.app from Heroku. Rebooting my Mac solved it.
What actually happened is that you upgraded the postgresql server and cleaned-up your old folders but you haven't restarted your postgresql server. The server searched for the timezones files in the deleted dir
brew services restart postgresql
did not fix for me. I'm sure rebooting would've worked, but I wanted to figure out the cause of the issue.
I believe the issue was caused for me because of two conflicting versions of postgresql
.
I already had postgresql
running with brew services, and then installed postgresql@11
which left postgresql
running in brew services even after I uninstalled postgresql
.
I fixed this by stopping the postgresql
brew service, even though it wasn't listed in brew services list
.
Steps to reproduce:
$ brew install postgresql
$ brew services start postgresql
$ brew install postgresql@11
$ brew uninstall postgresql
$ brew services start postgresql@11
How to fix:
$ brew services stop postgresql
Opened an issue on Homebrew requesting that a formula's service should automatically be stopped upon uninstall.