deep-foundation / deeplinks

https://discord.gg/deep-foundation
The Unlicense
14 stars 9 forks source link

Infinite remigrating #268

Open FreePhoenix888 opened 12 months ago

FreePhoenix888 commented 12 months ago
gitpod /workspace/dev (main) $ npm run gitpod-remigrate

> @deep-foundation/dev@0.0.21 gitpod-remigrate
> npm run gitpod-unmigrate && npm run gitpod-migrate

> @deep-foundation/dev@0.0.21 gitpod-unmigrate
> export NEXT_PUBLIC_ENGINES=0; export NEXT_PUBLIC_HIDEPATH=1; export npm_config_yes=true; export JWT_SECRET="{\"type\":\"HS256\",\"key\":\"3EK6FD+o0+c7tzBNVfjpMkNDi2yARAAKzQlk8O2IKoxQu4nF7EdAh8s3TwpHwrdWT6R\"}" export MIGRATIONS_ID_TYPE_SQL=bigint; export MIGRATIONS_ID_TYPE_GQL=bigint; export MIGRATIONS_HASURA_PATH=$(echo $(gp url 8080) | awk -F[/:] '{print $4}'); export MIGRATIONS_HASURA_SSL=1; export MIGRATIONS_HASURA_SECRET=myadminsecretkey; export DEEPLINKS_HASURA_SECRET=myadminsecretkey;  export NEXT_PUBLIC_DEEPLINKS_SERVER=https://$(echo $(gp url 3007) | awk -F[/:] '{print $4}'); export NEXT_PUBLIC_GQL_PATH=$(echo $(gp url 3007) | awk -F[/:] '{print $4}')/api/gql; export NEXT_PUBLIC_GQL_SSL=1 DEEPLINKS_HASURA_PATH=localhost:8080; export DEEPLINKS_HASURA_SSL=0; export MIGRATIONS_DEEPLINKS_APP_URL=$(gp url 3007); export MIGRATIONS_DEEPLINKS_URL=$(gp url 3006); export DEEPLINKS_PUBLIC_URL=$(gp url 3006); export DOCKER_DEEPLINKS_URL=http://host.docker.internal:3006; cd packages/deeplinks && npm run unmigrate

> @deep-foundation/deeplinks@0.0.312 unmigrate
> npm run package:build && npx migrate@latest down --matches '*.js'

> @deep-foundation/deeplinks@0.0.312 package:build
> tsc --project tsconfig.json

(node:21542) ExperimentalWarning: Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js.
(Use `node --trace-warnings ...` to show where the warning was created)
ok
ok
(node:21542) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
  down : 1694386912180-sync-handlers-update-new.js
  down : 1693460330175-sync-handlers-update.js
  down : 1690737739096-deepcase-opened.js
  down : 1689630159473-healthz.js

I am waiting already 10 minutes and nothing changes

FreePhoenix888 commented 12 months ago

Restart of deep fixed this problem

FreePhoenix888 commented 12 months ago

Actually not helped. remigratins is executed infinitely on this step:

gitpod /workspace/dev (main) $ npm run gitpod-remigrate

> @deep-foundation/dev@0.0.21 gitpod-remigrate
> npm run gitpod-unmigrate && npm run gitpod-migrate

> @deep-foundation/dev@0.0.21 gitpod-unmigrate
> export NEXT_PUBLIC_ENGINES=0; export NEXT_PUBLIC_HIDEPATH=1; export npm_config_yes=true; export JWT_SECRET="{\"type\":\"HS256\",\"key\":\"3EK6FD+o0+c7tzBNVfjpMkNDi2yARAAKzQlk8O2IKoxQu4nF7EdAh8s3TwpHwrdWT6R\"}" export MIGRATIONS_ID_TYPE_SQL=bigint; export MIGRATIONS_ID_TYPE_GQL=bigint; export MIGRATIONS_HASURA_PATH=$(echo $(gp url 8080) | awk -F[/:] '{print $4}'); export MIGRATIONS_HASURA_SSL=1; export MIGRATIONS_HASURA_SECRET=myadminsecretkey; export DEEPLINKS_HASURA_SECRET=myadminsecretkey;  export NEXT_PUBLIC_DEEPLINKS_SERVER=https://$(echo $(gp url 3007) | awk -F[/:] '{print $4}'); export NEXT_PUBLIC_GQL_PATH=$(echo $(gp url 3007) | awk -F[/:] '{print $4}')/api/gql; export NEXT_PUBLIC_GQL_SSL=1 DEEPLINKS_HASURA_PATH=localhost:8080; export DEEPLINKS_HASURA_SSL=0; export MIGRATIONS_DEEPLINKS_APP_URL=$(gp url 3007); export MIGRATIONS_DEEPLINKS_URL=$(gp url 3006); export DEEPLINKS_PUBLIC_URL=$(gp url 3006); export DOCKER_DEEPLINKS_URL=http://host.docker.internal:3006; cd packages/deeplinks && npm run unmigrate

> @deep-foundation/deeplinks@0.0.312 unmigrate
> npm run package:build && npx migrate@latest down --matches '*.js'

> @deep-foundation/deeplinks@0.0.312 package:build
> tsc --project tsconfig.json

