Data Point Details No Graph - Unlicensed Module - How to Register License?
-
I can't get graphs to show up in the data point details page.
On the modules pages it says that data point details view module is unlicensed.
When I click update license and login with a username I created some time ago, it says "You currently do not have any licenses registered".
How do I go about registering our license?
Core is 2.7.6.
-
Hello,
We are having the same problem. We have the full license and this module was working a few days ago.
The other item is that every time I go to this page now, I am seeing a message at the top of the screen that says "114517 None Events".Our core is also 2.7.6, Data Point Details version is 1.0.4.
There are no new upgrades for our installed modules and I have restarted the instance and the problem has persisted but the number of none events has reset to zero and is climbing again.
Another indication is that our links from the DGLux dashboard are not opening the Data Points Details page properly. We have set up gauges with a click behaviour to open the data point details page in a new tab. When the page opens there is not details displayed, i.e. no data point name, no historical data, no graph. The data point name is in the address bar properly.
-
This is definitely not a license issue as this module works fully even without a license.
This page is a new page using HTML5 so the alarms in the header is a little different. The "None" level events are displayed here where they are not displayed on the older pages. This is helpful because None level events can sneak into your system as you see here. You might want to try and figure out what those events are and set them to Do Not Log rather than None to prevent them from stacking up. You can also set your None level to purge sooner on the system setting page.
Here are some useful SQL that might help: http://infiniteautomation.com/wiki/doku.php?id=tipsandtricks:sqlcommands
What browser are you using? I know we recently fixed a bug with Safari which will be released soon.
-
Also you can open it in Chrome and turn on Developer tools to see any page errors in the console.
-
Hello Joel,
I have tried the same page on Firefox Ver 44, Chrome 48 and after update on Chrome 49. They all display the same. No Charts and the increasing "None Events".I have checked the events list and there are no "None Events" listed. The number of "None Events" far exceeds my total number of events.
I have checked the events table and the level zero events are recent ones from the last few days and is called "Maximum Alarm Level Changed", I assume this is when I was changing alarm levels for testing. Again the level zero events in the table only number at 8158, far less than the 100K plus I saw on the data point details page.
When I look at the event handlers page, under system events there is a line with out a flag called "Maximum Alarm Level Changed". I have now set that to "Do Not Log" in the system settings page.
I opened the developers console on Chrome as you suggested and this is what was shown on the console when the data points details page was opened:
Warning: Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
Warning: The XMLHttpRequest progress event property 'position' is deprecated. Please use 'loaded' instead.
Error: GET http://[ip:port]/audio/information.mp3 404 (Not Found)
Level1 Sound Failed to loadError: GET http://[ip:port]/resources/amcharts.serial.js
e.load @ require.js:34#
h.load @ require.js:29
Z.load @ require.js:18
Z.fetch @ require.js:18
Z.check @ require.js:20
Z.enable @ require.js:23
h.enable @ require.js:28
(anonymous function) @ require.js:23
(anonymous function) @ require.js:8
v @ require.js:7
Z.enable @ require.js:22
Z.init @ require.js:17
(anonymous function) @ require.js:27Error: Uncaught Error: Script error for: amcharts.serial
http://requirejs.org/docs/errors.html#scripterror
B @ require.js:8
h.onScriptError @ require.js:30I am not a programmer so am not sure what any of this means.
Do I need to update java?
Thanks for your help.
Brian
-
And when I try to open a data point on the Data Points View page I get an additional error on the Chrome developers console:
Uncaught TypeError: this.amChart.validateData is not a function
SerialChart.onClear @ SerialChart.js:204
DataProvider.clear @ DataProvider.js:116
DataProvider.load @ DataProvider.js:143
ProviderOptionsManager.refreshProvider @ ProviderOptionsManager.js:79
(anonymous function) @ ProviderOptionsManager.js:69
m.extend.each @ jquery-1.11.2.min.js:2
ProviderOptionsManager.refreshProviders @ ProviderOptionsManager.js:68
ProviderOptionsManager.pickerChanged @ ProviderOptionsManager.js:156
m.event.dispatch @ jquery-1.11.2.min.js:3
r.handle @ jquery-1.11.2.min.js:3
m.event.trigger @ jquery-1.11.2.min.js:3
(anonymous function) @ jquery-1.11.2.min.js:3
m.extend.each @ jquery-1.11.2.min.js:2
m.fn.m.each @ jquery-1.11.2.min.js:2
m.fn.extend.trigger @ jquery-1.11.2.min.js:3
TimePresetPicker.setPreset @ TimePresetPicker.js:227
TimePresetPicker.presetPickerChanged @ TimePresetPicker.js:192
d.(anonymous function).a @ aspect.js:3
(anonymous function) @ _FormWidgetMixin.js:6
(anonymous function) @ lang.js:6
(anonymous function) @ _WidgetBase.js:16
(anonymous function) @ lang.js:6I hope this helps.
Brian
-
Hi Brian,
Could you check a few things for me? Can you clear your browser's cache (Ctrl + Shift + Del in chrome), and confirm that the 'dashboards' and 'mangoAPI' modules are installed and loaded?
Also, I edited out the ip address.
-
Hello Phil,
Thank you for catching that IP for me.Yes the dashboards (ver 1.1.2) and MangoAPI (ver 1.1.4) are installed and loaded. I can see in the ma.log file that they both loaded.
By the way the "None Events" are still accumulating since I set the system setting to "do not log"
Thanks for checking this.
Brian
-
Those should work. I haven't been able to reproduce yet. I am wondering why the URL for the chart goes to amcharts.serial.js
Watching my page load, I request /resources/amcharts/serial.js
I guess I would try (testing any changes before advancing)... 1) confirm your env.properties has "rest.enabled=true" 2) delete your Mango/work/jsp directory, 3) reinstall the dashboards module.
-
Phil,
I haven't had a chance to follow through on your suggestions yet, been very busy here. Are you replying to my situation or BG's?
I'll let you know when I get around to it, otherwise.
-
BG's, sorry. Did you have the similar output in your developer console? (Ctrl + Shift + i in chrome)
-
I'll get back to you later during the week probably with that information.
-
Hello Phil,
Thank you for your advice so far.I have verified that rest.enabled=true, I have also followed your other steps (delete folder and reinstall). The problem is still there.
However, It made me think about the env.properties file. I have the env.properties file in our overrides folder because it has site specific settings.
I compared the newer env.properties with our older env.properties and there are quite a few lines that have been added since we saved ours in the overrides folder.
I am going to update the newer env.properties with our details and save the newer version in the overrides folder.
I will update this after I try to say if it worked or not.
Thanks
Brian
Update: env.properties was updated, instance restarted and server rebooted. There is no change to the problem. Charts are still not appearing and the chrome developers console is still showing the same errors.
-
Huh. I can't find a reference to 'amcharts.serial.js' that would be getting requested. I am going to hunt that reference down, but I might not be able to get to it today. What kind of point is it (Numeric with analog renderer, I'm guessing)?
I suppose you could try a simple work around, which would be to copy the file Mango/web/resources/amcharts/serial.js to Mango/web/resources/ and name it amcharts.serial.js
I tried this on Mihai's system, and unfortunately I still didn't get a chart, but at least the rest of the page was happy.
-
Hello Phil,
Sorry for the delay getting back to you on this issue.The problem is affecting all of my point types in use. I am using some binary as well as numeric. From the point templates I can see they are set to plain rendering on the numeric points.
I have not tried your work around.
For the time being I have changed our users to see the older data points page. I have pointed the DGLux click behaviours to the older data points page as well.
Please let me know if anyone finds a solution since I do like the newer data points details page.
Cheers
Brian
-
Hi Brain,
No worries. I have good news! We resolved it was just a bad module that got into the store, hence why I couldn't find the reference or replicate with what I had on hand (I should get better about ensuring I am using the store's code at all testing customer inquiry moments. I used the build I thought was in the store, but apparently due to some heavy committing to the dashboards module around that time (our V3 dashboards module is going to have some really cool stuff in it!) a faulty version made it into the store). We will resolve this by putting in a new version either later today or early next week.
-
Excellent!
-
That is great news Phil,
I am sure we all fully understand how that could happen.
Thanks for your efforts finding the solution.
Cheers
Brian
-
There are new versions of the dashboards module and dataPointDetailsView modules. Be sure to check out the custom dashboards page (bar chart icon) to see the new possibilities to use Angular with Mango.
-
The issue has been resolved. Thanks Phil.