[GH-ISSUE #12003] Patchmon update script error #2520

Closed
opened 2026-02-26 12:52:43 +03:00 by kerem · 8 comments
Owner

Originally created by @jmcruvellier on GitHub (Feb 16, 2026).
Original GitHub issue: https://github.com/community-scripts/ProxmoxVE/issues/12003

Originally assigned to: @vhsdream on GitHub.

Have you read and understood the above guidelines?

yes

🔎 Did you run the script with verbose mode enabled?

No (this issue will likely be closed automatically)

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

Patchmon

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

update

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 13

📈 Which Proxmox version are you on?

9.1.5

📝 Provide a clear and concise description of the issue.

Update script never ends, and display an error message:

Image

LOCAL_IP variable is effectively used in line 51 of patchmon.sh script but never defined and assigned before.

🔄 Steps to reproduce the issue.

Run update command

Paste the full error output (if available).

____        __       __    __  ___          

/ __ ____ / // / / |/ / ____
/ /
/ / __ `/ / / __ / /|/ / __ / __
/ __/ // / // /
/ / / / / / / // / / / /
/
/ _,/__/_
// /// //__// //

✔️ Update Node.js 24
✔️ Update available: PatchMon 1.4.0 → 1.4.1
✔️ Stopped Service
✔️ Backup Created
✔️ Deployed: PatchMon (1.4.1)
⠸ Updating PatchMonenvironment: line 51: LOCAL_IP: unbound variable
⠧ Updating PatchMon

🖼️ Additional context (optional).

No response

Originally created by @jmcruvellier on GitHub (Feb 16, 2026). Original GitHub issue: https://github.com/community-scripts/ProxmoxVE/issues/12003 Originally assigned to: @vhsdream on GitHub. ### ✅ Have you read and understood the above guidelines? yes ### 🔎 Did you run the script with verbose mode enabled? No (this issue will likely be closed automatically) ### 📜 What is the name of the script you are using? Patchmon ### 📂 What was the exact command used to execute the script? update ### ⚙️ What settings are you using? - [ ] Default Settings - [x] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 13 ### 📈 Which Proxmox version are you on? 9.1.5 ### 📝 Provide a clear and concise description of the issue. Update script never ends, and display an error message: <img width="900" height="405" alt="Image" src="https://github.com/user-attachments/assets/6eb674e9-4cd7-44ca-9a59-7c4b9ec3b5c5" /> LOCAL_IP variable is effectively used in line 51 of patchmon.sh script but never defined and assigned before. ### 🔄 Steps to reproduce the issue. Run update command ### ❌ Paste the full error output (if available). ____ __ __ __ ___ / __ \____ _/ /______/ /_ / |/ /___ ____ / /_/ / __ `/ __/ ___/ __ \/ /|_/ / __ \/ __ \ / ____/ /_/ / /_/ /__/ / / / / / / /_/ / / / / /_/ \__,_/\__/\___/_/ /_/_/ /_/\____/_/ /_/ ✔️ Update Node.js 24 ✔️ Update available: PatchMon 1.4.0 → 1.4.1 ✔️ Stopped Service ✔️ Backup Created ✔️ Deployed: PatchMon (1.4.1) ⠸ Updating PatchMonenvironment: line 51: LOCAL_IP: unbound variable ⠧ Updating PatchMon ### 🖼️ Additional context (optional). _No response_
kerem 2026-02-26 12:52:43 +03:00
Author
Owner

@MickLesk commented on GitHub (Feb 16, 2026):

How do you Update? In Proxmox webui in the LXC?

Is it the correct Script in /usr/bin/update ?

<!-- gh-comment-id:3910367437 --> @MickLesk commented on GitHub (Feb 16, 2026): How do you Update? In Proxmox webui in the LXC? Is it the correct Script in /usr/bin/update ?
Author
Owner

@jmcruvellier commented on GitHub (Feb 16, 2026):

How do you Update? In Proxmox webui in the LXC?

Is it the correct Script in /usr/bin/update ?

As I said in the issue description : update command in the shell
patchmon-install.sh script has been refactored yesterday, and introduced this bug: github.com/community-scripts/ProxmoxVE@4d125e29fe
LOCAL_IP has been introduced, is used line 52 but never declared/assigned before:

Image
<!-- gh-comment-id:3910371973 --> @jmcruvellier commented on GitHub (Feb 16, 2026): > How do you Update? In Proxmox webui in the LXC? > > Is it the correct Script in /usr/bin/update ? As I said in the issue description : update command in the shell patchmon-install.sh script has been refactored yesterday, and introduced this bug: https://github.com/community-scripts/ProxmoxVE/commit/4d125e29fe1ec03055349df71c29386cb57dbed8 LOCAL_IP has been introduced, is used line 52 but never declared/assigned before: <img width="1352" height="336" alt="Image" src="https://github.com/user-attachments/assets/711a4a38-2b4b-482b-9fb0-42624e065f7b" />
Author
Owner

@MickLesk commented on GitHub (Feb 16, 2026):

LOCAL_IP is always declared in our Scripts. Its Part of core. Thats the reason for my questions

<!-- gh-comment-id:3910441449 --> @MickLesk commented on GitHub (Feb 16, 2026): LOCAL_IP is always declared in our Scripts. Its Part of core. Thats the reason for my questions
Author
Owner

@jmcruvellier commented on GitHub (Feb 16, 2026):

LOCAL_IP is always declared in our Scripts. Its Part of core. Thats the reason for my questions

I've just tried with online update command : bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/patchmon.sh)"
Same issue than local update script

<!-- gh-comment-id:3910471226 --> @jmcruvellier commented on GitHub (Feb 16, 2026): > LOCAL_IP is always declared in our Scripts. Its Part of core. Thats the reason for my questions I've just tried with online update command : bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/patchmon.sh)" Same issue than local update script
Author
Owner

@vhsdream commented on GitHub (Feb 16, 2026):

@MickLesk - it's funny, I had this happen once when I was testing the changes in the refactor, and so I added get_lxc_ip or whatever the function is. But I removed it after being told it wasn't needed.

<!-- gh-comment-id:3910497203 --> @vhsdream commented on GitHub (Feb 16, 2026): @MickLesk - it's funny, I had this happen once when I was testing the changes in the refactor, and so I added `get_lxc_ip` or whatever the function is. But I removed it after being told it wasn't needed.
Author
Owner

@MickLesk commented on GitHub (Feb 16, 2026):

I Check it tomorrow. All Script Work, expect this one?

<!-- gh-comment-id:3910506269 --> @MickLesk commented on GitHub (Feb 16, 2026): I Check it tomorrow. All Script Work, expect this one?
Author
Owner

@vhsdream commented on GitHub (Feb 17, 2026):

I wonder if it's because for some users, SERVER_HOST is not in their /opt/patchmon/backend/.env file.

@jmcruvellier Is that the case for you?

<!-- gh-comment-id:3911108429 --> @vhsdream commented on GitHub (Feb 17, 2026): I wonder if it's because for some users, `SERVER_HOST` is not in their `/opt/patchmon/backend/.env` file. @jmcruvellier Is that the case for you?
Author
Owner

@Psychoboy commented on GitHub (Feb 17, 2026):

I am having the same issue

<!-- gh-comment-id:3911232917 --> @Psychoboy commented on GitHub (Feb 17, 2026): I am having the same issue
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ProxmoxVE#2520
No description provided.