Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potentally wrong data persistence warning in Heroku using a postgres add-on #6939

Open
martibosch opened this issue Jan 21, 2025 · 1 comment

Comments

@martibosch
Copy link

Describe the bug

When deploying Label Studio to Heroku using the one-click badge from the README, I get a "Data will be persisted on the node running this container, but all data will be lost if this node goes away." in the app. This seems to come from this line:
https://github.com/HumanSignal/label-studio/blob/heroku-persistent-pg/Dockerfile.heroku#L4

However, the Heroku Postgres add-on is properly installed as configured, I actually inspected the generated tables and everything seems fine. So I believe the message should just not appear.

To Reproduce

  1. Go to https://www.heroku.com/deploy?template=https://github.com/HumanSignal/label-studio/tree/heroku-persistent-pg
  2. Open the generated app
  3. The message will appear

Expected behavior
No message about data persistence should appear.

Environment (please complete the following information):

  • OS: Linux (Heroku Dyno)
  • Label Studio Version: 1.16.0.dev0
@heidi-humansignal
Copy link
Collaborator

Hello,

Thanks for reporting this! It sounds like you’ve successfully connected Label Studio to a PostgreSQL add-on on Heroku, but you’re still seeing the “Data will be persisted on the node running this container...” message. That warning usually appears whenever Label Studio detects that you might be storing data locally on the ephemeral filesystem in addition to storing the database data in PostgreSQL.
Here’s what you can check:

  1. Make sure you set the environment variable:

STORAGE_PERSISTENCE=1
This should remove the ephemeral storage warning in most cases.

Thank you,
Abu

Comment by Abubakar Saad
Workflow Run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants