Advertisement
Guest User

Untitled

a guest
Feb 21st, 2020
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.82 KB | None | 0 0
  1. {"timestamp":"2020-02-21T06:14:13.000+0000","level":"info","type":"startup","detail":{"kind":"migration-apply","info":"database url for migrations is set by HASURA_GRAPHQL_DATABASE_URL"}}
  2. {"timestamp":"2020-02-21T06:14:13.000+0000","level":"info","type":"startup","detail":{"kind":"migration-apply","info":"migrations server port env var is not set, defaulting to 9691"}}
  3. {"timestamp":"2020-02-21T06:14:13.000+0000","level":"info","type":"startup","detail":{"kind":"migration-apply","info":"server timeout is not set, defaulting to 30 seconds"}}
  4. {"timestamp":"2020-02-21T06:14:13.000+0000","level":"info","type":"startup","detail":{"kind":"migration-apply","info":"starting graphql engine temporarily on port 9691"}}
  5. {"timestamp":"2020-02-21T06:14:13.000+0000","level":"info","type":"startup","detail":{"kind":"migration-apply","info":"waiting 30 for 9691 to be ready"}}
  6. {"type":"startup","timestamp":"2020-02-21T06:14:13.431+0000","level":"info","detail":{"kind":"server_configuration","info":{"live_query_options":{"batch_size":100,"refetch_delay":1},"transaction_isolation":"ISOLATION LEVEL READ COMMITTED","plan_cache_options":{"plan_cache_size":null},"enabled_log_types":["http-log","websocket-log","startup","webhook-log","query-log"],"server_host":"HostAny","enable_allowlist":false,"log_level":"info","auth_hook_mode":null,"use_prepared_statements":true,"unauth_role":null,"stringify_numeric_types":false,"enabled_apis":["metadata"],"enable_telemetry":true,"enable_console":true,"auth_hook":null,"jwt_secret":null,"cors_config":{"allowed_origins":"*","disabled":false,"ws_read_cookie":null},"console_assets_dir":null,"admin_secret_set":false,"port":9691}}}
  7. {"type":"startup","timestamp":"2020-02-21T06:14:13.431+0000","level":"info","detail":{"kind":"postgres_connection","info":{"retries":1,"database_url":"postgres://postgres:...@postgres:5432/postgres"}}}
  8. {"type":"startup","timestamp":"2020-02-21T06:14:13.431+0000","level":"info","detail":{"kind":"db_migrate","info":"Already at the latest catalog version (31); nothing to do."}}
  9. {"type":"startup","timestamp":"2020-02-21T06:14:13.431+0000","level":"info","detail":{"kind":"schema-sync","info":{"thread_id":"ThreadId 18","instance_id":"93d830b0-2b7b-49b0-bfc8-496bfdaa798c","message":"listener thread started"}}}
  10. {"type":"startup","timestamp":"2020-02-21T06:14:13.431+0000","level":"info","detail":{"kind":"schema-sync","info":{"thread_id":"ThreadId 19","instance_id":"93d830b0-2b7b-49b0-bfc8-496bfdaa798c","message":"processor thread started"}}}
  11. {"type":"startup","timestamp":"2020-02-21T06:14:13.431+0000","level":"info","detail":{"kind":"event_triggers","info":"preparing data"}}
  12. {"type":"startup","timestamp":"2020-02-21T06:14:13.431+0000","level":"info","detail":{"kind":"event_triggers","info":"starting workers"}}
  13. {"type":"startup","timestamp":"2020-02-21T06:14:13.431+0000","level":"info","detail":{"kind":"telemetry","info":"Help us improve Hasura! The graphql-engine server collects anonymized usage stats which allows us to keep improving Hasura at warp speed. To read more or opt-out, visit https://docs.hasura.io/1.0/graphql/manual/guides/telemetry.html"}}
  14. {"type":"startup","timestamp":"2020-02-21T06:14:13.431+0000","level":"info","detail":{"kind":"server","info":{"time_taken":0.748303458,"message":"starting API server"}}}
  15. {"timestamp":"2020-02-21T06:14:15.000+0000","level":"info","type":"startup","detail":{"kind":"migration-apply","info":"port 9691 is ready"}}
  16. {"timestamp":"2020-02-21T06:14:15.000+0000","level":"info","type":"startup","detail":{"kind":"migration-apply","info":"checking for migrations directory"}}
  17. {"timestamp":"2020-02-21T06:14:15.000+0000","level":"info","type":"startup","detail":{"kind":"migration-apply","info":"env var HASURA_GRAPHQL_MIGRATIONS_DIR is not set, defaulting to /hasura-migrations"}}
  18. {"timestamp":"2020-02-21T06:14:15.000+0000","level":"info","type":"startup","detail":{"kind":"migration-apply","info":"applying migrations from /hasura-migrations"}}
  19. {"level":"info","msg":"Help us improve Hasura! The cli collects anonymized usage stats which\nallow us to keep improving Hasura at warp speed. To opt-out or read more,\nvisit https://docs.hasura.io/1.0/graphql/manual/guides/telemetry.html\n","time":"2020-02-21T06:14:15Z"}
  20. {"level":"info","msg":"Checking for update... ","time":"2020-02-21T06:14:15Z"}
  21. {"level":"info","msg":"hasura cli is up to date","time":"2020-02-21T06:14:16Z","version":"1.1.0"}
  22. {"type":"http-log","timestamp":"2020-02-21T06:14:16.149+0000","level":"info","detail":{"operation":{"query_execution_time":2.988552e-3,"user_vars":{"x-hasura-role":"admin"},"request_id":"61475027-0909-4df3-82b4-62c9ea29d7cb","response_size":89,"request_read_time":6.997e-6},"http_info":{"status":200,"http_version":"HTTP/1.1","url":"/v1/query","ip":"127.0.0.1","method":"POST","content_encoding":"gzip"}}}
  23. {"level":"info","msg":"Applying migrations...","time":"2020-02-21T06:14:16Z"}
  24. {"type":"http-log","timestamp":"2020-02-21T06:14:16.149+0000","level":"info","detail":{"operation":{"query_execution_time":6.993874e-3,"user_vars":{"x-hasura-role":"admin"},"request_id":"524f0dcb-1938-49d1-916b-622d5e43a10d","response_size":68,"request_read_time":7.548e-6},"http_info":{"status":200,"http_version":"HTTP/1.1","url":"/v1/query","ip":"127.0.0.1","method":"POST","content_encoding":"gzip"}}}
  25. {"type":"schema-sync-thread","timestamp":"2020-02-21T06:14:16.149+0000","level":"info","detail":{"thread_type":"processor","info":{"processed_event":{"instance_id":"93d830b0-2b7b-49b0-bfc8-496bfdaa798c","invalidations":{"remote_schemas":[],"metadata":false},"occurred_at":"2020-02-21T06:14:16.163236Z"}}}}
  26. {"type":"schema-sync-thread","timestamp":"2020-02-21T06:14:16.149+0000","level":"info","detail":{"thread_type":"listener","info":{"received_event":{"instance_id":"93d830b0-2b7b-49b0-bfc8-496bfdaa798c","invalidations":{"remote_schemas":[],"metadata":false},"occurred_at":"2020-02-21T06:14:16.17147Z"}}}}
  27. {"type":"http-log","timestamp":"2020-02-21T06:14:16.149+0000","level":"info","detail":{"operation":{"query_execution_time":3.979706e-3,"user_vars":{"x-hasura-role":"admin"},"request_id":"b73ea756-36f6-4bc1-bf0b-3014fd052eb4","response_size":68,"request_read_time":6.864e-6},"http_info":{"status":200,"http_version":"HTTP/1.1","url":"/v1/query","ip":"127.0.0.1","method":"POST","content_encoding":"gzip"}}}
  28. {"type":"http-log","timestamp":"2020-02-21T06:14:16.149+0000","level":"info","detail":{"operation":{"query_execution_time":3.375212e-3,"user_vars":{"x-hasura-role":"admin"},"request_id":"59140044-f662-47f1-b72c-d9208b06b0bf","response_size":70,"request_read_time":6.408e-6},"http_info":{"status":200,"http_version":"HTTP/1.1","url":"/v1/query","ip":"127.0.0.1","method":"POST","content_encoding":"gzip"}}}
  29. {"type":"http-log","timestamp":"2020-02-21T06:14:16.149+0000","level":"info","detail":{"operation":{"query_execution_time":2.414463e-3,"user_vars":{"x-hasura-role":"admin"},"request_id":"8f396d77-6dad-4f6c-bbc4-37b321674d10","response_size":68,"request_read_time":6.514e-6},"http_info":{"status":200,"http_version":"HTTP/1.1","url":"/v1/query","ip":"127.0.0.1","method":"POST","content_encoding":"gzip"}}}
  30. {"type":"schema-sync-thread","timestamp":"2020-02-21T06:14:16.149+0000","level":"info","detail":{"thread_type":"listener","info":{"received_event":{"instance_id":"93d830b0-2b7b-49b0-bfc8-496bfdaa798c","invalidations":{"remote_schemas":[],"metadata":false},"occurred_at":"2020-02-21T06:14:16.163236Z"}}}}
  31. {"type":"schema-sync-thread","timestamp":"2020-02-21T06:14:16.149+0000","level":"info","detail":{"thread_type":"processor","info":{"processed_event":{"instance_id":"93d830b0-2b7b-49b0-bfc8-496bfdaa798c","invalidations":{"remote_schemas":[],"metadata":false},"occurred_at":"2020-02-21T06:14:16.17147Z"}}}}
  32. {"type":"schema-sync-thread","timestamp":"2020-02-21T06:14:16.149+0000","level":"info","detail":{"thread_type":"listener","info":{"received_event":{"instance_id":"93d830b0-2b7b-49b0-bfc8-496bfdaa798c","invalidations":{"remote_schemas":[],"metadata":false},"occurred_at":"2020-02-21T06:14:16.176289Z"}}}}
  33. {"type":"schema-sync-thread","timestamp":"2020-02-21T06:14:16.149+0000","level":"info","detail":{"thread_type":"processor","info":{"processed_event":{"instance_id":"93d830b0-2b7b-49b0-bfc8-496bfdaa798c","invalidations":{"remote_schemas":[],"metadata":false},"occurred_at":"2020-02-21T06:14:16.176289Z"}}}}
  34. {"type":"schema-sync-thread","timestamp":"2020-02-21T06:14:16.149+0000","level":"info","detail":{"thread_type":"listener","info":{"received_event":{"instance_id":"93d830b0-2b7b-49b0-bfc8-496bfdaa798c","invalidations":{"remote_schemas":[],"metadata":false},"occurred_at":"2020-02-21T06:14:16.180666Z"}}}}
  35. {"type":"schema-sync-thread","timestamp":"2020-02-21T06:14:16.149+0000","level":"info","detail":{"thread_type":"processor","info":{"processed_event":{"instance_id":"93d830b0-2b7b-49b0-bfc8-496bfdaa798c","invalidations":{"remote_schemas":[],"metadata":false},"occurred_at":"2020-02-21T06:14:16.180666Z"}}}}
  36. {"type":"http-log","timestamp":"2020-02-21T06:14:21.641+0000","level":"error","detail":{"operation":{"user_vars":{"x-hasura-role":"admin"},"error":{"internal":[{"definition":{"using":{"manual_configuration":{"remote_table":{"schema":"demo","name":"customers"},"column_mapping":{"from":"identifiers"}}},"name":"customer","comment":null,"table":{"schema":"demo","name":"errors"}},"reason":"table \"demo.errors\" has no field named \"from\"","type":"array_relation"},{"definition":{"using":{"manual_configuration":{"remote_table":{"schema":"demo","name":"errors"},"column_mapping":{"to":"identifiers"}}},"name":"error","comment":null,"table":{"schema":"demo","name":"errors"}},"reason":"table \"demo.errors\" has no field named \"to\"","type":"array_relation"}],"path":"$.args[2].args","error":"cannot continue due to inconsistent metadata","code":"unexpected"},"request_id":"ecf5b075-5d31-4e38-8c0a-681bcb11e8a0","response_size":711,"query":{"args":[{"args":{"cascade":false,"check_metadata_consistency":null,"sql":"CREATE SCHEMA demo;\r\nCREATE TABLE demo.\"classOfTrade\" (\r\n \"id\" text NOT NULL,\r\n \"createdAt\" timestamp with time zone,\r\n \"description\" text,\r\n \"name\" text NOT NULL,\r\n \"authority\" text NOT NULL,\r\n \"mediledgerId\" text,\r\n \"parentClassOfTradeId\" text,\r\n \"startDate\" timestamp with time zone,\r\n \"endDate\" timestamp with time zone,\r\n \"updatedAt\" timestamp with time zone,\r\n \"metadata\" jsonb,\r\n \"identifiers\" jsonb,\r\n \"validationStatus\" text\r\n);\r\nCREATE TABLE demo.\"contracts\" (\r\n \"id\" text NOT NULL,\r\n \"contractEntities\" jsonb,\r\n \"createdAt\" timestamp with time zone NOT NULL,\r\n \"customData\" jsonb,\r\n \"description\" text NOT NULL,\r\n \"distributors\" jsonb,\r\n \"endDate\" timestamp with time zone NOT NULL,\r\n \"resubmissionWindowDays\" text,\r\n \"revision\" text,\r\n \"startDate\" timestamp with time zone NOT NULL,\r\n \"submissionWindowDays\" text\r\n);\r\nCREATE TABLE demo.\"customerAddresses\" (\r\n \"id\" UUID PRIMARY KEY DEFAULT gen_random_uuid(),\r\n \"address1\" text NOT NULL,\r\n \"address2\" text,\r\n \"city\" text NOT NULL,\r\n \"state\" text NOT NULL,\r\n \"zipCode\" text NOT NULL,\r\n \"addressType\" text NOT NULL,\r\n \"startDate\" timestamp with time zone,\r\n \"endDate\" timestamp with time zone,\r\n \"customerId\" text NOT NULL,\r\n \"customerRevision\" text NOT NULL,\r\n \"address3\" text\r\n);\r\nCREATE TABLE demo.\"customerClassesOfTrade\" (\r\n \"id\" UUID PRIMARY KEY DEFAULT gen_random_uuid(),\r\n \"classOfTradeId\" text NOT NULL,\r\n \"startDate\" timestamp with time zone,\r\n \"endDate\" timestamp with time zone,\r\n \"customerId\" text NOT NULL,\r\n \"customerRevision\" text NOT NULL\r\n);\r\nCREATE TABLE demo.\"customerCustomerLists\" (\r\n \"id\" UUID PRIMARY KEY DEFAULT gen_random_uuid(),\r\n \"customerId\" text NOT NULL,\r\n \"listId\" text NOT NULL,\r\n \"startDate\" timestamp with time zone,\r\n \"endDate\" timestamp with time zone,\r\n \"customerRevision\" text NOT NULL\r\n);\r\nCREATE TABLE demo.\"customerLists\" (\r\n \"id\" text PRIMARY KEY,\r\n \"createdAt\" timestamp with time zone,\r\n \"state\" text,\r\n \"description\" text,\r\n \"name\" text NOT NULL,\r\n \"type\" text NOT NULL,\r\n \"metadata\" jsonb,\r\n \"belongsTo\" jsonb,\r\n \"identifiers\" jsonb,\r\n \"validationStatus\" text,\r\n \"updatedAt\" timestamp with time zone\r\n);\r\nCREATE TABLE demo.\"customerRelationships\" (\r\n \"id\" UUID PRIMARY KEY DEFAULT gen_random_uuid(),\r\n \"from\" text NOT NULL,\r\n \"to\" text NOT NULL\r\n);\r\nCREATE TABLE demo.customers (\r\n \"id\" text NOT NULL,\r\n \"_id\" UUID PRIMARY KEY DEFAULT gen_random_uuid(),\r\n \"startDate\" timestamp with time zone,\r\n \"endDate\" timestamp with time zone,\r\n \"parentId\" text,\r\n \"updatedAt\" timestamp with time zone,\r\n \"revision\" text NOT NULL,\r\n \"description\" text,\r\n \"metadata\" jsonb,\r\n \"identifiers\" jsonb,\r\n \"names\" jsonb,\r\n \"verifiedAt\" timestamp with time zone\r\n);\r\nCREATE TABLE demo.\"errors\" (\r\n \"code\" text PRIMARY KEY NOT NULL,\r\n \"entityType\" text NOT NULL,\r\n \"extraProperties\" jsonb,\r\n \"identifiers\" jsonb,\r\n \"operation\" text NOT NULL\r\n);\r\nCREATE TABLE demo.\"thirdPartyCustomers\" (\r\n \"id\" text NOT NULL,\r\n \"_id\" UUID PRIMARY KEY DEFAULT gen_random_uuid(),\r\n \"startDate\" timestamp with time zone,\r\n \"endDate\" timestamp with time zone,\r\n \"parentId\" text,\r\n \"updatedAt\" timestamp with time zone,\r\n \"revision\" text NOT NULL,\r\n \"description\" text,\r\n \"metadata\" jsonb,\r\n \"identifiers\" jsonb,\r\n \"names\" jsonb,\r\n \"verifiedAt\" timestamp with time zone\r\n);\r\nCREATE TABLE demo.\"thirdPartyClassOfTrade\" as TABLE demo.\"classOfTrade\";\r\nCREATE TABLE demo.\"thirdPartyCustomerAddresses\" as TABLE demo.\"customerAddresses\";\r\nCREATE TABLE demo.\"thirdPartyCustomerClassesOfTrade\" as TABLE demo.\"customerClassesOfTrade\";\r\nCREATE TABLE demo.\"thirdPartyCustomerLists\" as TABLE demo.\"customerLists\";\r\nCREATE TABLE demo.\"thirdPartyCustomerCustomerLists\" as TABLE demo.\"customerCustomerLists\";\r\n\r\nCREATE INDEX customer_identifiers_ginidx ON demo.customers USING gin (identifiers);\r\nCREATE INDEX customer_names_ginidx ON demo.customers USING gin (names);\r\nCREATE INDEX customerlist_belongs_to_ginidx ON demo.\"customerLists\" USING gin (\"belongsTo\");\r\nCREATE INDEX customerlist_identifiers_to_ginidx ON demo.\"customerLists\" USING gin (identifiers);\r\nCREATE INDEX classoftrade_identifiers_to_ginidx ON demo.\"classOfTrade\" USING gin (identifiers);\r\n","read_only":false},"version":1,"type":"run_sql"},{"args":{"cascade":false,"check_metadata_consistency":null,"sql":"INSERT INTO hdb_catalog.schema_migrations (version, dirty) VALUES (1578691941960, false)","read_only":false},"version":1,"type":"run_sql"},{"args":{"version":2,"tables":[{"table":{"schema":"demo","name":"customerAddresses"}},{"table":{"schema":"demo","name":"classOfTrade"}},{"object_relationships":[{"using":{"manual_configuration":{"remote_table":{"schema":"demo","name":"classOfTrade"},"column_mapping":{"classOfTradeId":"id"}}},"name":"classOfTrade"}],"table":{"schema":"demo","name":"customerClassesOfTrade"}},{"table":{"schema":"demo","name":"customerLists"}},{"object_relationships":[{"using":{"manual_configuration":{"remote_table":{"schema":"demo","name":"customerLists"},"column_mapping":{"listId":"id"}}},"name":"customerList"}],"table":{"schema":"demo","name":"customerCustomerLists"}},{"table":{"schema":"demo","name":"customerRelationships"},"array_relationships":[{"using":{"manual_configuration":{"remote_table":{"schema":"demo","name":"thirdPartyCustomers"},"column_mapping":{"to":"id"}}},"name":"thirdPartyCustomer"},{"using":{"manual_configuration":{"remote_table":{"schema":"demo","name":"customers"},"column_mapping":{"from":"id"}}},"name":"customer"}]},{"object_relationships":[{"using":{"manual_configuration":{"remote_table":{"schema":"demo","name":"customerRelationships"},"column_mapping":{"id":"from"}}},"name":"customerMapping"}],"table":{"schema":"demo","name":"customers"},"array_relationships":[{"using":{"manual_configuration":{"remote_table":{"schema":"demo","name":"customerClassesOfTrade"},"column_mapping":{"id":"customerId","revision":"customerRevision"}}},"name":"classesOfTrade"},{"using":{"manual_configuration":{"remote_table":{"schema":"demo","name":"customerAddresses"},"column_mapping":{"id":"customerId","revision":"customerRevision"}}},"name":"addresses"},{"using":{"manual_configuration":{"remote_table":{"schema":"demo","name":"customerCustomerLists"},"column_mapping":{"id":"customerId","revision":"customerRevision"}}},"name":"lists"},{"using":{"manual_configuration":{"remote_table":{"schema":"demo","name":"customers"},"column_mapping":{"parentId":"id"}}},"name":"parents"}]},{"table":{"schema":"demo","name":"thirdPartyCustomerAddresses"}},{"table":{"schema":"demo","name":"thirdPartyClassOfTrade"}},{"object_relationships":[{"using":{"manual_configuration":{"remote_table":{"schema":"demo","name":"thirdPartyClassOfTrade"},"column_mapping":{"classOfTradeId":"id"}}},"name":"thirdPartyClassOfTrade"}],"table":{"schema":"demo","name":"thirdPartyCustomerClassesOfTrade"}},{"table":{"schema":"demo","name":"thirdPartyCustomerLists"}},{"object_relationships":[{"using":{"manual_configuration":{"remote_table":{"schema":"demo","name":"thirdPartyCustomerLists"},"column_mapping":{"listId":"id"}}},"name":"thirdPartyCustomerList"}],"table":{"schema":"demo","name":"thirdPartyCustomerCustomerLists"}},{"object_relationships":[{"using":{"manual_configuration":{"remote_table":{"schema":"demo","name":"customerRelationships"},"column_mapping":{"id":"to"}}},"name":"customerMapping"}],"table":{"schema":"demo","name":"thirdPartyCustomers"},"array_relationships":[{"using":{"manual_configuration":{"remote_table":{"schema":"demo","name":"thirdPartyCustomerClassesOfTrade"},"column_mapping":{"id":"customerId","revision":"customerRevision"}}},"name":"classesOfTrade"},{"using":{"manual_configuration":{"remote_table":{"schema":"demo","name":"thirdPartyCustomerAddresses"},"column_mapping":{"id":"customerId","revision":"customerRevision"}}},"name":"addresses"},{"using":{"manual_configuration":{"remote_table":{"schema":"demo","name":"thirdPartyCustomerCustomerLists"},"column_mapping":{"id":"customerId","revision":"customerRevision"}}},"name":"lists"},{"using":{"manual_configuration":{"remote_table":{"schema":"demo","name":"thirdPartyCustomers"},"column_mapping":{"parentId":"id"}}},"name":"parents"}]},{"table":{"schema":"demo","name":"contracts"}},{"table":{"schema":"demo","name":"errors"},"array_relationships":[{"using":{"manual_configuration":{"remote_table":{"schema":"demo","name":"errors"},"column_mapping":{"to":"identifiers"}}},"name":"error"},{"using":{"manual_configuration":{"remote_table":{"schema":"demo","name":"customers"},"column_mapping":{"from":"identifiers"}}},"name":"customer"}]}]},"version":1,"type":"replace_metadata"}],"version":1,"type":"bulk"}},"http_info":{"status":400,"http_version":"HTTP/1.1","url":"/v1/query","ip":"127.0.0.1","method":"POST","content_encoding":null}}}
  37. time="2020-02-21T06:14:22Z" level=fatal msg="apply failed: failed parsing json: json: cannot unmarshal array into Go struct field HasuraError.internal of type hasuradb.SQLInternalError; response from API: {\"internal\":[{\"definition\":{\"using\":{\"manual_configuration\":{\"remote_table\":{\"schema\":\"demo\",\"name\":\"customers\"},\"column_mapping\":{\"from\":\"identifiers\"}}},\"name\":\"customer\",\"comment\":null,\"table\":{\"schema\":\"demo\",\"name\":\"errors\"}},\"reason\":\"table \\\"demo.errors\\\" has no field named \\\"from\\\"\",\"type\":\"array_relation\"},{\"definition\":{\"using\":{\"manual_configuration\":{\"remote_table\":{\"schema\":\"demo\",\"name\":\"errors\"},\"column_mapping\":{\"to\":\"identifiers\"}}},\"name\":\"error\",\"comment\":null,\"table\":{\"schema\":\"demo\",\"name\":\"errors\"}},\"reason\":\"table \\\"demo.errors\\\" has no field named \\\"to\\\"\",\"type\":\"array_relation\"}],\"path\":\"$.args[2].args\",\"error\":\"cannot continue due to inconsistent metadata\",\"code\":\"unexpected\"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement