Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unexpected inconsistent hasura #495

Open
avenbreaks opened this issue Nov 5, 2022 · 3 comments
Open

unexpected inconsistent hasura #495

avenbreaks opened this issue Nov 5, 2022 · 3 comments
Assignees

Comments

@avenbreaks
Copy link

#476
hello, i got error, how to fix inconsistent

unecpected source with name bdjuno inconsistent

root@cosmos-blockchain-client:~/bdjuno/hasura# hasura metadata apply --endpoint http://51.159.83.41:8080 --admin-secret pass
FATA[0000] error applying metadata
{
"code": "unexpected",
"error": "source with name "bdjuno" is inconsistent",
"path": "$.args"
}

image

@avenbreaks
Copy link
Author

hello @RiccardoM how to fix inconsistent

NAME   TYPE               DESCRIPTION                                            REASON                          

  block  object_relation    {"comment":null,"name":"block","source":"bdjuno","...  Inconsistent object: in         
                                                                                   table "proposal_vote": in       
                                                                                   relationship "block": no        
                                                                                   foreign constraint exists on    
                                                                                   the given column(s)             
  N/A    select_permission  {"comment":null,"permission":{"allow_aggregations"...  Inconsistent object: in         
                                                                                   table "validator_status":       
                                                                                   in permission for role          
                                                                                   "anonymous": column             
                                                                                   "tombstoned" does not exist     

image

@huichiaotsou
Copy link
Contributor

hey @avenbreaks, which bdjuno version you are using? seems like it's the database schema being not consistent with the hasura metadata that you're applying :D

You may want to kill the current hasura docker container and re-run a new one (where the new hasura container will read the current DB schema) and then apply the hasura metadata again(note that this hasura metadata should be at the same bdjuno version of your db shema).

@avenbreaks
Copy link
Author

i am running bdjuno as it is in the documentation.

https://docs.bigdipper.live/cosmos-based/parser/setup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants