django-tenant-schemas icon indicating copy to clipboard operation
django-tenant-schemas copied to clipboard

Permission denied for database

Open atalaybaysal opened this issue 6 years ago • 4 comments

Created command for create public tenant and it created it without problem. Then i try create a customer tenant via endpoint and i get following error

An error occurred while resolving field PublicMutation.createAccount Traceback (most recent call last): File "/Users/Atalay/.pyenv/versions/3.6.4/lib/python3.6/site-packages/django/db/backends/utils.py", line 85, in _execute return self.cursor.execute(sql, params) psycopg2.ProgrammingError: permission denied for database hrsoftware

Using python 3.6.4, django 2.0.2 and postgresql 9.6

atalaybaysal avatar Apr 04 '18 10:04 atalaybaysal

The same error for me: python 3.4, django 1.11.7 and postgresql 9.4.12

Dima216 avatar May 22 '18 09:05 Dima216

Public tenant uses the default public schema. Make sure your database user has the CREATE SCHEMA rights to create additional tenant schemas.

pvandegeer avatar May 22 '18 09:05 pvandegeer

Thanks!

Dima216 avatar May 22 '18 09:05 Dima216

Thanks!

bonfimjustino7 avatar Jun 03 '23 19:06 bonfimjustino7