TinyAuth crashes immediately after installation with default settings due to issues with config file or file permissions #2044

Closed
opened 2025-11-20 05:22:26 -05:00 by saavagebueno · 1 comment
Owner

Originally created by @vhladiienko on GitHub (Oct 9, 2025).

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

📈 Which Proxmox version are you on?

pve-manager/9.0.3/025864202ebb6109 (running kernel: 6.14.8-2-pve)

📝 Provide a clear and concise description of the issue.

Tinyauth service crashes immediately after normal installation via above command (default settings). One line from the /var/log/messages says the following:

Oct 9 12:51:55 alpine-tinyauth user.notice : Error reading login.defs: Configuration file not found

I assumed the /otp/tinyauth/.env is missing, but it's not.

alpine-tinyauth:~# cat /opt/tinyauth/.env 
SECRET=sW9JfYSkzsQ9k5cIuDTTV0ty50RZGWQP
USERS=tinyauth:$$2y$$05$$SRstJmclm9S2lktK1REuz.d/pby/HZxPc0iiUNStwgDCBKUXGHFPS
APP_URL=https://tinyauth.my.domain

If I run the binary directly, I get the below error:

alpine-tinyauth:/opt/tinyauth# ./tinyauth 
2025-10-09T13:07:06Z FTL ../../home/runner/work/tinyauth/tinyauth/cmd/root.go:109 > Invalid config error="Key: 'Config.AppURL' Error:Field validation for 'AppURL' failed on the 'required' tag"

If I run the binary with the CLI arg for this flag, I get this:

alpine-tinyauth:/opt/tinyauth# ./tinyauth --app-url=https://tinyauth.my.domain
2025-10-09T13:11:57Z INF ../../home/runner/work/tinyauth/tinyauth/cmd/root.go:113 > Starting Tinyauth version=v4.0.0
2025-10-09T13:11:57Z FTL ../../home/runner/work/tinyauth/tinyauth/cmd/root.go:119 > Failed to setup app error="failed to initialize database service: unable to open database file: out of memory (14)"

APP_URL is clearly present in the .env file, but it can't read it? I am not sure if this is the installation script issue or perhaps a TinyAuth problem.

🔄 Steps to reproduce the issue.

  1. Install TinyAuth with the default method from the docs page.
  2. After successful installation, log in to the LXC shell.
  3. Run rc-status
  4. Notice that the tinyauth service is in a crashed state.

Paste the full error output (if available).

