No Machine ID
-
After restoring a previous database and applying a new license I'm receiving the following error.
I'm receiving the same error on Ubuntu 20.04LTS
Jul 13 18:45:04 onxl4549 start-mango.sh[832]: Starting Mango Automation
Jul 13 18:45:04 onxl4549 start-mango.sh[832]: Mango Automation started with process ID: 1020
Jul 13 18:45:04 onxl4549 systemd[1]: Started SBIO dTwins.
Jul 13 18:46:55 onxl4549 start-mango.sh[1020]: Unable to determine the machine id
Jul 13 18:46:55 onxl4549 start-mango.sh[1020]: FATAL (com.serotonin.m2m2.Lifecycle.loadLic:592) - Unable to determine the machine id
Jul 13 18:46:55 onxl4549 start-mango.sh[1020]: ERROR (com.serotonin.m2m2.Main.main:162) - Error during initialization
Jul 13 18:46:55 onxl4549 start-mango.sh[1020]: java.lang.RuntimeException: Unable to determine the machine id
Jul 13 18:46:55 onxl4549 start-mango.sh[1020]: at com.serotonin.m2m2.Lifecycle.loadLic(Lifecycle.java:595) ~[ma-priv-3.7.7.jar:?]
Jul 13 18:46:55 onxl4549 start-mango.sh[1020]: at com.serotonin.m2m2.Lifecycle.initialize(Lifecycle.java:277) ~[ma-priv-3.7.7.jar:?]
Jul 13 18:46:55 onxl4549 start-mango.sh[1020]: at com.serotonin.m2m2.Main.main(Main.java:159) ~[ma-priv-3.7.7.jar:?]ma.log
WARN 2021-07-13T19:10:17,144 (com.serotonin.m2m2.CoreLicenseDefinition.getSpecificGuid:338) - Host exception:
java.io.FileNotFoundException: /opt/dTwin/.ma (No such file or directory)
at java.io.FileOutputStream.open0(Native Method) ~[?:?]
at java.io.FileOutputStream.open(FileOutputStream.java:298) ~[?:?]
at java.io.FileOutputStream.<init>(FileOutputStream.java:237) ~[?:?]
at java.io.FileOutputStream.<init>(FileOutputStream.java:187) ~[?:?]
at java.io.FileWriter.<init>(FileWriter.java:96) ~[?:?]
at com.serotonin.m2m2.host.DefaultHost.guid(DefaultHost.java:69) ~[ma-priv-3.7.7.jar:?]
at com.serotonin.m2m2.CoreLicenseDefinition.getSpecificGuid(CoreLicenseDefinition.java:333) ~[ma-priv-3.7.7.jar:?]
at com.serotonin.m2m2.CoreLicenseDefinition.guid(CoreLicenseDefinition.java:317) ~[ma-priv-3.7.7.jar:?]
at com.serotonin.m2m2.CoreLicenseDefinition.initializeLic(CoreLicenseDefinition.java:117) ~[ma-priv-3.7.7.jar:?]
at com.serotonin.m2m2.CoreLicenseDefinition.licenseCheck(CoreLicenseDefinition.java:101) ~[ma-priv-3.7.7.jar:?]
at com.serotonin.m2m2.Lifecycle.loadLic(Lifecycle.java:659) ~[ma-priv-3.7.7.jar:?]
at com.serotonin.m2m2.Lifecycle.loadLic(Lifecycle.java:587) ~[ma-priv-3.7.7.jar:?]
at com.serotonin.m2m2.Lifecycle.initialize(Lifecycle.java:277) ~[ma-priv-3.7.7.jar:?]
at com.serotonin.m2m2.Main.main(Main.java:159) ~[ma-priv-3.7.7.jar:?]
FATAL 2021-07-13T19:10:17,144 (com.serotonin.m2m2.Lifecycle.loadLic:592) - Unable to determine the machine id
ERROR 2021-07-13T19:10:17,144 (com.serotonin.m2m2.Main.main:162) - Error during initialization
java.lang.RuntimeException: Unable to determine the machine id
at com.serotonin.m2m2.Lifecycle.loadLic(Lifecycle.java:595) ~[ma-priv-3.7.7.jar:?]
at com.serotonin.m2m2.Lifecycle.initialize(Lifecycle.java:277) ~[ma-priv-3.7.7.jar:?]
at com.serotonin.m2m2.Main.main(Main.java:159) ~[ma-priv-3.7.7.jar:?]
INFO 2021-07-13T19:10:17,145 (com.serotonin.m2m2.Lifecycle.terminate:400) - Mango Lifecycle terminating...
INFO 2021-07-13T19:10:17,158 (com.serotonin.m2m2.Lifecycle.terminate:550) - Mango Lifecycle terminated. -
@gordoe What user is mango running as? The install script should ask you to create a user. What is that user's home directory? Does that user have write permission for their own home directory?
Seeing the start of the ma.log file would be useful as well.
-
@jared-wiltshire
mango.service is using mango as the user.
I've run chown -R mango /opt/dTwins/INFO 2021-07-13T19:43:10,882 (com.serotonin.m2m2.Main.main:121) - Starting Mango 3.7.7 with Schema Version: 29 INFO 2021-07-13T19:43:11,236 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'excelReports', v3.7.1 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,253 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'meta', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,257 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'dataFile', v3.7.1 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,262 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'watchlists', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,267 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'http', v3.7.1 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,272 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'sstGlobalScripts', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,274 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'slackPublisher', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,278 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'sstGraphics', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,282 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'Haystack', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,285 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'mangoNoSqlDatabase', v3.7.1 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,289 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'modbus', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,292 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'dashboardDesigner', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,294 (com.serotonin.m2m2.util.DocumentationManifest.parseManifestFile:60) - Documentation manifest file not found: /opt/dTwins/web/modules/dashboardDesigner/web/dox/manifest.xml INFO 2021-07-13T19:43:11,295 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'mangoUI', v3.7.8 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,296 (com.serotonin.m2m2.util.DocumentationManifest.parseManifestFile:60) - Documentation manifest file not found: /opt/dTwins/web/modules/mangoUI/web/dox/manifest.xml INFO 2021-07-13T19:43:11,301 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'maintenanceEvents', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,303 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'dataImport', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,306 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'log4JReset', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,307 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'BACnet', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,310 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'lang_en', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,311 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'pakbus', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,314 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'sstTheme', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,314 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'jsonFileImport', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,317 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'graphicalViews', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,321 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'advancedScheduler', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,322 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'loggingConsole', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,324 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'twilio', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,327 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'log4jDS', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,330 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'dataPointDetailsView', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,332 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'virtualDS', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,335 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'sqlConsole', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,337 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'serial', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,339 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'ssh', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,342 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'controlcore', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,344 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'onewire', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,347 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'templateConfig', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,349 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'scheduledEvents', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,351 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'mqttClientDataSource', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,354 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'advancedComponents', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,355 (com.serotonin.m2m2.util.DocumentationManifest.parseManifestFile:60) - Documentation manifest file not found: /opt/dTwins/web/modules/advancedComponents/web/dox/manifest.xml INFO 2021-07-13T19:43:11,356 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'sqlds', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,359 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'mbus', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,362 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'scripting', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,364 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'TCPIP', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,366 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'deviceConfig', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,368 (com.serotonin.m2m2.util.DocumentationManifest.parseManifestFile:60) - Documentation manifest file not found: /opt/dTwins/web/modules/deviceConfig/web/dox/manifest.xml INFO 2021-07-13T19:43:11,368 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'opcda', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,369 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'snmp', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,372 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'cloudConnect', v3.7.1 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,373 (com.serotonin.m2m2.util.DocumentationManifest.parseManifestFile:60) - Documentation manifest file not found: /opt/dTwins/web/modules/cloudConnect/web/dox/manifest.xml INFO 2021-07-13T19:43:11,374 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'egauge', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,376 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'envcands', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,378 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'mangoApi', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,380 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'pop3', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,383 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'pointLinks', v3.7.1 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,385 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'asciiFile', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,387 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'vmstat', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,389 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'dnp3', v3.7.4 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,392 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'persistent', v3.7.1 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,394 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'reports', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:11,397 (com.serotonin.m2m2.Main.loadModules:650) - Loading module 'internal', v3.7.0 by Infinite Automation Systems Inc. INFO 2021-07-13T19:43:13,119 (com.serotonin.m2m2.Lifecycle.loadLic:583) - Checking license... WARN 2021-07-13T19:43:13,160 (com.serotonin.m2m2.CoreLicenseDefinition.getSpecificGuid:338) - Host exception: java.io.FileNotFoundException: /opt/dTwin/.ma (No such file or directory) at java.io.FileOutputStream.open0(Native Method) ~[?:?] at java.io.FileOutputStream.open(FileOutputStream.java:298) ~[?:?] at java.io.FileOutputStream.<init>(FileOutputStream.java:237) ~[?:?] at java.io.FileOutputStream.<init>(FileOutputStream.java:187) ~[?:?] at java.io.FileWriter.<init>(FileWriter.java:96) ~[?:?] at com.serotonin.m2m2.host.DefaultHost.guid(DefaultHost.java:69) ~[ma-priv-3.7.7.jar:?] at com.serotonin.m2m2.CoreLicenseDefinition.getSpecificGuid(CoreLicenseDefinition.java:333) ~[ma-priv-3.7.7.jar:?] at com.serotonin.m2m2.CoreLicenseDefinition.guid(CoreLicenseDefinition.java:317) ~[ma-priv-3.7.7.jar:?] at com.serotonin.m2m2.CoreLicenseDefinition.initializeLic(CoreLicenseDefinition.java:117) ~[ma-priv-3.7.7.jar:?] at com.serotonin.m2m2.CoreLicenseDefinition.licenseCheck(CoreLicenseDefinition.java:101) ~[ma-priv-3.7.7.jar:?] at com.serotonin.m2m2.Lifecycle.loadLic(Lifecycle.java:659) ~[ma-priv-3.7.7.jar:?] at com.serotonin.m2m2.Lifecycle.loadLic(Lifecycle.java:587) ~[ma-priv-3.7.7.jar:?] at com.serotonin.m2m2.Lifecycle.initialize(Lifecycle.java:277) ~[ma-priv-3.7.7.jar:?] at com.serotonin.m2m2.Main.main(Main.java:159) ~[ma-priv-3.7.7.jar:?] FATAL 2021-07-13T19:43:13,160 (com.serotonin.m2m2.Lifecycle.loadLic:592) - Unable to determine the machine id ERROR 2021-07-13T19:43:13,160 (com.serotonin.m2m2.Main.main:162) - Error during initialization java.lang.RuntimeException: Unable to determine the machine id at com.serotonin.m2m2.Lifecycle.loadLic(Lifecycle.java:595) ~[ma-priv-3.7.7.jar:?] at com.serotonin.m2m2.Lifecycle.initialize(Lifecycle.java:277) ~[ma-priv-3.7.7.jar:?] at com.serotonin.m2m2.Main.main(Main.java:159) ~[ma-priv-3.7.7.jar:?] INFO 2021-07-13T19:43:13,160 (com.serotonin.m2m2.Lifecycle.terminate:400) - Mango Lifecycle terminating... INFO 2021-07-13T19:43:13,173 (com.serotonin.m2m2.Lifecycle.terminate:550) - Mango Lifecycle terminated.```
-
@gordoe Can you confirm if the file
/opt/dTwin/.ma
exists? If it does not perhaps try creating an empty file. Very strange that we have not seen this before. What version of Java are you using?