# Rake tasks in the AI plugin not working

**URL:** https://meta.discourse.org/t/rake-tasks-in-the-ai-plugin-not-working/352607
**Category:** Bug
**Tags:** ai
**Created:** [February 15, 2025, 4:32pm UTC](https://meta.discourse.org/t/rake-tasks-in-the-ai-plugin-not-working/352607 "2025-02-15T16:32:18Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![Yenwod](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yenwod/32/275165_2.png) [@Yenwod](https://meta.discourse.org/u/Yenwod)
#### Post date: [February 15, 2025, 4:32pm UTC](https://meta.discourse.org/t/rake-tasks-in-the-ai-plugin-not-working/352607/1 "2025-02-15T16:32:18Z")

</div>

I apologize in advance if this is the wrong place for this question about the AI plugin rake tasks.

I can run rake tasks (without `bundle exec`) in the Discourse app container no problem, but the AI tasks don’t work. Without `bundle exec`, the AI embedding backfill fails due to a missing ruby-progressbar. With `bundle exec` it fails due to not having a database connection.

Any pointers on how to fix this?

---

_[View the full topic](https://meta.discourse.org/t/rake-tasks-in-the-ai-plugin-not-working/352607)._
