Mango Windows Service Error on Startup
-
Having an issue after installing the Mango Windows Service per install instructions. Receiving an Error 1053 in Windows when trying to start the service. I've installed Mango in the C:\Mango directory. Mango will run on it's own using the ma-start.bat. I was told I need to install as a service before sending my guid to license the install. Any ideas why it will not start?
-
Did you edit the location of your Mango installation in the /yajsw/conf/wrapper.conf file?
The default setting is C:\Mango you can either edit this or change the file name where Mango is.
-
Hi Joel,
Yes, Mango is installed in the C:\Mango folder. I launch the ma-start.bat by entering the C:\Mango\Bin folder. So I did not need to modify the file, correct?Thanks for the help.
-
Oh sorry, I didn't see that. So you are correct you should not need to modify the file. The other thing you can look for then is in the ma.log file which you might find in the /bin/logs folder or the /logs folder.
Are you able to run Mango with the ma-start.bat script?
-
I am able to run it on its own using the ma-start.bat. I will take a look for the ma.log file once I am back in the office tomorrow, and post it then. Thanks again
-
I've tried installing Mango fresh this morning, but still receiving Error 1053 as soon as I try to start the Mango service. I can however, start the ma-start.bat file manually.
Here is the ma.log file:
0_1487255471971_ma.log
Thanks for the help. -
Could this have something to do with the Local System Account permissions for starting the service?
-
I'm not sure what this is. At the end of the log you can see pretty clearly that is starts up but then a few minutes later shuts down:
WARN 2017-02-16 09:19:00,047 (com.serotonin.m2m2.module.license.TimedLicenseEnforcementChecker.run:71) - mangoNoSqlDatabase is unlicensed, system will shutdown at Feb 16 2017 17:18:00
INFO 2017-02-16 09:24:36,479 (com.serotonin.m2m2.Lifecycle.terminate:353) - Mango Lifecycle terminating...
INFO 2017-02-16 09:24:36,526 (com.serotonin.m2m2.rt.maint.BackgroundProcessing.joinTermination:373) - All medium priority tasks exited gracefully.
INFO 2017-02-16 09:24:36,526 (com.serotonin.m2m2.rt.maint.BackgroundProcessing.joinTermination:378) - All low priority tasks exited gracefully.
INFO 2017-02-16 09:24:36,573 (com.infiniteautomation.nosql.MangoNoSqlProxy.shutdown:91) - Terminating NoSQL Batch Write Manager.
INFO 2017-02-16 09:24:36,573 (com.infiniteautomation.nosql.MangoNoSqlBatchWriteBehindManager.terminate:242) - Terminating NoSQL Point Value Mover.
INFO 2017-02-16 09:24:36,573 (com.infiniteautomation.nosql.MangoNoSqlBatchWriteBehindManager.terminate:263) - Terminating NoSQL Stale Point Cleaner.
INFO 2017-02-16 09:24:36,573 (com.infiniteautomation.nosql.MangoNoSqlBatchWriteBehindManager.terminate:266) - Terminating NoSQL Status Provider.
INFO 2017-02-16 09:24:36,573 (com.infiniteautomation.nosql.MangoNoSqlProxy.shutdown:99) - Closing NoSQL Database: Point Values
INFO 2017-02-16 09:24:36,589 (com.serotonin.m2m2.Lifecycle.terminate:453) - Mango Lifecycle terminated. -
Good Morning Joel,
It seems to be some sort of Permissions issue with the Local System Account that Windows is trying to start the service with. I'm not sure if it needs to use this account, but i changed the Mango Service Startup account to a local admin user account, and the service started just fine. Should it be ok to leave it this way, or is the Local System Account required for things to work properly?
Also, now that I have this running as a service, it should be ok to request the license I purchased correct?
I also would like to know what folders that I need to copy over from my test installation to the permanent install. Is it just the databases folder?
You also mentioned that I should shut off logging on these bacnet points, because I've got over 5000 log entries. Is it as simple as just disabling logging on all the points? Is there a way to do this as a batch, or all at once, instead of one point at a time? And, also, once I've shut off logging, How do I clear all of the logs?
Sorry for all the questions so early in the morning :)
-
Running under the local Admin account sounds like the normal way to do it so I think you are totally fine there. Just test a server reboot to make sure it all comes back automatically.
Sounds like you are good to request the license now that you have it running correctly.
To turn off the alarms edit the data source and set the data source alarm levels to "Ignore" . On the system setting page you can also set your various event purge types to something like 1 week to prevent too many events from building up over time.
-
Sorry, to move your configuration from a test system just copy the databases folder over. First shut Mango down and then start it up again. This won't copy over any custom graphics.
-
Here is my latest guid: [removed]
I'm not sure if you need to generate this license for me, I've tried updating the license and restarting the service, but, everything still shows "Unlicensed" in the modules tab.
-
Hi Ray,
It's best to keep GUIDs, public IPs, and any such personal information like that out of the forum. I created a support ticket with your GUID and we should have that for you soon.
-
Thanks Phil.
-
You should be able to download the license now using the 'download license' button on the modules page.
-
License has been applied successfully. Thank you.
Now regarding running Mango as a Windows Service. Do you happen to know if my settable bacnet points that I reset daily at midnight will continue to be reset by the Schedule event handler? They have been working ok, but I've been logged into the Mango system as Admin. Now that I'm running things as a service, I just want to be sure that there are no permissions issues related to having Mango continue to reset these points every night without being logged in.
Thanks. -
That shouldn't change anything. It should function exactly as it was, although there probably is some way to sandbox it using Windows Firewall if it's IP, I wouldn't expect that to be the default (and all polling would fail).