You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On a valid configuration set, you can run hyperglass build-ui without issues. Regardless of the UI build state with the same configuration set however, you cannot run hyperglass start. You can run hyperglass with the --direct flag: hyperglass start -d
unhandled exception during asyncio.run() shutdown
task: <Task finished coro=<build_ui() done, defined at /usr/local/lib/python3.6/dist-packages/hyperglass/main.py:59> exception=RuntimeError('',)>
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/hyperglass/main.py", line 70, in build_ui
app_path=CONFIG_PATH,
File "/usr/local/lib/python3.6/dist-packages/hyperglass/util.py", line 696, in build_frontend
raise RuntimeError(str(e)) from None
RuntimeError
❌
However, the error is not empty. You have to dig deeper (aka adding a try/except block on the linked code above) to get the error: <class 'concurrent.futures._base.CancelledError'>
Expected behavior
hyperglass starting up. (and building the UI/frontend if not done before)
Steps to Reproduce
Install hyperglass manually with pip3 (or with python3 -m pip)
Run hyperglass setup and choose /etc/hyperglass as configuration base folder
On a valid configuration set, you can run
hyperglass build-uiwithout issues. Regardless of the UI build state with the same configuration set however, you cannot runhyperglass start. You can run hyperglass with the--directflag:hyperglass start -dBug Description
https://github.com/checktheroads/hyperglass/blob/ee87c34ff162693b7a039027c12211930b409c44/hyperglass/util.py#L637-L647
The code block pointed above fails to the user with an empty RuntimeError:
However, the error is not empty. You have to dig deeper (aka adding a try/except block on the linked code above) to get the error:
<class 'concurrent.futures._base.CancelledError'>Expected behavior
hyperglass starting up. (and building the UI/frontend if not done before)
Steps to Reproduce
pip3(or withpython3 -m pip)hyperglass setupand choose/etc/hyperglassas configuration base folderhyperglass startLocal Configurations
commands.yaml: emptydevices.yaml: https://files.linuxgemini.space/hyperglass/devices-clearpass.yamlhyperglass.yaml: https://files.linuxgemini.space/hyperglass/hyperglass.yamlhyperglass-agent/config.yaml: https://files.linuxgemini.space/hyperglass/agent/config.yamlLogs
Possible Solution
Sadly, I am not really sure. I haven't messed with async in Python much; or Python in general.
Environment
Server
4.15.0-99-genericRoute Server
4.15.0-106-genericClient
not applicable
Smartphone Details (if applicable)
not applicable