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

Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website

Migrate Mango to cloud server issue

  • Hi,
    I am trying to migrate Mango over to cloud server.
    I get the error shown below when loading up Mango which I think its something to do with the server setup.
    My current setup status is: I have setup Java at location /usr/java/jdk1.8.0_201-amd64 and I have been unable to get the JAVA_HOME system variable to register in /etc/environment even though I have added JAVA_HOME=/usr/java/jdk1.8.0_201-amd64 to this file. That is when I echo $JAVA_HOME it displays blank.
    Any advice would be appreciated?
    I am trying to get the website to display the usual Mango login screen so I guess I need the new URL to be something like <DOMAIN>:8080/ui/login . Any guides on setting this up? Thanks

    ERROR 2019-03-22T10:06:36,569 ( - Name or service not known Name or service not known
    	at Method) ~[?:1.8.0_201]
    	at$2.lookupAllHostAddr( ~[?:1.8.0_201]
    	at ~[?:1.8.0_201]
    	at ~[?:1.8.0_201]
    	at ~[?:1.8.0_201]
    	at ~[?:1.8.0_201]
    	at org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve( ~[httpclient-4.5.5.jar:4.5.5]
    	at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect( ~[httpclient-4.5.5.jar:4.5.5]
    	at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect( ~[httpclient-4.5.5.jar:4.5.5]
    	at org.apache.http.impl.execchain.MainClientExec.establishRoute( ~[httpclient-4.5.5.jar:4.5.5]
    	at org.apache.http.impl.execchain.MainClientExec.execute( ~[httpclient-4.5.5.jar:4.5.5]
    	at org.apache.http.impl.execchain.ProtocolExec.execute( ~[httpclient-4.5.5.jar:4.5.5]
    	at org.apache.http.impl.execchain.RetryExec.execute( ~[httpclient-4.5.5.jar:4.5.5]
    	at org.apache.http.impl.execchain.RedirectExec.execute( ~[httpclient-4.5.5.jar:4.5.5]
    	at org.apache.http.impl.client.InternalHttpClient.doExecute( ~[httpclient-4.5.5.jar:4.5.5]
    	at org.apache.http.impl.client.CloseableHttpClient.execute( ~[httpclient-4.5.5.jar:4.5.5]
    	at org.apache.http.impl.client.CloseableHttpClient.execute( ~[httpclient-4.5.5.jar:4.5.5]
    	at org.apache.http.impl.client.CloseableHttpClient.execute( ~[httpclient-4.5.5.jar:4.5.5]
    	at com.serotonin.web.http.HttpUtils4.executeWithRetries( ~[mango-3.5.6.jar:?]
    	at com.serotonin.web.http.HttpUtils4.getTextContent( ~[mango-3.5.6.jar:?]
    	at com.serotonin.m2m2.web.dwr.ModulesDwr.getAvailableUpgrades( ~[mango-3.5.6.jar:?]
    	at com.serotonin.m2m2.web.dwr.ModulesDwr.upgradesAvailable( ~[mango-3.5.6.jar:?]
    	at ~[mango-3.5.6.jar:?]
    	at com.serotonin.timer.Task.runTask( ~[mango-3.5.6.jar:?]
    	at ~[mango-3.5.6.jar:?]
    	at com.serotonin.timer.OrderedThreadPoolExecutor$ ~[mango-3.5.6.jar:?]
    	at java.util.concurrent.ThreadPoolExecutor.runWorker( ~[?:1.8.0_201]
    	at java.util.concurrent.ThreadPoolExecutor$ ~[?:1.8.0_201]
    	at [?:1.8.0_201]

  • Hi Paulppe,

    With regards to the echo $JAVA_HOME, did you log out of your ssh session and back in? The /etc/environment file doesn't automatically update the current user session.

    With regards to the at the stack trace this is a DNS issue in the devices configuration or on the network.

    I am trying to get the website to display the usual Mango login screen so I guess I need the new URL to be something like <DOMAIN>:8080/ui/login . Any guides on setting this up? Thanks

    If you have your domain registrar point the domain name at the public IP of your server, and there is not a firewall on a router or whatnot that needs to be punched through, that's all you'd need to do in a basic setup. Change the port to 80 in the file to lose the port from the URL.

  • As Phil mentioned, logging out and logging in will refresh your environment variables.
    I trust you followed the resource here for installing mango:

    Also enter

     cat /etc/resolv.conf 

    into your bash console to ensure you actually have name servers attached to your cloud instance.
    Secondly, if you're already using the server with a webserver, mango won't fire on port 80 if it's already in use.
    If that is the case, configuring a reverse proxy will be your port of call.
    That's all for now


  • Hi Phil,
    Thanks for the quick reply.

    1. I now have the Mango login screen displaying on the cloud server. I resolved this by creating a firewall rule to allow traffic through to port 8080 (so effectively port forward). I may need to change to port 80 to lose the port from the URL in the future- thanks for that tip!
    2. The echo $JAVA_HOME. I did log out of ssh session so I think it should work. I need to look into this further but the issue right now may be my lack of linux use. I may need to add JAVA_HOME to the profile file instead.
    3. The message at the stack trace- I got this message prior to creating the firewall rule so I need to check for this message when I restart Mango (I can only do this next week so I will keep you posted)
      Great software and great support- much appreciated