Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.
Bug in DoJo rendering
-
Mango shutsdown within 1 to 36 hours because of bug:
WARN 2018-07-16T07:02:28,751 (com.serotonin.m2m2.web.dwr.MiscDwr.jsError:176) - Javascript error Description: Error: Tried to register widget with id==chartRendererSelect but that id is already registered Page: http://10.144.1.204:8080/resources/dojo/dojo.js?v=1530110639 line 345 > Function line 3 > eval Line: 2 Browser name: Firefox Browser version: 60 osName: Mac location: http://10.144.1.204:8080/data_sources.shtm
I've found this same bug mentioned for DoJo and a possible solution:
I'm trying for a fix by removing and re-implementing widgets on one page (for now) which appears to be at fault.
Any suggestions?
The full log follows:
pi@pi-9822-carney-main:/opt/mango/logs $ cat 07-16-2018-1.ma.log INFO 2018-07-16T00:05:00,177 (com.serotonin.m2m2.rt.maint.work.BackupWorkItem.execute:101) - Starting backup WorkItem. INFO 2018-07-16T00:05:00,177 (com.serotonin.m2m2.rt.maint.work.DatabaseBackupWorkItem.execute:109) - Starting database backup WorkItem. INFO 2018-07-16T00:05:00,189 (com.serotonin.m2m2.rt.maint.work.DatabaseBackupWorkItem.createLogOutputStream:224) - Writing backup log to /opt/mango/logs/com.serotonin.m2m2.rt.maint.work.DatabaseBackupWorkItem.log INFO 2018-07-16T00:05:14,098 (com.serotonin.m2m2.rt.maint.work.BackupWorkItem.execute:181) - Finished backup WorkItem. INFO 2018-07-16T03:05:00,013 (com.serotonin.m2m2.rt.maint.DataPurge.executeImpl:68) - Data purge started INFO 2018-07-16T03:05:04,001 (com.serotonin.m2m2.rt.maint.DataPurge.executeImpl:91) - Data purge ended, 0 point samples deleted WARN 2018-07-16T07:00:51,288 (com.serotonin.m2m2.web.dwr.MiscDwr.jsError:176) - Javascript error Description: Error: Tried to register widget with id==chartRendererSelect but that id is already registered Page: http://10.144.1.204:8080/resources/dojo/dojo.js?v=1530110639 line 345 > Function line 3 > eval Line: 2 Browser name: Firefox Browser version: 60 osName: Mac location: http://10.144.1.204:8080/data_sources.shtm WARN 2018-07-16T07:01:10,453 (com.serotonin.m2m2.web.dwr.MiscDwr.jsError:176) - Javascript error Description: Error: Tried to register widget with id==chartRendererSelect but that id is already registered Page: http://10.144.1.204:8080/resources/dojo/dojo.js?v=1530110639 line 345 > Function line 3 > eval Line: 2 Browser name: Firefox Browser version: 60 osName: Mac location: http://10.144.1.204:8080/data_sources.shtm WARN 2018-07-16T07:01:38,932 (com.serotonin.m2m2.web.dwr.MiscDwr.jsError:176) - Javascript error Description: Error: Tried to register widget with id==chartRendererSelect but that id is already registered Page: http://10.144.1.204:8080/resources/dojo/dojo.js?v=1530110639 line 345 > Function line 3 > eval Line: 2 Browser name: Firefox Browser version: 60 osName: Mac location: http://10.144.1.204:8080/data_sources.shtm WARN 2018-07-16T07:01:59,140 (com.serotonin.m2m2.web.dwr.MiscDwr.jsError:176) - Javascript error Description: Error: Tried to register widget with id==chartRendererSelect but that id is already registered Page: http://10.144.1.204:8080/resources/dojo/dojo.js?v=1530110639 line 345 > Function line 3 > eval Line: 2 Browser name: Firefox Browser version: 60 osName: Mac location: http://10.144.1.204:8080/data_sources.shtm WARN 2018-07-16T07:02:28,751 (com.serotonin.m2m2.web.dwr.MiscDwr.jsError:176) - Javascript error Description: Error: Tried to register widget with id==chartRendererSelect but that id is already registered Page: http://10.144.1.204:8080/resources/dojo/dojo.js?v=1530110639 line 345 > Function line 3 > eval Line: 2 Browser name: Firefox Browser version: 60 osName: Mac location: http://10.144.1.204:8080/data_sources.shtm INFO 2018-07-16T07:12:42,142 (com.serotonin.m2m2.Lifecycle.terminate:387) - Mango Lifecycle terminating... INFO 2018-07-16T07:12:43,604 (com.serotonin.m2m2.rt.DataSourceGroupTerminator.terminate:72) - Terminating 1 LAST priority data sources in 8 threads. INFO 2018-07-16T07:12:43,612 (com.serotonin.m2m2.rt.RuntimeManagerImpl.stopDataSourceShutdown:451) - Data source 'SolarTempDifferential' stopped INFO 2018-07-16T07:12:43,708 (com.serotonin.m2m2.rt.DataSourceGroupTerminator.terminate:102) - Termination of 1 LAST priority data sources took 105ms INFO 2018-07-16T07:12:43,709 (com.serotonin.m2m2.rt.DataSourceGroupTerminator.terminate:72) - Terminating 3 NORMAL priority data sources in 8 threads. INFO 2018-07-16T07:12:43,718 (com.serotonin.m2m2.rt.RuntimeManagerImpl.stopDataSourceShutdown:451) - Data source 'Indianapolis Weather' stopped INFO 2018-07-16T07:12:43,754 (com.serotonin.m2m2.rt.RuntimeManagerImpl.stopDataSourceShutdown:451) - Data source 'BACnet' stopped INFO 2018-07-16T07:12:43,759 (com.serotonin.m2m2.rt.RuntimeManagerImpl.stopDataSourceShutdown:451) - Data source 'Mango Internal' stopped INFO 2018-07-16T07:12:43,812 (com.serotonin.m2m2.rt.DataSourceGroupTerminator.terminate:102) - Termination of 3 NORMAL priority data sources took 103ms INFO 2018-07-16T07:12:43,869 (com.serotonin.m2m2.rt.maint.BackgroundProcessingImpl.joinTermination:550) - All high priority tasks exited gracefully. INFO 2018-07-16T07:12:43,873 (com.serotonin.m2m2.rt.maint.BackgroundProcessingImpl.joinTermination:556) - All medium priority tasks exited gracefully. INFO 2018-07-16T07:12:43,876 (com.serotonin.m2m2.rt.maint.BackgroundProcessingImpl.joinTermination:561) - All low priority tasks exited gracefully. INFO 2018-07-16T07:12:45,963 (com.serotonin.m2m2.Lifecycle.terminate:496) - Mango Lifecycle terminated.
-
What version of Mango are you using? You'll probably need to share your full ma.log file.
-
@mlavelle42 The dojo JavaScript error will not cause mango to shutdown. Its most likely caused by an unlicensed module (MangoNoSQL or Brewer's Dashboard), you will see a message at the start of your log file when Mango first starts up if this is the case.
-
I found the JVM memory to be too low and the graphics rendering gradually came to a halt. That's when this error occurred. I'm not using NoSQL, only H2. I'm running 3.4.4. I've increased JVM memory per a previous post. That may have been the problem. Plus I'm changing my rollups to reduce the number of data points in a query. Thanks for the help.
-
Are you using the new Dashboard Designer or the old Graphic Views? The new UI and Dashboard Designer performs much better. I would strongly recommend learning the new Dashboard Designer rather than Graphic views.