• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. Wingnut2.0
    3. Posts

    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
    W
    • Profile
    • Following 1
    • Followers 0
    • Topics 48
    • Posts 111
    • Best 3
    • Controversial 0
    • Groups 0

    Posts made by Wingnut2.0

    • Disable HTTP OPTIONS method - Security

      Hello - Security scans have identified having the HTTP Options method enabled as a security threat. My question is can this be disabled without any impact to mango, use of the API, or use of the swagger interface?

      If there are no issues with disabling, should this be done in the mango properties file, WEB-INF\web file, or both? Will these changes be persistent?

      If the web.xml file requires modification, would it possible to provide an example?

      • Thank you.
      posted in User help
      W
      Wingnut2.0
    • RE: Modbus Publisher - Edit a DataPoint v4.4.1

      @cwangv
      Agreed. I have something scribbled down about the error
      'IllegalStateException: Should be in state [INITIALIZING, RUNNING], but is in state TERMINATING'
      appearing in the log when attempting to delete a point failed.

      Its almost as though the publisher isn't starting/stopping cleanly. (Only tested with modbus publisher)

      posted in User help
      W
      Wingnut2.0
    • RE: Modbus Publisher - Edit a DataPoint v4.4.1

      Hello Joe, thanks for the reply.

      Seems like a lot of extra steps to get to the same functionality that used to exist with only a single click, but I guess that's how its done now.

      Thank you

      posted in User help
      W
      Wingnut2.0
    • Modbus Publisher - Edit a DataPoint v4.4.1

      In the past it was possible to edit data point in the Modbus Publisher once it had been added. Is this no longer an option? I only see the ability to add or remove.
      510444be-a7e8-425b-9d90-e62cd38c7761-image.png
      Thank you

      posted in User help
      W
      Wingnut2.0
    • Mango API - "mangoStatusCode": 4004 on Core 4.4.1

      Hello, having an issue accessing the API using JWT using -

      • Core version 4.4.1
      • API version 4.4.0

      When attempting to connect either via swagger or using python I am getting a 401 and the following response -

      {
      "mangoStatusCode": 4004,
      "mangoStatusName": "ACCESS_DENIED",
      "localizedMessage": "Access denied"
      }

      I have created JWT for user, set rest.enabled=true and swagger.enabled=true.
      Am I missing something in 4.4.1 to allow use of the API?
      Where can I find more info on StatusCode 4004?

      I have this working in other instances - Core v3.7.12 and v4.3.0

      Thank you

      posted in User help
      W
      Wingnut2.0
    • ???Runtime manager not running Error when attempting JSON Configuration Import

      When attempting to create devices (SQL) using the Configuration Import function I am getting the following results. These is no additional info related to this in the ma.log.

      This is on core 3.7.12 running on windows.

      Any suggestions on where to get more details related to "Runtime manager"?

      bb81bf2e-5a3a-4567-9211-8f3c668d1abe-image.png

      posted in User help
      W
      Wingnut2.0
    • RE: Installing Windows Service

      When changing to a service on windows your GUID will more than likely change (Thank you Dave)
      This will require a request to transfer you license from the old GUID to the new one.

      If you run into that - below is the link to request the transfer.
      https://mango-os.com/license-help

      posted in Mango Automation Installation
      W
      Wingnut2.0
    • RE: Installing Windows Service

      Hello Rodrigo,

      Here is another alternative. This works on windows with AdoptOpenJDK 11.

      https://nssm.cc/

      NSSM - the Non-Sucking Service Manager

      posted in Mango Automation Installation
      W
      Wingnut2.0
    • RE: Testing out the new Influx DB Line Protocol Data Source

      Thank you, Terry.

      While testing, I am using the following input

      [[inputs.win_perf_counters.object]]
      # Processor usage, alternative to native, reports on a per core.
      ObjectName = "Processor"
      Instances = [""]
      Counters = [
      "% Idle Time",
      "% Interrupt Time",
      "% Privileged Time",
      "% User Time",
      "% Processor Time",
      "% DPC Time",
      ]
      Measurement = "win_cpu"
      # Set to true to include _Total instance when querying for all (
      ).
      IncludeTotal=true

      The message to be sent is the following

      win_cpu,host=LAPTOP,instance=2,objectname=Processor,source=telegraf Percent_DPC_Time=0,Percent_Idle_Time=89.79866790771484,Percent_Interrupt_Time=0,Percent_Privileged_Time=0,Percent_Processor_Time=3.9585533142089844,Percent_User_Time=3.098111152648926 1604960081000000000
      

      What is making it to Mango ends up looking like this
      0_1604960358678_0ccc20d1-834d-4c65-bf9b-6184c2d19fdd-image.png

      Along with some additional errors for points that failed to be created.

      	 'test_Influx': Failed creating point with field key ²—‚œ±þÞÑE€d7ˆF}Ñú¢ªÓU™çœÌâï£ÉŤZ>Mç‹Ów?œýò׳?üã¯gÿŒïß¼Œ&óÅprYžo¯‡ÇÕùɏ‹OÕ¬~`úñ?«ËÅdø¥:ý¹Zü>}>?ùódQÍþ>¼¬óéíì²:]Tãêz6üûÉÙðòsµ˜_|¨&‹‹›j6¯.Oaðí×÷Õe5ú­ººx;š_gWÕÕÆÅ¿Þ.>No'ÍïŸüq6›ÎæMÝ_ùÓ×EµñÄý(V¿?3²oWNÐ@ÒPáÛ¿¨Aœÿ>¼yÅ‹_¦‹áx¹³áõhr}~òÓhÜ€Y5»¬õë|x]zd¶PrvmÊåÍí3¡ƒ˜M/«ù|:kÁý¿Œ¾T§’$T-ƒ‰ßî|{öfuÜÿôç«qµú-¢°cH‚hØú–zÝÌnoŸ because name -> Cannot be longer than 255 characters
      

      I do have Treat integers as Numeric types checked but seem to keep getting NumberFormatExceptions and Invalid Line Length errors. Can Mango only handle a single value being sent at a time?

      Thank you.

      posted in User help
      W
      Wingnut2.0
    • RE: Installing Windows Service

      Hello Rodrigo,

      I have found that if you want to run a version of 3.7.7 or lower on Windows as a service your best bet is Installing Oracle JDK 8. I know it doesn't necessarily follow the recommendation's here, but it allows you to run as a service.

      https://docs-v3.mango-os.com/installing-java

      • For Mango versions 3.6.x and higher we recommend using the latest version of Adopt OpenJDK.

      • For Mango versions 3.5.x and lower you should use JDK 8 (OpenJDK 8 should work however we primarily tested on Oracle JDK). Older versions of Mango may not work correctly if you use a newer JDK.

      • OpenJDK 8 builds for ARM 32 processors seem to perform extremely poorly, we suggest avoiding this JDK

      Another option that I haven't looked into is explained here.
      https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/new-service?view=powershell-7

      posted in Mango Automation Installation
      W
      Wingnut2.0
    • Testing out the new Influx DB Line Protocol Data Source

      Hello,

      While testing the data source, the help section indicates the following -

      There are 2 env properties that configure how the Line Protocol endpoint behaves.

      lineProtocol.task.queueWarningSize - Size of line queue at to which raise an event warning of queue growth
      lineProtocol.pointValidation.cacheExpirySeconds - When creating data points Mango will cache the existing points on this data source for performance during validation, this is how long they should live in the cache

      These 2 lines do not exist in the env.properties file. Could you provide an example of what the recommended defaults should be?

      Thank you.

      posted in User help
      W
      Wingnut2.0
    • RE: Installing Windows Service

      javaws.jar is not included in AdoptOpenJDK which is required for YAJSW to work.

      posted in Mango Automation Installation
      W
      Wingnut2.0
    • RE: ReferenceError on Meta Data Source script

      Thank you @terrypacker. I had a global script using $EXEC
      Once I removed that the script would execute.

      posted in User help
      W
      Wingnut2.0
    • RE: ReferenceError on Meta Data Source script

      I receive the error when validating the script in both the v3 and legacy UI.

      I checked and on this particular instance of mango I had made the changes referenced here
      https://forum.infiniteautomation.com/topic/4503/simple-ping-monitor
      and here
      https://forum.infiniteautomation.com/topic/3818/invoke-shell-commands-from-a-scripting-environment

      posted in User help
      W
      Wingnut2.0
    • RE: ReferenceError on Meta Data Source script

      Thanks @CraigWeb
      I corrected that and continue to have the same error.

      posted in User help
      W
      Wingnut2.0
    • ReferenceError on Meta Data Source script

      Hello,

      This is related to Core 3.6.4 / Meta 3.6.2.

      When attempting a simple script

      var myTotal = (p1148.value + p1164.value + p1068.value + p22238.value);
      return(myTotal);
      

      I receive the following error that I was hoping someone could shed some light on -

      ReferenceError: "$EXEC" is not defined at line: 23 at line: 23
      

      Thank you

      posted in User help
      W
      Wingnut2.0
    • Issue after using Install script for Linux and Mac

      Hello,

      After fresh Debian 10 Install I used the Install script provided on the IA site. https://help.infiniteautomation.com/install-script

      When the script completed I was unable to start mango per the script instructions -
      0_1579891472675_90bc6b2b-39c2-41eb-9622-5aab7ccdaa84-image.png

      Info from journalctl -xe
      0_1579891574137_284c1ada-5afc-4135-94fb-e69382fe3b42-image.png

      I am able to start mango manually without any issues
      0_1579891837343_640d6af6-155f-44fb-9b95-f9de696aff99-image.png

      Also, after the script install I now get the 2 errors highlighted below
      0_1579891998976_b3a9a401-ec71-4d33-a2b4-e65125094bcd-image.png

      Any suggestions as to how I can address this? Please let me know if I can provide any additional info.

      Thank you -

      posted in User help
      W
      Wingnut2.0
    • RE: Adding Alarm Level Types

      Hello fishfacs,

      I had a similar requirement in the past and Phillip provided the solution detailed here. Not sure if anything may have changed since then as its been a while. I hope this helps.

      https://forum.infiniteautomation.com/topic/3367/modify-alarm-level-names/2

      posted in How-To
      W
      Wingnut2.0
    • RE: Simple Ping Monitor

      As always, thank you.
      Works perfectly and I appreciate the link to the documentation.

      $EXIT
      This global object is used to store the exit code of the process. If the exit code is not zero, then the process failed.
      
      posted in How-To
      W
      Wingnut2.0
    • RE: Simple Ping Monitor

      Hello Phillip,

      I had a chance to try this out and I do not seem to get a response when running the ping command (this is on a MangoES). I have verified shell access is available via scripts by running commands like the ones below where I receive a response.

      var response = $EXEC("ls -l");
      print(response);
      
      var ip = $EXEC("ip a"); 
      print(ip);
      

      Can you confirm similar behavior? Is this a permissions issue?

      Thank you.

      posted in How-To
      W
      Wingnut2.0