https://dagster.io/ logo
#announcements
Title
# announcements
f

Flavien

03/05/2021, 1:15 PM
Hello, I try to run Dagster with Postgres as a backend for storage. I use this
dagster.yaml
file:
Copy code
run_storage:
  module: dagster_postgres.run_storage
  class: PostgresRunStorage
  config:
    postgres_db:
      username:
        env: POSTGRES_USER
      password:
        env: POSTGRES_PASSWORD
      hostname:
        env: POSTGRES_HOST
      db_name:
        env: POSTGRES_USER
      port: 5432

event_log_storage:
  module: dagster_postgres.event_log
  class: PostgresEventLogStorage
  config:
    postgres_db:
      username:
        env: POSTGRES_USER
      password:
        env: POSTGRES_PASSWORD
      hostname:
        env: POSTGRES_HOST
      db_name:
        env: POSTGRES_USER
      port: 5432

scheduler:
  module: dagster.core.scheduler
  class: DagsterDaemonScheduler

schedule_storage:
  module: dagster_postgres.schedule_storage
  class: PostgresScheduleStorage
  config:
    postgres_db:
      username:
        env: POSTGRES_USER
      password:
        env: POSTGRES_PASSWORD
      hostname:
        env: POSTGRES_HOST
      db_name:
        env: POSTGRES_USER
      port: 5432

run_launcher:
  module: dagster.core.launcher
  class: DefaultRunLauncher

run_coordinator:
  module: dagster.core.run_coordinator
  class: QueuedRunCoordinator

compute_logs:
  module: dagster.core.storage.local_compute_log_manager
  class: LocalComputeLogManager
  config:
    base_dir: ${DAGSTER_HOME}/logs

local_artifact_storage:
  module: dagster.core.storage.root
  class: LocalArtifactStorage
  config:
    base_dir: ${DAGSTER_HOME}/artifacts

telemetry:
  enabled: false
When I run
dagit -f hello.py
I get the following error:
Copy code
alembic.util.exc.CommandError: Path doesn't exist: '/home/flavien/sandbox/dagster-101/.venv/lib/python3.8/site-packages/dagster_postgres/alembic'.  Please use the 'init' command to create a new scripts folder.
Can anyone help ?
🎉 1
d

daniel

03/05/2021, 1:22 PM
Hi Flavien - there’s an issue with our postgres storage that we’re just merging in a fix for now. In the meantime if you use install from the previous release (0.10.7) you should be able to set up Postgres storage without the error.
f

Flavien

03/05/2021, 1:24 PM
Thank you @daniel for the quick response 😊
a

alex

03/05/2021, 3:57 PM
new version is pushed
👍 3
4 Views