trying to build the latest arroyo code with docker compose hosting the postgres db.
ymolists opened this issue · comments
Hello Team.
I am trying to see if i can compile arroyo on my desk. I was hoping doing cargo build
would be enough. I did make sure i have a db running locally (under docker compose). My assumption is this has maybe something to do with how i am running postgres based on that error.
Any hints will be greatly appreciated
Thanks
my git sha 5472f7c
$docker compose exec db psql --username=arroyo --dbname=arroyo
psql (15.4 (Debian 15.4-1.pgdg120+1))
Type "help" for help.
arroyo=# connect
arroyo-# list
arroyo-# \c
You are now connected to database "arroyo" as user "arroyo".
arroyo-# \dt
Did not find any relations.
arroyo-# \dt+
Did not find any relations.
arroyo-#
compose file
volumes:
db:
services:
db:
image: postgres
restart: always
environment:
# postgresql://user:pass@localhost:5432/webstudio
POSTGRES_PASSWORD: arroyo
POSTGRES_DB: arroyo
POSTGRES_USER: arroyo
volumes:
- db:/var/lib/postgresql/data
ports:
- ${PGPORT:-5432}:5432
the error ...
Compiling arroyo-controller v0.5.0 (/github/3rdp/github/arroyo/arroyo-rel/arroyo.devbr/arroyo-controller)
error: failed to run custom build command for `arroyo-controller v0.5.0 (/github/3rdp/github/arroyo/arroyo-rel/arroyo.devbr/arroyo-controller)`
Caused by:
process didn't exit successfully: `/github/3rdp/github/arroyo/arroyo-rel/arroyo.devbr/target/debug/build/arroyo-controller-29833f13ae5219a8/build-script-build` (exit status: 1)
--- stdout
cargo:rerun-if-changed=queries
cargo:rerun-if-changed=../arroyo-api/migrations
--- stderr
Error: PrepareQueries(Db { msg: "relation \"job_configs\" does not exist", help: None, src: NamedSource { name: "queries/controller_queries.sql", source: "<redacted>", err_span: Some(SourceSpan { offset: SourceOffset(467), length: 0 }) })
warning: build failed, waiting for other jobs to finish...
error: failed to run custom build command for `arroyo-api v0.5.0 (/github/3rdp/github/arroyo/arroyo-rel/arroyo.devbr/arroyo-api)`
Caused by:
process didn't exit successfully: `/github/3rdp/github/arroyo/arroyo-rel/arroyo.devbr/target/debug/build/arroyo-api-448df8899ae0fa12/build-script-build` (exit status: 1)
--- stdout
cargo:rerun-if-changed=queries
cargo:rerun-if-changed=migrations
--- stderr
Error: PrepareQueries(Db { msg: "relation \"api_keys\" does not exist", help: None, src: NamedSource { name: "queries/api_queries.sql", source: "<redacted>", err_span: Some(SourceSpan { offset: SourceOffset(94), length: 0 }) })