2FAuth helper-script/command fails everytime #2430

Closed
opened 2026-02-05 04:50:10 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @fr1cklr on GitHub (Feb 1, 2026).

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?

2FAuth

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

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

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 13

📈 Which Proxmox version are you on?

pve-manager/9.1.4/5ac30304265fbd8e (running kernel: 6.17.4-2-pve)

📝 Provide a clear and concise description of the issue.

Running the helper-script/command below in the Proxmox VE Shell exists with the following error output. Tried it multiple times.

🔄 Steps to reproduce the issue.

Run script/command.
Choose "Default Install".
Error.

Paste the full error output (if available).


|__ \ / / | __ __/ // /
_/ // / / /| |/ / / / __/ __
/ __// __/ / ___ / /
/ / /
/ / / /
/// // |_,/_// //

⚙️ Using Default Settings on node proxmox
💡 PVE Version 9.1.4 (Kernel: 6.17.4-2-pve)
🆔 Container ID: 105
🖥️ Operating System: debian (13)
📦 Container Type: Unprivileged
💾 Disk Size: 2 GB
🧠 CPU Cores: 1
🛠️ RAM Size: 512 MiB
🚀 Creating a 2FAuth LXC using the above default settings

✔️ Storage local (Free: 58.1GB Used: 6.1GB) [Template]
✔️ Storage local-lvm (Free: 121.9GB Used: 19.0GB) [Container]
✔️ Storage 'local-lvm' (lvmthin) validated
✔️ Template storage 'local' validated
✔️ Template search completed
✔️ Template debian-13-standard_13.1-2_amd64.tar.zst [local]
✔️ LXC Container 105 was successfully created.
✔️ Started LXC Container
✔️ Network in LXC is reachable (ping)
✔️ Customized LXC Container
✔️ Set up Container OS
✔️ Network Connected: 192.168.1.195 fdab:f8f6:9c24:0:be24:11ff:fe04:aef0 2003:c8:f73a:6c00:be24:11ff:fe04:aef0
✔️ IPv4 Internet Connected
✔️ IPv6 Internet Connected
✔️ Git DNS: github.com:(✔️ ) raw.githubusercontent.com:(✔️ ) api.github.com:(✔️ ) git.community-scripts.org:(✔️ )
✔️ Updated Container OS
✔️ Installed Dependencies
✔️ Setup PHP 8.4
✔️ Setup Composer
✔️ Setup MariaDB 11.8.3 (distribution packages)
✔️ Set up MariaDB Database
✔️ Deployed: 2fauth (6.0.0)
✔️ Setup 2fauth
⠋ Configure Servicebash: line 50: PHP_VERSION: unbound variable
✖️ in line 50: exit code 1 (General error / Operation not permitted): while executing command cat < /etc/nginx/conf.d/2fauth.conf
server {
listen 80;
root /opt/2fauth/public;
server_name $LOCAL_IP;
index index.php;
charset utf-8;

    location / {
            try_files \$uri \$uri/ /index.php?\$query_string;
    }

    location = /favicon.ico { access_log off; log_not_found off; }
    location = /robots.txt { access_log off; log_not_found off; }

    error_page 404 /index.php;

    location ~ \.php\$ {
            fastcgi_pass unix:/var/run/php/php${PHP_VERSION}-fpm.sock;
            fastcgi_param SCRIPT_FILENAME \$realpath_root\$fastcgi_script_name;
            include fastcgi_params;
    }

    location ~ /\.(?!well-known).* {
            deny all;
    }

}
EOF

--- Last 20 lines of silent log ---
2021_12_03_220140_create_web_authn_tables ........................................................................................... 57.07ms DONE
2022_10_20_122032_create_webauthn_credentials ....................................................................................... 58.26ms DONE
2023_02_10_145413_add_is_admin_and_preferences_to_users_table ....................................................................... 46.31ms DONE
2023_02_21_143845_bind_twofaccounts_and_groups_to_users ............................................................................ 129.02ms DONE
2023_03_13_114928_set_username_unique ............................................................................................... 24.23ms DONE
2023_12_06_131842_add_oauth_columns_to_user ......................................................................................... 47.50ms DONE
2024_04_14_082519_create_auth_logs_table ........................................................................................... 158.20ms DONE
2024_08_08_133135_alter_twofaccount_service_field_to_text ........................................................................... 34.15ms DONE
2024_08_08_133136_encrypt_twofaccount_service_field .................................................................................. 0.37ms DONE
2024_09_12_151037_create_session_table .............................................................................................. 62.50ms DONE
2024_09_12_151132_create_cache_table ................................................................................................ 24.25ms DONE
2024_09_30_110610_create_icons_table ................................................................................................ 10.54ms DONE
2025_10_29_141837_add_order_column_to_groups_table .................................................................................. 21.24ms DONE

INFO The [public/storage] link has been connected to [storage/app/public].

INFO Configuration cached successfully.


📋 Log saved to: /root/.install-1fde97b5.log
✖️ Installation failed in container 105 (exit code: 1)

✔ Installation log: /tmp/install-lxc-105-1fde97b5.log

Remove broken container 105? (Y/n) [auto-remove in 60s]:

Removing container 105
✔️ Container 105 removed

🖼️ Additional context (optional).

