[GH-ISSUE #11229] VaultWarden - Update does not work #2400

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

Originally created by @PedroBuffon on GitHub (Jan 27, 2026).
Original GitHub issue: https://github.com/community-scripts/ProxmoxVE/issues/11229

Have you read and understood the above guidelines?

yes

🔎 Did you run the script with verbose mode enabled?

Yes, verbose mode was enabled and the output is included below

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

VaultWarden

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

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/vaultwarden.sh)"

⚙️ 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.4

📝 Provide a clear and concise description of the issue.

When running the update i encountered the following errors

  ✖️   in line 21: exit code 1 (General error / Operation not permitted): while executing command awk 'NR==2 {print $3 " / " $2 " (" $5 " used)"}'
  ✖️   in line 21: exit code 1 (General error / Operation not permitted): while executing command DATA_USAGE=$(df -h /data 2> /dev/null | awk 'NR==2 {print $3 " / " $2 " (" $5 " used)"}')

🔄 Steps to reproduce the issue.

run the command as sudo and in verbose mode

Paste the full error output (if available).

  ✖️   in line 21: exit code 1 (General error / Operation not permitted): while executing command awk 'NR==2 {print $3 " / " $2 " (" $5 " used)"}'
  ✖️   in line 21: exit code 1 (General error / Operation not permitted): while executing command DATA_USAGE=$(df -h /data 2> /dev/null | awk 'NR==2 {print $3 " / " $2 " (" $5 " used)"}')

🖼️ Additional context (optional).

No response

Originally created by @PedroBuffon on GitHub (Jan 27, 2026). Original GitHub issue: https://github.com/community-scripts/ProxmoxVE/issues/11229 ### ✅ Have you read and understood the above guidelines? yes ### 🔎 Did you run the script with verbose mode enabled? Yes, verbose mode was enabled and the output is included below ### 📜 What is the name of the script you are using? VaultWarden ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/vaultwarden.sh)" ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 13 ### 📈 Which Proxmox version are you on? 9.1.4 ### 📝 Provide a clear and concise description of the issue. When running the update i encountered the following errors ``` ✖️ in line 21: exit code 1 (General error / Operation not permitted): while executing command awk 'NR==2 {print $3 " / " $2 " (" $5 " used)"}' ✖️ in line 21: exit code 1 (General error / Operation not permitted): while executing command DATA_USAGE=$(df -h /data 2> /dev/null | awk 'NR==2 {print $3 " / " $2 " (" $5 " used)"}') ``` ### 🔄 Steps to reproduce the issue. run the command as sudo and in verbose mode ### ❌ Paste the full error output (if available). ``` ✖️ in line 21: exit code 1 (General error / Operation not permitted): while executing command awk 'NR==2 {print $3 " / " $2 " (" $5 " used)"}' ✖️ in line 21: exit code 1 (General error / Operation not permitted): while executing command DATA_USAGE=$(df -h /data 2> /dev/null | awk 'NR==2 {print $3 " / " $2 " (" $5 " used)"}') ``` ### 🖼️ Additional context (optional). _No response_
kerem 2026-02-26 12:52:19 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@MickLesk commented on GitHub (Jan 27, 2026):

no script in our repo contains DATA_USAGE=$(df -h /data 2> /dev/null | awk 'NR==2 {print $3 " / " $2 ...)

Could you please check:
1.) cat /etc/profile.d/00_lxc-details.sh and share the output
2.) cat /usr/bin/update and share the outputSAGE or df -h /data with that awk pattern

