How to upgrade core on MangoES?
-
Is the new version of Mango still running in the /opt/mango folder? It looks like either the GUID has changed or the license file has been overwritten. You can contact our support at support@infiniteautomation.com and if you can provide remote access we will take a look and get the license issue resolved.
I wonder if the error is a networking issue. It might be worth checking the /etc/resolv.conf file to make sure it has the right DNS server setting in it.
-
Hi Joel,
I try to redo upgrade core to 2.6 version. But I'm not sure it's fineshed, cause I see message "sudo: unable to resolve host mango."
Capture as below for your reference.
-
Can you check your: /etc/resolv.conf and make sure the DNS setting is correct for your network.
-
Hi Joel,
I have checked /etc/resolv.conf and the DNS setting is correct.
-
ok thanks. Either way this error shouldn't cause any issues with mango strating. If Mango doesn't start as expected then stop the service and start it manualally by going to the /opt/mango/bin folder and running sudo ./ma.sh start
This will start it manually and you will see in the terminal if there are any startup errors.
On a side note, did you change the hostname of the MangoES? It should be something like mangoes2154
-
I think I know why you are getting the error about unable to resolve the host mango.
If you check your /etc/hosts file you will probably see something like mangoes1234. If you change that to just mango then I think your issue will be resolved.
-
@jeremyh You can put these two lines in your classes/log4j.xml file toward the bottom to turn on debug logging for snmp. In Mango on the system setting page there is an area where you can reload the Log4J configuration so you don't have to reboot Mango.
<category name="com.serotonin.m2m2.snmp"><level value="debug"/></category> <category name="org.snmp4j"><level value="debug"/></category>
See if you get any more specific error messages in the logs/ma.logs file.
-
Joel,
Thank you for kindly help, it's work.
-
@jeremyh @Jenny
In regards to the follow error I believe I know the solution:
The issue is in the /etc/hosts file.
On your MangoES SSH in and run "sudo nano /etc/hosts"
Your file should look like this:
The last line if the part to note. This needs to match what the host name is of your MangoES. There is a bug in the MangoES configuration module where if you change the Hostname there the hosts file does not get updated. In my tests getting the hostname correct in the hosts file will resolve this issue.
Please let me know if that works
-
Hi Joel,
Thank you for kindly reply.
This is work, this solved SNMP issue.