p2panda / aquadoggo

Node for the p2panda network handling validation, storage, aggregation and replication
GNU Affero General Public License v3.0
69 stars 5 forks source link

allow_schema_ids config setting not working #602

Closed jmanm closed 8 months ago

jmanm commented 8 months ago

Description

I'm attempting to replicate a schema from one node to another and getting this log message: "Replication failed: Incoming data could not be ingested: Schema is not supported".

Steps to reproduce

  1. Clone the repo
  2. Edit config.toml to persist the database:
    database_url = "sqlite:db/db.sqlite3"
  3. Start the node:
    cargo run -- -c ./config.toml --log-level info
  4. Add a schema to the node. I used the mushroom-app-tutorial schema.
  5. Add the resulting schema id(s) to config.toml:
    allow_schema_ids = [
    "schema_definition_v1",
    "schema_field_definition_v1",
    "blob_v1",
    "blob_piece_v1",
    "mushroom_<your document ID>",
    "mushroom_finding_<your document ID>"
    ]
  6. Copy target/debug/aquadoggo and config.toml into a new folder.
  7. In this folder, start a 2nd node:
    ./aquadoggo -c ./config.toml --log-level info

Node 1 will attempt to replicate the schema to node 2, but this error is logged: WARN aquadoggo::replication::service] Replication failed: Incoming data could not be ingested: Schema is not supported and the schema is not replicated.

adzialocha commented 8 months ago

Thank you for raising this issue! This indeed looks like a logical bug.