IP-Tag not working: update_all_tags: command not found #1286

Closed
opened 2025-11-20 05:07:36 -05:00 by saavagebueno · 11 comments
Owner

Originally created by @jwgn on GitHub (Jun 17, 2025).

Have you read and understood the above guidelines?

yes

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

Proxmox VE LXC IP-Tag

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

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/add-iptag.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.

No Tags are being added to containers and VMs.
Error: update_all_tags: command not found.

🔄 Steps to reproduce the issue.

Run Script
Restart service via systemctl
Watch logs

Paste the full error output (if available).

Jun 17 10:16:32 pve iptag[3654641]: Checking LXC status...
Jun 17 10:16:32 pve iptag[3654685]: /opt/iptag/iptag: line 243: update_all_tags: command not found
Jun 17 10:16:32 pve iptag[3654641]: Checking VM status...
Jun 17 10:16:33 pve iptag[3654689]: /opt/iptag/iptag: line 255: update_all_tags: command not found
Jun 17 10:16:33 pve iptag[3654641]: Checking network interfaces...
Jun 17 10:16:33 pve iptag[3654693]: /opt/iptag/iptag: line 267: update_all_tags: command not found
Jun 17 10:16:33 pve iptag[3654694]: /opt/iptag/iptag: line 268: update_all_tags: command not found

🖼️ Additional context (optional).

No response

