Skip to content

Annotation Tool: data is not persisted when using local version #853

@venuraja79

Description

@venuraja79

Describe the bug
wasn't sure if this is really a defect, still thought may be useful if someone comes across this.

The PGDATA env variable in the postgresql docker image refers to "/var/lib/postgresql/data" whereas in docker-compose.yml the mount volume points to "/var/lib/psql/data". Noticed that the data is not persisted.

Error message
no error message, Annotation data is not persisted across restarts

Expected behavior
Annotated Data should be available after a restart

Additional context
Had to change the volume as below in docker-compose.yml for the data to be persisted
volumes:
- ./postgres-data: /var/lib/postgresql/data

To Reproduce
Steps to reproduce the behavior
docker compose up (Annotation tool)

System:

  • OS: NA
  • GPU/CPU: NA
  • Haystack version (commit or version number): NA
  • DocumentStore: NA
  • Reader: NA
  • Retriever: NA

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions