Open kidwellj opened 7 years ago
I spent about 3 days on this problem. After all, I am not sure whether executing assign_org_owner_role is needed at all. It looks like the most important was to run the service as threaded with thin start. But if it is not sufficient, then edit cartodb/lib/tasks/db_maintenance.rake, find the function assign_org_owner_role and replace the setup_owner_permissions with grant_admin_permissions. Then it should start working.
When I try to create a new group, Carto returns the following error:
PG::Error: ERROR: spiexceptions.InternalError: plpy.Error: Fatal Group API error: [Errno -2] Name or service not known
Following the docs (and a tip in the carto google group discussion), there is an instruction towards "Group support for organizations" under the News for 3.11.1 which suggests that the following steps should be taken:
These are clearly directed at a development configuration (which this is not, quite), so it's a matter of parsing out what steps haven't been integrated above!
I've tried a modified form of steps 2-4 above:
nano app_config.yml RAILS_ENV=production bundle exec rake cartodb:db:configure_extension_org_metadata_api_endpoint RAILS_ENV=production bundle exec rake cartodb:db:assign_org_owner_role
The last of these returns an error:
...and then when I retry group creation I get a new error in the browser:
spiexceptions.ExternalRoutineException: plpy.Error: Fatal Group API error:
The production log file gives me:
Now I'm stuck.