Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Create lastic-milestone-1&2.md #1164

Merged
merged 11 commits into from
May 3, 2024
Merged

Conversation

poppyseedDev
Copy link
Contributor

Milestone Delivery Checklist

  • The milestone-delivery-template.md has been copied and updated.
  • This pull request is being made by the same account as the accepted application.
  • I have disclosed any and all sources of reused code in the submitted repositories and have done my due diligence to meet its license requirements.
  • In case of acceptance, invoices must be submitted and payments will be transferred to the Polkadot AssetHub and/or fiat account provided in the application.
  • The delivery is according to the Guidelines for Milestone Deliverables.

Link to the application pull request: w3f/Grants-Program#2167 < please fill this in with the PR number of your application.

@PieWol PieWol self-assigned this Apr 3, 2024
@PieWol
Copy link
Member

PieWol commented Apr 3, 2024

Hey @poppyseedDev ,
thanks for the delivery. The linked application document includes milestone number 1 and 2 but this delivery is about 3 and 4. Did you link the correct application?

@poppyseedDev
Copy link
Contributor Author

Hey @poppyseedDev , thanks for the delivery. The linked application document includes milestone number 1 and 2 but this delivery is about 3 and 4. Did you link the correct application?

Thank you for bringing this to my attention, @PieWol. I've updated the document link accordingly. The confusion stemmed from the original grant documentation, which labeled these as milestones 1 and 2, meant to follow on from milestone 2. It was purely a miscommunication in the phrasing.

Copy link
Member

@PieWol PieWol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The milestone numbers in the delivery should be changed so they are equal to the milestone numbers from the application.

deliveries/lastic-milestone-3-4.md Outdated Show resolved Hide resolved
deliveries/lastic-milestone-3-4.md Outdated Show resolved Hide resolved
deliveries/lastic-milestone-3-4.md Outdated Show resolved Hide resolved
poppyseedDev and others added 3 commits April 4, 2024 14:04
Co-authored-by: Piet <75956460+PieWol@users.noreply.github.com>
Co-authored-by: Piet <75956460+PieWol@users.noreply.github.com>
Co-authored-by: Piet <75956460+PieWol@users.noreply.github.com>
@poppyseedDev
Copy link
Contributor Author

The milestone numbers in the delivery should be changed so they are equal to the milestone numbers from the application.

I see so the first time around it was correct.

@PieWol PieWol changed the title Create lastic-milestone-3-4.md Create lastic-milestone-1&2.md Apr 4, 2024
@PieWol
Copy link
Member

PieWol commented Apr 5, 2024

No worries btw about the failed CI check. The github action is just not prepared to handle the submission of two milestones within one PR. It's still fine to do so :)

