• Recent
    • Tags
    • Popular
    • Register
    • Login

    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.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Angular Errors - Possible Bug

    Dashboard Designer & Custom AngularJS Pages
    3
    11
    2.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rshah
      last edited by

      Hi All,

      Very strange issue / possible bug:

      I was working on a dashboard in VSCode, copying and pasting the code into the Edit Pages menu (from VSCode)-- everything was working fine for some time (albeit kind of slow).

      However, now, whenever I try to paste into the Edit Markup window of Edit Pages, it doesn't paste what is on my clipboard but rather pastes a URL to the dashboard I am working on.....

      We checked /opt/mango/logs/ma.log and found some errors ( included below ).

      I've also included a quick video which demos the issue. Edit: Turns out I don't have permissions to upload videos, but I can PM one to anyone if they need it

      We are running the latest version of Mango with all updates applied (you also have access to our system remotely - @mihairosu can assist if needed)

      Thanks!

      Error Log:

      ERROR 2018-04-17T17:46:23,913 (com.infiniteautomation.nosql.MangoNoSqlBatchWriteBehindManager$StatusProvider.scheduleTimeout:738) - 1 BWB Task Failures, first is: Task Queue Full 
      ERROR 2018-04-17T20:33:49,801 (com.infiniteautomation.nosql.MangoNoSqlBatchWriteBehindManager$StatusProvider.scheduleTimeout:738) - 5 BWB Task Failures, first is: Task Queue Full 
      ERROR 2018-04-17T20:34:29,613 (com.infiniteautomation.nosql.MangoNoSqlBatchWriteBehindManager$StatusProvider.scheduleTimeout:738) - 2 BWB Task Failures, first is: Task Queue Full 
      ERROR 2018-04-17T22:25:28,914 (com.infiniteautomation.nosql.MangoNoSqlBatchWriteBehindManager$StatusProvider.scheduleTimeout:738) - 1 BWB Task Failures, first is: Task Queue Full 
      WARN  2018-04-17T23:13:33,558 (com.infiniteautomation.mango.rest.v2.ServerRestV2Controller.postClientError:215) - Client error
      [user=guest, cause=, location=http://historian/ui/data-point-details/LibraryThermostatHeatMode, userAgent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36, language=en-US, date=2018-04-17T23:13:33.559-05:00, timezone=America/Chicago]
      Error: [ngRepeat:dupes] http://errors.angularjs.org/1.6.9/ngRepeat/dupes?p0=value%20in%20realtimePointValues%20%7C%20orderBy%3A%20myOrder%20track%20by%20value.timestamp&p1=1524024810000&p2=%7B%22value%22%3A1%2C%22rendered%22%3A%22Heat%20On%22%2C%22timestamp%22%3A1524024810000%2C%22annotation%22%3Anull%7D
      	at null (http://historian/modules/mangoUI/web/vendor/angular/angular.js?v=1522250226:7:76)
      	at null (http://historian/modules/mangoUI/web/vendor/angular/angular.js?v=1522250226:317:375)
      	at null (http://historian/modules/mangoUI/web/vendor/angular/angular.js?v=1522250226:147:302)
      	at m.$digest (http://historian/modules/mangoUI/web/vendor/angular/angular.js?v=1522250226:148:398)
      	at m.$apply (http://historian/modules/mangoUI/web/vendor/angular/angular.js?v=1522250226:151:355)
      	at null (http://historian/modules/mangoUI/web/vendor/angular/angular.js?v=1522250226:144:53)
      	at e (http://historian/modules/mangoUI/web/vendor/angular/angular.js?v=1522250226:48:441)
      	at null (http://historian/modules/mangoUI/web/vendor/angular/angular.js?v=1522250226:51:299) 
      rshah@historian:/opt/mango/logs$ 
      
      1 Reply Last reply Reply Quote 1
      • R
        rshah
        last edited by

        Update: a restart does fix this issue, but I think it will come back as it has in the past.

        Anyone have any ideas?

        1 Reply Last reply Reply Quote 1
        • phildunlapP
          phildunlap
          last edited by

          Hi rshah,

          Following the link in the error, I am led to believe there are two values recorded in the database at the same millisecond. This is uncommon (normally saving a value at a millisecond that already has a value will overwrite the existing if you're using MangoNoSQL) but can happen if the samples arrive together in an asynchronous backdate batch. We will probably try to fix that at some point. One solution would be to export the data for the series, find the duplicate and remove it. Do you know what point it is that would be causing this?

          If you're not using NoSQL, that may be quite easy to cause, simply have two point values at the same time for a single point in the pointValues table.

          1 Reply Last reply Reply Quote 0
          • R
            rshah
            last edited by

            Hi Phil,

            Would that lead to the error I am seeing with not being able to copy and paste into the code editor?

            1 Reply Last reply Reply Quote 1
            • phildunlapP
              phildunlap
              last edited by

              No, it's hard to believe that can be caused by anything other than you having that URL on the clipboard, and not what you thought. But, I will see what Jared thinks, if there may be some fanciness in that editor to the copy / paste, but I doubt it.

              1 Reply Last reply Reply Quote 0
              • R
                rshah
                last edited by

                @phildunlap said in Angular Errors - Possible Bug:

                No, it's hard to believe that can be caused by anything other than you having that URL on the clipboard, and not what you thought. But, I will see what Jared thinks, if there may be some fanciness in that editor to the copy / paste, but I doubt it.

                It for sure wasn't on the clipboard -- we tested it across different computers, across different browsers etc.

                It only pasted the URL of the page.

                I opened a different application and pasted into that and got the right stuff, and back to the Historian and it was the URL again.

                1 Reply Last reply Reply Quote 1
                • Jared WiltshireJ
                  Jared Wiltshire
                  last edited by

                  The error in the log file is unrelated but helpful.

                  Can you please post more information as per https://help.infiniteautomation.com/reporting-bugs/
                  Specifically the browser you are using, please try another browser to try and isolate the issue.

                  Developer at Radix IoT

                  1 Reply Last reply Reply Quote 0
                  • R
                    rshah
                    last edited by rshah

                    @jared-wiltshire said in Angular Errors - Possible Bug:

                    Can you please post more information as per https://help.infiniteautomation.com/reporting-bugs/
                    Specifically the browser you are using, please try another browser to try and isolate the issue.

                    Hi Jared:

                    I have tried in:
                    OSX 10.13.4 Safari 11.1, Chrome: 65.0.3325.181 (with and without incognito)
                    Windows 7: Chrome 66.0.3359.117 (with and without incognito) -> totally different computer

                    We are running the latest version of Mango and the dashboards module.

                    The issue was resolved after a restart of Mango. I had a video which I unfortunately deleted which showed the issue very clearly, but I do have a slightly worse video which somewhat demonstrates it which I can PM or Email you if you like.

                    You also have access to our mango instance via SSH and WebGUI if needed.

                    Please feel free to let me know if you need any further information

                    Edit: there was only one (likely) unrelated error in the console about a variable I had misnamed.

                    1 Reply Last reply Reply Quote 1
                    • Jared WiltshireJ
                      Jared Wiltshire
                      last edited by

                      PM me a link to the video and I'll take a look.

                      Developer at Radix IoT

                      R 1 Reply Last reply Reply Quote 1
                      • R
                        rshah @Jared Wiltshire
                        last edited by

                        @jared-wiltshire Sent via chat since I couldn't find any other way to PM you.

                        Jared WiltshireJ 1 Reply Last reply Reply Quote 1
                        • Jared WiltshireJ
                          Jared Wiltshire @rshah
                          last edited by

                          @rshah Thanks, yeah chat is what I meant.

                          I really can't explain what you are seeing, we copy and paste into that editor all the time with no issue. I use Windows but I'm sure the other guys in the office running OSX would have told me if there was an issue there.

                          Perhaps its the source of the text? Can you make sure you are copying plain text? (sometimes the clipboard can contain marked up text with formatting/colors etc).

                          Another thing to try, can you right click and paste?

                          Developer at Radix IoT

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post