﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
24838	A warning is logged when running migrate with PostGIS on Heroku	Anna Schneider	nobody	"When upgrading to Django 1.8.1 with PostGIS on Heroku last week, I ran into a similar issue to tickets #24797, #24791, and #24795. So I was excited to see the fix in the 1.8.2 release!

But running 1.8.2 now, I'm still seeing a variant of the problem.

{{{heroku run ./manage.py migrate}}} and {{{heroku run ./manage.py shell}}} work and yield expected results, no errors raised. But a ""permission denied"" message is present in the logs:

{{{
$ heroku logs
2015-05-21T19:03:46.210746+00:00 heroku[api]: Starting process with command `./manage.py migrate` by foo@bar.com
2015-05-21T19:03:57.695048+00:00 heroku[run.9837]: Awaiting client
2015-05-21T19:03:57.736396+00:00 heroku[run.9837]: Starting process with command `./manage.py migrate`
2015-05-21T19:03:58.067165+00:00 heroku[run.9837]: State changed from starting to up
2015-05-21T19:04:02Z app[postgres.2450]: [DATABASE] permission denied for database ""postgres""
Detail: User does not have CONNECT privilege.
2015-05-21T19:04:02Z app[postgres.2454]: [DATABASE] extension ""postgis"" already exists, skipping
2015-05-21T19:04:02Z app[postgres.2454]: [DATABASE] statement: CREATE EXTENSION IF NOT EXISTS postgis
2015-05-21T19:04:05Z app[postgres.2452]: [DATABASE] could not receive data from client: Connection reset by peer
2015-05-21T19:04:06.110871+00:00 heroku[run.9837]: State changed from up to complete
2015-05-21T19:04:06.094695+00:00 heroku[run.9837]: Process exited with status 0
}}}

At this point, is it a Django or Heroku issue? Heroku was unhelpful when I raised the issue with them previously, but I'd happily try again if the Django community deems this resolved on their side."	Uncategorized	closed	Uncategorized	1.8	Normal	invalid			Unreviewed	0	0	0	0	0	0
