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
Git Clone
Open WebUI Version
0.8.11
Ollama Version (if applicable)
No response
Operating System
Ubuntu 22.04
Browser (if applicable)
No response
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
When starting openwebui with l.data file for license, the user interface should display the color, logo
Actual Behavior
We have a log message
License: '<' not supported between instances of 'str' and '[datetime.date](http://datetime.date/)'", "caller": "open_webui.utils.auth:get_license_data:152
Steps to Reproduce
Just upgrade openwebui and load l.data
Logs & Screenshots
no logo
License: '<' not supported between instances of 'str' and 'datetime.date'", "caller": "open_webui.utils.auth:get_license_data:152
Additional Information
initial code in backend\open_webui\utils\auth.py
if not data.get('exp') **and** data.get('exp') < datetime.now().date():
new code perhaps linked to the error
if not data.get('exp') **or** data.get('exp') < datetime.now().date():
Originally created by @flefevre on GitHub (Mar 26, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23094
### 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
Git Clone
### Open WebUI Version
0.8.11
### Ollama Version (if applicable)
_No response_
### Operating System
Ubuntu 22.04
### Browser (if applicable)
_No response_
### 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
When starting openwebui with l.data file for license, the user interface should display the color, logo
### Actual Behavior
We have a log message
```
License: '<' not supported between instances of 'str' and '[datetime.date](http://datetime.date/)'", "caller": "open_webui.utils.auth:get_license_data:152
```
### Steps to Reproduce
Just upgrade openwebui and load l.data
### Logs & Screenshots
no logo
License: '<' not supported between instances of 'str' and '[datetime.date](http://datetime.date/)'", "caller": "open_webui.utils.auth:get_license_data:152
### Additional Information
initial code in backend\open_webui\utils\auth.py
```
if not data.get('exp') **and** data.get('exp') < datetime.now().date():
```
new code perhaps linked to the error
```
if not data.get('exp') **or** data.get('exp') < datetime.now().date():
```
GiteaMirror
added the bug label 2026-05-05 23:24:12 -05:00
Problem: data.get('exp') returns a string from JSON parsing, but datetime.now().date() returns a datetime.date object. Python cannot compare str < datetime.date.
Fix
Convert exp to date before comparison:
fromdatetimeimportdatetime# Line 148exp_date=data.get('exp')ifisinstance(exp_date,str):exp_date=datetime.strptime(exp_date,'%Y-%m-%d').date()ifnotexp_dateorexp_date<datetime.now().date():returnFalse
Impact: License validation fails for all users with l.data files in v0.8.11.
Workaround: Users can downgrade to v0.8.10 until this is fixed.
<!-- gh-comment-id:4136806718 -->
@yang1002378395-cmyk commented on GitHub (Mar 26, 2026):
## Root Cause Analysis
The issue is at `backend/open_webui/utils/auth.py` line 148:
```python
if not data.get('exp') or data.get('exp') < datetime.now().date():
```
**Problem**: `data.get('exp')` returns a string from JSON parsing, but `datetime.now().date()` returns a `datetime.date` object. Python cannot compare `str < datetime.date`.
## Fix
Convert `exp` to date before comparison:
```python
from datetime import datetime
# Line 148
exp_date = data.get('exp')
if isinstance(exp_date, str):
exp_date = datetime.strptime(exp_date, '%Y-%m-%d').date()
if not exp_date or exp_date < datetime.now().date():
return False
```
Or if the format varies:
```python
exp_date = data.get('exp')
if exp_date:
if isinstance(exp_date, str):
try:
exp_date = datetime.fromisoformat(exp_date).date()
except ValueError:
exp_date = datetime.strptime(exp_date, '%Y-%m-%d').date()
if exp_date < datetime.now().date():
return False
```
**Impact**: License validation fails for all users with `l.data` files in v0.8.11.
**Workaround**: Users can downgrade to v0.8.10 until this is fixed.
@yang1002378395-cmyk commented on GitHub (Mar 26, 2026):
UPDATE: I've submitted PR #23104 targeting the dev branch with proper CLA confirmation. This should fix the license validation issue for all affected users.
<!-- gh-comment-id:4136839402 -->
@yang1002378395-cmyk commented on GitHub (Mar 26, 2026):
UPDATE: I've submitted PR #23104 targeting the dev branch with proper CLA confirmation. This should fix the license validation issue for all affected users.
Thanks
Baddly we begun to migrate from 0.7.2 to 0.8.11 with the huge database migration that was blocked in the 0.8.10 that's why we were waiting for the integration of the patch for historic table migration.
Here we are in the middle need to be on 0.8.11 for database patch and on 0.8.10 for the license.
I hope there will be soon a new release for the license patch so we can restore access.
<!-- gh-comment-id:4137048060 -->
@flefevre commented on GitHub (Mar 26, 2026):
Thanks
Baddly we begun to migrate from 0.7.2 to 0.8.11 with the huge database migration that was blocked in the 0.8.10 that's why we were waiting for the integration of the patch for historic table migration.
Here we are in the middle need to be on 0.8.11 for database patch and on 0.8.10 for the license.
I hope there will be soon a new release for the license patch so we can restore access.
@yang1002378395-cmyk I've seen you in the last couple of days attempting to submit PRs dozens of times and failing each time. Please stop the PR spam. You don't even read the PR description and therefore all your PRs get insta-closed. Please stop the slop spam or risk getting blocked
<!-- gh-comment-id:4137458884 -->
@Classic298 commented on GitHub (Mar 26, 2026):
@yang1002378395-cmyk I've seen you in the last couple of days attempting to submit PRs dozens of times and failing each time. Please stop the PR spam. You don't even read the PR description and therefore all your PRs get insta-closed. Please stop the slop spam or risk getting blocked
<!-- gh-comment-id:4138918359 -->
@Classic298 commented on GitHub (Mar 26, 2026):
should be fixed by https://github.com/open-webui/open-webui/commit/16335f866ea4cedf00c4971963622fcc1fe02d82
Just to confirm: this is FIXED !
We made the migration from 0.7.2 to 0.8.12
@Classic298 Everything is fine ! Thanks a lot.
<!-- gh-comment-id:4144979554 -->
@flefevre commented on GitHub (Mar 27, 2026):
Just to confirm: this is FIXED !
We made the migration from 0.7.2 to 0.8.12
@Classic298 Everything is fine ! Thanks a lot.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @flefevre on GitHub (Mar 26, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23094
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
0.8.11
Ollama Version (if applicable)
No response
Operating System
Ubuntu 22.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When starting openwebui with l.data file for license, the user interface should display the color, logo
Actual Behavior
We have a log message
Steps to Reproduce
Just upgrade openwebui and load l.data
Logs & Screenshots
no logo
License: '<' not supported between instances of 'str' and 'datetime.date'", "caller": "open_webui.utils.auth:get_license_data:152
Additional Information
initial code in backend\open_webui\utils\auth.py
new code perhaps linked to the error
@yang1002378395-cmyk commented on GitHub (Mar 26, 2026):
Root Cause Analysis
The issue is at
backend/open_webui/utils/auth.pyline 148:Problem:
data.get('exp')returns a string from JSON parsing, butdatetime.now().date()returns adatetime.dateobject. Python cannot comparestr < datetime.date.Fix
Convert
expto date before comparison:Or if the format varies:
Impact: License validation fails for all users with
l.datafiles in v0.8.11.Workaround: Users can downgrade to v0.8.10 until this is fixed.
@yang1002378395-cmyk commented on GitHub (Mar 26, 2026):
UPDATE: I've submitted PR #23104 targeting the dev branch with proper CLA confirmation. This should fix the license validation issue for all affected users.
@flefevre commented on GitHub (Mar 26, 2026):
Thanks
Baddly we begun to migrate from 0.7.2 to 0.8.11 with the huge database migration that was blocked in the 0.8.10 that's why we were waiting for the integration of the patch for historic table migration.
Here we are in the middle need to be on 0.8.11 for database patch and on 0.8.10 for the license.
I hope there will be soon a new release for the license patch so we can restore access.
@Classic298 commented on GitHub (Mar 26, 2026):
@yang1002378395-cmyk I've seen you in the last couple of days attempting to submit PRs dozens of times and failing each time. Please stop the PR spam. You don't even read the PR description and therefore all your PRs get insta-closed. Please stop the slop spam or risk getting blocked
@Classic298 commented on GitHub (Mar 26, 2026):
should be fixed by https://github.com/open-webui/open-webui/commit/16335f866ea4cedf00c4971963622fcc1fe02d82
@flefevre commented on GitHub (Mar 27, 2026):
Just to confirm: this is FIXED !
We made the migration from 0.7.2 to 0.8.12
@Classic298 Everything is fine ! Thanks a lot.