From 6eccf8668e19ef05424351b6e3a5a9da977eca8c Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 5 Mar 2025 19:14:43 -0800 Subject: [PATCH] fix: non-root container issue --- backend/open_webui/config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/open_webui/config.py b/backend/open_webui/config.py index 9b8e865fc..1e265f2ce 100644 --- a/backend/open_webui/config.py +++ b/backend/open_webui/config.py @@ -593,7 +593,10 @@ for file_path in (FRONTEND_BUILD_DIR / "static").glob("**/*"): (FRONTEND_BUILD_DIR / "static") ) target_path.parent.mkdir(parents=True, exist_ok=True) - shutil.copyfile(file_path, target_path) + try: + shutil.copyfile(file_path, target_path) + except Exception as e: + logging.error(f"An error occurred: {e}") frontend_favicon = FRONTEND_BUILD_DIR / "static" / "favicon.png"