(node:6373) ExperimentalWarning: Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js.
(Use `node --trace-warnings ...` to show where the warning was created)
ok
ok
(node:6373) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
  down : 1689630159473-healthz.js
  down : 1687790060025-finder.js
  down : 1682327540225-mathjs-schema-packages.js
  down : 1680017137379-npm-packager-ui.js
  down : 1678940577209-deepcase.js
  down : 1677340638677-npm-packager.js
  down : 1664940577209-deepcase.js
  down : 1664940577200-tsx.js
  down : 1661392616544-core-symbols.js
  down : 1658909585601-hasura-storage.js
  down : 1658622099992-unvalue.js
  down : 1657720948151-handlers.js
  down : 1657486935281-authorization.js
  down : 1655979260869-sync-handlers.js
  down : 1642827746040-demo.js
  down : 1637975150590-promises.js
  down : 1637975150573-packager.js
  down : 1623023831753-jwt.js
  down : 1622421760260-permissions.js
  down : 1622421760259-can.js
  down : 1622421760258-selectors.js
  down : 1622421760256-types.js
FreePhoenix888 commented 9 months ago

I have the same problem againz

Deep output when remigrating is processed ``` [1] { [1] tableName: 'links', [1] tableNamePostfix: '', [1] operation: 'query', [1] queryName: 'links', [1] returning: 'value', [1] variables: { where: { id: [Object] } }, [1] resultReturning: 'value', [1] fields: [ 'distinct_on', 'limit', 'offset', 'order_by', 'where' ], [1] fieldTypes: { [1] distinct_on: '[links_select_column!]', [1] limit: 'Int', [1] offset: 'Int', [1] order_by: '[links_order_by!]', [1] where: 'links_bool_exp!' [1] }, [1] index: 0, [1] defs: [ [1] '$distinct_on0: [links_select_column!]', [1] '$limit0: Int', [1] '$offset0: Int', [1] '$order_by0: [links_order_by!]', [1] '$where0: links_bool_exp!' [1] ], [1] args: [ [1] 'distinct_on: $distinct_on0', [1] 'limit: $limit0', [1] 'offset: $offset0', [1] 'order_by: $order_by0', [1] 'where: $where0' [1] ], [1] alias: 'a', [1] resultAlias: 'a0', [1] resultVariables: { where0: { id: [Object] } } [1] } [1] { [1] tableName: 'links', [1] tableNamePostfix: '', [1] operation: 'query', [1] queryName: 'links', [1] returning: 'value', [1] variables: { where: { id: [Object] } }, [1] resultReturning: 'value', [1] fields: [ 'distinct_on', 'limit', 'offset', 'order_by', 'where' ], [1] fieldTypes: { [1] distinct_on: '[links_select_column!]', [1] limit: 'Int', [1] offset: 'Int', [1] order_by: '[links_order_by!]', [1] where: 'links_bool_exp!' [1] }, [1] index: 0, [1] defs: [ [1] '$distinct_on0: [links_select_column!]', [1] '$limit0: Int', [1] '$offset0: Int', [1] '$order_by0: [links_order_by!]', [1] '$where0: links_bool_exp!' [1] ], [1] args: [ [1] 'distinct_on: $distinct_on0', [1] 'limit: $limit0', [1] 'offset: $offset0', [1] 'order_by: $order_by0', [1] 'where: $where0' [1] ], [1] alias: 'a', [1] resultAlias: 'a0', [1] resultVariables: { where0: { id: [Object] } } [1] } [1] { [1] tableName: 'links', [1] tableNamePostfix: '', [1] operation: 'query', [1] queryName: 'links', [1] returning: 'value', [1] variables: { where: { id: [Object] } }, [1] resultReturning: 'value', [1] fields: [ 'distinct_on', 'limit', 'offset', 'order_by', 'where' ], [1] fieldTypes: { [1] distinct_on: '[links_select_column!]', [1] limit: 'Int', [1] offset: 'Int', [1] order_by: '[links_order_by!]', [1] where: 'links_bool_exp!' [1] }, [1] index: 0, [1] defs: [ [1] '$distinct_on0: [links_select_column!]', [1] '$limit0: Int', [1] '$offset0: Int', [1] '$order_by0: [links_order_by!]', [1] '$where0: links_bool_exp!' [1] ], [1] args: [ [1] 'distinct_on: $distinct_on0', [1] 'limit: $limit0', [1] 'offset: $offset0', [1] 'order_by: $order_by0', [1] 'where: $where0' [1] ], [1] alias: 'a', [1] resultAlias: 'a0', [1] resultVariables: { where0: { id: [Object] } } [1] } [1] PayloadTooLargeError: request entity too large [1] at readStream (/workspace/dev/node_modules/express/node_modules/raw-body/index.js:156:17) [1] at getRawBody (/workspace/dev/node_modules/express/node_modules/raw-body/index.js:109:12) [1] at read (/workspace/dev/node_modules/express/node_modules/body-parser/lib/read.js:79:3) [1] at jsonParser (/workspace/dev/node_modules/express/node_modules/body-parser/lib/types/json.js:135:5) [1] at Layer.handle [as handle_request] (/workspace/dev/node_modules/express/lib/router/layer.js:95:5) [1] at trim_prefix (/workspace/dev/node_modules/express/lib/router/index.js:328:13) [1] at /workspace/dev/node_modules/express/lib/router/index.js:286:9 [1] at Function.process_params (/workspace/dev/node_modules/express/lib/router/index.js:346:12) [1] at next (/workspace/dev/node_modules/express/lib/router/index.js:280:10) [1] at cors (/workspace/dev/node_modules/cors/lib/index.js:188:7) [1] [HPM] Rewriting path from "/gql" to "/v1/graphql" [1] [HPM] POST /gql ~> http://localhost:8080 [1] [HPM] Client disconnected ^Cnode:events:492 throw er; // Unhandled 'error' event ```