• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. MaP

    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
    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 14
    • Posts 64
    • Best 0
    • Controversial 0
    • Groups 0

    MaP

    @MaP

    0
    Reputation
    759
    Profile views
    64
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    MaP Unfollow Follow

    Latest posts made by MaP

    • RE: Rest API CORS config env.properties

      @MattFox I was able to run a test on a Mango4 unit and get access to rest V3 API via a non-local-host IP, but not on mango 3.7.2 REST V1 - this still only allows local-host originating requests. Wondering if there is something with IP tables or some network wizardry on the Mango itself to Destination NAT or masquarade requests from another port to overcome the CORS rules.

      I would prefer a solution without involving another device/cloud server and a public IP address/Domain

      posted in User help
      M
      MaP
    • RE: Rest API CORS config env.properties

      @MattFox

      I attempted the following but it still does not seem to have worked

      rest.cors.enabled=true
      rest.cors.allowedOrigins=*,localhost,<IP-HERE>
      rest.cors.allowedMethods=PUT,POST,GET,OPTIONS,DELETE
      rest.cors.allowedHeaders=LOGOUT,PASSWORD,content-type,accept,x-requested-with,authorization
      rest.cors.exposedHeaders=
      rest.cors.allowCredentials=true
      rest.cors.maxAge=3600

      ahh using Nginx would be a clever trick, I would prefer not to do this on the production environment but this is a great tip for future installs, nginx with certbot would be handy

      posted in User help
      M
      MaP
    • Rest API CORS config env.properties

      I have been struggling to query the rest API from anywhere other than localhost. I think this is due to the CORS setup (or lack thereof) in the env.properties file.

      Does someone have an example of a CORS setup to allow me to query the rest API from a non-local-host machine? The only one I can find quoted on the forum has been removed/linked to a different page - so any help would be greatly appreciated

      posted in User help rest api cors
      M
      MaP
    • User Permissions disappearing

      A client has contacted me because they are losing the ability to see dashboard data - the cause of this is because their user has lost user permissions to view the datapoint - BUT - after bulk permission association a few weeks later the problem returns and I need to reassociate the user permissions with the XID's/Data sources - has anyone experienced a bug like this before or have any idea of root cause?

      posted in Mango General permissions bug dashboard user
      M
      MaP
    • RE: JWT JSON Web Token Transfer

      @MaP
      It seems stack overflow is letting me know that JWT are not stored on the filesystem at all meaning I most likely have to recompile the source with a newly generated JWT.. happy if anyone has another solution though! :-)

      posted in User help
      M
      MaP
    • JWT JSON Web Token Transfer

      Can anyone tell me where the JWT are stored on the file system? I am preparing to transfer an executable to a new mango and I would prefer to just copy the JWT api token onto the new machine than create a new JWT and ammend/recompile the executable.

      posted in User help filesystem jwt
      M
      MaP
    • Mango Fan Control - thermal shutdown

      I have a mango with a thermal shutdown occuring and I wanted to check the fan settings I found an old post which showed you could change temperature thresholds and PWM controls here
      /sys/devices/odroid_fan.13 but it seems the newer mango I have (3576) has a different hardware setup - interestingly it does have a file called fans sitting @ $MA_HOME but looking through the linux kernal files this file refers to is a bit to esoteric for my liking ..

      posted in User help hardware temperature cpu fan
      M
      MaP
    • RE: Virtual Data Source Disabled on Reboot / Lifecycle terminating

      @MaP @MattFox Its currently winter here so i'm assuming thermal shutdown must be caused by High CPU use or a fan not running properly? Are there some things to set off of high priority? When I look at work items everything is high priority, CPU use is low but temperatures are pretty high.

      523a765e-28b9-490b-996d-d9838b147890-image.png

      posted in User help
      M
      MaP
    • RE: Virtual Data Source Disabled on Reboot / Lifecycle terminating

      @MaP Found it! It is a thermal shutdown!

      Jul 28 08:44:01 mangoES3576 CRON[1977]: (root) CMD ((sleep 30; [ -x /usr/sbin/systemInfo/cronRunner ] && /usr/sbin/systemInfo/cronRunner) >/dev/null$Jul 28 08:44:02 mangoES3576 python[6945]: AEMO Healthy - PriceNow:92.31
      Jul 28 08:44:57 mangoES3576 kernel: [1471180.187164] thermal thermal_zone2: critical temperature reached(107 C),shutting down
      Jul 28 08:44:57 mangoES3576 systemd[1]: Started Synchronise Hardware Clock to System Clock.
      Jul 28 08:44:57 mangoES3576 systemd[1]: Stopping Session c1 of user root.
      Jul 28 08:44:57 mangoES3576 systemd[1]: Stopping system-ifup.slice.
      Jul 28 08:44:57 mangoES3576 systemd[1]: Removed slice system-ifup.slice.
      Jul 28 08:44:57 mangoES3576 systemd[1]: Stopping User Manager for UID 0...
      Jul 28 08:44:57 mangoES3576 systemd[1]: Stopping Graphical Interface.
      Jul 28 08:44:57 mangoES3576 systemd[1]: Stopped target Graphical Interface.
      Jul 28 08:44:57 mangoES3576 systemd[1]: Stopping Multi-User System.
      Jul 28 08:44:57 mangoES3576 systemd[1]: Stopped target Multi-User System.
      Jul 28 08:44:57 mangoES3576 systemd[1]: Stopping Deferred execution scheduler...
      Jul 28 08:44:57 mangoES3576 systemd[1]: Stopping OpenBSD Secure Shell server...
      Jul 28 08:44:57 mangoES3576 systemd[1]: Stopping AEMO Service...
      Jul 28 08:44:57 mangoES3576 systemd[1]: Stopping Regular background program processing daemon...
      Jul 28 08:44:57 mangoES3576 systemd[1]: Stopping OpenVPN service...
      Jul 28 08:44:57 mangoES3576 systemd[1]: Stopped OpenVPN service.
      Jul 28 08:44:57 mangoES3576 systemd[1]: Stopping Login Prompts.
      Jul 28 08:44:57 mangoES3576 systemd[1]: Stopped target Login Prompts.

      posted in User help
      M
      MaP
    • RE: Virtual Data Source Disabled on Reboot / Lifecycle terminating

      Hi @MattFox !
      Yes an ES instance. Yes there have been some OOM like behaviours in the past but because of these previous incidents I have been trending the JVM memory and the memory seemed pretty stable at the time. And these usually result in mango service crashing but I can still use SSH to reboot the service. The most disconcerting thing here is the ethernet interface going dead. I would like to discover the root cause but from a mitigation standpoint I would also like a recovery option which doesn't include driving to site.. A shell script which monitors systemctl active status and reboots the device seems like an option. Tips for discovering root cause, or mitigation strategies appreciated!

      posted in User help
      M
      MaP