[PR #3998] [MERGED] fix: Dockerfile Healthcheck unexpected exit code #60232

Closed
opened 2026-05-06 02:54:01 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/3998
Author: @ScribblerCoder
Created: 7/19/2024
Status: Merged
Merged: 8/2/2024
Merged by: @tjbck

Base: devHead: patch-1


📝 Commits (1)

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 Dockerfile (+1 -1)

📄 Description

Changelog Entry

Description

  • added PORT to the curl command. This makes the healthcheck send requests to the correct port. the expression returns 8080 if PORT is unspecified
  • curl silently fails and return no output if openwebui was down so I added -n option to jq to return non-zero exit code if the input was null/empty. stackoverflow jq github issue

Why/How I stumbled upon this problem:

I ran open-webui with PORT set to 80 (I like using tailscale to avoid having to painfully deal with reverse proxies) yet docker reported that container was healthy

Added

Changed

Deprecated

Removed

Fixed

  • Fixed healthcheck

Security

Breaking Changes


Additional Information

Screenshots or Videos


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/3998 **Author:** [@ScribblerCoder](https://github.com/ScribblerCoder) **Created:** 7/19/2024 **Status:** ✅ Merged **Merged:** 8/2/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`175d1cc`](https://github.com/open-webui/open-webui/commit/175d1cc8f27e3bbb21cc8f91fce35c6f35dd9f18) patch Healtcheck ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `Dockerfile` (+1 -1) </details> ### 📄 Description # Changelog Entry ### Description - added `PORT` to the curl command. This makes the healthcheck send requests to the correct [port](https://docs.openwebui.com/getting-started/env-configuration#port). the expression returns 8080 if `PORT` is unspecified - curl silently fails and return no output if openwebui was down so I added `-n` option to `jq` to return non-zero exit code if the input was null/empty. [stackoverflow](https://stackoverflow.com/questions/66468950/exit-with-non-zero-if-input-is-empty) [jq github issue](https://github.com/jqlang/jq/issues/1497) ### Why/How I stumbled upon this problem: I ran open-webui with `PORT` set to 80 (I like using tailscale to avoid having to painfully deal with reverse proxies) yet docker reported that container was healthy ### Added ### Changed ### Deprecated ### Removed ### Fixed - Fixed healthcheck ### Security ### Breaking Changes --- ### Additional Information ### Screenshots or Videos --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-06 02:54:01 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#60232