# Bootstrap error with ai plugin, bundle exec rake db:migrate

**URL:** <https://meta.discourse.org/t/bootstrap-error-with-ai-plugin-bundle-exec-rake-db-migrate/371514>\
**Category:** Product Support\
**Tags:** ai\
**Created:** [June 24, 2025, 4:12pm UTC](https://meta.discourse.org/t/bootstrap-error-with-ai-plugin-bundle-exec-rake-db-migrate/371514 "2025-06-24T16:12:40Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![zabin](https://avatars.discourse-cdn.com/v4/letter/z/58f4c7/32.png) [@zabin](https://meta.discourse.org/u/zabin)\
**Post date:** [July 23, 2025, 1:26pm UTC](https://meta.discourse.org/t/bootstrap-error-with-ai-plugin-bundle-exec-rake-db-migrate/371514/6 "2025-07-23T13:26:30Z")

</div>

That is true. Here is what worked for me.

- Using bitnami discourse chart
- Override dockerfile for bitnami postgres and install vector as root
- at the startup of postgres ran an init script to make the `discourse` user the owner of vector
- rest(including installing of plugin) is taken care by the bitnami chart

I learned this the hard way. I wish there were some documentation around this. The plugin docs should mention some prerequisite.

---

_[View the full topic](https://meta.discourse.org/t/bootstrap-error-with-ai-plugin-bundle-exec-rake-db-migrate/371514)._
