Error Upgrade Home Assistant Core LXC #460

Closed
opened 2026-02-04 19:02:53 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @Hoosier-IT on GitHub (Feb 8, 2025).

Have you read and understood the above guidelines?

yes

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

Home Assistant Core LXC

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

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

📝 Provide a clear and concise description of the issue.

[ERROR] in line 67: exit code 0: while executing command pip install ${BR}--upgrade homeassistant &> /dev/null

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

No response

🔄 Steps to reproduce the issue.

Proxmox 8.3.3
Upgrade Home Assistant Core LXC, from Ubuntu 24.04 to Ubuntu 24.10
Attempt to upgrade Home Assistant Core LXC using command provided

Paste the full error output (if available).

  • echo ' __ __ ___ _ __ __ ______
    / / / /___ ____ ___ ___ / | ()/ / _____ / /_ / / ________
    / /
    / / __ / __ __ \/ _ \ / /| | / ___/ ___/ / ___/ __/ __ / __ / // / / __ / / _
    / __ / /
    / / / / / / / / / ___ |( |
    ) (
    ) // // / / / / /_/
    / // // / / / __/
    /
    / //_
    // // //_/ // |/////_/_,// //_/ _/_// _/
    '


    / / / /___ ____ ___ ___ / | ()/ / _____ / /_ / / ________
    / /
    / / __ / __ __ \/ _ \ / /| | / ___/ ___/ / ___/ __/ __ / __ / // / / __ / / _
    / __ / /
    / / / / / / / / / ___ |( |
    ) (
    ) // // / / / / /_/
    / // // / / / __/
    /
    / //_
    // // //_/ // |/////_/_,// //_/ _/_// _/

  • echo -e '\033[1;92mUpdating to Stable Version\033[m'
    Updating to Stable Version

  • BR=

  • msg_info 'Stopping Home Assistant'

  • local 'msg=Stopping Home Assistant'

  • echo -ne ' \033[33m Stopping Home Assistant '
    Stopping Home Assistant + SPINNER_PID=876

  • systemctl stop homeassistant

  • spinner

  • frames=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')

  • local frames

  • local spin_i=0

  • local interval=0.1

  • printf '\e[?25l'

  • local 'color=\033[93m'

  • true

  • printf '\r \033[93m%s\033[m' ⠋
    ⠋+ spin_i=1

  • sleep 0.1

  • msg_ok 'Stopped Home Assistant'

  • '[' -n 876 ']'

  • ps -p 876

  • kill 876

  • printf '\e[?25h'

  • local 'msg=Stopped Home Assistant'

  • echo -e '\r\033[K ✔️ \033[m\033[1;92mStopped Home Assistant\033[m'
    ✔️ Stopped Home Assistant

  • msg_info 'Updating Home Assistant'

  • local 'msg=Updating Home Assistant'

  • echo -ne ' \033[33m Updating Home Assistant '
    Updating Home Assistant + SPINNER_PID=881

  • source /srv/homeassistant/bin/activate

  • spinner

  • frames=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏')

  • local frames

  • local spin_i=0

  • local interval=0.1

  • printf '\e[?25l'

  • local 'color=\033[93m'

  • true

  • printf '\r \033[93m%s\033[m' ⠋
    ⠋+ spin_i=1

  • sleep 0.1
    ++ deactivate nondestructive
    ++ '[' -n '' ']'
    ++ '[' -n '' ']'
    ++ hash -r
    ++ '[' -n '' ']'
    ++ unset VIRTUAL_ENV
    ++ unset VIRTUAL_ENV_PROMPT
    ++ '[' '!' nondestructive = nondestructive ']'
    ++ case "$(uname)" in
    +++ uname
    ++ export VIRTUAL_ENV=/srv/homeassistant
    ++ VIRTUAL_ENV=/srv/homeassistant
    ++ _OLD_VIRTUAL_PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
    ++ PATH=/srv/homeassistant/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
    ++ export PATH
    ++ VIRTUAL_ENV_PROMPT=homeassistant
    ++ export VIRTUAL_ENV_PROMPT
    ++ '[' -n '' ']'
    ++ '[' -z '' ']'
    ++ _OLD_VIRTUAL_PS1=
    ++ PS1='(homeassistant) '
    ++ export PS1
    ++ hash -r

  • pip install --upgrade homeassistant
    ++ error_handler 67 'pip install ${BR}--upgrade homeassistant &> /dev/null'
    ++ source /dev/stdin
    +++ wget -qLO - https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/api.func

  • true

  • printf '\r \033[93m%s\033[m' ⠙
    ⠙+ spin_i=2

  • sleep 0.1
    +++ POST_UPDATE_DONE=false
    ++ '[' -n 881 ']'
    ++ ps -p 881
    ++ kill 881
    ++ printf '\e[?25h'
    ++ local exit_code=0
    ++ local line_number=67
    ++ local 'command=pip install ${BR}--upgrade homeassistant &> /dev/null'
    ++ local 'error_message=\033[01;31m[ERROR]\033[m in line \033[01;31m67\033[m: exit code \033[01;31m0\033[m: while executing command \033[33mpip install ${BR}--upgrade homeassistant &> /dev/null\033[m'
    ++ post_update_to_api failed 'pip install ${BR}--upgrade homeassistant &> /dev/null'
    ++ command -v curl
    ++ '[' false = true ']'
    ++ local API_URL=http://api.community-scripts.org/upload/updatestatus
    ++ local status=failed
    ++ local 'error=pip install ${BR}--upgrade homeassistant &> /dev/null'
    +++ cat
    ++ JSON_PAYLOAD='{
    "status": "failed",
    "error": "pip install ${BR}--upgrade homeassistant &> /dev/null",
    "random_id": "4fe7b5cf-766f-4120-9d8d-fce4b8481365"
    }'
    +++ curl -s -o response.txt -w '%{http_code}' -L -X POST http://api.community-scripts.org/upload/updatestatus --post301 --post302 -H 'Content-Type: application/json' -d '{
    "status": "failed",
    "error": "pip install ${BR}--upgrade homeassistant &> /dev/null",
    "random_id": "4fe7b5cf-766f-4120-9d8d-fce4b8481365"
    }'
    ++ RESPONSE=200
    ++ POST_UPDATE_DONE=true
    ++ echo -e '\n\033[01;31m[ERROR]\033[m in line \033[01;31m67\033[m: exit code \033[01;31m0\033[m: while executing command \033[33mpip install ${BR}--upgrade homeassistant &> /dev/null\033[m\n'

