Skip to content

Ollama removed when update openWebUIΒ #5598

@JohanHardy

Description

@JohanHardy

βœ… Have you read and understood the above guidelines?

yes

πŸ“œ What is the name of the script you are using?

https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/openwebui.sh

πŸ“‚ What was the exact command used to execute the script?

update in proxmox console for openwebui

βš™οΈ 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.

In the update script there is an error : https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/openwebui.sh

The ollama binary is removed before checking its version. Please move the "rm -rf" commands on lib and bin within the IF release is different than current.

Otherwise, the ollama is removed and no more update is feasible on ollama afterward.

πŸ”„ Steps to reproduce the issue.

execute "update" with an ollama instance in Linux console from proxmox.

❌ Paste the full error output (if available).

Error at OLLAMA_VERSION=$(ollama -v | awk '{print $NF}') because ollama is removed just above

πŸ–ΌοΈ Additional context (optional).

Work around, make your own update script for ollama πŸ‘

root@HOME-LLM:~# cat ./update_ollama.sh #!/usr/bin/env bash source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) OLLAMA_VERSION=$(ollama -v | awk '{print $NF}') RELEASE=$(curl -s https://api.github.com/repos/ollama/ollama/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4)}') if [ "$OLLAMA_VERSION" != "$RELEASE" ]; then rm -rf /usr/lib/ollama rm -rf /usr/bin/ollama curl -fsSLO https://ollama.com/download/ollama-linux-amd64.tgz tar -C /usr -xzf ollama-linux-amd64.tgz rm -rf ollama-linux-amd64.tgz msg_ok "Ollama updated to version $RELEASE" else msg_ok "Ollama is already up to date." fi

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions