Monthly Archives: October 2012

Postgres down in Flask

I'm using Flask and Flask-SqlAlchemy for a personal project. One of the recent ubuntu upgrades had a change in postgres.conf

Suddenly my integration between flask-openid / flask-login or just flask in general wasn't working at all.

After a couple of debugging hours, I found the following link: https://github.com/celery/celery/issues/634

Basically they added as a default in postgres.conf

ssl = true

Since I don't have ssl I didn't knew what hit my box

I can't find nothing directly related in the changelog: http://changelogs.ubuntu.com/changelogs/pool/main/p/postgresql-9.1/postgresql-9.1_9.1.8-0ubuntu12.10/changelog that mentions why that setting is forced to true, but either way, if you are using Postgres, and celery or flask, you will notice that the application will start to crash and it will start throwing , using sqlalchemy, operational errors exceptions.