hasura / graphql-engine

Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events.
https://hasura.io
Apache License 2.0
31.17k stars 2.76k forks source link

Failed to build schema-cache because of inconsistent metadata #3381

Closed m0ngr31 closed 4 years ago

m0ngr31 commented 4 years ago

Trying to upgrade from beta6 to beta10, and I get this message when I try to start the docker. I got the same error going to beta9 too.

I'm guessing I need to post my metadata so someone can tell me what the issue is with my config?


{
    "functions": [
        "search_driver_phones"
    ],
    "remote_schemas": [],
    "query_collections": [],
    "allowlist": [],
    "tables": [
        {
            "table": "bol_weights",
            "is_enum": false,
            "object_relationships": [],
            "array_relationships": [],
            "insert_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "check": {},
                        "columns": [
                            "bol_id",
                            "net_weight",
                            "silo",
                            "uuid"
                        ]
                    }
                }
            ],
            "select_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "allow_aggregations": true,
                        "columns": [
                            "bol_id",
                            "net_weight",
                            "silo",
                            "uuid"
                        ],
                        "filter": {}
                    }
                }
            ],
            "update_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "columns": [
                            "bol_id",
                            "net_weight",
                            "silo",
                            "uuid"
                        ],
                        "filter": {}
                    }
                }
            ],
            "delete_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "filter": {}
                    }
                }
            ],
            "event_triggers": [
                {
                    "webhook": "https://my.webhook.server/silos",
                    "headers": [
                        {
                            "value": "MY_AUTH_PASSWORD",
                            "name": "X-HASURA-WEBHOOK-AUTH"
                        }
                    ],
                    "name": "Silo_Updates",
                    "definition": {
                        "insert": {
                            "columns": "*"
                        },
                        "update": {
                            "columns": [
                                "net_weight",
                                "silo"
                            ]
                        },
                        "delete": {
                            "columns": "*"
                        },
                        "enable_manual": true
                    },
                    "retry_conf": {
                        "timeout_sec": 120,
                        "num_retries": 10,
                        "interval_sec": 60
                    }
                }
            ]
        },
        {
            "table": "drivers",
            "is_enum": false,
            "object_relationships": [],
            "array_relationships": [
                {
                    "using": {
                        "foreign_key_constraint_on": {
                            "column": "driver_uuid",
                            "table": "loads"
                        }
                    },
                    "name": "loads",
                    "comment": null
                },
                {
                    "using": {
                        "foreign_key_constraint_on": {
                            "column": "driver_uuid",
                            "table": "driver_permits"
                        }
                    },
                    "name": "permits",
                    "comment": null
                },
                {
                    "using": {
                        "foreign_key_constraint_on": {
                            "column": "driver_uuid",
                            "table": "driver_trainings"
                        }
                    },
                    "name": "trainings",
                    "comment": null
                }
            ],
            "insert_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "check": {},
                        "columns": [
                            "base_rate",
                            "contractor",
                            "current_load",
                            "dl_expiration",
                            "dl_num",
                            "name",
                            "phone",
                            "uuid"
                        ]
                    }
                }
            ],
            "select_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "allow_aggregations": true,
                        "columns": [
                            "base_rate",
                            "contractor",
                            "current_load",
                            "dl_expiration",
                            "dl_num",
                            "name",
                            "phone",
                            "uuid"
                        ],
                        "filter": {}
                    }
                }
            ],
            "update_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "columns": [
                            "base_rate",
                            "contractor",
                            "current_load",
                            "dl_expiration",
                            "dl_num",
                            "name",
                            "phone",
                            "uuid"
                        ],
                        "filter": {}
                    }
                }
            ],
            "delete_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "filter": {}
                    }
                }
            ],
            "event_triggers": []
        },
        {
            "table": "loads",
            "is_enum": false,
            "object_relationships": [
                {
                    "using": {
                        "foreign_key_constraint_on": "driver_uuid"
                    },
                    "name": "driver",
                    "comment": null
                },
                {
                    "using": {
                        "foreign_key_constraint_on": "job_uuid"
                    },
                    "name": "job",
                    "comment": null
                }
            ],
            "array_relationships": [],
            "insert_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "check": {},
                        "columns": [
                            "product",
                            "gross_pay",
                            "driver_pay",
                            "ticket_num",
                            "pro_num",
                            "pickup_location",
                            "dropoff_location",
                            "draft",
                            "uuid",
                            "job_uuid",
                            "status",
                            "net_weight",
                            "driver_uuid",
                            "truck_uuid",
                            "trailer_uuid",
                            "customer",
                            "date"
                        ]
                    }
                }
            ],
            "select_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "allow_aggregations": true,
                        "columns": [
                            "pickup_location",
                            "driver_pay",
                            "gross_pay",
                            "net_weight",
                            "trailer_uuid",
                            "ticket_num",
                            "driver_uuid",
                            "uuid",
                            "product",
                            "job_uuid",
                            "draft",
                            "customer",
                            "pro_num",
                            "date",
                            "dropoff_location",
                            "truck_uuid",
                            "status"
                        ],
                        "filter": {}
                    }
                }
            ],
            "update_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "columns": [
                            "pickup_location",
                            "driver_pay",
                            "gross_pay",
                            "net_weight",
                            "trailer_uuid",
                            "ticket_num",
                            "driver_uuid",
                            "uuid",
                            "product",
                            "job_uuid",
                            "draft",
                            "customer",
                            "pro_num",
                            "date",
                            "dropoff_location",
                            "truck_uuid",
                            "status"
                        ],
                        "filter": {}
                    }
                }
            ],
            "delete_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "filter": {}
                    }
                }
            ],
            "event_triggers": [
                {
                    "webhook": "https://my.webhook.server/loads",
                    "headers": [
                        {
                            "value": "MY_AUTH_PASSWORD",
                            "name": "X-HASURA-WEBHOOK-AUTH"
                        }
                    ],
                    "name": "Load_Updates",
                    "definition": {
                        "insert": {
                            "columns": "*"
                        },
                        "update": {
                            "columns": [
                                "driver_uuid",
                                "uuid"
                            ]
                        },
                        "enable_manual": false
                    },
                    "retry_conf": {
                        "timeout_sec": 120,
                        "num_retries": 10,
                        "interval_sec": 60
                    }
                }
            ]
        },
        {
            "table": "dispatch_companies",
            "is_enum": false,
            "object_relationships": [],
            "array_relationships": [],
            "insert_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "check": {},
                        "columns": [
                            "name",
                            "address_line_1",
                            "address_line_2",
                            "city",
                            "state",
                            "zip",
                            "phone"
                        ]
                    }
                }
            ],
            "select_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "allow_aggregations": false,
                        "columns": [
                            "phone",
                            "zip",
                            "name",
                            "city",
                            "address_line_2",
                            "address_line_1",
                            "state"
                        ],
                        "filter": {}
                    }
                }
            ],
            "update_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "columns": [
                            "phone",
                            "zip",
                            "name",
                            "city",
                            "address_line_2",
                            "address_line_1",
                            "state"
                        ],
                        "filter": {}
                    }
                }
            ],
            "delete_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "filter": {}
                    }
                }
            ],
            "event_triggers": []
        },
        {
            "table": "externals",
            "is_enum": false,
            "object_relationships": [],
            "array_relationships": [],
            "insert_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "check": {},
                        "columns": [
                            "id",
                            "company",
                            "current_weight",
                            "location",
                            "product",
                            "external_id"
                        ]
                    }
                }
            ],
            "select_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "allow_aggregations": true,
                        "columns": [
                            "company",
                            "current_weight",
                            "external_id",
                            "id",
                            "location",
                            "product"
                        ],
                        "filter": {}
                    }
                }
            ],
            "update_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "columns": [
                            "company",
                            "current_weight",
                            "external_id",
                            "id",
                            "location",
                            "product"
                        ],
                        "filter": {}
                    }
                }
            ],
            "delete_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "filter": {}
                    }
                }
            ],
            "event_triggers": []
        },
        {
            "table": "locations",
            "is_enum": false,
            "object_relationships": [],
            "array_relationships": [],
            "insert_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "check": {},
                        "columns": [
                            "name"
                        ]
                    }
                }
            ],
            "select_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "allow_aggregations": true,
                        "columns": [
                            "name"
                        ],
                        "filter": {}
                    }
                }
            ],
            "update_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "columns": [
                            "name"
                        ],
                        "filter": {}
                    }
                }
            ],
            "delete_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "filter": {}
                    }
                }
            ],
            "event_triggers": []
        },
        {
            "table": "trailers",
            "is_enum": false,
            "object_relationships": [],
            "array_relationships": [],
            "insert_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "check": {},
                        "columns": [
                            "uuid",
                            "trailer_num",
                            "capacity",
                            "license_num",
                            "license_expiration"
                        ]
                    }
                }
            ],
            "select_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "allow_aggregations": true,
                        "columns": [
                            "capacity",
                            "trailer_num",
                            "uuid",
                            "license_expiration",
                            "license_num"
                        ],
                        "filter": {}
                    }
                }
            ],
            "update_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "columns": [
                            "capacity",
                            "trailer_num",
                            "uuid",
                            "license_expiration",
                            "license_num"
                        ],
                        "filter": {}
                    }
                }
            ],
            "delete_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "filter": {}
                    }
                }
            ],
            "event_triggers": []
        },
        {
            "table": "job_product",
            "is_enum": false,
            "object_relationships": [],
            "array_relationships": [],
            "insert_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "check": {},
                        "columns": [
                            "job_uuid",
                            "product",
                            "weight"
                        ]
                    }
                }
            ],
            "select_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "allow_aggregations": true,
                        "columns": [
                            "job_uuid",
                            "product",
                            "weight"
                        ],
                        "filter": {}
                    }
                }
            ],
            "update_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "columns": [
                            "job_uuid",
                            "product",
                            "weight"
                        ],
                        "filter": {}
                    }
                }
            ],
            "delete_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "filter": {}
                    }
                }
            ],
            "event_triggers": []
        },
        {
            "table": "trainings",
            "is_enum": false,
            "object_relationships": [],
            "array_relationships": [],
            "insert_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "check": {},
                        "columns": [
                            "name"
                        ]
                    }
                }
            ],
            "select_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "allow_aggregations": true,
                        "columns": [
                            "name"
                        ],
                        "filter": {}
                    }
                }
            ],
            "update_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "columns": [
                            "name"
                        ],
                        "filter": {}
                    }
                }
            ],
            "delete_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "filter": {}
                    }
                }
            ],
            "event_triggers": []
        },
        {
            "table": "jobs",
            "is_enum": false,
            "object_relationships": [],
            "array_relationships": [
                {
                    "using": {
                        "foreign_key_constraint_on": {
                            "column": "job_uuid",
                            "table": "job_product"
                        }
                    },
                    "name": "products",
                    "comment": null
                },
                {
                    "using": {
                        "foreign_key_constraint_on": {
                            "column": "job_uuid",
                            "table": "loads"
                        }
                    },
                    "name": "loads",
                    "comment": null
                },
                {
                    "using": {
                        "foreign_key_constraint_on": {
                            "column": "job_uuid",
                            "table": "job_silos"
                        }
                    },
                    "name": "silos",
                    "comment": null
                }
            ],
            "insert_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "check": {},
                        "columns": [
                            "location",
                            "average_load",
                            "uuid",
                            "customer",
                            "average_time",
                            "status"
                        ]
                    }
                }
            ],
            "select_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "allow_aggregations": true,
                        "columns": [
                            "status",
                            "uuid",
                            "average_time",
                            "location",
                            "customer",
                            "average_load"
                        ],
                        "filter": {}
                    }
                }
            ],
            "update_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "columns": [
                            "status",
                            "uuid",
                            "average_time",
                            "location",
                            "customer",
                            "average_load"
                        ],
                        "filter": {}
                    }
                }
            ],
            "delete_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "filter": {}
                    }
                }
            ],
            "event_triggers": []
        },
        {
            "table": "bol_updates",
            "is_enum": false,
            "object_relationships": [],
            "array_relationships": [],
            "insert_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "check": {},
                        "columns": [
                            "bol_id",
                            "email",
                            "type",
                            "uuid",
                            "when"
                        ]
                    }
                }
            ],
            "select_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "allow_aggregations": true,
                        "columns": [
                            "bol_id",
                            "email",
                            "type",
                            "uuid",
                            "when"
                        ],
                        "filter": {}
                    }
                }
            ],
            "update_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "columns": [
                            "bol_id",
                            "email",
                            "type",
                            "uuid",
                            "when"
                        ],
                        "filter": {}
                    }
                }
            ],
            "delete_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "filter": {}
                    }
                }
            ],
            "event_triggers": []
        },
        {
            "table": "companies",
            "is_enum": false,
            "object_relationships": [],
            "array_relationships": [],
            "insert_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "check": {},
                        "columns": [
                            "name"
                        ]
                    }
                }
            ],
            "select_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "allow_aggregations": true,
                        "columns": [
                            "name"
                        ],
                        "filter": {}
                    }
                }
            ],
            "update_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "columns": [
                            "name"
                        ],
                        "filter": {}
                    }
                }
            ],
            "delete_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "filter": {}
                    }
                }
            ],
            "event_triggers": []
        },
        {
            "table": "dispatch_locations",
            "is_enum": false,
            "object_relationships": [],
            "array_relationships": [],
            "insert_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "check": {},
                        "columns": [
                            "name"
                        ]
                    }
                }
            ],
            "select_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "allow_aggregations": false,
                        "columns": [
                            "name"
                        ],
                        "filter": {}
                    }
                }
            ],
            "update_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "columns": [
                            "name"
                        ],
                        "filter": {}
                    }
                }
            ],
            "delete_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "filter": {}
                    }
                }
            ],
            "event_triggers": []
        },
        {
            "table": "silos",
            "is_enum": false,
            "object_relationships": [],
            "array_relationships": [],
            "insert_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "check": {},
                        "columns": [
                            "capacity",
                            "current_weight",
                            "feet_down",
                            "height",
                            "percentage_full",
                            "name",
                            "company",
                            "location",
                            "product",
                            "external_id"
                        ]
                    }
                }
            ],
            "select_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "allow_aggregations": true,
                        "columns": [
                            "capacity",
                            "company",
                            "current_weight",
                            "feet_down",
                            "external_id",
                            "height",
                            "location",
                            "name",
                            "percentage_full",
                            "product"
                        ],
                        "filter": {}
                    }
                }
            ],
            "update_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "columns": [
                            "capacity",
                            "company",
                            "current_weight",
                            "feet_down",
                            "external_id",
                            "height",
                            "location",
                            "name",
                            "percentage_full",
                            "product"
                        ],
                        "filter": {}
                    }
                }
            ],
            "delete_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "filter": {}
                    }
                }
            ],
            "event_triggers": []
        },
        {
            "table": "bols",
            "is_enum": false,
            "object_relationships": [],
            "array_relationships": [
                {
                    "using": {
                        "foreign_key_constraint_on": {
                            "column": "bol_id",
                            "table": "bol_updates"
                        }
                    },
                    "name": "updates",
                    "comment": null
                },
                {
                    "using": {
                        "foreign_key_constraint_on": {
                            "column": "bol_id",
                            "table": "bol_weights"
                        }
                    },
                    "name": "weights",
                    "comment": null
                }
            ],
            "insert_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "check": {},
                        "columns": [
                            "bill_of_lading",
                            "carrier",
                            "desired_weight",
                            "driver_name",
                            "invoice_num",
                            "loading_operator",
                            "location",
                            "product",
                            "tare_weight",
                            "id",
                            "date",
                            "po_num",
                            "pick_up_num",
                            "truck_num",
                            "external_id",
                            "draft",
                            "customer",
                            "ex_company_ticket",
                            "ex_company_trans_id",
                            "ex_company_tms",
                            "ex_company_po",
                            "uuid",
                            "ex_company_location"
                        ]
                    }
                }
            ],
            "select_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "allow_aggregations": true,
                        "columns": [
                            "ex_company_ticket",
                            "external_id",
                            "pick_up_num",
                            "ex_company_po",
                            "driver_name",
                            "uuid",
                            "draft",
                            "invoice_num",
                            "loading_operator",
                            "ex_company_trans_id",
                            "location",
                            "ex_company_tms",
                            "product",
                            "ex_company_location",
                            "tare_weight",
                            "truck_num",
                            "date",
                            "customer",
                            "id",
                            "po_num",
                            "desired_weight",
                            "carrier",
                            "bill_of_lading"
                        ],
                        "filter": {}
                    }
                }
            ],
            "update_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "columns": [
                            "ex_company_ticket",
                            "external_id",
                            "pick_up_num",
                            "ex_company_po",
                            "driver_name",
                            "uuid",
                            "draft",
                            "invoice_num",
                            "loading_operator",
                            "ex_company_trans_id",
                            "location",
                            "ex_company_tms",
                            "product",
                            "ex_company_location",
                            "tare_weight",
                            "truck_num",
                            "date",
                            "customer",
                            "id",
                            "po_num",
                            "desired_weight",
                            "carrier",
                            "bill_of_lading"
                        ],
                        "filter": {}
                    }
                }
            ],
            "delete_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "filter": {}
                    }
                }
            ],
            "event_triggers": [
                {
                    "webhook": "https://my.webhook.server/bols",
                    "headers": [
                        {
                            "value": "MY_AUTH_PASSWORD",
                            "name": "X-HASURA-WEBHOOK-AUTH"
                        }
                    ],
                    "name": "BOL_Updates",
                    "definition": {
                        "insert": {
                            "columns": "*"
                        },
                        "update": {
                            "columns": [
                                "uuid",
                                "bill_of_lading",
                                "pick_up_num",
                                "po_num"
                            ]
                        },
                        "enable_manual": false
                    },
                    "retry_conf": {
                        "timeout_sec": 120,
                        "num_retries": 10,
                        "interval_sec": 60
                    }
                }
            ]
        },
        {
            "table": "driver_trainings",
            "is_enum": false,
            "object_relationships": [],
            "array_relationships": [],
            "insert_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "check": {},
                        "columns": [
                            "driver_uuid",
                            "expiration",
                            "name",
                            "uuid"
                        ]
                    }
                }
            ],
            "select_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "allow_aggregations": true,
                        "columns": [
                            "driver_uuid",
                            "expiration",
                            "name",
                            "uuid"
                        ],
                        "filter": {}
                    }
                }
            ],
            "update_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "columns": [
                            "driver_uuid",
                            "expiration",
                            "name",
                            "uuid"
                        ],
                        "filter": {}
                    }
                }
            ],
            "delete_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "filter": {}
                    }
                }
            ],
            "event_triggers": []
        },
        {
            "table": "trucks",
            "is_enum": false,
            "object_relationships": [],
            "array_relationships": [],
            "insert_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "check": {},
                        "columns": [
                            "uuid",
                            "truck_num",
                            "license_num",
                            "license_expiration"
                        ]
                    }
                }
            ],
            "select_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "allow_aggregations": true,
                        "columns": [
                            "license_expiration",
                            "license_num",
                            "truck_num",
                            "uuid"
                        ],
                        "filter": {}
                    }
                }
            ],
            "update_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "columns": [
                            "license_expiration",
                            "license_num",
                            "truck_num",
                            "uuid"
                        ],
                        "filter": {}
                    }
                }
            ],
            "delete_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "filter": {}
                    }
                }
            ],
            "event_triggers": []
        },
        {
            "table": "products",
            "is_enum": false,
            "object_relationships": [],
            "array_relationships": [],
            "insert_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "check": {},
                        "columns": [
                            "name"
                        ]
                    }
                }
            ],
            "select_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "allow_aggregations": true,
                        "columns": [
                            "name"
                        ],
                        "filter": {}
                    }
                }
            ],
            "update_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "columns": [
                            "name"
                        ],
                        "filter": {}
                    }
                }
            ],
            "delete_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "filter": {}
                    }
                }
            ],
            "event_triggers": []
        },
        {
            "table": "driver_permits",
            "is_enum": false,
            "object_relationships": [],
            "array_relationships": [],
            "insert_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "check": {},
                        "columns": [
                            "driver_uuid",
                            "expiration",
                            "name",
                            "uuid"
                        ]
                    }
                }
            ],
            "select_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "allow_aggregations": true,
                        "columns": [
                            "driver_uuid",
                            "expiration",
                            "name",
                            "uuid"
                        ],
                        "filter": {}
                    }
                }
            ],
            "update_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "columns": [
                            "driver_uuid",
                            "expiration",
                            "name",
                            "uuid"
                        ],
                        "filter": {}
                    }
                }
            ],
            "delete_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "filter": {}
                    }
                }
            ],
            "event_triggers": []
        },
        {
            "table": "qs_notifications",
            "is_enum": false,
            "object_relationships": [],
            "array_relationships": [],
            "insert_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "check": {},
                        "columns": [
                            "message",
                            "uuid",
                            "seen",
                            "date"
                        ]
                    }
                }
            ],
            "select_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "allow_aggregations": false,
                        "columns": [
                            "seen",
                            "message",
                            "date",
                            "uuid"
                        ],
                        "filter": {}
                    }
                }
            ],
            "update_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "columns": [
                            "date",
                            "message",
                            "seen",
                            "uuid"
                        ],
                        "filter": {}
                    }
                }
            ],
            "delete_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "filter": {}
                    }
                }
            ],
            "event_triggers": []
        },
        {
            "table": "permits",
            "is_enum": false,
            "object_relationships": [],
            "array_relationships": [],
            "insert_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "check": {},
                        "columns": [
                            "name"
                        ]
                    }
                }
            ],
            "select_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "allow_aggregations": true,
                        "columns": [
                            "name"
                        ],
                        "filter": {}
                    }
                }
            ],
            "update_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "columns": [
                            "name"
                        ],
                        "filter": {}
                    }
                }
            ],
            "delete_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "filter": {}
                    }
                }
            ],
            "event_triggers": []
        },
        {
            "table": "driver_messages",
            "is_enum": false,
            "object_relationships": [],
            "array_relationships": [],
            "insert_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "check": {},
                        "columns": [
                            "title",
                            "body",
                            "uuid",
                            "date"
                        ]
                    }
                }
            ],
            "select_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "allow_aggregations": false,
                        "columns": [
                            "body",
                            "title",
                            "date",
                            "uuid"
                        ],
                        "filter": {}
                    }
                }
            ],
            "update_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "columns": [
                            "body",
                            "title",
                            "date",
                            "uuid"
                        ],
                        "filter": {}
                    }
                }
            ],
            "delete_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "filter": {}
                    }
                }
            ],
            "event_triggers": []
        },
        {
            "table": "job_silos",
            "is_enum": false,
            "object_relationships": [],
            "array_relationships": [],
            "insert_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "check": {},
                        "columns": [
                            "name",
                            "job_uuid",
                            "weight"
                        ]
                    }
                }
            ],
            "select_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "allow_aggregations": true,
                        "columns": [
                            "job_uuid",
                            "name",
                            "weight"
                        ],
                        "filter": {}
                    }
                }
            ],
            "update_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "columns": [
                            "job_uuid",
                            "name",
                            "weight"
                        ],
                        "filter": {}
                    }
                }
            ],
            "delete_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "filter": {}
                    }
                }
            ],
            "event_triggers": []
        },
        {
            "table": "global_vars",
            "is_enum": false,
            "object_relationships": [],
            "array_relationships": [],
            "insert_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "check": {},
                        "columns": [
                            "base_pay",
                            "gross_pay",
                            "id",
                            "notify_email"
                        ]
                    }
                }
            ],
            "select_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "allow_aggregations": false,
                        "columns": [
                            "base_pay",
                            "gross_pay",
                            "id",
                            "notify_email"
                        ],
                        "filter": {}
                    }
                }
            ],
            "update_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "columns": [
                            "base_pay",
                            "gross_pay",
                            "id",
                            "notify_email"
                        ],
                        "filter": {}
                    }
                }
            ],
            "delete_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "filter": {}
                    }
                }
            ],
            "event_triggers": []
        },
        {
            "table": "carriers",
            "is_enum": false,
            "object_relationships": [],
            "array_relationships": [],
            "insert_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "check": {},
                        "columns": [
                            "name"
                        ]
                    }
                }
            ],
            "select_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "allow_aggregations": true,
                        "columns": [
                            "name"
                        ],
                        "filter": {}
                    }
                }
            ],
            "update_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "set": {},
                        "columns": [
                            "name"
                        ],
                        "filter": {}
                    }
                }
            ],
            "delete_permissions": [
                {
                    "role": "user",
                    "comment": null,
                    "permission": {
                        "filter": {}
                    }
                }
            ],
            "event_triggers": []
        }
    ]
}```
rakeshkky commented 4 years ago

Hi @m0ngr31, ~Please try upgrading to beta.8 first and then to beta.10~.

The upgrade to beta.10 from any version should be possible. Please give us the error message the server is throwing when upgrading. Thank you.

m0ngr31 commented 4 years ago

No error in the logs this time, but it fails to load the console with a 502 error.

rakeshkky commented 4 years ago

@m0ngr31 A small question, while being on beta.6 do you have any inconsistent objects? Upgrades won't possible if there are any inconsistent objects.

m0ngr31 commented 4 years ago

What do you mean "inconsistent objects"?

rakeshkky commented 4 years ago

What do you mean "inconsistent objects"?

@m0ngr31 The "items" in inconsistent metadata. You'll find them under Metadata status if you click on right top :gear: in the console. Also, make sure you Reload before in Metadata Actions.

Edit 1:- Follow the above steps while being in beta.6

m0ngr31 commented 4 years ago

I reloaded the metadata and it's saying this: GraphQL Engine metadata is consistent with database

rakeshkky commented 4 years ago

@m0ngr31 Thank you for the information.

Please provide the logs of beta.10 server. I need to look at the error messages thrown before crashing.

m0ngr31 commented 4 years ago

I get this from the logs after it updates:

Attaching to hasura_graphql-engine_1
graphql-engine_1  | {"timestamp":"2019-12-09T18:24:35.103+0000","level":"info","type":"startup","detail":{"kind":"server_configuration","info":{"live_query_options":{"batch_size":100,"refetch_delay":1},"transaction_isolation":"ISOLATION LEVEL READ COMMITTED","enabled_log_types":["unstructured","jwk-refresh-log","ws-server","http-log","schema-sync-thread","websocket-log","startup","webhook-log","pg-client","telemetry-log","metadata","event-trigger"],"server_host":"HostAny","enable_allowlist":false,"log_level":"info","auth_hook_mode":null,"use_prepared_statements":false,"unauth_role":"anonymous","stringify_numeric_types":false,"enabled_apis":["metadata","graphql","config","pgdump"],"enable_telemetry":false,"enable_console":true,"auth_hook":null,"jwt_secret":{"audience":null,"claims_format":null,"claims_namespace":null,"jwk_url":"https://www.googleapis.com/service_accounts/v1/jwk/securetoken@system.gserviceaccount.com","type":"RS512","issuer":null},"cors_config":{"allowed_origins":"*","disabled":false,"ws_read_cookie":null},"console_assets_dir":null,"admin_secret_set":true,"port":8080}}}
graphql-engine_1  | {"timestamp":"2019-12-09T18:24:35.103+0000","level":"info","type":"jwk-refresh-log","detail":{"http_error":null,"message":"refreshing JWK from endpoint: https://www.googleapis.com/service_accounts/v1/jwk/securetoken@system.gserviceaccount.com"}}
graphql-engine_1  | {"timestamp":"2019-12-09T18:24:35.103+0000","level":"info","type":"startup","detail":{"kind":"postgres_connection","info":{"retries":1,"database_url":"postgresql://doadmin:...@goodrich-postgres-db-do-user-6048335-0.db.ondigitalocean.com:25061/goodrichpool?sslmode=require"}}}
graphql-engine_1  | {"internal":{"statement":"DO $$ DECLARE  r RECORD;  BEGIN    FOR r IN (SELECT viewname FROM pg_views WHERE schemaname = 'hdb_views' ORDER BY viewname) LOOP      EXECUTE 'DROP VIEW IF EXISTS hdb_views.' || quote_ident(r.viewname) || ' CASCADE';    END LOOP;  END $$; DO $$ DECLARE  r RECORD;  BEGIN    FOR r IN (SELECT routine_name FROM information_schema.routines WHERE specific_schema = 'hdb_views' ORDER BY routine_name) LOOP      EXECUTE 'DROP FUNCTION hdb_views.' || quote_ident(r.routine_name) || '() CASCADE';    END LOOP;  END $$; ","prepared":false,"error":{"exec_status":"FatalError","hint":"You might need to increase max_locks_per_transaction.","message":"out of shared memory","status_code":"53200","description":null},"arguments":[]},"path":"$.args[32].args","error":"postgres query error","code":"unexpected"}
graphql-engine_1  | {"timestamp":"2019-12-09T18:24:52.229+0000","level":"info","type":"startup","detail":{"kind":"server_configuration","info":{"live_query_options":{"batch_size":100,"refetch_delay":1},"transaction_isolation":"ISOLATION LEVEL READ COMMITTED","enabled_log_types":["unstructured","jwk-refresh-log","ws-server","http-log","schema-sync-thread","websocket-log","startup","webhook-log","pg-client","telemetry-log","metadata","event-trigger"],"server_host":"HostAny","enable_allowlist":false,"log_level":"info","auth_hook_mode":null,"use_prepared_statements":false,"unauth_role":"anonymous","stringify_numeric_types":false,"enabled_apis":["metadata","graphql","config","pgdump"],"enable_telemetry":false,"enable_console":true,"auth_hook":null,"jwt_secret":{"audience":null,"claims_format":null,"claims_namespace":null,"jwk_url":"https://www.googleapis.com/service_accounts/v1/jwk/securetoken@system.gserviceaccount.com","type":"RS512","issuer":null},"cors_config":{"allowed_origins":"*","disabled":false,"ws_read_cookie":null},"console_assets_dir":null,"admin_secret_set":true,"port":8080}}}
graphql-engine_1  | {"timestamp":"2019-12-09T18:24:52.229+0000","level":"info","type":"jwk-refresh-log","detail":{"http_error":null,"message":"refreshing JWK from endpoint: https://www.googleapis.com/service_accounts/v1/jwk/securetoken@system.gserviceaccount.com"}}
graphql-engine_1  | {"timestamp":"2019-12-09T18:24:52.229+0000","level":"info","type":"startup","detail":{"kind":"postgres_connection","info":{"retries":1,"database_url":"postgresql://doadmin:...@xxxxxxxxxx:25061/xxxxxxpool?sslmode=require"}}}
marionschleifer commented 4 years ago

@m0ngr31 I hope this issue is resolved. If you upgrade to the latest stable version and still encounter problems, please re-open this issue 🙂