Fix: Redis Installation Script Order for Ubuntu 24.04 #5159
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Starting with Ubuntu 24.04, the default Redis version available through apt has been upgraded from 6.0 to 7.0. This update introduces stricter authentication policies that can cause installation failures for existing projects.
Problem Description
The Error
The installation process exposes a critical authentication error:
Where It Occurs
This error manifests in
run.shwhen the script attempts to configure Redis connection parameters:Key Difference Between Redis 6 and 7
Root Cause Analysis
What's Already in Place
The
redis/install.shscript contains code designed to generate a random password if norequirepassgiven in redis.conf:The Problem
Despite having password generation logic in place, the installation process contains a critical flaw:
This timing issue means the randomly generated password in
redis.confnever been activated, leaving the service without proper authentication configuration.Solution
To resolve this compatibility issue, the installation workflow has been restructured:
This ensures that the installation process works correctly on Ubuntu 24.04 and later versions that use Redis 7.0+.
Remark
I tried to install it from my Ubuntu 24.04 and it work with following commands
However, if TUI is being used a -1 error will be occured. Also, it is a bit messy to use Docker to install Hiddify as there is no clear instruction and HISTORY to follow with.