mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-15 12:36:27 -05:00
docker start AttributeError: 'NoneType' object has no attribute 'pop' ERROR: Application startup failed. Exiting. #563
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cnchef on GitHub (Mar 29, 2024).
Bug Report
Description
Bug Summary:
[Provide a brief but clear summary of the bug]
When starting a Docker image, I noticed an error in the logs. Even after deleting the container and starting a new one, the same error persists. I'm not sure how to resolve it.
Here are the commands for starting the container, both locally and on a remote server:
Local deployment:
Multi-server deployment:
Steps to Reproduce:
[Outline the steps to reproduce the bug. Be as detailed as possible.]
[root@localhost ~]# docker logs -f open-webui
No WEBUI_SECRET_KEY provided
Generating WEBUI_SECRET_KEY
Loading WEBUI_SECRET_KEY from .webui_secret_key
INFO: Started server process [1]
INFO: Waiting for application startup.
ERROR: Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 734, in lifespan
async with self.lifespan_context(app) as maybe_state:
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 610, in aenter
await self._router.startup()
File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 711, in startup
await handler()
File "/app/backend/main.py", line 150, in on_startup
await litellm_app_startup()
File "/app/backend/apps/litellm/main.py", line 38, in startup
await config()
File "/app/backend/apps/litellm/main.py", line 30, in config
router, model_list, general_settings = await proxy_config.load_config(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/litellm/proxy/proxy_server.py", line 1512, in load_config
printed_yaml.pop("environment_variables", None)
^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'pop'
ERROR: Application startup failed. Exiting.
Expected Behavior:
[Describe what you expected to happen.]
Actual Behavior:
[Describe what actually happened.]
Environment
Reproduction Details
Confirmation:
Logs and Screenshots
Browser Console Logs:
[Include relevant browser console logs, if applicable]
Docker Container Logs:
[Include relevant Docker container logs, if applicable]
Screenshots (if applicable):
[Attach any relevant screenshots to help illustrate the issue]
Installation Method
[Describe the method you used to install the project, e.g., manual installation, Docker, package manager, etc.]
Additional Information
[Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.]
Note
If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!