Originally created by @jwgn on GitHub (Jun 17, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Proxmox VE LXC IP-Tag ### 📂 What was the exact command used to execute the script? `bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/add-iptag.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. No Tags are being added to containers and VMs. Error: update_all_tags: command not found. ### 🔄 Steps to reproduce the issue. Run Script Restart service via systemctl Watch logs ### ❌ Paste the full error output (if available). ``` Jun 17 10:16:32 pve iptag[3654641]: Checking LXC status... Jun 17 10:16:32 pve iptag[3654685]: /opt/iptag/iptag: line 243: update_all_tags: command not found Jun 17 10:16:32 pve iptag[3654641]: Checking VM status... Jun 17 10:16:33 pve iptag[3654689]: /opt/iptag/iptag: line 255: update_all_tags: command not found Jun 17 10:16:33 pve iptag[3654641]: Checking network interfaces... Jun 17 10:16:33 pve iptag[3654693]: /opt/iptag/iptag: line 267: update_all_tags: command not found Jun 17 10:16:33 pve iptag[3654694]: /opt/iptag/iptag: line 268: update_all_tags: command not found ``` ### 🖼️ Additional context (optional). _No response_
saavagebueno added the bug label 2025-11-20 05:07:36 -05:00
Author
Owner

@MickLesk commented on GitHub (Jun 17, 2025):

@DesertGamer

and for you as pre work:

cat /opt/iptag/iptag.conf
and:
ls /opt/iptag

@MickLesk commented on GitHub (Jun 17, 2025): @DesertGamer and for you as pre work: cat /opt/iptag/iptag.conf and: ls /opt/iptag
Author
Owner

@DesertGamer commented on GitHub (Jun 17, 2025):

@jwgn Tell me, please, did you have an iptag script before?

@DesertGamer commented on GitHub (Jun 17, 2025): @jwgn Tell me, please, did you have an iptag script before?
Author
Owner

@DesertGamer commented on GitHub (Jun 17, 2025):

@MickLesk I would like to ask you to point out that now this script not only puts the LXC container tag, but also the VM

@DesertGamer commented on GitHub (Jun 17, 2025): @MickLesk I would like to ask you to point out that now this script not only puts the LXC container tag, but also the VM
Author
Owner

@jwgn commented on GitHub (Jun 17, 2025):

No, have not used an iptag script before.

root@pve:~# cat /opt/iptag/iptag.conf
# Configuration file for LXC IP tagging

# List of allowed CIDRs
CIDR_LIST=(
  192.168.0.0/16
  172.16.0.0/12
  10.0.0.0/8
  100.64.0.0/10
)

# Tag format options:
# - "full": full IP address (e.g., 192.168.0.100)
# - "last_octet": only the last octet (e.g., 100)
# - "last_two_octets": last two octets (e.g., 0.100)
TAG_FORMAT="full"

# Interval settings (in seconds)
LOOP_INTERVAL=60
VM_STATUS_CHECK_INTERVAL=60
FW_NET_INTERFACE_CHECK_INTERVAL=60
LXC_STATUS_CHECK_INTERVAL=60
FORCE_UPDATE_INTERVAL=1800
root@pve:~# ls -l /opt/iptag
total 9
-rwxr-xr-x 1 root root 7939 17. Jun 09:57 iptag
-rw-r--r-- 1 root root  505 17. Jun 09:57 iptag.conf
@jwgn commented on GitHub (Jun 17, 2025): No, have not used an iptag script before. ``` root@pve:~# cat /opt/iptag/iptag.conf # Configuration file for LXC IP tagging # List of allowed CIDRs CIDR_LIST=( 192.168.0.0/16 172.16.0.0/12 10.0.0.0/8 100.64.0.0/10 ) # Tag format options: # - "full": full IP address (e.g., 192.168.0.100) # - "last_octet": only the last octet (e.g., 100) # - "last_two_octets": last two octets (e.g., 0.100) TAG_FORMAT="full" # Interval settings (in seconds) LOOP_INTERVAL=60 VM_STATUS_CHECK_INTERVAL=60 FW_NET_INTERFACE_CHECK_INTERVAL=60 LXC_STATUS_CHECK_INTERVAL=60 FORCE_UPDATE_INTERVAL=1800 ``` ``` root@pve:~# ls -l /opt/iptag total 9 -rwxr-xr-x 1 root root 7939 17. Jun 09:57 iptag -rw-r--r-- 1 root root 505 17. Jun 09:57 iptag.conf ```
Author
Owner

@DesertGamer commented on GitHub (Jun 17, 2025):

Try deleting the script from this folder and installing it again.

This should help you solve your problem.

@DesertGamer commented on GitHub (Jun 17, 2025): Try deleting the script from this folder and installing it again. This should help you solve your problem.
Author
Owner

@jwgn commented on GitHub (Jun 17, 2025):

Deleted files in /opt/iptag. Re-ran the script.

root@pve:/opt/iptag# systemctl status iptag.service 
● iptag.service - IP-Tag service
     Loaded: loaded (/lib/systemd/system/iptag.service; enabled; preset: enabled)
     Active: active (running) since Tue 2025-06-17 11:30:22 CEST; 1min 6s ago
   Main PID: 3725674 (iptag)
      Tasks: 2 (limit: 115447)
     Memory: 992.0K
        CPU: 11.474s
     CGroup: /system.slice/iptag.service
             ├─3725674 /bin/bash /opt/iptag/iptag
             └─3726149 sleep 60

Jun 17 11:30:22 pve systemd[1]: Started iptag.service - IP-Tag service.
Jun 17 11:30:22 pve iptag[3725674]: Force updating lxc tags...
Jun 17 11:30:22 pve iptag[3725674]: Found 29 running lxcs
Jun 17 11:30:30 pve iptag[3725674]: Force updating vm tags...
Jun 17 11:30:31 pve iptag[3725674]: Found 3 running vms

But no tags are added to any of my machines.

@jwgn commented on GitHub (Jun 17, 2025): Deleted files in `/opt/iptag`. Re-ran the script. ``` root@pve:/opt/iptag# systemctl status iptag.service ● iptag.service - IP-Tag service Loaded: loaded (/lib/systemd/system/iptag.service; enabled; preset: enabled) Active: active (running) since Tue 2025-06-17 11:30:22 CEST; 1min 6s ago Main PID: 3725674 (iptag) Tasks: 2 (limit: 115447) Memory: 992.0K CPU: 11.474s CGroup: /system.slice/iptag.service ├─3725674 /bin/bash /opt/iptag/iptag └─3726149 sleep 60 Jun 17 11:30:22 pve systemd[1]: Started iptag.service - IP-Tag service. Jun 17 11:30:22 pve iptag[3725674]: Force updating lxc tags... Jun 17 11:30:22 pve iptag[3725674]: Found 29 running lxcs Jun 17 11:30:30 pve iptag[3725674]: Force updating vm tags... Jun 17 11:30:31 pve iptag[3725674]: Found 3 running vms ``` But no tags are added to any of my machines.
Author
Owner

@jwgn commented on GitHub (Jun 17, 2025):

Oh, I had to re-create iptag.conf manually. It works now.

Why do we have to delete the script, then run the installer again? Same issue on another node.

@jwgn commented on GitHub (Jun 17, 2025): Oh, I had to re-create `iptag.conf` manually. It works now. Why do we have to delete the script, then run the installer again? Same issue on another node.
Author
Owner

@DesertGamer commented on GitHub (Jun 17, 2025):

I understand that this is unpleasant, so I will definitely fix this error as soon as possible.

@DesertGamer commented on GitHub (Jun 17, 2025): I understand that this is unpleasant, so I will definitely fix this error as soon as possible.
Author
Owner

@jwgn commented on GitHub (Jun 17, 2025):

Oh so it's a bug. Thanks for the quick fix.

@jwgn commented on GitHub (Jun 17, 2025): Oh so it's a bug. Thanks for the quick fix.
Author
Owner

@Aabayoumy commented on GitHub (Jun 17, 2025):

i have same issue , reinstall not resolve it

pve:~# systemctl status iptag.service -l
● iptag.service - IP-Tag service
Loaded: loaded (/lib/systemd/system/iptag.service; enabled; preset: enabled)
Active: active (running) since Tue 2025-06-17 16:44:56 EEST; 1s ago
Main PID: 581174 (iptag)
Tasks: 2 (limit: 76315)
Memory: 1.0M
CPU: 1.243s
CGroup: /system.slice/iptag.service
├─581174 /bin/bash /opt/iptag/iptag
└─581234 sleep 60

Jun 17 16:44:56 pve systemd[1]: Started iptag.service - IP-Tag service.
Jun 17 16:44:56 pve iptag[581174]: Checking LXC status...
Jun 17 16:44:57 pve iptag[581214]: /opt/iptag/iptag: line 243: update_all_tags: command not found
Jun 17 16:44:57 pve iptag[581174]: Checking VM status...
Jun 17 16:44:57 pve iptag[581230]: /opt/iptag/iptag: line 255: update_all_tags: command not found
Jun 17 16:44:57 pve iptag[581174]: Checking network interfaces...
pve:~# cd /opt/iptag/
pve:/opt/iptag# ls
iptag iptag.conf
pve:/opt/iptag# ./iptag
Checking LXC status...
./iptag: line 243: update_all_tags: command not found
Checking VM status...
./iptag: line 255: update_all_tags: command not found

@Aabayoumy commented on GitHub (Jun 17, 2025): i have same issue , reinstall not resolve it pve:~# systemctl status iptag.service -l ● iptag.service - IP-Tag service Loaded: loaded (/lib/systemd/system/iptag.service; enabled; preset: enabled) Active: active (running) since Tue 2025-06-17 16:44:56 EEST; 1s ago Main PID: 581174 (iptag) Tasks: 2 (limit: 76315) Memory: 1.0M CPU: 1.243s CGroup: /system.slice/iptag.service ├─581174 /bin/bash /opt/iptag/iptag └─581234 sleep 60 Jun 17 16:44:56 pve systemd[1]: Started iptag.service - IP-Tag service. Jun 17 16:44:56 pve iptag[581174]: Checking LXC status... Jun 17 16:44:57 pve iptag[581214]: /opt/iptag/iptag: line 243: update_all_tags: command not found Jun 17 16:44:57 pve iptag[581174]: Checking VM status... Jun 17 16:44:57 pve iptag[581230]: /opt/iptag/iptag: line 255: update_all_tags: command not found Jun 17 16:44:57 pve iptag[581174]: Checking network interfaces... pve:~# cd /opt/iptag/ pve:/opt/iptag# ls iptag iptag.conf pve:/opt/iptag# ./iptag Checking LXC status... ./iptag: line 243: update_all_tags: command not found Checking VM status... ./iptag: line 255: update_all_tags: command not found
Author
Owner

@DesertGamer commented on GitHub (Jun 17, 2025):

@Aabayoumy As soon as I'm free today, I'll make the necessary changes, sorry about that.

@DesertGamer commented on GitHub (Jun 17, 2025): @Aabayoumy As soon as I'm free today, I'll make the necessary changes, sorry about that.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#1286