[GH-ISSUE #20738] issue: Unable to generate images with ComfyUI in OWUI version 0.7.2 #57945

Closed
opened 2026-05-05 22:00:02 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @batcheej on GitHub (Jan 16, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/20738

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
  • I am using the latest version of Open WebUI.

Installation Method

Docker

Open WebUI Version

0.7.2

Ollama Version (if applicable)

N/A

Operating System

Ubuntu

Browser (if applicable)

N/A

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

An image is output in the chat. When image generation is selected. I have verified the prompt is sent to ComfyUI.

Actual Behavior

When using image generation it fails. Postgres is the database. This is the error in the output: [ERROR: (psycopg2.errors.UndefinedTable) relation "chat_file" does not exist
LINE 2: FROM chat_file
^

[SQL: SELECT chat_file.id AS chat_file_id, chat_file.user_id AS chat_file_user_id, chat_file.chat_id AS chat_file_chat_id, chat_file.message_id AS chat_file_message_id, chat_file.file_id AS chat_file_file_id, chat_file.created_at AS chat_file_created_at, chat_file.updated_at AS chat_file_updated_at
FROM chat_file
WHERE chat_file.chat_id = %(chat_id_1)s AND chat_file.message_id = %(message_id_1)s ORDER BY chat_file.created_at ASC]
[parameters: {'chat_id_1': '96d004ff-1645-4ebd-b9a1-6c16a2bd152b', 'message_id_1': 'd8182b91-592a-489f-85b1-fa8f2057c760'}]`

Steps to Reproduce

Attempt to generate an image.

Logs & Screenshots

`[ERROR: (psycopg2.errors.UndefinedTable) relation "chat_file" does not exist
LINE 2: FROM chat_file
^

[SQL: SELECT chat_file.id AS chat_file_id, chat_file.user_id AS chat_file_user_id, chat_file.chat_id AS chat_file_chat_id, chat_file.message_id AS chat_file_message_id, chat_file.file_id AS chat_file_file_id, chat_file.created_at AS chat_file_created_at, chat_file.updated_at AS chat_file_updated_at
FROM chat_file
WHERE chat_file.chat_id = %(chat_id_1)s AND chat_file.message_id = %(message_id_1)s ORDER BY chat_file.created_at ASC]
[parameters: {'chat_id_1': '96d004ff-1645-4ebd-b9a1-6c16a2bd152b', 'message_id_1': 'd8182b91-592a-489f-85b1-fa8f2057c760'}]`

Additional Information

No response

Originally created by @batcheej on GitHub (Jan 16, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/20738 ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!). - [x] I am using the latest version of Open WebUI. ### Installation Method Docker ### Open WebUI Version 0.7.2 ### Ollama Version (if applicable) N/A ### Operating System Ubuntu ### Browser (if applicable) N/A ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior An image is output in the chat. When image generation is selected. I have verified the prompt is sent to ComfyUI. ### Actual Behavior When using image generation it fails. Postgres is the database. This is the error in the output: [ERROR: (psycopg2.errors.UndefinedTable) relation "chat_file" does not exist LINE 2: FROM chat_file ^ [SQL: SELECT chat_file.id AS chat_file_id, chat_file.user_id AS chat_file_user_id, chat_file.chat_id AS chat_file_chat_id, chat_file.message_id AS chat_file_message_id, chat_file.file_id AS chat_file_file_id, chat_file.created_at AS chat_file_created_at, chat_file.updated_at AS chat_file_updated_at FROM chat_file WHERE chat_file.chat_id = %(chat_id_1)s AND chat_file.message_id = %(message_id_1)s ORDER BY chat_file.created_at ASC] [parameters: {'chat_id_1': '96d004ff-1645-4ebd-b9a1-6c16a2bd152b', 'message_id_1': 'd8182b91-592a-489f-85b1-fa8f2057c760'}]` ### Steps to Reproduce Attempt to generate an image. ### Logs & Screenshots `[ERROR: (psycopg2.errors.UndefinedTable) relation "chat_file" does not exist LINE 2: FROM chat_file ^ [SQL: SELECT chat_file.id AS chat_file_id, chat_file.user_id AS chat_file_user_id, chat_file.chat_id AS chat_file_chat_id, chat_file.message_id AS chat_file_message_id, chat_file.file_id AS chat_file_file_id, chat_file.created_at AS chat_file_created_at, chat_file.updated_at AS chat_file_updated_at FROM chat_file WHERE chat_file.chat_id = %(chat_id_1)s AND chat_file.message_id = %(message_id_1)s ORDER BY chat_file.created_at ASC] [parameters: {'chat_id_1': '96d004ff-1645-4ebd-b9a1-6c16a2bd152b', 'message_id_1': 'd8182b91-592a-489f-85b1-fa8f2057c760'}]` ### Additional Information _No response_
GiteaMirror added the bug label 2026-05-05 22:00:02 -05:00
Author
Owner

@owui-terminator[bot] commented on GitHub (Jan 16, 2026):

🔍 Similar Issues Found

I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions:

  1. #16822 issue: ComfyUI image generation still not working
    by michal-cb • Aug 22, 2025 • bug

  2. #16799 issue: ComfyUI image generation broken in v0.6.23
    by links486 • Aug 22, 2025 • bug

  3. #20436 issue: image generation cannot finish normally
    by lywbh • Jan 07, 2026 • bug

  4. #20119 issue: Unable to export images from conversations containing imagery to external sources (e.g., another Open WebUI instance)
    by CookSleep • Dec 22, 2025 • bug

  5. #19187 issue: Image generation menu gone.
    by calebrio02 • Nov 14, 2025 • bug

Show 2 more related issues
  1. #15404 issue: Image Generation Fails to Work
    by lie5860 • Jun 30, 2025 • bug

  2. #19019 issue: Image generation doesn't work with OpenRouter
    by vladkvit • Nov 07, 2025 • bug


💡 Tips:

  • If this is a duplicate, please consider closing this issue and adding any additional details to the existing one
  • If you found a solution in any of these issues, please share it here to help others

This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.

<!-- gh-comment-id:3761926500 --> @owui-terminator[bot] commented on GitHub (Jan 16, 2026): 🔍 **Similar Issues Found** I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions: 1. [#16822](https://github.com/open-webui/open-webui/issues/16822) **issue: ComfyUI image generation still not working** *by michal-cb • Aug 22, 2025 • `bug`* 2. [#16799](https://github.com/open-webui/open-webui/issues/16799) **issue: ComfyUI image generation broken in v0.6.23** *by links486 • Aug 22, 2025 • `bug`* 3. [#20436](https://github.com/open-webui/open-webui/issues/20436) **issue: image generation cannot finish normally** *by lywbh • Jan 07, 2026 • `bug`* 4. [#20119](https://github.com/open-webui/open-webui/issues/20119) **issue: Unable to export images from conversations containing imagery to external sources (e.g., another Open WebUI instance)** *by CookSleep • Dec 22, 2025 • `bug`* 5. [#19187](https://github.com/open-webui/open-webui/issues/19187) **issue: Image generation menu gone.** *by calebrio02 • Nov 14, 2025 • `bug`* <details> <summary>Show 2 more related issues</summary> 6. [#15404](https://github.com/open-webui/open-webui/issues/15404) **issue: Image Generation Fails to Work** *by lie5860 • Jun 30, 2025 • `bug`* 7. [#19019](https://github.com/open-webui/open-webui/issues/19019) **issue: Image generation doesn't work with OpenRouter** *by vladkvit • Nov 07, 2025 • `bug`* </details> --- 💡 **Tips:** - If this is a duplicate, please consider closing this issue and adding any additional details to the existing one - If you found a solution in any of these issues, please share it here to help others *This comment was generated automatically by a bot.* Please react with a 👍 if this comment was helpful, or a 👎 if it was not.
Author
Owner

@silentoplayz commented on GitHub (Jan 16, 2026):

I am unable to reproduce this issue on the latest dev branch. I also use Postgres (PGVector) for my Open WebUI instances database.

<!-- gh-comment-id:3762148321 --> @silentoplayz commented on GitHub (Jan 16, 2026): I am unable to reproduce this issue on the latest `dev` branch. I also use Postgres (PGVector) for my Open WebUI instances database.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#57945