NethServer / dev

NethServer issue tracker
https://github.com/NethServer/dev/issues
62 stars 20 forks source link

Webserver: failed restoration due to missing env variable #6995

Closed stephdl closed 1 month ago

stephdl commented 2 months ago

The backup process failed because a required environment variable is either missing or incorrectly set. Environment variables are crucial for the backup script to locate the necessary resources, credentials, or configurations. If the variable is absent or contains incorrect data, the script can't proceed as expected, leading to the failure of the backup.

Steps to reproduce

image

Expected behavior

I expect no errors during the restoration process; all properties and configurations must be restored exactly as they were set before the backup. This includes ensuring that environment variables are correctly set, all toggles (like the external SFTPGo access) remain in their pre-backup state, and any other settings or configurations are fully restored without discrepancies.

Actual behavior

An error occurred during the restoration because an environment variable related to the SFTPGo configuration was improperly handled, causing it to be out of range. This issue disrupted the restoration, leading to incorrect settings, such as the external SFTPGo access toggle being disabled despite being enabled before the backup. Proper handling of environment variables is essential to ensure all settings are restored accurately.

Components

webserver:1.0.18

See also

https://community.nethserver.org/t/full-disaster-recovery-findings/24241


thank Eddie Atherton

stephdl commented 1 month ago

QA

no error expected

stephdl commented 1 month ago

verified here

stephdl commented 1 month ago

released ghcr.io/nethserver/webserver:1.0.19