TeddyCloud community script fails updating - overwriting www dir with old files #326

Open
opened 2025-11-20 04:46:59 -05:00 by saavagebueno · 0 comments
Owner

Originally created by @SciLor on GitHub (Jan 9, 2025).

Originally assigned to: @dsiebel on GitHub.

Have you read and understood the above guidelines?

yes

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

teddycloud

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

And how you updated teddyCloud? bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/teddycloud.sh)"

📝 Provide a clear and concise description of the issue.

The script first downloads and unzips the new version (a) and then copies over the data dir (b) over the unzipped files. The data dir contains version specific files in the www directory. So the frontend will be overwritten with the previous version.
As alternative I would copy over the previous data dir first and then overwrite it with the data from the zipfile.

a)
19e7751fb9/ct/teddycloud.sh (L41)
b)
19e7751fb9/ct/teddycloud.sh (L46)

I would suggest replicating the volumes of the docker version.
https://github.com/toniebox-reverse-engineering/teddycloud/blob/master/docker/docker-compose.yaml

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Ubuntu 24.04

🔄 Steps to reproduce the issue.

Install version 0.6.2 of teddyCloud and then update to 0.6.3 using the script

Paste the full error output (if available).

"Error - the GUI is not in the expected state.
The backend has a different version than the frontend. In a Docker installation, please ensure that no volume has been created under data/www."

🖼️ Additional context (optional).

No response

Originally created by @SciLor on GitHub (Jan 9, 2025). Originally assigned to: @dsiebel on GitHub. ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? teddycloud ### 📂 What was the exact command used to execute the script? And how you updated teddyCloud? bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/teddycloud.sh)" ### 📝 Provide a clear and concise description of the issue. The script first downloads and unzips the new version (a) and then copies over the data dir (b) over the unzipped files. The data dir contains version specific files in the www directory. So the frontend will be overwritten with the previous version. As alternative I would copy over the previous data dir first and then overwrite it with the data from the zipfile. a) https://github.com/community-scripts/ProxmoxVE/blob/19e7751fb90f0063826245656958efbce57ac0e3/ct/teddycloud.sh#L41 b) https://github.com/community-scripts/ProxmoxVE/blob/19e7751fb90f0063826245656958efbce57ac0e3/ct/teddycloud.sh#L46 I would suggest replicating the volumes of the docker version. https://github.com/toniebox-reverse-engineering/teddycloud/blob/master/docker/docker-compose.yaml ### ⚙️ What settings are you using? - [X] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Ubuntu 24.04 ### 🔄 Steps to reproduce the issue. Install version 0.6.2 of teddyCloud and then update to 0.6.3 using the script ### ❌ Paste the full error output (if available). "Error - the GUI is not in the expected state. The backend has a different version than the frontend. In a Docker installation, please ensure that no volume has been created under data/www." ### 🖼️ Additional context (optional). _No response_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#326