-
Notifications
You must be signed in to change notification settings - Fork 25
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
Dashboard contents are not shown in Fedora 23 #12
Comments
It is worth saying that this error was revealed when installing Ginger via RPM. |
Does it happens on all browsers (including Windows browsers when you access the server remotely)? The XMLHttpRequest message is just a warning and not part of the problem, it is due to jquery implementation. |
I can assert that this bug is happening in the RPM install of wok/ginger/gingerbase in F23. I don't believe this is a F23 only issue though. This is the result when loading WoK for the first time in Chrome running in incognito (private) mode: To be completely fair this is an 'old' error of the old UI that happens quite often even when things are working. Thus I don't know if this is the root cause of this specific bug (although it should be looked at when possible). This is the error that happens when trying to load the Dashboard tab: I've expanded the error in the console to show you more details: From this screenshot we can see that the error is happening because data['memory'] is undefined, as said in the first comment of this issue. Again, this was discovered running in Chrome in private mode, so cache problems are somewhat discarded too. If you have a Fedora 22 machine it is possible to create the RPM packages and install them in your own environment to see the error occurring:
Let me know if you have issues creating the RPMs. @lcorreia and myself are actively to make the packaging works due to the WoK/Gingerbase separation from Kimchi and if a new problem is detected we'll try to fix them ASAP. Daniel |
Recently the API was changed to return multiple values for memory. |
This is the current API:
At first glance it doesn't look that data['memory'] is undefined |
Update: in F23 the gingerbase/host API returns empty: [danielhb@localhost ~]$ curl -u root -H "Content-Type: application/json" -H "Accept: application/json" -k "https://localhost:8001/plugins/gingerbase/host" -X GET {} I consider this a backend bug, not an UI one. I'll reassign it to myself for the time being to free up @samhenri queue. Let me know if someone else is willing to fix this |
"First errors due tot he fact that we split the functionality of the Host into Dashboard and Updates. I guess we also need to split the help html same. Probably I will work on the help split part." Okay! Feel free to create a new issue to report this bug if you like. |
Yep Sure. On 11/12/15 5:34 PM, Daniel Henrique Barboza wrote:
|
Created #14 for the same. I will be working on it. On 11/12/15 5:34 PM, Daniel Henrique Barboza wrote:
|
@danielhb |
@sureshab , I just went trigger happy and fixed this bug. The fix is available in the ML. Thanks |
This code was invoking psutil.NUM_CPUS before checking if the attribute exists. In case it doesn't (seems to be the case in Fedora 23), this was causing an uncaught exception and plugins/gingerbase/host API returning empty. The UI is not ready to deal with this response and, in this case, the Dashboard doesn't load. If we have no means of getting the 'online_cpus' attribute the values of 'online_cpus' and 'offline_cpus' now defaults to "unknown". Signed-off-by: Daniel Henrique Barboza <dhbarboza82@gmail.com>
Patch applied to remote master/next branches |
No error shown in log. In firebug I can see the following:
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help http://xhr.spec.whatwg.org/ jquery.min.js:5:0
not well-formed :1:80
TypeError: data.memory is undefined jquery.min.js:636:9
The text was updated successfully, but these errors were encountered: