2FAuth Script crash on "2FAuth Setup" #799

Closed
opened 2025-11-20 04:54:12 -05:00 by saavagebueno · 5 comments
Owner

Originally created by @BrockHumblet on GitHub (Mar 29, 2025).

Have you read and understood the above guidelines?

yes

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

2FAuth

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

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

📝 Provide a clear and concise description of the issue.

Crashes at the Setup 2FAuth step with the following:

Image

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

🔄 Steps to reproduce the issue.

Run the default settings bash script and error is receieved.

Paste the full error output (if available).

Image

🖼️ Additional context (optional).

No response

Originally created by @BrockHumblet on GitHub (Mar 29, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? 2FAuth ### 📂 What was the exact command used to execute the script? bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/2fauth.sh)" ### 📝 Provide a clear and concise description of the issue. Crashes at the Setup 2FAuth step with the following: <img width="1018" alt="Image" src="https://github.com/user-attachments/assets/941a2778-17fa-4bf0-b76e-fa5f2839e212" /> ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 🔄 Steps to reproduce the issue. Run the default settings bash script and error is receieved. ### ❌ Paste the full error output (if available). <img width="1018" alt="Image" src="https://github.com/user-attachments/assets/88ca3a66-a1d8-46de-aed8-58fd856065e3" /> ### 🖼️ Additional context (optional). _No response_
saavagebueno added the bug label 2025-11-20 04:54:12 -05:00
Author
Owner

@BrockHumblet commented on GitHub (Mar 29, 2025):

I was able to fix this for myself personally by customizing the scripts to install php 8.3 instead. I downloaded both the files locally to my proxmox host. I pointed the 2fauth.sh script to my local build.func file instead of the repo one. I then removed the portion of the build.func code where it triggers the install script in the LXC container.

https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/2fauth.sh

https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func

Once I was booted into my container, I then manually updated my packages installed sudo and curl. Then I added the sury repo which would later be used to install php 8.3. I downloaded the below script to my LXC container removing any of the custom function calls that are typically setup in the global vars and updated both places that referenced php 8.2 to be 8.3. I then ran the script on the container and successfully installed and was able to access 2fauth.

https://raw.githubusercontent.com/community-scripts/ProxmoxVE/refs/heads/main/install/2fauth-install.sh

General script fix recommendation:

  • Add repo that contains php 8.3
  • Update script to install php 8.3 from repo
@BrockHumblet commented on GitHub (Mar 29, 2025): I was able to fix this for myself personally by customizing the scripts to install php 8.3 instead. I downloaded both the files locally to my proxmox host. I pointed the 2fauth.sh script to my local build.func file instead of the repo one. I then removed the portion of the build.func code where it triggers the install script in the LXC container. [https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/2fauth.sh](url) [https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func](url) Once I was booted into my container, I then manually updated my packages installed sudo and curl. Then I added the sury repo which would later be used to install php 8.3. I downloaded the below script to my LXC container removing any of the custom function calls that are typically setup in the global vars and updated both places that referenced php 8.2 to be 8.3. I then ran the script on the container and successfully installed and was able to access 2fauth. [https://raw.githubusercontent.com/community-scripts/ProxmoxVE/refs/heads/main/install/2fauth-install.sh](url) General script fix recommendation: * Add repo that contains php 8.3 * Update script to install php 8.3 from repo
Author
Owner

@MickLesk commented on GitHub (Mar 29, 2025):

Wouldn't you have been quicker to just create a PR? This way we first have to analyze, then fix, then also make a PR. Remember, this is a community project. You are not dependent on us. If you have a fix, you are always welcome to create it as a PR. I, for example, use my weekend as a weekend for the most part :D so such fixes just wait until Monday

@MickLesk commented on GitHub (Mar 29, 2025): Wouldn't you have been quicker to just create a PR? This way we first have to analyze, then fix, then also make a PR. Remember, this is a community project. You are not dependent on us. If you have a fix, you are always welcome to create it as a PR. I, for example, use my weekend as a weekend for the most part :D so such fixes just wait until Monday
Author
Owner

@simlocker commented on GitHub (Mar 30, 2025):

While coming from 2FAuth 5.4.3 and trying to update the LXC container, this also fails and makes the current 2FAuth unusable. Needed to restore from a previous backup in order to get it running again.

⠇ Updating 2FAuth to v5.5.0

Setting up libxslt1.1:amd64 (1.1.35-1+deb12u1) ...
Processing triggers for libc-bin (2.36-9+deb12u10) ...
✔️ Backup Created
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.

Problem 1
- Root composer.json requires php ^8.3 but your php version (8.2.28) does not satisfy that requirement.

/dev/fd/63: line 71: SPINNER_PID: unbound variable

@simlocker commented on GitHub (Mar 30, 2025): While coming from 2FAuth 5.4.3 and trying to update the LXC container, this also fails and makes the current 2FAuth unusable. Needed to restore from a previous backup in order to get it running again. ⠇ Updating 2FAuth to v5.5.0 Setting up libxslt1.1:amd64 (1.1.35-1+deb12u1) ... Processing triggers for libc-bin (2.36-9+deb12u10) ... ✔️ Backup Created Installing dependencies from lock file Verifying lock file contents can be installed on current platform. Your lock file does not contain a compatible set of packages. Please run composer update. Problem 1 - Root composer.json requires php ^8.3 but your php version (8.2.28) does not satisfy that requirement. /dev/fd/63: line 71: SPINNER_PID: unbound variable
Author
Owner

@MickLesk commented on GitHub (Mar 30, 2025):

Update yourself to php8.3 until the fix released and run Update again

@MickLesk commented on GitHub (Mar 30, 2025): Update yourself to php8.3 until the fix released and run Update again
Author
Owner

@BrockHumblet commented on GitHub (Mar 31, 2025):

PR #3510 resolves this issue

@BrockHumblet commented on GitHub (Mar 31, 2025): PR #3510 resolves this issue
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#799