Closed Bui-Christopher closed 2 years ago
Hey @Bui-Christopher,
Not sure this is coming from archive, have you checked the directories in archive.toml
to see if the user you are starting archive with has write permission?
Thank you for responding quickly! The issue was a mistake on my end. Modified the archive.toml config incorrectly.
First time using substrate-archive, trying to set up polkadot archiving as an example.
I understand wiki/tutorial is a outdated. Ran a solution from this issue.
docker-compose up -d
to start postgres and pgadminDATABASE_URL=postgres://postgres:123@localhost:6432/local_chain_db sqlx database create
in substrate-archive/src to create the database.DATABASE_URL=postgres://postgres:123@localhost:6432/local_chain_db sqlx migrate run' in substrate-archive/src
to create the tables.cargo run --release -- -c archive.toml in bin/node-template-archive/
to start indexing. Keep in mind to modify the archive.toml configs.On the last step I received an error:
Error: Failed to create RocksDB directory: `Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }`.