https://linen.dev logo
Primate gateway database with an admin user
# help
c
Hi guys, I am stuck here. Currently, trying to set up locally, following this https://docs.shuttle.rs/community/contribute#testing-deployer-only. I am running following command, after creating
.cargo/config.toml
file.
docker compose --file docker-compose.rendered.yml --project-name shuttle-dev exec gateway /usr/local/bin/service --state=/var/lib/shuttle/gateway.sqlite init --name admin --key test-key
But getting this error:
Copy code
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Database(SqliteError { code: 14, message: "unable to open database file" })', gateway/src/main.rs:54:47
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Any help is much appreciated. Thanks in advance!
k
Woops, sorry, we forgot to update the contribution doc in docs.shuttle.rs, it's up to date here:
The command should be
docker compose --file docker-compose.rendered.yml --project-name shuttle-dev exec gateway /usr/local/bin/service --state=/var/lib/shuttle init --name admin --key test-key
(the --state flag changed)
c
Thanks for speedy support!