Skip to content

ct/happier.sh hangs for ~3 min with no output before the first TUI dialog #198

Description

@karolzlot

Summary

Followed https://docs.happier.dev/deployment/proxmox , the installer just sits there: no TUI, no output at all. Same on PVE 8.4 and 9.2.

It turned out it isn't hung. ct/happier.sh line 12, if [[ -z "${BUILD_FUNC//[[:space:]]/}" ]], takes ~150 s on the ~266 KB misc/build.func and prints nothing while it runs.

Fix, replace this:

if [[ -z "${BUILD_FUNC//[[:space:]]/}" ]]; then

with this (same check, much faster):

if [[ ! $BUILD_FUNC =~ [^[:space:]] ]]; then

misc/build.func:3947 has the same line on installer_script (~52 KB, ~5 s), may need this fix too.

As a workaround for now, users can run the installer with LC_ALL=C.

What happened (current behavior)

No response

Expected behavior

No response

Reproduction steps

No response

Severity

medium

Frequency

always

Happier version

No response

Platform

No response

Server version

No response

Deployment type

self-hosted

What changed recently?

No response

Diagnostics ID

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions