You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
Encountered a duplicate index creation error while using js-ceramic . The error occurs when creating a composite, indicating that an index already exists. The issue arises even on a fresh local Ceramic node with no previous models loaded.
Steps to Reproduce:
Set up a fresh local Ceramic node.
Execute the following command to create a composite:
npx composedb composite:compile
Observe the error indicating that the index already exists.
Observed Error Message:
Error: HTTP request to 'http://localhost:7007/api/v0/admin/modelData' failed with status 'Internal Server Error': {"error":"CREATE INDEX idx_v2jh5luud0_chain ON kjzl6hvfrbw6c5bmbxt6exlnu4kggb6tmoijnmvtcq0mjjvk4jhobv2jh5luud0 (json_extract(stream_content, '$.chainName')) - SQLITE_ERROR: index idx_v2jh5luud0_chain already exists"}
Analysis:
The error suggests that composedb is attempting to create the same index twice.
This occurs when adding the following lines to the models:
Duplicate index creation due to composedb trying to create indexes with the same name across different models.
Potential issue with handling of circular relations or index naming conflicts within composedb.
Next Steps:
Investigate if the GraphQL schema or composedb configuration has any rules or limitations regarding circular relations or index naming.
Determine if there are any existing indexes that conflict with the new ones being created.
Debug by removing indexes and relations one by one to identify the exact cause.
References:
Diff between the branches indicating the changes that led to the error.
Conversations with team members to isolate the problem.
The text was updated successfully, but these errors were encountered:
ahadjeres
changed the title
Bug Ticket: Duplicate Index Creation Error in js-ceramic without Recon
Bug Ticket: Duplicate Index Creation Error in js-ceramic with ceramic-one
Jul 9, 2024
ahadjeres
changed the title
Bug Ticket: Duplicate Index Creation Error in js-ceramic with ceramic-one
Duplicate Index Creation Error in js-ceramic with ceramic-one
Jul 9, 2024
Summary:
Encountered a duplicate index creation error while using js-ceramic . The error occurs when creating a composite, indicating that an index already exists. The issue arises even on a fresh local Ceramic node with no previous models loaded.
Steps to Reproduce:
Observed Error Message:
Analysis:
composedb
is attempting to create the same index twice.Code Snippet:
Possible Causes:
composedb
trying to create indexes with the same name across different models.composedb
.Next Steps:
composedb
configuration has any rules or limitations regarding circular relations or index naming.References:
The text was updated successfully, but these errors were encountered: