Open eloquence opened 4 years ago
In spite of the error on the terminal (which a user ordinarily wouldn't see, if they launch the updater through the desktop icon), the update seems to be continuing.
Thanks for clarifying that the update process did not fail. I suspect the CRITICAL message is being displayed during the salt purge, see https://github.com/freedomofpress/securedrop-workstation/pull/530#issuecomment-612256842 for a different "CRITICAL" message noted during review.
It looks like it ultimately completed successfully. Here's the remainder of the output:
Ran a graphical updater on "staging" environment. Completed without error. Inspecting ~/.securedrop_launcher/logs/launcher.log
in dom0 shows everything happy, but the stderr output @eloquence shared above is not logged, so those messages could have been emitted on my run, too. Client logs in successfully.
Currently experiencing a sync problem on the client, version 0.1.6-dev-20200526-060119+buster
, but it might be the server I'm connecting too...
Retitled and rescoped -- we should IMO still understand the cause of any CRITICAL messages during the installation, and suppress if possible and appropriate, as part of getting the workstation ready for wider production use.
During
sdw-admin --apply
runs, we sometimes observe "CRITICAL" messages by Qubes. As part of making the system production-ready, we should audit the current installation process, identify the root cause of each message, and suppress them if they are indeed safe to ignore.Example 1
Observed during attempt to update SecureDrop Workstation running 0.3.0-rc1 to 0.3.0-rc2, using the graphical updater. Update completes successfully, no user-facing errors, but see output on terminal below, which occurred while the updater reported 95% progress.
Click to expand
``` [erik@dom0 ~]$ /opt/securedrop/launcher/sdw-launcher.py --skip-delta 0Running 'sudo apt update' on sd-log-buster-template Running '[[ $(apt list --upgradable | wc -l) -eq 1 ]]' on sd-log-buster-template Using sys-firewall as UpdateVM to download updates for Dom0; this may take some time... Checking for dom0 updates... Available updates: Fedora 25 - x86_64 - Updates 7.3 MB/s | 24 MB 00:03 Fedora 25 - x86_64 7.8 MB/s | 50 MB 00:06 Qubes Dom0 Repository (updates) 1.5 MB/s | 17 MB 00:11 determining the fastest mirror (15 hosts).. done. Qubes Templates repository 2.2 kB/s | 16 kB 00:07 SecureDrop Workstation Qubes dom0 repo 3.5 kB/s | 3.3 kB 00:00 securedrop-workstation-dom0-config.noarch 0.3.0-0.rc2.1.fc25 securedrop-workstation-dom0 Running 'sudo apt update' on whonix-gw-15 Running '[[ $(apt list --upgradable | wc -l) -eq 1 ]]' on whonix-gw-15 Running 'sudo apt update' on sd-app-buster-template Running '[[ $(apt list --upgradable | wc -l) -eq 1 ]]' on sd-app-buster-template Running 'sudo apt update' on sd-proxy-buster-template Running '[[ $(apt list --upgradable | wc -l) -eq 1 ]]' on sd-proxy-buster-template Running 'sudo apt update' on sd-devices-buster-template Running '[[ $(apt list --upgradable | wc -l) -eq 1 ]]' on sd-devices-buster-template Running 'sudo apt update' on securedrop-workstation-buster Running '[[ $(apt list --upgradable | wc -l) -eq 1 ]]' on securedrop-workstation-buster Running 'sudo apt update' on sd-viewer-buster-template Running '[[ $(apt list --upgradable | wc -l) -eq 1 ]]' on sd-viewer-buster-template Running 'echo '1' > /home/user/.securedrop_client/sdw-update-status' on sd-app Using sys-firewall as UpdateVM to download updates for Dom0; this may take some time... Last metadata expiration check: 0:06:11 ago on Tue May 26 16:14:04 2020. Dependencies resolved. =================================================================================================== Package Arch Version Repository Size =================================================================================================== Upgrading: securedrop-workstation-dom0-config noarch 0.3.0-0.rc2.1.fc25 securedrop-workstation-dom0 105 k Transaction Summary =================================================================================================== Upgrade 1 Package Total download size: 105 k DNF will only download packages for the transaction. Downloading Packages: securedrop-workstation-dom0-config-0.3.0-0.rc2. 144 kB/s | 105 kB 00:00 -------------------------------------------------------------------------------- Total 136 kB/s | 105 kB 00:00 Complete! The downloaded packages were saved in cache until the next successful transaction. You can remove cached packages by executing 'dnf clean packages'. Qubes OS Repository for Dom0 26 MB/s | 27 kB 00:00 securedrop-workstation-dom0-config.noarch 0.3.0-0.rc2.1.fc25 qubes-dom0-cached Qubes OS Repository for Dom0 26 MB/s | 27 kB 00:00 Dependencies resolved. ================================================================================ Package Arch Version Repository Size ================================================================================ Upgrading: securedrop-workstation-dom0-config noarch 0.3.0-0.rc2.1.fc25 qubes-dom0-cached 105 k Transaction Summary ================================================================================ Upgrade 1 Package Total size: 105 k Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Upgrading : securedrop-workstation-dom0-config-0.3.0-0.rc2.1.fc25.noa 1/2 Cleanup : securedrop-workstation-dom0-config-0.3.0-0.rc1.1.fc25.noa 2/2 Verifying : securedrop-workstation-dom0-config-0.3.0-0.rc2.1.fc25.noa 1/2 Verifying : securedrop-workstation-dom0-config-0.3.0-0.rc1.1.fc25.noa 2/2 Upgraded: securedrop-workstation-dom0-config.noarch 0.3.0-0.rc2.1.fc25 Complete! fedora-30: OK [CRITICAL] Failed to load grains defined in grain file disks.disks in functionExample 2
See https://github.com/freedomofpress/securedrop-workstation/pull/530#issuecomment-612256842