-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"hyperglass start" fails during an async call within util.build_frontend #56
Comments
This is a really odd one. Your environment is almost identical to what I run my org’s production hyperglass on, with the exception of BIRD, but I test that via local VM pretty regularly (and should in no way be relevant to the UI build). And, your configs appear largely generic. Can you set |
The "Bug Description" part is written when I had And with that try/except, I've only captured the error I can try adding additional debug loggers etc. If you want me to. |
(I have done a minor edit on the primary issue post, I forgot that the first error log posted contained my extra debug log lines so it made the callstack line higher than it supposed to be) |
This issue is still persistent on
What's interesting is that |
Hmm, after a clean-up I now get this:
|
I just figured out on my own system why it's showing the old version - I forgot to update the version in |
Okay so after doing Realizing that shouldn't really happen, I went ahead and did:
Which gave me #56 (comment) System Info
|
Once 1.0.0-beta.55 finishes CI and is published, can you give it a whirl? The favicons is now live. In my testing, the favicon build process took about 1 second, vs the JS library's nearly full minute, so I'm hopeful this issue will be solved! |
The CI build failed, but I've since fixed it. 1.0.0-beta.55 is available via PyPI now. |
Unfortunately I got the same exit :(
Already ran |
To see if Python was at fault, I also installed
With the debug flag set:
System Info (though its the same)
|
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 runhyperglass start
. You can run hyperglass with the--direct
flag:hyperglass start -d
Bug 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 setup
and choose/etc/hyperglass
as configuration base folderhyperglass start
Local 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-generic
Route Server
4.15.0-106-generic
Client
not applicable
Smartphone Details (if applicable)
not applicable
The text was updated successfully, but these errors were encountered: