update for openwebui failes with not a git repository (or any of the parent directories): .git #1108

Closed
opened 2025-11-20 05:04:33 -05:00 by saavagebueno · 6 comments
Owner

Originally created by @marcfree on GitHub (May 16, 2025).

Originally assigned to: @tremor021 on GitHub.

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

openwebui

📂 What was the exact command used to execute the script?

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/openwebui.sh)"

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

📝 Provide a clear and concise description of the issue.

I've installed OpenwebUI LXC in early Feb'25. The first time (maybe until End of March) went ok, since then, I get the following error (and just find today time to dive into it.
When I try to update the LXC it fails with an error
[ERROR] in line 49: exit code 0: while executing command git add -A
Even the following lines git stash etc. doesn't work. The folder /opt/openweb-ui (which is called in line 46) seems to be not using git:
root@openwebui:/opt/open-webui# git status
fatal: not a git repository (or any of the parent directories): .git

🔄 Steps to reproduce the issue.

Step 1: Logon to the LXC container
Step 2: Run update (in verbose or silent doesn't matter)

Paste the full error output (if available).

` ____ _ __ __ __ ______
/ __ ____ ___ ____ | | / /__ / /_ / / / / /
/ / / / __ / _ / __ \ | | /| / / _ / __ / / / // /
/ /
/ / // / __/ / / / | |/ |/ / __/ // / // // /
_
/ ./_// // |/|/_/./_//
/
/

✔️ Ollama is already up to date.
⠏ Updating Open WebUI (Patience)fatal: not a git repository (or any of the parent directories): .git
⠋ Updating Open WebUI (Patience)
[ERROR] in line 49: exit code 0: while executing command git add -A`

🖼️ Additional context (optional).

No response

Originally created by @marcfree on GitHub (May 16, 2025). Originally assigned to: @tremor021 on GitHub. ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? openwebui ### 📂 What was the exact command used to execute the script? bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/openwebui.sh)" ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 📝 Provide a clear and concise description of the issue. I've installed OpenwebUI LXC in early Feb'25. The first time (maybe until End of March) went ok, since then, I get the following error (and just find today time to dive into it. When I try to update the LXC it fails with an error `[ERROR] in line 49: exit code 0: while executing command git add -A` Even the following lines git stash etc. doesn't work. The folder /opt/openweb-ui (which is called in line 46) seems to be not using git: `root@openwebui:/opt/open-webui# git status` `fatal: not a git repository (or any of the parent directories): .git` ### 🔄 Steps to reproduce the issue. Step 1: Logon to the LXC container Step 2: Run `update` (in verbose or silent doesn't matter) ### ❌ Paste the full error output (if available). ` ____ _ __ __ __ ______ / __ \____ ___ ____ | | / /__ / /_ / / / / _/ / / / / __ \/ _ \/ __ \ | | /| / / _ \/ __ \/ / / // / / /_/ / /_/ / __/ / / / | |/ |/ / __/ /_/ / /_/ // / \____/ .___/\___/_/ /_/ |__/|__/\___/_.___/\____/___/ /_/ ✔️ Ollama is already up to date. ⠏ Updating Open WebUI (Patience)fatal: not a git repository (or any of the parent directories): .git ⠋ Updating Open WebUI (Patience) [ERROR] in line 49: exit code 0: while executing command git add -A` ### 🖼️ Additional context (optional). _No response_
saavagebueno added the bug label 2025-11-20 05:04:33 -05:00
Author
Owner

@MickLesk commented on GitHub (May 19, 2025):

@tremor021 can you take a look?

@MickLesk commented on GitHub (May 19, 2025): @tremor021 can you take a look?
Author
Owner

@tremor021 commented on GitHub (May 19, 2025):

This probably needs a rewrite as i dont see a benefit of using git pulls (which is how the script initially is written). @MickLesk

@marcfree Can you do ls /opt/open-webui/backend/data so we can check if you still have data directory.
As i will most likely have to refactor the script and you will need your data backed up, make sure you have this directory backed up. maybe install File Browser addon and download all files from that directory

@tremor021 commented on GitHub (May 19, 2025): This probably needs a rewrite as i dont see a benefit of using git pulls (which is how the script initially is written). @MickLesk @marcfree Can you do `ls /opt/open-webui/backend/data` so we can check if you still have data directory. As i will most likely have to refactor the script and you will need your data backed up, make sure you have this directory backed up. maybe install File Browser addon and download all files from that directory
Author
Owner

@marcfree commented on GitHub (May 19, 2025):

Hi @tremor021 , thanks for picking this up so fast. Yes, I still have data and can use the LXC - just the OpenwebUI is on an old version (0.5.18):

root@openwebui:/opt/open-webui-backup/data# ls /opt/open-webui/backend/data/ audit.log cache readme.txt uploads vector_db webui.db

If correcting "my" special case, causes a lot of work, please skip it, I can absolutely start over.

I appreciate your help.

@marcfree commented on GitHub (May 19, 2025): Hi @tremor021 , thanks for picking this up so fast. Yes, I still have data and can use the LXC - just the OpenwebUI is on an old version (0.5.18): `root@openwebui:/opt/open-webui-backup/data# ls /opt/open-webui/backend/data/ audit.log cache readme.txt uploads vector_db webui.db` If correcting "my" special case, causes a lot of work, please skip it, I can absolutely start over. I appreciate your help.
Author
Owner

@tremor021 commented on GitHub (May 19, 2025):

The thing is, i just installed Openweb, tried update, it all went fine. But...

For some reason you are missing .git directory that is used to track down changes. If you have a option to start over, i would appreciate you doing so. The script needs a rewrite anyway, but i'm not sure how fast it can be done.

@tremor021 commented on GitHub (May 19, 2025): The thing is, i just installed Openweb, tried update, it all went fine. But... For some reason you are missing .git directory that is used to track down changes. If you have a option to start over, i would appreciate you doing so. The script needs a rewrite anyway, but i'm not sure how fast it can be done.
Author
Owner

@marcfree commented on GitHub (May 20, 2025):

Don't know what went wrong. But yes, I'll download the files and will do a new install :) Thank for having a look and helping me out 👍

@marcfree commented on GitHub (May 20, 2025): Don't know what went wrong. But yes, I'll download the files and will do a new install :) Thank for having a look and helping me out 👍
Author
Owner

@tremor021 commented on GitHub (May 22, 2025):

@marcfree in the newest version of OpenWebUI they dont need .git directory, as shown here:
ed0659aca6

As soon as they release the next version, the need for .git directory is gone and you can update freely

@tremor021 commented on GitHub (May 22, 2025): @marcfree in the newest version of OpenWebUI they dont need .git directory, as shown here: https://github.com/open-webui/open-webui/commit/ed0659aca60eedadadba4362b309015b4a8368c6 As soon as they release the next version, the need for .git directory is gone and you can update freely
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#1108