Image
Originally created by @fr1cklr on GitHub (Feb 1, 2026). ### ✅ 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? 2FAuth ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/2fauth.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? pve-manager/9.1.4/5ac30304265fbd8e (running kernel: 6.17.4-2-pve) ### 📝 Provide a clear and concise description of the issue. Running the helper-script/command below in the Proxmox VE Shell exists with the following error output. Tried it multiple times. ### 🔄 Steps to reproduce the issue. Run script/command. Choose "Default Install". Error. ### ❌ Paste the full error output (if available). ___ _________ __ __ |__ \ / ____/ | __ __/ /_/ /_ __/ // /_ / /| |/ / / / __/ __ \ / __// __/ / ___ / /_/ / /_/ / / / /____/_/ /_/ |_\__,_/\__/_/ /_/ ⚙️ Using Default Settings on node proxmox 💡 PVE Version 9.1.4 (Kernel: 6.17.4-2-pve) 🆔 Container ID: 105 🖥️ Operating System: debian (13) 📦 Container Type: Unprivileged 💾 Disk Size: 2 GB 🧠 CPU Cores: 1 🛠️ RAM Size: 512 MiB 🚀 Creating a 2FAuth LXC using the above default settings ✔️ Storage local (Free: 58.1GB Used: 6.1GB) [Template] ✔️ Storage local-lvm (Free: 121.9GB Used: 19.0GB) [Container] ✔️ Storage 'local-lvm' (lvmthin) validated ✔️ Template storage 'local' validated ✔️ Template search completed ✔️ Template debian-13-standard_13.1-2_amd64.tar.zst [local] ✔️ LXC Container 105 was successfully created. ✔️ Started LXC Container ✔️ Network in LXC is reachable (ping) ✔️ Customized LXC Container ✔️ Set up Container OS ✔️ Network Connected: 192.168.1.195 fdab:f8f6:9c24:0:be24:11ff:fe04:aef0 2003:c8:f73a:6c00:be24:11ff:fe04:aef0 ✔️ IPv4 Internet Connected ✔️ IPv6 Internet Connected ✔️ Git DNS: github.com:(✔️ ) raw.githubusercontent.com:(✔️ ) api.github.com:(✔️ ) git.community-scripts.org:(✔️ ) ✔️ Updated Container OS ✔️ Installed Dependencies ✔️ Setup PHP 8.4 ✔️ Setup Composer ✔️ Setup MariaDB 11.8.3 (distribution packages) ✔️ Set up MariaDB Database ✔️ Deployed: 2fauth (6.0.0) ✔️ Setup 2fauth ⠋ Configure Servicebash: line 50: PHP_VERSION: unbound variable ✖️ in line 50: exit code 1 (General error / Operation not permitted): while executing command cat <<EOF > /etc/nginx/conf.d/2fauth.conf server { listen 80; root /opt/2fauth/public; server_name $LOCAL_IP; index index.php; charset utf-8; location / { try_files \$uri \$uri/ /index.php?\$query_string; } location = /favicon.ico { access_log off; log_not_found off; } location = /robots.txt { access_log off; log_not_found off; } error_page 404 /index.php; location ~ \.php\$ { fastcgi_pass unix:/var/run/php/php${PHP_VERSION}-fpm.sock; fastcgi_param SCRIPT_FILENAME \$realpath_root\$fastcgi_script_name; include fastcgi_params; } location ~ /\.(?!well-known).* { deny all; } } EOF --- Last 20 lines of silent log --- 2021_12_03_220140_create_web_authn_tables ........................................................................................... 57.07ms DONE 2022_10_20_122032_create_webauthn_credentials ....................................................................................... 58.26ms DONE 2023_02_10_145413_add_is_admin_and_preferences_to_users_table ....................................................................... 46.31ms DONE 2023_02_21_143845_bind_twofaccounts_and_groups_to_users ............................................................................ 129.02ms DONE 2023_03_13_114928_set_username_unique ............................................................................................... 24.23ms DONE 2023_12_06_131842_add_oauth_columns_to_user ......................................................................................... 47.50ms DONE 2024_04_14_082519_create_auth_logs_table ........................................................................................... 158.20ms DONE 2024_08_08_133135_alter_twofaccount_service_field_to_text ........................................................................... 34.15ms DONE 2024_08_08_133136_encrypt_twofaccount_service_field .................................................................................. 0.37ms DONE 2024_09_12_151037_create_session_table .............................................................................................. 62.50ms DONE 2024_09_12_151132_create_cache_table ................................................................................................ 24.25ms DONE 2024_09_30_110610_create_icons_table ................................................................................................ 10.54ms DONE 2025_10_29_141837_add_order_column_to_groups_table .................................................................................. 21.24ms DONE INFO The [public/storage] link has been connected to [storage/app/public]. INFO Configuration cached successfully. ----------------------------------- 📋 Log saved to: /root/.install-1fde97b5.log ✖️ Installation failed in container 105 (exit code: 1) ✔ Installation log: /tmp/install-lxc-105-1fde97b5.log Remove broken container 105? (Y/n) [auto-remove in 60s]: Removing container 105 ✔️ Container 105 removed ### 🖼️ Additional context (optional). <img width="1984" height="1144" alt="Image" src="https://github.com/user-attachments/assets/2abf8def-7102-410e-b62e-17adc6eedbac" />
OVERLORD added the bug label 2026-02-05 04:50:10 +03:00
Author
Owner

@fr1cklr commented on GitHub (Feb 2, 2026):

It works - Thank you!

@fr1cklr commented on GitHub (Feb 2, 2026): It works - Thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#2430