alpine-tinyauth:~# rc-status
Runlevel: default
 crond                                                                                                        [  started  ]
 networking                                                                                                   [  started  ]
 tinyauth                                                                                                     [  crashed  ]
 local                                                                                                        [  stopped  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed/wanted
 localmount                                                                                                   [  started  ]
Dynamic Runlevel: manual
alpine-tinyauth:~# cat /var/log/messages 
Oct  9 12:51:25 alpine-tinyauth syslog.info syslogd started: BusyBox v1.37.0
Oct  9 12:51:25 alpine-tinyauth daemon.info init: starting pid 411, tty '': '/sbin/openrc default'
Oct  9 12:51:25 alpine-tinyauth cron.info crond[432]: crond (busybox 1.37.0) started, log level 8
Oct  9 12:51:25 alpine-tinyauth daemon.info init: starting pid 439, tty '': '/sbin/getty 38400 console'
Oct  9 12:51:25 alpine-tinyauth daemon.info init: starting pid 440, tty '/dev/tty1': '/sbin/getty 38400 tty1'
Oct  9 12:51:25 alpine-tinyauth daemon.info init: starting pid 441, tty '/dev/tty2': '/sbin/getty 38400 tty2'
Oct  9 12:51:53 alpine-tinyauth auth.info passwd: password for root changed by root
Oct  9 12:51:54 alpine-tinyauth daemon.info init: reloading /etc/inittab
Oct  9 12:51:55 alpine-tinyauth daemon.info init: starting pid 753, tty '/dev/tty1': '/sbin/agetty --autologin root --noclear tty1 38400 linux'
Oct  9 12:51:55 alpine-tinyauth user.notice : Error reading login.defs: Configuration file not found
Oct  9 12:51:55 alpine-tinyauth daemon.info init: process '/sbin/getty 38400 tty1' (pid 440) exited. Scheduling for restart.
Oct  9 12:51:55 alpine-tinyauth auth.info login[754]: root login on 'tty1'
Oct  9 13:00:00 alpine-tinyauth cron.info crond[432]: USER root pid 881 cmd run-parts /etc/periodic/15min
Oct  9 13:00:00 alpine-tinyauth cron.info crond[432]: USER root pid 882 cmd run-parts /etc/periodic/hourly
alpine-tinyauth:~#

🖼️ Additional context (optional).

No response

Originally created by @vhladiienko on GitHub (Oct 9, 2025). ### ✅ 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 - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Alpine ### 📈 Which Proxmox version are you on? pve-manager/9.0.3/025864202ebb6109 (running kernel: 6.14.8-2-pve) ### 📝 Provide a clear and concise description of the issue. Tinyauth service crashes immediately after normal installation via above command (default settings). One line from the `/var/log/messages` says the following: ```Oct 9 12:51:55 alpine-tinyauth user.notice : Error reading login.defs: Configuration file not found``` I assumed the `/otp/tinyauth/.env` is missing, but it's not. ``` alpine-tinyauth:~# cat /opt/tinyauth/.env SECRET=sW9JfYSkzsQ9k5cIuDTTV0ty50RZGWQP USERS=tinyauth:$$2y$$05$$SRstJmclm9S2lktK1REuz.d/pby/HZxPc0iiUNStwgDCBKUXGHFPS APP_URL=https://tinyauth.my.domain ``` If I run the binary directly, I get the below error: ``` alpine-tinyauth:/opt/tinyauth# ./tinyauth 2025-10-09T13:07:06Z FTL ../../home/runner/work/tinyauth/tinyauth/cmd/root.go:109 > Invalid config error="Key: 'Config.AppURL' Error:Field validation for 'AppURL' failed on the 'required' tag" ``` If I run the binary with the CLI arg for this flag, I get this: ``` alpine-tinyauth:/opt/tinyauth# ./tinyauth --app-url=https://tinyauth.my.domain 2025-10-09T13:11:57Z INF ../../home/runner/work/tinyauth/tinyauth/cmd/root.go:113 > Starting Tinyauth version=v4.0.0 2025-10-09T13:11:57Z FTL ../../home/runner/work/tinyauth/tinyauth/cmd/root.go:119 > Failed to setup app error="failed to initialize database service: unable to open database file: out of memory (14)" ``` `APP_URL` is clearly present in the `.env` file, but it can't read it? I am not sure if this is the installation script issue or perhaps a TinyAuth problem. ### 🔄 Steps to reproduce the issue. 1. Install TinyAuth with the default method from the [docs](https://community-scripts.github.io/ProxmoxVE/scripts?id=alpine-tinyauth) page. 2. After successful installation, log in to the LXC shell. 3. Run `rc-status` 4. Notice that the tinyauth service is in a crashed state. ### ❌ Paste the full error output (if available). ``` alpine-tinyauth:~# rc-status Runlevel: default crond [ started ] networking [ started ] tinyauth [ crashed ] local [ stopped ] Dynamic Runlevel: hotplugged Dynamic Runlevel: needed/wanted localmount [ started ] Dynamic Runlevel: manual alpine-tinyauth:~# cat /var/log/messages Oct 9 12:51:25 alpine-tinyauth syslog.info syslogd started: BusyBox v1.37.0 Oct 9 12:51:25 alpine-tinyauth daemon.info init: starting pid 411, tty '': '/sbin/openrc default' Oct 9 12:51:25 alpine-tinyauth cron.info crond[432]: crond (busybox 1.37.0) started, log level 8 Oct 9 12:51:25 alpine-tinyauth daemon.info init: starting pid 439, tty '': '/sbin/getty 38400 console' Oct 9 12:51:25 alpine-tinyauth daemon.info init: starting pid 440, tty '/dev/tty1': '/sbin/getty 38400 tty1' Oct 9 12:51:25 alpine-tinyauth daemon.info init: starting pid 441, tty '/dev/tty2': '/sbin/getty 38400 tty2' Oct 9 12:51:53 alpine-tinyauth auth.info passwd: password for root changed by root Oct 9 12:51:54 alpine-tinyauth daemon.info init: reloading /etc/inittab Oct 9 12:51:55 alpine-tinyauth daemon.info init: starting pid 753, tty '/dev/tty1': '/sbin/agetty --autologin root --noclear tty1 38400 linux' Oct 9 12:51:55 alpine-tinyauth user.notice : Error reading login.defs: Configuration file not found Oct 9 12:51:55 alpine-tinyauth daemon.info init: process '/sbin/getty 38400 tty1' (pid 440) exited. Scheduling for restart. Oct 9 12:51:55 alpine-tinyauth auth.info login[754]: root login on 'tty1' Oct 9 13:00:00 alpine-tinyauth cron.info crond[432]: USER root pid 881 cmd run-parts /etc/periodic/15min Oct 9 13:00:00 alpine-tinyauth cron.info crond[432]: USER root pid 882 cmd run-parts /etc/periodic/hourly alpine-tinyauth:~# ``` ### 🖼️ Additional context (optional). _No response_
saavagebueno added the bug label 2025-11-20 05:22:26 -05:00
Author
Owner

@tremor021 commented on GitHub (Oct 9, 2025):

The script doesnt work with latest version. They have many breaking changes. Script needs a rework...

@tremor021 commented on GitHub (Oct 9, 2025): The script doesnt work with latest version. They have many breaking changes. Script needs a rework...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#2044