@PieWol PieWol removed their assignment Apr 18, 2024
@semuelle semuelle self-assigned this Apr 22, 2024
|----------|--------------------------------------------------|---------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------|
| **0a.** | License | [subsquid-sdk LICENSE](https://github.com/LasticXYZ/squid-sdk/blob/main/LICENSE) and [subsquid LICENSE](https://github.com/LasticXYZ/subsquid/blob/main/LICENSE) | The project is licensed under GPLv3, ensuring open-source accessibility and compliance. |
| **0b.** | Documentation | [subsquid-sdk README.md](https://github.com/LasticXYZ/squid-sdk) and [subsquid README.md](https://github.com/LasticXYZ/squid)| Provides extensive documentation in README and dedicated docs site, facilitating user understanding. |
| **0d.** | Error Logging | [Lastic UI/issues](https://github.com/LasticXYZ/LasticUI/issues) | Errors are thoroughly documented as issues on GitHub, set for future resolution. We also set up a community bounty program. |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @poppyseedDev. The spec for 0d reads "In the event of an error, the application will record detailed error information to an event viewer or log file for diagnostics and troubleshooting", but the deliverable links to your UI repo issues. Can you clarify?

Copy link
Contributor Author

@poppyseedDev poppyseedDev Apr 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@semuelle
If the indexer fails it is usually recorded directly in my subsquid application, however I am unable to open source that account since it has my credit card information link that i am using for running the subsquid indexer this is the link that works for me -> logs link.
In an event that an error happens I usually write an issue about it directly in the issues tab of our Lastic github repository, or if it's a bigger one I mention it in the Lastic group chat.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I'm guessing that's standard subsquid behavior. The link isn't available to me.

Co-authored-by: Sebastian Müller <sebastian@web3.foundation>
Copy link
Member

@semuelle semuelle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am trying to run the indexer locally following the quick start guide, but keep getting the following error. Any idea what's missing?

[api] 17:37:00 INFO  sqd:commands SERVE:PROD
[processor] 17:37:00 INFO  sqd:commands MIGRATION:APPLY
[processor] query: SELECT * FROM current_schema()
[api] 17:37:01 WARN  sqd:graphql-server enabling dumb in-memory cache (size: 100mb, ttl: 1000ms, max-age: 1000ms)
[processor] query: SELECT version();
[processor] query: SELECT * FROM "information_schema"."tables" WHERE "table_schema" = 'public' AND "table_name" = 'migrations'
[processor] query: SELECT * FROM "migrations" "migrations" ORDER BY "id" DESC
[processor] No migrations are pending
[processor] 17:37:01 INFO  sqd:commands PROCESS:PROD
[api] 17:37:01 INFO  sqd:graphql-server listening on port 4350
[processor] 17:37:02 INFO  sqd:processor last processed final block was 268829
[processor] 17:37:02 INFO  sqd:processor processing blocks from 268830
[processor] 17:37:02 INFO  sqd:processor using chain RPC data source
[processor] 17:37:02 INFO  sqd:processor prometheus metrics are served at port 37887
[processor] 17:37:03 FATAL sqd:processor QueryFailedError: relation "history_initialized" does not exist
[processor]                                  at PostgresQueryRunner.query (/home/lastic/subsquid/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:211:19)
[processor]                                  at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[processor]                                  at async InsertQueryBuilder.execute (/home/lastic/subsquid/node_modules/typeorm/query-builder/InsertQueryBuilder.js:106:33)
[processor]                                  at async Store.insert (/home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/store.js:88:17)
[processor]                                  at async batchInsert (/home/lastic/subsquid/lib/main.js:41:9)
[processor]                                  at async /home/lastic/subsquid/lib/main.js:53:5
[processor]                                  at async TypeormDatabase.performUpdates (/home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/database.js:139:13)
[processor]                                  at async /home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/database.js:84:13
[processor]                                  at async EntityManager.transaction (/home/lastic/subsquid/node_modules/typeorm/entity-manager/EntityManager.js:73:28)
[processor]                                  at async TypeormDatabase.submit (/home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/database.js:151:24)
[processor]                                  query: INSERT INTO "history_initialized"("id", "block_number", "timestamp", "extrinsic_hash", "when", "private_pool_size", "system_pool_size") VALUES ($1, $2, $3, DEFAULT, $4, $5, $6)
[processor]                                  parameters: ["0000268830-43467-000006",268830,"2024-01-12T11:16:12.000Z",109050,"0","0"]
[processor]                                  driverError: {"length":118,"name":"error","severity":"ERROR","code":"42P01","position":"13","file":"parse_relation.c","line":"1392","routine":"parserOpenTable","stack":"error: relation \"history_initialized\" does not exist\n    at /home/lastic/subsquid/node_modules/pg/lib/client.js:526:17\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async PostgresQueryRunner.query (/home/lastic/subsquid/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:178:25)\n    at async InsertQueryBuilder.execute (/home/lastic/subsquid/node_modules/typeorm/query-builder/InsertQueryBuilder.js:106:33)\n    at async Store.insert (/home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/store.js:88:17)\n    at async batchInsert (/home/lastic/subsquid/lib/main.js:41:9)\n    at async /home/lastic/subsquid/lib/main.js:53:5\n    at async TypeormDatabase.performUpdates (/home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/database.js:139:13)\n    at async /home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/database.js:84:13\n    at async EntityManager.transaction (/home/lastic/subsquid/node_modules/typeorm/entity-manager/EntityManager.js:73:28)"}
[processor]                                  length: 118
[processor]                                  severity: ERROR
[processor]                                  code: 42P01
[processor]                                  position: 13
[processor]                                  file: parse_relation.c
[processor]                                  line: 1392
[processor]                                  routine: parserOpenTable
Process [processor] failed with exit code: 1
Process [processor] restarting...
[processor] 17:37:04 INFO  sqd:commands MIGRATION:APPLY
[processor] query: SELECT * FROM current_schema()
[processor] query: SELECT version();
[processor] query: SELECT * FROM "information_schema"."tables" WHERE "table_schema" = 'public' AND "table_name" = 'migrations'
[processor] query: SELECT * FROM "migrations" "migrations" ORDER BY "id" DESC
[processor] No migrations are pending
[processor] 17:37:05 INFO  sqd:commands PROCESS:PROD
[processor] 17:37:06 INFO  sqd:processor last processed final block was 268829
[processor] 17:37:06 INFO  sqd:processor processing blocks from 268830
[processor] 17:37:06 INFO  sqd:processor using chain RPC data source
[processor] 17:37:06 INFO  sqd:processor prometheus metrics are served at port 37369
[processor] 17:37:07 FATAL sqd:processor QueryFailedError: relation "history_initialized" does not exist
[processor]                                  at PostgresQueryRunner.query (/home/lastic/subsquid/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:211:19)
[processor]                                  at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[processor]                                  at async InsertQueryBuilder.execute (/home/lastic/subsquid/node_modules/typeorm/query-builder/InsertQueryBuilder.js:106:33)
[processor]                                  at async Store.insert (/home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/store.js:88:17)
[processor]                                  at async batchInsert (/home/lastic/subsquid/lib/main.js:41:9)
[processor]                                  at async /home/lastic/subsquid/lib/main.js:53:5
[processor]                                  at async TypeormDatabase.performUpdates (/home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/database.js:139:13)
[processor]                                  at async /home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/database.js:84:13
[processor]                                  at async EntityManager.transaction (/home/lastic/subsquid/node_modules/typeorm/entity-manager/EntityManager.js:73:28)
[processor]                                  at async TypeormDatabase.submit (/home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/database.js:151:24)
[processor]                                  query: INSERT INTO "history_initialized"("id", "block_number", "timestamp", "extrinsic_hash", "when", "private_pool_size", "system_pool_size") VALUES ($1, $2, $3, DEFAULT, $4, $5, $6)
[processor]                                  parameters: ["0000268830-43467-000006",268830,"2024-01-12T11:16:12.000Z",109050,"0","0"]
[processor]                                  driverError: {"length":118,"name":"error","severity":"ERROR","code":"42P01","position":"13","file":"parse_relation.c","line":"1392","routine":"parserOpenTable","stack":"error: relation \"history_initialized\" does not exist\n    at /home/lastic/subsquid/node_modules/pg/lib/client.js:526:17\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async PostgresQueryRunner.query (/home/lastic/subsquid/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:178:25)\n    at async InsertQueryBuilder.execute (/home/lastic/subsquid/node_modules/typeorm/query-builder/InsertQueryBuilder.js:106:33)\n    at async Store.insert (/home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/store.js:88:17)\n    at async batchInsert (/home/lastic/subsquid/lib/main.js:41:9)\n    at async /home/lastic/subsquid/lib/main.js:53:5\n    at async TypeormDatabase.performUpdates (/home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/database.js:139:13)\n    at async /home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/database.js:84:13\n    at async EntityManager.transaction (/home/lastic/subsquid/node_modules/typeorm/entity-manager/EntityManager.js:73:28)"}
[processor]                                  length: 118
[processor]                                  severity: ERROR
[processor]                                  code: 42P01
[processor]                                  position: 13
[processor]                                  file: parse_relation.c
[processor]                                  line: 1392
[processor]                                  routine: parserOpenTable
Process [processor] failed with exit code: 1
Process [processor] restarting...
[processor] 17:37:09 INFO  sqd:commands MIGRATION:APPLY
[processor] query: SELECT * FROM current_schema()
[processor] query: SELECT version();
[processor] query: SELECT * FROM "information_schema"."tables" WHERE "table_schema" = 'public' AND "table_name" = 'migrations'
[processor] query: SELECT * FROM "migrations" "migrations" ORDER BY "id" DESC
[processor] No migrations are pending
[processor] 17:37:10 INFO  sqd:commands PROCESS:PROD
[processor] 17:37:11 INFO  sqd:processor last processed final block was 268829
[processor] 17:37:11 INFO  sqd:processor processing blocks from 268830
[processor] 17:37:11 INFO  sqd:processor using chain RPC data source
[processor] 17:37:11 INFO  sqd:processor prometheus metrics are served at port 44625
[processor] 17:37:12 FATAL sqd:processor QueryFailedError: relation "history_initialized" does not exist
[processor]                                  at PostgresQueryRunner.query (/home/lastic/subsquid/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:211:19)
[processor]                                  at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[processor]                                  at async InsertQueryBuilder.execute (/home/lastic/subsquid/node_modules/typeorm/query-builder/InsertQueryBuilder.js:106:33)
[processor]                                  at async Store.insert (/home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/store.js:88:17)
[processor]                                  at async batchInsert (/home/lastic/subsquid/lib/main.js:41:9)
[processor]                                  at async /home/lastic/subsquid/lib/main.js:53:5
[processor]                                  at async TypeormDatabase.performUpdates (/home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/database.js:139:13)
[processor]                                  at async /home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/database.js:84:13
[processor]                                  at async EntityManager.transaction (/home/lastic/subsquid/node_modules/typeorm/entity-manager/EntityManager.js:73:28)
[processor]                                  at async TypeormDatabase.submit (/home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/database.js:151:24)
[processor]                                  query: INSERT INTO "history_initialized"("id", "block_number", "timestamp", "extrinsic_hash", "when", "private_pool_size", "system_pool_size") VALUES ($1, $2, $3, DEFAULT, $4, $5, $6)
[processor]                                  parameters: ["0000268830-43467-000006",268830,"2024-01-12T11:16:12.000Z",109050,"0","0"]
[processor]                                  driverError: {"length":118,"name":"error","severity":"ERROR","code":"42P01","position":"13","file":"parse_relation.c","line":"1392","routine":"parserOpenTable","stack":"error: relation \"history_initialized\" does not exist\n    at /home/lastic/subsquid/node_modules/pg/lib/client.js:526:17\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async PostgresQueryRunner.query (/home/lastic/subsquid/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:178:25)\n    at async InsertQueryBuilder.execute (/home/lastic/subsquid/node_modules/typeorm/query-builder/InsertQueryBuilder.js:106:33)\n    at async Store.insert (/home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/store.js:88:17)\n    at async batchInsert (/home/lastic/subsquid/lib/main.js:41:9)\n    at async /home/lastic/subsquid/lib/main.js:53:5\n    at async TypeormDatabase.performUpdates (/home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/database.js:139:13)\n    at async /home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/database.js:84:13\n    at async EntityManager.transaction (/home/lastic/subsquid/node_modules/typeorm/entity-manager/EntityManager.js:73:28)"}
[processor]                                  length: 118
[processor]                                  severity: ERROR
[processor]                                  code: 42P01
[processor]                                  position: 13
[processor]                                  file: parse_relation.c
[processor]                                  line: 1392
[processor]                                  routine: parserOpenTable
Process [processor] failed with exit code: 1
Process [processor] restarting...
[processor] 17:37:14 INFO  sqd:commands MIGRATION:APPLY
[processor] query: SELECT * FROM current_schema()
[processor] query: SELECT version();
[processor] query: SELECT * FROM "information_schema"."tables" WHERE "table_schema" = 'public' AND "table_name" = 'migrations'
[processor] query: SELECT * FROM "migrations" "migrations" ORDER BY "id" DESC
[processor] No migrations are pending
[processor] 17:37:15 INFO  sqd:commands PROCESS:PROD
[processor] 17:37:16 INFO  sqd:processor last processed final block was 268829
[processor] 17:37:16 INFO  sqd:processor processing blocks from 268830
[processor] 17:37:16 INFO  sqd:processor using chain RPC data source
[processor] 17:37:16 INFO  sqd:processor prometheus metrics are served at port 37759
[processor] 17:37:17 FATAL sqd:processor QueryFailedError: relation "history_initialized" does not exist
[processor]                                  at PostgresQueryRunner.query (/home/lastic/subsquid/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:211:19)
[processor]                                  at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[processor]                                  at async InsertQueryBuilder.execute (/home/lastic/subsquid/node_modules/typeorm/query-builder/InsertQueryBuilder.js:106:33)
[processor]                                  at async Store.insert (/home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/store.js:88:17)
[processor]                                  at async batchInsert (/home/lastic/subsquid/lib/main.js:41:9)
[processor]                                  at async /home/lastic/subsquid/lib/main.js:53:5
[processor]                                  at async TypeormDatabase.performUpdates (/home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/database.js:139:13)
[processor]                                  at async /home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/database.js:84:13
[processor]                                  at async EntityManager.transaction (/home/lastic/subsquid/node_modules/typeorm/entity-manager/EntityManager.js:73:28)
[processor]                                  at async TypeormDatabase.submit (/home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/database.js:151:24)
[processor]                                  query: INSERT INTO "history_initialized"("id", "block_number", "timestamp", "extrinsic_hash", "when", "private_pool_size", "system_pool_size") VALUES ($1, $2, $3, DEFAULT, $4, $5, $6)
[processor]                                  parameters: ["0000268830-43467-000006",268830,"2024-01-12T11:16:12.000Z",109050,"0","0"]
[processor]                                  driverError: {"length":118,"name":"error","severity":"ERROR","code":"42P01","position":"13","file":"parse_relation.c","line":"1392","routine":"parserOpenTable","stack":"error: relation \"history_initialized\" does not exist\n    at /home/lastic/subsquid/node_modules/pg/lib/client.js:526:17\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async PostgresQueryRunner.query (/home/lastic/subsquid/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:178:25)\n    at async InsertQueryBuilder.execute (/home/lastic/subsquid/node_modules/typeorm/query-builder/InsertQueryBuilder.js:106:33)\n    at async Store.insert (/home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/store.js:88:17)\n    at async batchInsert (/home/lastic/subsquid/lib/main.js:41:9)\n    at async /home/lastic/subsquid/lib/main.js:53:5\n    at async TypeormDatabase.performUpdates (/home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/database.js:139:13)\n    at async /home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/database.js:84:13\n    at async EntityManager.transaction (/home/lastic/subsquid/node_modules/typeorm/entity-manager/EntityManager.js:73:28)"}
[processor]                                  length: 118
[processor]                                  severity: ERROR
[processor]                                  code: 42P01
[processor]                                  position: 13
[processor]                                  file: parse_relation.c
[processor]                                  line: 1392
[processor]                                  routine: parserOpenTable
Process [processor] failed with exit code: 1
Process [processor] restarting...
[processor] 17:37:19 INFO  sqd:commands MIGRATION:APPLY
[processor] query: SELECT * FROM current_schema()
[processor] query: SELECT version();
[processor] query: SELECT * FROM "information_schema"."tables" WHERE "table_schema" = 'public' AND "table_name" = 'migrations'
[processor] query: SELECT * FROM "migrations" "migrations" ORDER BY "id" DESC
[processor] No migrations are pending
[processor] 17:37:20 INFO  sqd:commands PROCESS:PROD
[processor] 17:37:21 INFO  sqd:processor last processed final block was 268829
[processor] 17:37:21 INFO  sqd:processor processing blocks from 268830
[processor] 17:37:21 INFO  sqd:processor using chain RPC data source
[processor] 17:37:21 INFO  sqd:processor prometheus metrics are served at port 44693
[processor] 17:37:22 FATAL sqd:processor QueryFailedError: relation "history_initialized" does not exist
[processor]                                  at PostgresQueryRunner.query (/home/lastic/subsquid/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:211:19)
[processor]                                  at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[processor]                                  at async InsertQueryBuilder.execute (/home/lastic/subsquid/node_modules/typeorm/query-builder/InsertQueryBuilder.js:106:33)
[processor]                                  at async Store.insert (/home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/store.js:88:17)
[processor]                                  at async batchInsert (/home/lastic/subsquid/lib/main.js:41:9)
[processor]                                  at async /home/lastic/subsquid/lib/main.js:53:5
[processor]                                  at async TypeormDatabase.performUpdates (/home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/database.js:139:13)
[processor]                                  at async /home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/database.js:84:13
[processor]                                  at async EntityManager.transaction (/home/lastic/subsquid/node_modules/typeorm/entity-manager/EntityManager.js:73:28)
[processor]                                  at async TypeormDatabase.submit (/home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/database.js:151:24)
[processor]                                  query: INSERT INTO "history_initialized"("id", "block_number", "timestamp", "extrinsic_hash", "when", "private_pool_size", "system_pool_size") VALUES ($1, $2, $3, DEFAULT, $4, $5, $6)
[processor]                                  parameters: ["0000268830-43467-000006",268830,"2024-01-12T11:16:12.000Z",109050,"0","0"]
[processor]                                  driverError: {"length":118,"name":"error","severity":"ERROR","code":"42P01","position":"13","file":"parse_relation.c","line":"1392","routine":"parserOpenTable","stack":"error: relation \"history_initialized\" does not exist\n    at /home/lastic/subsquid/node_modules/pg/lib/client.js:526:17\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async PostgresQueryRunner.query (/home/lastic/subsquid/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:178:25)\n    at async InsertQueryBuilder.execute (/home/lastic/subsquid/node_modules/typeorm/query-builder/InsertQueryBuilder.js:106:33)\n    at async Store.insert (/home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/store.js:88:17)\n    at async batchInsert (/home/lastic/subsquid/lib/main.js:41:9)\n    at async /home/lastic/subsquid/lib/main.js:53:5\n    at async TypeormDatabase.performUpdates (/home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/database.js:139:13)\n    at async /home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/database.js:84:13\n    at async EntityManager.transaction (/home/lastic/subsquid/node_modules/typeorm/entity-manager/EntityManager.js:73:28)"}
[processor]                                  length: 118
[processor]                                  severity: ERROR
[processor]                                  code: 42P01
[processor]                                  position: 13
[processor]                                  file: parse_relation.c
[processor]                                  line: 1392
[processor]                                  routine: parserOpenTable
Process [processor] failed with exit code: 1
Process [processor] restarting...
[processor] 17:37:25 INFO  sqd:commands MIGRATION:APPLY
[processor] query: SELECT * FROM current_schema()
[processor] query: SELECT version();
[processor] query: SELECT * FROM "information_schema"."tables" WHERE "table_schema" = 'public' AND "table_name" = 'migrations'
[processor] query: SELECT * FROM "migrations" "migrations" ORDER BY "id" DESC
[processor] No migrations are pending
[processor] 17:37:26 INFO  sqd:commands PROCESS:PROD
[processor] 17:37:27 INFO  sqd:processor last processed final block was 268829
[processor] 17:37:27 INFO  sqd:processor processing blocks from 268830
[processor] 17:37:27 INFO  sqd:processor using chain RPC data source
[processor] 17:37:27 INFO  sqd:processor prometheus metrics are served at port 46801
[processor] 17:37:28 FATAL sqd:processor QueryFailedError: relation "history_initialized" does not exist
[processor]                                  at PostgresQueryRunner.query (/home/lastic/subsquid/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:211:19)
[processor]                                  at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[processor]                                  at async InsertQueryBuilder.execute (/home/lastic/subsquid/node_modules/typeorm/query-builder/InsertQueryBuilder.js:106:33)
[processor]                                  at async Store.insert (/home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/store.js:88:17)
[processor]                                  at async batchInsert (/home/lastic/subsquid/lib/main.js:41:9)
[processor]                                  at async /home/lastic/subsquid/lib/main.js:53:5
[processor]                                  at async TypeormDatabase.performUpdates (/home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/database.js:139:13)
[processor]                                  at async /home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/database.js:84:13
[processor]                                  at async EntityManager.transaction (/home/lastic/subsquid/node_modules/typeorm/entity-manager/EntityManager.js:73:28)
[processor]                                  at async TypeormDatabase.submit (/home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/database.js:151:24)
[processor]                                  query: INSERT INTO "history_initialized"("id", "block_number", "timestamp", "extrinsic_hash", "when", "private_pool_size", "system_pool_size") VALUES ($1, $2, $3, DEFAULT, $4, $5, $6)
[processor]                                  parameters: ["0000268830-43467-000006",268830,"2024-01-12T11:16:12.000Z",109050,"0","0"]
[processor]                                  driverError: {"length":118,"name":"error","severity":"ERROR","code":"42P01","position":"13","file":"parse_relation.c","line":"1392","routine":"parserOpenTable","stack":"error: relation \"history_initialized\" does not exist\n    at /home/lastic/subsquid/node_modules/pg/lib/client.js:526:17\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async PostgresQueryRunner.query (/home/lastic/subsquid/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:178:25)\n    at async InsertQueryBuilder.execute (/home/lastic/subsquid/node_modules/typeorm/query-builder/InsertQueryBuilder.js:106:33)\n    at async Store.insert (/home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/store.js:88:17)\n    at async batchInsert (/home/lastic/subsquid/lib/main.js:41:9)\n    at async /home/lastic/subsquid/lib/main.js:53:5\n    at async TypeormDatabase.performUpdates (/home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/database.js:139:13)\n    at async /home/lastic/subsquid/node_modules/@subsquid/typeorm-store/lib/database.js:84:13\n    at async EntityManager.transaction (/home/lastic/subsquid/node_modules/typeorm/entity-manager/EntityManager.js:73:28)"}
[processor]                                  length: 118
[processor]                                  severity: ERROR
[processor]                                  code: 42P01
[processor]                                  position: 13
[processor]                                  file: parse_relation.c
[processor]                                  line: 1392
[processor]                                  routine: parserOpenTable
 ›   Error: Process [processor] failed with exit code: 1

| **0a.** | License | [subsquid-sdk LICENSE](https://github.com/LasticXYZ/squid-sdk/blob/main/LICENSE) and [subsquid LICENSE](https://github.com/LasticXYZ/subsquid/blob/main/LICENSE) | The project is licensed under GPLv3, ensuring open-source accessibility and compliance. |
| **0b.** | Documentation | [subsquid-sdk README.md](https://github.com/LasticXYZ/squid-sdk) and [subsquid README.md](https://github.com/LasticXYZ/subsquid)| Provides extensive documentation in README and dedicated docs site, facilitating user understanding. |
| **0d.** | Error Logging | [Lastic UI/issues](https://github.com/LasticXYZ/LasticUI/issues) | Errors are thoroughly documented as issues on GitHub, set for future resolution. We also set up a community bounty program. |
| **0d.** | Article Publishing | [Article link](https://blog.lastic.xyz/revolutionizing-blockchain-interactivity-unveiling-lastics-groundbreaking-developments-042225bb0b72) | Discusses Lastic's latest breakthroughs, enhancing blockchain interaction. |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@poppyseedDev just a reminder to follow our announcement guidelines and submit the draft article to the grants pr address as well, so we can proof-read it and consider it for promotion on W3F's X profile. 👍

@poppyseedDev
Copy link
Contributor Author

@semuelle I fixed the issue, could you try to pull the latest changes and rerun ./run.sh again and let me know if you have any more problems?

Copy link
Member

@semuelle semuelle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update, @poppyseedDev. I can confirm that everything's working now. Your milestone is hereby accepted. You can find my evaluation notes here and here.

@semuelle semuelle merged commit 4fd1699 into w3f:master May 3, 2024
2 of 3 checks passed
Copy link

github-actions bot commented May 3, 2024

🪙 Please fill out the invoice form in order to initiate the payment process. Thank you!

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

Successfully merging this pull request may close these issues.

4 participants