Replies: 2 comments
-
Hi @ramancero, Normally, the following commands should bring up a VTN instance: docker compose up -d db # starting up the database in Docker compose
cargo sqlx migrate run # creating the DB schema
cargo run --bin openleadr-vtn # starting the VTN All these commands must be executed in the root directory of the repository. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Duplicate of #158 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Dear sir,
I hope you are doing well.
I am working with the OpenADR VTN open-source project for academic purposes and have been impressed with its code structure and quality. I successfully installed it on an Ubuntu server with the latest Rust version and was able to run all the required commands. However, I encountered an issue during compilation.
Error Message:
error: SQLX_OFFLINE=true but there is no cached data for this query,
run cargo sqlx prepare to update the query cache or unset SQLX_OFFLINE
--> openleadr-vtn/src/data_source/postgres/event.rs:160:32
let MaybePgId { id } = sqlx::query_as!(
r#"
SELECT business_id AS id FROM program WHERE id = $1
"#,
program_id
)
^
Your insights would be greatly appreciated. Looking forward to your response.
Beta Was this translation helpful? Give feedback.
All reactions