alpine-tinyauth installation is crashing #1085

Closed
opened 2026-02-04 23:00:01 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @olli991 on GitHub (Jun 10, 2025).

Originally assigned to: @tremor021 on GitHub.

Have you read and understood the above guidelines?

yes

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

alpine-tinyauth

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

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

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Alpine

📝 Provide a clear and concise description of the issue.

Tried using the helperscript for tinyauth on my machine.
Tested it with deafault and also advanced setting.
Always crashing when promted to enter the subdomain for the service. Entering https://my.domain.com or only my or nothing always crashes the script with the same error.

🔄 Steps to reproduce the issue.

  1. open shell on proxmox
  2. paste bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/alpine-tinyauth.sh)" and hit enter
  3. installing via default settings
  4. getting promted to enter subdomain for tinyauth
  5. entering https://my.domain.com or only my or nothing
  6. getting crash error of the script

Paste the full error output (if available).

Enter your Tinyauth subdomain (e.g. https://tinyauth.example.com): 
   Creating Tinyauth Service0: line 52: line: unbound variable

[ERROR] in line 52: exit code 1: while executing command cat <<EOF > /etc/init.d/tinyauth
#!/sbin/openrc-run
description="Tinyauth Service"

command="/opt/tinyauth/tinyauth"
directory="/opt/tinyauth"
command_user="root"
command_background="true"
pidfile="/var/run/tinyauth.pid"

start_pre() {
    if [ -f "/opt/tinyauth/.env" ]; then
        while IFS= read -r line || [ -n "$line" ]; do
            [ -z "$line" ] && continue
            case "$line" in
                '#'*)
                    continue
                    ;;
            esac
            export "$line"
        done < "/opt/tinyauth/.env"
    fi
}

depend() {
    use net
}
EOF


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

🖼️ Additional context (optional).

I found this PR which sounds like fixing this error but it haven't it seems: https://github.com/community-scripts/ProxmoxVE/pull/4901

Originally created by @olli991 on GitHub (Jun 10, 2025). Originally assigned to: @tremor021 on GitHub. ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? alpine-tinyauth ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/alpine-tinyauth.sh)" ### ⚙️ What settings are you using? - [x] Default Settings - [x] Advanced Settings ### 🖥️ Which Linux distribution are you using? Alpine ### 📝 Provide a clear and concise description of the issue. Tried using the helperscript for tinyauth on my machine. Tested it with deafault and also advanced setting. Always crashing when promted to enter the subdomain for the service. Entering `https://my.domain.com` or only `my` or nothing always crashes the script with the same error. ### 🔄 Steps to reproduce the issue. 1. open shell on proxmox 2. paste `bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/alpine-tinyauth.sh)"` and hit enter 3. installing via default settings 4. getting promted to enter subdomain for tinyauth 5. entering `https://my.domain.com` or only `my` or nothing 6. getting crash error of the script ### ❌ Paste the full error output (if available). ``` Enter your Tinyauth subdomain (e.g. https://tinyauth.example.com): Creating Tinyauth Service0: line 52: line: unbound variable [ERROR] in line 52: exit code 1: while executing command cat <<EOF > /etc/init.d/tinyauth #!/sbin/openrc-run description="Tinyauth Service" command="/opt/tinyauth/tinyauth" directory="/opt/tinyauth" command_user="root" command_background="true" pidfile="/var/run/tinyauth.pid" start_pre() { if [ -f "/opt/tinyauth/.env" ]; then while IFS= read -r line || [ -n "$line" ]; do [ -z "$line" ] && continue case "$line" in '#'*) continue ;; esac export "$line" done < "/opt/tinyauth/.env" fi } depend() { use net } EOF /dev/fd/63: line 74: SPINNER_PID: unbound variable ``` ### 🖼️ Additional context (optional). I found this PR which sounds like fixing this error but it haven't it seems: https://github.com/community-scripts/ProxmoxVE/pull/4901
OVERLORD added the bug label 2026-02-04 23:00:01 +03:00
Author
Owner

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

@tremor021

@MickLesk commented on GitHub (Jun 10, 2025): @tremor021
Author
Owner

@tremor021 commented on GitHub (Jun 10, 2025):

@olli991 try again when #5090 merges

@tremor021 commented on GitHub (Jun 10, 2025): @olli991 try again when #5090 merges
Author
Owner

@olli991 commented on GitHub (Jun 10, 2025):

can confirm, it's working now thx

@olli991 commented on GitHub (Jun 10, 2025): can confirm, it's working now ✅ thx
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#1085