Excel reports
-
Phil, here is the log. I'll check the db login but Everything else is working fine. I was working on the report format in excel and had ran it maybe 6 times before lunch. ????
-
Interesting. The error in the first post definitely still looks like a credentials problem. I would try restarting Mango if possible at some point and see if it manages successful db access. If not, there's definitely a credential issue.
Also in your logs I notice,
ERROR 2016-09-28 09:41:30,380 (com.infiniteautomation.mango.excelreports.dao.ExcelReportTemplateDao.update:352) - C:\SHARES\PUBLIC\IT Dept Installs\Mango Automation 2.7.10 Enterprise Demo\web\modules\excelReports\web\templates\report2.xlsx: The process cannot access the file because it is being used by another process. java.nio.file.FileSystemException: C:\SHARES\PUBLIC\IT Dept Installs\Mango Automation 2.7.10 Enterprise Demo\web\modules\excelReports\web\templates\report2.xlsx: The process cannot access the file because it is being used by another process. at sun.nio.fs.WindowsException.translateToIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(Unknown Source) at java.nio.file.Files.deleteIfExists(Unknown Source) at com.infiniteautomation.mango.excelreports.dao.ExcelReportTemplateDao.update(ExcelReportTemplateDao.java:350) at com.infiniteautomation.mango.excelreports.dao.ExcelReportTemplateDao.update(ExcelReportTemplateDao.java:44) at com.serotonin.m2m2.db.dao.WebSocketNotifyingDao.save(WebSocketNotifyingDao.java:47) at com.infiniteautomation.mango.web.mvc.rest.v1.excelreports.ExcelReportTemplateRestController.updateTemplate(ExcelReportTemplateRestController.java:365) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Is it possible you or someone else is editting the template in the Mango folder? Excel has a tendency to protect its open files. So, if you had it open and you tried to update it Excel may conflict.
-
Phil, Thanks I'll restart mango tonight and check in the morning.
-
I would try your credentials on the command line first. If they don't work, you can be pretty confident those credentials won't work for a Mango restart. But, if they do, go ahead and restart it.
-
Phil, You were right, mango would not restart. When our IT person he got this "Java.sql.SQLException: Data source is closed at org.apache.commons.dbcp. BasicDataSource. createDataSource 1362". How should we go about recovery?
-
Phil, here is what Jon, our IT Person sent me from the restart.
[Email Header]
Subject: RE: Hi JonDoesn’t seem to want to restart.
I shut it down, started it back up, web site is blank and here’s what the command window looks like
Jon
-
Hi Larry,
We will likely need the whole ma.log file so we can see the start of the error. You might want to check that your MySQL server is able to be connected to, it's possible it's not running.
-
Hi Joel, I can connect to the mysql db with the workbench from my laptop? Here is the ma.log file0_1475157802803_ma.log.1
-
Hi Larry,
I don't see any startup attempts in your log file. Are you sure that's the right log? Mango/logs/ma.log ? It looks like it may have been Mango/logs/ma.log.1
I cannot find the text in your image of the console, for instance, and the last log entry is at 2016-09-28 15:32:34,395
-
Phil, I here is the file again when I select it to upload it puts the (.1) after the file??? 0_1475160117108_ma.log.1
-
Phil, That last entry time is about when Jon (our IT admin) tried to restart it for me.
-
Then I wonder if your disk is full. Have you checked that?
-
Phil, No I never came to mind, I'll have my IT admin check that.
-
Phil, When we changed back to the h2 db mango came up fine, so it's something with the mysql and the server. will let you know more when we fine it.
Thanks