<!-- gh-comment-id:3805032943 --> @MickLesk commented on GitHub (Jan 27, 2026): no script in our repo contains DATA_USAGE=$(df -h /data 2> /dev/null | awk 'NR==2 {print $3 " / " $2 ...) Could you please check: 1.) cat /etc/profile.d/00_lxc-details.sh and share the output 2.) cat /usr/bin/update and share the outputSAGE or df -h /data with that awk pattern
Author
Owner

@PedroBuffon commented on GitHub (Jan 27, 2026):

ahhhh i know what is causing the error now that you mentioned the .sh file, i have a custom lxc-details.sh, strange that i have it for a long time and just now it's causing problems. Does the update script use that file for something?

#!/bin/bash
#
# Custom LXC login details

echo -e ""
echo -e "\e[1mVaultWarden LXC Container\e[m"
echo ""

# OS and system info
OS="Debian"
VER=$(cat /etc/debian_version 2>/dev/null || echo "Unknown")
HOSTNAME=$(hostname)

# Get first non-loopback IPv4
IPV4=$(ip -4 addr show scope global | awk '/inet / {print $2}' | cut -d/ -f1 | head -n1)

# Get first non-loopback IPv6 (ignore link-local fe80::)
IPV6=$(ip -6 addr show scope global | awk '/inet6 / && $2 !~ /^fe80/ {print $2}' | cut -d/ -f1 | head -n1)

# Storage usage for /data (media) and root filesystem
DATA_USAGE=$(df -h /data 2>/dev/null | awk 'NR==2 {print $3 " / " $2 " (" $5 " used)"}')
ROOT_USAGE=$(df -h / | awk 'NR==2 {print $3 " / " $2 " (" $5 " used)"}')

# Last login (current session info)
if [ -n "$SSH_CONNECTION" ]; then
    LOGIN_IP=$(echo $SSH_CONNECTION | awk '{print $1}')
    LOGIN_TIME=$(date "+%b %d %H:%M:%S")
    LAST_LOGIN="$LOGIN_TIME from $LOGIN_IP"
fi

echo -e "\e[m\e[33m OS: \e[1;92m${OS} - Version: ${VER}\e[m"
echo -e "\e[m\e[33m Hostname: \e[1;92m${HOSTNAME}\e[m"
[ -n "$IPV4" ] && echo -e "\e[m\e[33m IPv4 Address: \e[1;92m${IPV4}\e[m"
[ -n "$IPV6" ] && echo -e "\e[m\e[33m IPv6 Address: \e[1;92m${IPV6}\e[m"
[ -n "$LAST_LOGIN" ] && echo -e "\e[m\e[33m Last Login: \e[1;92m${LAST_LOGIN}\e[m"

echo ""
echo -e "\e[1mStorage Sense\e[m"
[ -n "$ROOT_USAGE" ] && echo -e "\e[m\e[33m Root (/): \e[1;92m${ROOT_USAGE}\e[m"
[ -n "$DATA_USAGE" ] && echo -e "\e[m\e[33m Media (/data): \e[1;92m${DATA_USAGE}\e[m"
<!-- gh-comment-id:3805059787 --> @PedroBuffon commented on GitHub (Jan 27, 2026): ahhhh i know what is causing the error now that you mentioned the .sh file, i have a custom lxc-details.sh, strange that i have it for a long time and just now it's causing problems. Does the update script use that file for something? ```bash #!/bin/bash # # Custom LXC login details echo -e "" echo -e "\e[1mVaultWarden LXC Container\e[m" echo "" # OS and system info OS="Debian" VER=$(cat /etc/debian_version 2>/dev/null || echo "Unknown") HOSTNAME=$(hostname) # Get first non-loopback IPv4 IPV4=$(ip -4 addr show scope global | awk '/inet / {print $2}' | cut -d/ -f1 | head -n1) # Get first non-loopback IPv6 (ignore link-local fe80::) IPV6=$(ip -6 addr show scope global | awk '/inet6 / && $2 !~ /^fe80/ {print $2}' | cut -d/ -f1 | head -n1) # Storage usage for /data (media) and root filesystem DATA_USAGE=$(df -h /data 2>/dev/null | awk 'NR==2 {print $3 " / " $2 " (" $5 " used)"}') ROOT_USAGE=$(df -h / | awk 'NR==2 {print $3 " / " $2 " (" $5 " used)"}') # Last login (current session info) if [ -n "$SSH_CONNECTION" ]; then LOGIN_IP=$(echo $SSH_CONNECTION | awk '{print $1}') LOGIN_TIME=$(date "+%b %d %H:%M:%S") LAST_LOGIN="$LOGIN_TIME from $LOGIN_IP" fi echo -e "\e[m\e[33m OS: \e[1;92m${OS} - Version: ${VER}\e[m" echo -e "\e[m\e[33m Hostname: \e[1;92m${HOSTNAME}\e[m" [ -n "$IPV4" ] && echo -e "\e[m\e[33m IPv4 Address: \e[1;92m${IPV4}\e[m" [ -n "$IPV6" ] && echo -e "\e[m\e[33m IPv6 Address: \e[1;92m${IPV6}\e[m" [ -n "$LAST_LOGIN" ] && echo -e "\e[m\e[33m Last Login: \e[1;92m${LAST_LOGIN}\e[m" echo "" echo -e "\e[1mStorage Sense\e[m" [ -n "$ROOT_USAGE" ] && echo -e "\e[m\e[33m Root (/): \e[1;92m${ROOT_USAGE}\e[m" [ -n "$DATA_USAGE" ] && echo -e "\e[m\e[33m Media (/data): \e[1;92m${DATA_USAGE}\e[m" ```
Author
Owner

@MickLesk commented on GitHub (Jan 27, 2026):

/data doesnt exist or is unmounted. df error out with set -e error handling and exist the whole script.

# old:
DATA_USAGE=$(df -h /data 2>/dev/null | awk 'NR==2 {print $3 " / " $2 " (" $5 " used)"}')

# better:
DATA_USAGE=""
if [ -d "/data" ]; then
    DATA_USAGE=$(df -h /data 2>/dev/null | awk 'NR==2 {print $3 " / " $2 " (" $5 " used)"}' || true)
fi
<!-- gh-comment-id:3805086721 --> @MickLesk commented on GitHub (Jan 27, 2026): /data doesnt exist or is unmounted. df error out with set -e error handling and exist the whole script. ```bash # old: DATA_USAGE=$(df -h /data 2>/dev/null | awk 'NR==2 {print $3 " / " $2 " (" $5 " used)"}') # better: DATA_USAGE="" if [ -d "/data" ]; then DATA_USAGE=$(df -h /data 2>/dev/null | awk 'NR==2 {print $3 " / " $2 " (" $5 " used)"}' || true) fi ```
Author
Owner

@PedroBuffon commented on GitHub (Jan 27, 2026):

Will update my script, sorry to waste your time with my errors, tried to update again and it's working, damn this was a dumb mistake on my part, thanks for your good work

<!-- gh-comment-id:3805099953 --> @PedroBuffon commented on GitHub (Jan 27, 2026): Will update my script, sorry to waste your time with my errors, tried to update again and it's working, damn this was a dumb mistake on my part, thanks for your good work
Author
Owner

@github-actions[bot] commented on GitHub (Jan 29, 2026):

This issue has been automatically locked since it has been closed for more than 1 day.
If you have a related issue, please open a new one and reference this issue if needed.

<!-- gh-comment-id:3817526810 --> @github-actions[bot] commented on GitHub (Jan 29, 2026): This issue has been automatically locked since it has been closed for more than 1 day. If you have a related issue, please open a new one and reference this issue if needed.
Author
Owner

@github-actions[bot] commented on GitHub (Feb 3, 2026):

This issue has been automatically locked. Please open a new issue for related bugs and reference this issue if needed.

<!-- gh-comment-id:3837988863 --> @github-actions[bot] commented on GitHub (Feb 3, 2026): This issue has been automatically locked. Please open a new issue for related bugs and reference this issue if needed.
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#2400
No description provided.