I’ve just started a Redash image from the AWS marketplace (not Bitnami, I followed the link on the Redash setup pages) - and this is working fine and I can set up data sources and queries.

However, I have requirement to set up Datasources programatically so I would assume I would do with this manage.py. When I SSH into the box, however, manage.py seems to be querying a different database somehow?

sudo -u redash ./manage.py users list

This gives an error saying the users table doesn’t exist, but I can clearly see users in the web front end? I’ve likely missed a config parameter but I can’t for the life of me find it.

You need to prefix the command with bin/run which loads the .env file, i.e.:

sudo -u redash bin/run ./manage.py users list

Ah yes, I knew it would be something I’d missed.

Thanks!