github RunOnFlux/flux v7.0.4

5 hours ago

v7.0.4 Release

This release focuses on improving application removal reliability, enhancing debugging capabilities, and adding support for v8+ enterprise applications.

Key Changes

🔧 App Removal Reliability Improvements

Fixed force app removal logic for applications that were not uninstalled properly
Enhanced forceAppRemovals to check database location registrations before broadcasting removal
Now validates whether app should be removed based on actual location records
Improved cleanup logic to prevent orphaned app states
Fixed local removal functions (removeAppLocally and softRemoveAppLocally)
Corrected behavior when called for individual components
Ensures proper cleanup when removing specific app components vs entire applications
Enhanced instance limit enforcement
Added proper tracking and removal when apps exceed minimum instance requirements
Includes detailed logging for debugging instance-related removals
📋 Comprehensive Logging

Added structured "REMOVAL REASON" logs across all app removal workflows
softRegisterAppLocally: Documents soft registration failures
hardRedeploy: Tracks hard redeployment states with detailed reason logs
reinstallOldApplications: Documents version upgrades and HDD configuration changes
checkAndRemoveApplicationInstance: Logs instance requirement violations
forceAppRemovals: Enhanced to distinguish between registered and unregistered apps
Improved error messages
App not found errors now include the specific app name for easier debugging
🚀 V8+ Enterprise App Support

Repository authentication handling
V7 apps: Decrypt repoauth credentials using PGP service
V8+ apps: Use repoauth directly without decryption layer
Added validation for proper credential format
Enterprise app specs decryption
Added logic to decrypt specifications for v8+ enterprise apps during local installation
Ensures compose configuration is properly handled for enterprise deployments
🐛 Bug Fixes

Fixed Syncthing-related issues
Fixed typos in authentication code
Added missing imports (globalState, checkAndDecryptAppSpecs)
Resolved linting issues
📦 Other Changes

Version bumped to 7.0.4
Speed improvements for forceAppRemovals testing
Removed debug logs
Files Changed (15)

Core services: appsService.js, advancedWorkflows.js, appInstaller.js, appUninstaller.js, appInspector.js, appSpawner.js
Supporting modules: registryManager.js, peerNotification.js, syncthingFolderStateMachine.js, portManager.js, imageManager.js
Utilities: dbHelper.js, fluxNetworkHelper.js, serviceManager.js
Configuration: package.json
Testing

Ensured all unit tests pass after changes
Validated return values maintain backward compatibility
This release improves the overall reliability of the Flux application management system with better error handling, enhanced observability through comprehensive logging, and expanded support for newer enterprise application versions.

Don't miss a new flux release

NewReleases is sending notifications on new releases.