cartodb icon indicating copy to clipboard operation
cartodb copied to clipboard

Create group fails

Open sabman opened this issue 5 years ago • 7 comments

Context

Versions:

cartodb: 4.33.0 Postgres 12 PostGIS 3 cartodb-postgresql 0.35

When trying to create a group an exception is thrown with the follow error:

{"error": {
"spiexceptions.ExternalRoutineException: spiexceptions.ExternalRoutineException: spiexceptions.ExternalRoutineException: TypeError: expected bytes-like object, not str"} }

Screenshot:

Sharing_Indicator

Steps to Reproduce

Please break down here below all the needed steps to reproduce the issue

Test via rails console

irb(main):005:0>  group = @organization.create_group(display_name)
[pool] Creating a new connection for localhost:cartodb_user_e6d6f832-7528-4261-96f6-a28e4f78dd8a_db:5432:cartodb_user_e6d6f832-7528-4261-96f6-a28e4f78dd8a:ar (1)
ActiveRecord::StatementInvalid: PG::ExternalRoutineException: ERROR:  spiexceptions.ExternalRoutineException: spiexceptions.ExternalRoutineException: spiexceptions.ExternalRoutineException: TypeError: expected bytes-like object, not str
CONTEXT:  Traceback (most recent call last):
  PL/Python function "_cdb_group_creategroup_api", line 7, in <module>
    plpy.execute(query)
PL/Python function "_cdb_group_creategroup_api"
SQL statement "SELECT cartodb._CDB_Group_CreateGroup_API(group_name, group_role)"
PL/pgSQL function cdb_group_creategroup(text) line 7 at PERFORM
:  select cartodb.CDB_Group_CreateGroup('thedudes')
	from /var/lib/gems/2.4.0/gems/activerecord-4.2.11/lib/active_record/connection_adapters/postgresql/database_statements.rb:155:in `async_exec'

sabman avatar Feb 08 '20 21:02 sabman

@CartoDB/rt-managers

gonzaloriestra avatar Feb 10 '20 07:02 gonzaloriestra

@gonzaloriestra unfortunately RT doesn't provide support for open source installations. @sabman you might want to try posting your issue in CARTO's Google Group, support for Open Source happens there: https://groups.google.com/forum/#!forum/cartodb

ztephm avatar Feb 10 '20 17:02 ztephm

This is a bug report not a support ticket with version numbers close to bleeding edge. If it's not a bug would you care to elaborate on your message? An explanation on how you reached that conclusion would be useful.

sabman avatar Feb 10 '20 18:02 sabman

@sabman sorry, but in carto.com it's working fine and we are not able to reproduce it, so it's probably an installation/configuration issue.

gonzaloriestra avatar Feb 11 '20 07:02 gonzaloriestra

I think is a bug because it happens also to me on more than one instance! always same errors. So or it's a bug or there is some error in the guide to install carto.

nicoali avatar Mar 25 '20 10:03 nicoali

Ok, I'll add this to our backlog to have a look when we can. Thanks!

gonzaloriestra avatar Mar 30 '20 08:03 gonzaloriestra

ClubHouse story: https://app.clubhouse.io/cartoteam/story/83570/create-group-fails

gonzaloriestra avatar Jun 23 '20 11:06 gonzaloriestra