[ERROR] in line 67: exit code 0: while executing command pip install ${BR}--upgrade homeassistant &> /dev/null

  • exit_script
  • exit_code=1
  • '[' 1 -ne 0 ']'
  • case $exit_code in
  • post_update_to_api failed 'Unknown error, exit code: 1'
  • command -v curl
  • '[' true = true ']'
  • return 0

🖼️ Additional context (optional).

No response

Originally created by @Hoosier-IT on GitHub (Feb 8, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Home Assistant Core LXC ### 📂 What was the exact command used to execute the script? bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/homeassistant-core.sh)" ### 📝 Provide a clear and concise description of the issue. [ERROR] in line 67: exit code 0: while executing command pip install ${BR}--upgrade homeassistant &> /dev/null ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? _No response_ ### 🔄 Steps to reproduce the issue. Proxmox 8.3.3 Upgrade Home Assistant Core LXC, from Ubuntu 24.04 to Ubuntu 24.10 Attempt to upgrade Home Assistant Core LXC using command provided ### ❌ Paste the full error output (if available). + echo ' __ __ ___ _ __ __ ______ / / / /___ ____ ___ ___ / | __________(_)____/ /_____ _____ / /_ / ____/___ ________ / /_/ / __ \/ __ `__ \/ _ \ / /| | / ___/ ___/ / ___/ __/ __ `/ __ \/ __/_____/ / / __ \/ ___/ _ \ / __ / /_/ / / / / / / __/ / ___ |(__ |__ ) (__ ) /_/ /_/ / / / / /_/_____/ /___/ /_/ / / / __/ /_/ /_/\____/_/ /_/ /_/\___/ /_/ |_/____/____/_/____/\__/\__,_/_/ /_/\__/ \____/\____/_/ \___/ ' __ __ ___ _ __ __ ______ / / / /___ ____ ___ ___ / | __________(_)____/ /_____ _____ / /_ / ____/___ ________ / /_/ / __ \/ __ `__ \/ _ \ / /| | / ___/ ___/ / ___/ __/ __ `/ __ \/ __/_____/ / / __ \/ ___/ _ \ / __ / /_/ / / / / / / __/ / ___ |(__ |__ ) (__ ) /_/ /_/ / / / / /_/_____/ /___/ /_/ / / / __/ /_/ /_/\____/_/ /_/ /_/\___/ /_/ |_/____/____/_/____/\__/\__,_/_/ /_/\__/ \____/\____/_/ \___/ + echo -e '\033[1;92mUpdating to Stable Version\033[m' Updating to Stable Version + BR= + msg_info 'Stopping Home Assistant' + local 'msg=Stopping Home Assistant' + echo -ne ' \033[33m Stopping Home Assistant ' Stopping Home Assistant + SPINNER_PID=876 + systemctl stop homeassistant + spinner + frames=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏') + local frames + local spin_i=0 + local interval=0.1 + printf '\e[?25l' + local 'color=\033[93m' + true + printf '\r \033[93m%s\033[m' ⠋ ⠋+ spin_i=1 + sleep 0.1 + msg_ok 'Stopped Home Assistant' + '[' -n 876 ']' + ps -p 876 + kill 876 + printf '\e[?25h' + local 'msg=Stopped Home Assistant' + echo -e '\r\033[K ✔️ \033[m\033[1;92mStopped Home Assistant\033[m' ✔️ Stopped Home Assistant + msg_info 'Updating Home Assistant' + local 'msg=Updating Home Assistant' + echo -ne ' \033[33m Updating Home Assistant ' Updating Home Assistant + SPINNER_PID=881 + source /srv/homeassistant/bin/activate + spinner + frames=('⠋' '⠙' '⠹' '⠸' '⠼' '⠴' '⠦' '⠧' '⠇' '⠏') + local frames + local spin_i=0 + local interval=0.1 + printf '\e[?25l' + local 'color=\033[93m' + true + printf '\r \033[93m%s\033[m' ⠋ ⠋+ spin_i=1 + sleep 0.1 ++ deactivate nondestructive ++ '[' -n '' ']' ++ '[' -n '' ']' ++ hash -r ++ '[' -n '' ']' ++ unset VIRTUAL_ENV ++ unset VIRTUAL_ENV_PROMPT ++ '[' '!' nondestructive = nondestructive ']' ++ case "$(uname)" in +++ uname ++ export VIRTUAL_ENV=/srv/homeassistant ++ VIRTUAL_ENV=/srv/homeassistant ++ _OLD_VIRTUAL_PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin ++ PATH=/srv/homeassistant/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin ++ export PATH ++ VIRTUAL_ENV_PROMPT=homeassistant ++ export VIRTUAL_ENV_PROMPT ++ '[' -n '' ']' ++ '[' -z '' ']' ++ _OLD_VIRTUAL_PS1= ++ PS1='(homeassistant) ' ++ export PS1 ++ hash -r + pip install --upgrade homeassistant ++ error_handler 67 'pip install ${BR}--upgrade homeassistant &> /dev/null' ++ source /dev/stdin +++ wget -qLO - https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/api.func + true + printf '\r \033[93m%s\033[m' ⠙ ⠙+ spin_i=2 + sleep 0.1 +++ POST_UPDATE_DONE=false ++ '[' -n 881 ']' ++ ps -p 881 ++ kill 881 ++ printf '\e[?25h' ++ local exit_code=0 ++ local line_number=67 ++ local 'command=pip install ${BR}--upgrade homeassistant &> /dev/null' ++ local 'error_message=\033[01;31m[ERROR]\033[m in line \033[01;31m67\033[m: exit code \033[01;31m0\033[m: while executing command \033[33mpip install ${BR}--upgrade homeassistant &> /dev/null\033[m' ++ post_update_to_api failed 'pip install ${BR}--upgrade homeassistant &> /dev/null' ++ command -v curl ++ '[' false = true ']' ++ local API_URL=http://api.community-scripts.org/upload/updatestatus ++ local status=failed ++ local 'error=pip install ${BR}--upgrade homeassistant &> /dev/null' +++ cat ++ JSON_PAYLOAD='{ "status": "failed", "error": "pip install ${BR}--upgrade homeassistant &> /dev/null", "random_id": "4fe7b5cf-766f-4120-9d8d-fce4b8481365" }' +++ curl -s -o response.txt -w '%{http_code}' -L -X POST http://api.community-scripts.org/upload/updatestatus --post301 --post302 -H 'Content-Type: application/json' -d '{ "status": "failed", "error": "pip install ${BR}--upgrade homeassistant &> /dev/null", "random_id": "4fe7b5cf-766f-4120-9d8d-fce4b8481365" }' ++ RESPONSE=200 ++ POST_UPDATE_DONE=true ++ echo -e '\n\033[01;31m[ERROR]\033[m in line \033[01;31m67\033[m: exit code \033[01;31m0\033[m: while executing command \033[33mpip install ${BR}--upgrade homeassistant &> /dev/null\033[m\n' [ERROR] in line 67: exit code 0: while executing command pip install ${BR}--upgrade homeassistant &> /dev/null + exit_script + exit_code=1 + '[' 1 -ne 0 ']' + case $exit_code in + post_update_to_api failed 'Unknown error, exit code: 1' + command -v curl + '[' true = true ']' + return 0 ### 🖼️ Additional context (optional). _No response_
Author
Owner

@MickLesk commented on GitHub (Feb 8, 2025):

Clear Python Data and external managed Files

@MickLesk commented on GitHub (Feb 8, 2025): Clear Python Data and external managed Files
Author
Owner

@Hoosier-IT commented on GitHub (Feb 8, 2025):

root@homeassistant-core:# find . -type d -name "pycache" -exec rm -r {} +
find . -type f -name "*.pyc" -exec rm {} +
root@homeassistant-core:
# sudo apt-get clean
sudo apt-get autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@homeassistant-core:~# pip cache purge
WARNING: No matching packages
Files removed: 0

Ran the script again, same error

@Hoosier-IT commented on GitHub (Feb 8, 2025): root@homeassistant-core:~# find . -type d -name "__pycache__" -exec rm -r {} + find . -type f -name "*.pyc" -exec rm {} + root@homeassistant-core:~# sudo apt-get clean sudo apt-get autoremove Reading package lists... Done Building dependency tree... Done Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. root@homeassistant-core:~# pip cache purge WARNING: No matching packages Files removed: 0 Ran the script again, same error
Author
Owner

@MickLesk commented on GitHub (Feb 8, 2025):

I mean this
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED

@MickLesk commented on GitHub (Feb 8, 2025): I mean this rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#460