Postgres error “invalid value for parameter ”TimeZone“: ”UTC“”

前端 未结 15 643
甜味超标
甜味超标 2021-02-01 00:26
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         


        
相关标签:
15条回答
  • 2021-02-01 00:54

    I had the same problem using the Postgres.app from Heroku. Rebooting my Mac solved it.

    0 讨论(0)
  • 2021-02-01 00:54

    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

    0 讨论(0)
  • 2021-02-01 00:56

    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.

    0 讨论(0)
提交回复
热议问题