gunicorn[1562]: 2025-08-12 10:45:42,455 arches.app.views.tile ERROR Unable to save. [Tile id: ] [Exception message: Multiple Tiles for Cardinality-1 Nodegroup | nodegroupid: b528b064-5189-11ea-a3f7-02e7594ce0a0, resourceinstanceid: 44781aee-6c97-465b-ae1e-98233dade83d, parenttileid: root
gunicorn[1562]: CONTEXT: PL/pgSQL function __arches_check_excess_tiles_trigger_function() line 9 at RAISE
gunicorn[1562]: ] [Exception trace: Traceback (most recent call last):
gunicorn[1562]: File "/opt/arches/ENV/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
gunicorn[1562]: return self.cursor.execute(sql, params)
gunicorn[1562]: psycopg2.errors.CardinalityViolation: Multiple Tiles for Cardinality-1 Nodegroup | nodegroupid: b528b064-5189-11ea-a3f7-02e7594ce0a0, resourceinstanceid: 44781aee-6c97-465b-ae1e-98233dade83d, parenttileid: root
gunicorn[1562]: CONTEXT: PL/pgSQL function __arches_check_excess_tiles_trigger_function() line 9 at RAISE
gunicorn[1562]: The above exception was the direct cause of the following exception:
gunicorn[1562]: Traceback (most recent call last):
gunicorn[1562]: File "/opt/arches/ENV/lib/python3.9/site-packages/arches/app/views/tile.py", line 143, in post
gunicorn[1562]: tile.save(request=request, transaction_id=transaction_id)
gunicorn[1562]: File "/opt/arches/ENV/lib/python3.9/site-packages/arches/app/models/tile.py", line 428, in save
gunicorn[1562]: super(Tile, self).save(*args, **kwargs)
gunicorn[1562]: File "/opt/arches/ENV/lib/python3.9/site-packages/arches/app/models/models.py", line 1084, in save
gunicorn[1562]: super(TileModel, self).save(*args, **kwargs) # Call the "real" save() method.
gunicorn[1562]: File "/opt/arches/ENV/lib/python3.9/site-packages/django/db/models/base.py", line 739, in save
gunicorn[1562]: self.save_base(using=using, force_insert=force_insert,
gunicorn[1562]: File "/opt/arches/ENV/lib/python3.9/site-packages/django/db/models/base.py", line 776, in save_base
gunicorn[1562]: updated = self._save_table(
gunicorn[1562]: File "/opt/arches/ENV/lib/python3.9/site-packages/django/db/models/base.py", line 881, in _save_table
gunicorn[1562]: results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw)
gunicorn[1562]: File "/opt/arches/ENV/lib/python3.9/site-packages/django/db/models/base.py", line 919, in _do_insert
gunicorn[1562]: return manager._insert(
gunicorn[1562]: File "/opt/arches/ENV/lib/python3.9/site-packages/django/db/models/manager.py", line 85, in manager_method
gunicorn[1562]: return getattr(self.get_queryset(), name)(*args, **kwargs)
gunicorn[1562]: File "/opt/arches/ENV/lib/python3.9/site-packages/django/db/models/query.py", line 1270, in _insert
gunicorn[1562]: return query.get_compiler(using=using).execute_sql(returning_fields)
gunicorn[1562]: File "/opt/arches/ENV/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1416, in execute_sql
gunicorn[1562]: cursor.execute(sql, params)
gunicorn[1562]: File "/opt/arches/ENV/lib/python3.9/site-packages/django/db/backends/utils.py", line 98, in execute
gunicorn[1562]: return super().execute(sql, params)
gunicorn[1562]: File "/opt/arches/ENV/lib/python3.9/site-packages/django/db/backends/utils.py", line 66, in execute
gunicorn[1562]: return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
gunicorn[1562]: File "/opt/arches/ENV/lib/python3.9/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
gunicorn[1562]: return executor(sql, params, many, context)
gunicorn[1562]: File "/opt/arches/ENV/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
gunicorn[1562]: return self.cursor.execute(sql, params)
gunicorn[1562]: File "/opt/arches/ENV/lib/python3.9/site-packages/django/db/utils.py", line 90, in __exit__
gunicorn[1562]: raise dj_exc_value.with_traceback(traceback) from exc_value
gunicorn[1562]: File "/opt/arches/ENV/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
gunicorn[1562]: return self.cursor.execute(sql, params)
gunicorn[1562]: django.db.utils.ProgrammingError: Multiple Tiles for Cardinality-1 Nodegroup | nodegroupid: b528b064-5189-11ea-a3f7-02e7594ce0a0, resourceinstanceid: 44781aee-6c97-465b-ae1e-98233dade83d, parenttileid: root
gunicorn[1562]: CONTEXT: PL/pgSQL function __arches_check_excess_tiles_trigger_function() line 9 at RAISE
gunicorn[1562]: ]
gunicorn[1562]: Internal Server Error: /tile
@ItIsJordan can you take a look at the below stacktrace and see if there's anything we can do with better error handling?
Details
The corresponding Arches error was:
Details