January 29, 20251 yr Has anyone managed to configure this docker Lite LLM? I didn't understand the manual and I couldn't configure the .yaml file
March 14, 20251 yr I believe something is wrong with the template mounting the volume after some of the variables because I'm getting a oci runtime create failed --config executable file not found in $Path: unknown
March 15, 20251 yr Having the same issue. If I do change the mapping directly to the file, not the directory (like @TD2779 mentioned) : at least I am getting a step further. But docker then is complaining it would be a directory? Edited March 15, 20251 yr by seppo clarification
March 15, 20251 yr 8 hours ago, seppo said: Having the same issue. If I do change the mapping directly to the file, not the directory (like @TD2779 mentioned) : at least I am getting a step further. But docker then is complaining it would be a directory? Ok, one step closer! You need to directly point it to the config.yaml BUT it has to be in a subfolder! Putting it in "configDir" solved this for me. so the full path now is: "/mnt/user/appdata/LiteLLM/configDir/config.yaml" see screenshot. Only now I am stuck with getting the config right 🤪 This unraid template is the least straight forward. At least for me.
March 16, 20251 yr Ya I came to the same conclusion and got it working by mapping the config directly into the container in a subfolder then got stuck with the same database_url error. Apparently litellm needs a database so you will need to add a connection string to tell litellm where the database is. I configured it by using the docs and connecting it to a Postgres16 container. Connection string should look like this and be added as a line into the config.yaml where the commented out database url is. database_url: "postgresql://<user>:<password>@<host>:<port>/<dbname>" Example database_url: "postgresql://admin:[email protected]:5432/litellm"
March 16, 20251 yr Came here after watching NetworkChucks Video https://www.youtube.com/watch?v=nQCOTzS5oU0 The Unraid app template is certianly broken. But only needs a few tweaks. My steps to get it working Step1 : Create postgresql16 docker - Pick a dir that does not conflict with any other postgres16 you may have (important if you do) - Create = user / pass / database name Step2: Create LiteLLM config in appdata folder to refrence in step 3 - /mnt/user/appdata/LiteLLM/configDir/litellm_config.yaml - create your own key - enter your postgres details as above in Step1 Quote general_settings: master_key: sk-XXXXXXXXX store_model_in_db: True database_url: "postgresql://<username>:<password>@<IP>:<port>/<database>" Step3: Create LiteLLM Docker - I had to use different tag due to user issue when loding URL. You can try latest, but if you fail copy as below (ghcr.io/berriai/litellm:main-v1.63.7-nightly) - Fix dir structure for config: /mnt/user/appdata/LiteLLM/configDir/litellm_config.yaml > /app/config.yaml Step4: Log in to web GUI with admin / <master key set in config> The rest you can set up in gui Edited March 16, 20251 yr by Raider_M
March 22, 20251 yr Thank you Raider_M, your post helped me to achieve my goal, very detailed and informative. People like you and all the other supportive guys in this forum make the Unraid community great!
April 22, 20251 yr @Raider_M @JamieS Hello, did either of you find this to be worthwhile in the end? I don’t mind putting in the work to get one of these working, but I’d love for that time to go towards a good solution. I’m struggling to figure out which software is the most useful as I see fairly equal votes for this, Librechat, and open webui plus some others. I primarily use Claude and gpt4o if that’s relevant. Thanks for any insight you can provide!!
April 24, 20251 yr I have followed the above guide from @Raider_M and had some issue that seems be solved now, but then another problem came after the docker runs for about 20-30 seconds. Anyone know a fix for that?
May 22, 20251 yr Thx this solved it for me :Manual make a directory (liteconfigdir)make yamle fith name config.yaml not another name... didnt work at my Unraidmake a new Variable Field and give it the $LITELLM_DATABASE_PASSWORD and your real PW so use ityaml file:GNU nano 8.4 config.yamlgeneral_settings:master_key: sk-111222333444 #your set masterkeystore_model_in_db: Truedatabase:type: "postgres" #i used postgres if you use mysql than change this to ithost: "localhost"port: 5555 #the port my db is listeningusername: "admin" #Username of DBpassword: "$LITELLM_DATABASE_PASSWORD" #Password is saved in variable in Unraid Screendatabase_name: "LiteLLM" #the set DB name Edited May 22, 20251 yr by Olivilo
June 8, 20251 yr Okay so after following the steps, I have gotten LiteLLM to run, but when I go to the ui page my browser shows a blank page.... what gives?When I look at the logs when trying to launch the ui I get this...LiteLLM: Proxy initialized with Config, Set models:gpt-3.5-turbo-end-user-testgpt-3.5-turbo-end-user-testgpt-3.5-turbogpt-3.5-turbo-largegpt-4sagemaker-completion-modeltext-embedding-ada-002dall-e-2openai-dall-e-3fake-openai-endpointfake-openai-endpoint-2fake-openai-endpoint-3fake-openai-endpoint-4fake-openai-endpoint-3bad-modelgood-model*anthropic/*bedrock/*groq/*mistral-embedgpt-instructfake-openai-endpoint-5badly-configured-openai-endpointINFO: 10.0.0.15:61841 - "GET /ui HTTP/1.1" 307 Temporary RedirectINFO: 10.0.0.15:61841 - "GET /ui/ HTTP/1.1" 200 OKINFO: 10.0.0.15:61841 - "GET /litellm2/_next/static/chunks/webpack-a426aae3231a8df1.js HTTP/1.1" 404 Not FoundINFO: 10.0.0.15:61843 - "GET /litellm2/_next/static/chunks/fd9d1056-205af899b895cbac.js HTTP/1.1" 404 Not FoundINFO: 10.0.0.15:61844 - "GET /litellm2/_next/static/chunks/117-c4922b1dd81b62ce.js HTTP/1.1" 404 Not FoundINFO: 10.0.0.15:61845 - "GET /litellm2/_next/static/chunks/main-app-4f7318ae681a6d94.js HTTP/1.1" 404 Not FoundINFO: 10.0.0.15:61841 - "GET /litellm2/_next/static/chunks/fd9d1056-205af899b895cbac.js HTTP/1.1" 404 Not FoundINFO: 10.0.0.15:61843 - "GET /litellm2/_next/static/chunks/117-c4922b1dd81b62ce.js HTTP/1.1" 404 Not FoundINFO: 10.0.0.15:61844 - "GET /litellm2/_next/static/chunks/main-app-4f7318ae681a6d94.js HTTP/1.1" 404 Not FoundINFO: 10.0.0.15:61841 - "GET /litellm2/_next/static/chunks/webpack-a426aae3231a8df1.js HTTP/1.1" 404 Not Found17:59:02 - LiteLLM Proxy:DEBUG: hanging_request_check.py:148 - Checking for hanging requests....18:01:32 - LiteLLM Proxy:DEBUG: hanging_request_check.py:148 - Checking for hanging requests....It looks like there are some .js files (javascript files maybe?) that is not finding... I am not sure what I have done wrong. Any help would be appreciated.Thanks in advance.
June 12, 20251 yr On 4/22/2025 at 3:37 PM, jss said:@Raider_M @JamieS Hello, did either of you find this to be worthwhile in the end? I don’t mind putting in the work to get one of these working, but I’d love for that time to go towards a good solution. I’m struggling to figure out which software is the most useful as I see fairly equal votes for this, Librechat, and open webui plus some others. I primarily use Claude and gpt4o if that’s relevant. Thanks for any insight you can provide!!I'm also in the same boat.... any opinions?
June 14, 20251 yr I got it to work.The docker container is weird because it creates config.yaml as a directory instead of a file. The problem is the path creation.It is very easy, Here is the complete guide on how to fix it.Install Postgresql 16Nothing fancy here, stock standard.(optional) if you don't know how to use postgresql, install pgadmin. Standard install, login, create a database, create/assign whatever user you want or leave it the default postgres with the password postgres and be done with it. You don't need to do anything crazyInstall LiteLLM - Guide1 Install the docker container as it is (it will fail) - that's okLet the container fail, that's fine, you will need to tweak a couple of things.2 Remove the config directory and replace it with litellm_config.yaml3 Edit litellm_config.yamlAdd the following to litellm_config.yamlgeneral_settings: master_key: sk-112233(whatever-this-will-be-your-login-password) store_model_in_db: True database_url: "postgresql://postgres:[email protected]:5432/litellm" The guide to follow for the last line (database_url) is this: database_url: "postgresql://<username>:<password>@<IP>:<port>/<database>"My server doesn't want to accept localhost as the IP address so I wrote down the IP address of the server.4 Update the LitleLLM container with the new variable (This is where it fails)Edit the config path.Enjoy LiteLLM. Edited June 15, 20251 yr by Jules wording
June 16, 20251 yr On 6/14/2025 at 4:34 PM, Jules said:I got it to work.The docker container is weird because it creates config.yaml as a directory instead of a file. The problem is the path creation.It is very easy, Here is the complete guide on how to fix it.Install Postgresql 16Nothing fancy here, stock standard.(optional) if you don't know how to use postgresql, install pgadmin. Standard install, login, create a database, create/assign whatever user you want or leave it the default postgres with the password postgres and be done with it. You don't need to do anything crazyInstall LiteLLM - Guide1 Install the docker container as it is (it will fail) - that's okLet the container fail, that's fine, you will need to tweak a couple of things.2 Remove the config directory and replace it with litellm_config.yaml3 Edit litellm_config.yamlAdd the following to litellm_config.yamlgeneral_settings: master_key: sk-112233(whatever-this-will-be-your-login-password) store_model_in_db: True database_url: "postgresql://postgres:[email protected]:5432/litellm" The guide to follow for the last line (database_url) is this: database_url: "postgresql://<username>:<password>@<IP>:<port>/<database>"My server doesn't want to accept localhost as the IP address so I wrote down the IP address of the server.4 Update the LitleLLM container with the new variable (This is where it fails)Edit the config path.Enjoy LiteLLM.Thanks ! This worked for me too
May 4May 4 Side note: a database is not strictly needed for LiteLLM to work. You do need it if you want to use the GUI, though.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.