lager-cli 0.63.0__tar.gz → 0.64.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {lager_cli-0.63.0/lager_cli.egg-info → lager_cli-0.64.0}/PKG-INFO +1 -1
- {lager_cli-0.63.0 → lager_cli-0.64.0}/__init__.py +1 -1
- {lager_cli-0.63.0 → lager_cli-0.64.0}/gateway_auth.py +11 -3
- {lager_cli-0.63.0 → lager_cli-0.64.0/lager_cli.egg-info}/PKG-INFO +1 -1
- {lager_cli-0.63.0 → lager_cli-0.64.0}/LICENSE +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/MANIFEST.in +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/NOTICE +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/README.md +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/__main__.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/address_utils.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/battery/__init__.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/battery/battery_tui.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/battery/websocket_client.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/box_storage.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/__init__.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/box/__init__.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/box/_device_identity.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/box/_gateway.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/box/_host_ops.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/box/_mount_prep.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/box/_net_preflight.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/box/_pip_validation.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/box/_shim_verbs.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/box/_ssh.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/box/bench.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/box/box_group.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/box/boxes.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/box/config.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/box/diagnose.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/box/drivers.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/box/dut.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/box/hello.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/box/instruments.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/box/labjack_pins.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/box/lock.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/box/net_tui.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/box/nets.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/box/ssh.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/box/ssh_setup.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/communication/__init__.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/communication/ble.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/communication/blufi.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/communication/i2c.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/communication/router.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/communication/spi.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/communication/uart.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/communication/usb.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/communication/websocket_client.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/communication/wifi.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/custom.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/development/__init__.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/development/arm.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/development/debug/__init__.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/development/debug/commands.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/development/debug/net_cache.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/development/debug/rtt_websocket_client.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/development/debug/service_client.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/development/debug/service_helper.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/development/debug/tunnel.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/development/devenv.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/development/python.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/measurement/__init__.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/measurement/adc.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/measurement/dac.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/measurement/dmm.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/measurement/energy.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/measurement/gpi.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/measurement/gpo.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/measurement/logic.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/measurement/scope.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/measurement/thermocouple.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/measurement/watt.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/power/__init__.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/power/battery.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/power/battery_model_csv.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/power/eload.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/power/solar.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/power/supply.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/security/__init__.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/security/hsm.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/utility/__init__.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/utility/_host_cli.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/utility/binaries.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/utility/defaults.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/utility/exec_.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/utility/install.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/utility/install_wheel.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/utility/lease.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/utility/login.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/utility/logs.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/utility/uninstall.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/utility/update.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/commands/utility/webcam.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/config.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/context/__init__.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/context/ci_detection.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/context/constants.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/context/core.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/context/error_handlers.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/context/session.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/core/__init__.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/core/custom_drivers.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/core/group_usage.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/core/matchers.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/core/net_group.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/core/net_helpers.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/core/net_storage.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/core/param_types.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/core/ssh_utils.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/core/tui_keys.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/core/tui_ws_bridge.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/core/utils.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/core/version_skew.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/core/ws_diagnose.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/deployment/__init__.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/deployment/scripts/__init__.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/deployment/scripts/configure_docker_dns.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/deployment/scripts/configure_docker_dns.sh +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/deployment/scripts/convert_to_sparse_checkout.sh +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/deployment/scripts/setup_and_deploy_box.sh +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/deployment/scripts/setup_ssh_key.sh +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/deployment/security/__init__.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/deployment/security/etc_lager_perms.sh +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/deployment/security/secure_box_firewall.sh +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/errors.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/exceptions.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/gateway_tunnel.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/impl/__init__.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/impl/box_config.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/impl/measurement/__init__.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/impl/measurement/scope.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/impl/measurement/scope_stream.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/impl/power/__init__.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/impl/power/enable_disable.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/lager_cli.egg-info/SOURCES.txt +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/lager_cli.egg-info/dependency_links.txt +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/lager_cli.egg-info/entry_points.txt +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/lager_cli.egg-info/requires.txt +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/lager_cli.egg-info/top_level.txt +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/lease_client.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/main.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/pyproject.toml +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/run_record.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/safe_unpickle.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/setup.cfg +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/setup.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/simple_hdlc.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/sort_utils.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/status.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/supply/__init__.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/supply/supply_tui.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/supply/websocket_client.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/terminal/__init__.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/terminal/core/__init__.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/terminal/core/executor.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/terminal/main.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/terminal/ui/__init__.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/terminal/ui/completer.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/terminal/ui/display.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/terminal/ui/logo.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/terminal/ui/repl.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/terminal/ui/themes.py +0 -0
- {lager_cli-0.63.0 → lager_cli-0.64.0}/update_check.py +0 -0
|
@@ -1099,11 +1099,19 @@ def handle_gateway_upstream_error(response, box_ip):
|
|
|
1099
1099
|
if headers.get(UPSTREAM_ERROR_HEADER) != UPSTREAM_UNAVAILABLE:
|
|
1100
1100
|
return
|
|
1101
1101
|
upstream = headers.get(UPSTREAM_HEADER) or 'the lager container'
|
|
1102
|
+
# Retry comes first because the common cause is brief. A box service
|
|
1103
|
+
# exits on purpose to recover a wedged USB device, and its supervisor has
|
|
1104
|
+
# it listening again within seconds (lager.util.self_restart). Leading
|
|
1105
|
+
# with "update or reinstall" sent people to rebuild a box that would
|
|
1106
|
+
# have answered the next request.
|
|
1102
1107
|
raise GatewayUpstreamUnavailable(
|
|
1103
1108
|
f'The lager service behind box {box_ip}\'s gateway does not answer.',
|
|
1104
|
-
cause=f'The gateway is up, but {upstream} did not accept its connection
|
|
1105
|
-
'the
|
|
1106
|
-
|
|
1109
|
+
cause=f'The gateway is up, but {upstream} did not accept its connection. '
|
|
1110
|
+
'Usually the service restarts itself to recover a USB device and '
|
|
1111
|
+
'answers again in a few seconds. Otherwise, the lager container '
|
|
1112
|
+
'is stopped or failed to start.',
|
|
1113
|
+
fixes=['Retry in a few seconds.',
|
|
1114
|
+
f'If it keeps failing, update the box: lager update --box {box_ip}',
|
|
1107
1115
|
f'If it has no lager container at all, reinstall: lager install --ip {box_ip}',
|
|
1108
1116
|
'Or update Lager from the control plane that manages the box.'],
|
|
1109
1117
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|