I am running mango on a raspberry pi ( very well for 8 months ).
The version is 3.5.6 and have just added a modbus ethernet publisher for a remote PLC. This worked fine for a few days. I then attempted to modify the publisher by adding another point, but did not update the register field (left it on zero) when I saved the publisher.
The web interface lost connection.
The top command shows java is at 100%
Attempted a ma.sh stop and start, and the log file shows
ERROR 2019-02-28T13:40:58,349 (com.infiniteautomation.modbus.publisher.rt.ModbusIpSlave.receivedException:189) - Publisher Slave Error
ERROR 2019-02-28T11:16:17,844 (com.serotonin.m2m2.web.dwr.util.ExceptionDetectionFilter.doFilter:38) - DWR invocation exception com.serotonin.modbus4j.sero.ShouldNeverHappenException: Unsupported Regsiter Type: 0
ERROR 2019-02-28T13:41:37,334 (com.serotonin.m2m2.db.dao.AbstractBasicDao$1.extractData:1043) - IO Exception: "java.io.IOException: org.h2.jdbc.JdbcSQLException: The database has been closed [90098-196]"; "lob: null table: -3 id: 48567" [90031-196]
Can I connect to the H2 database and delete the publisher ?
Moving the /databases directory solved the problem.
I first started mango (ma.sh start) as a user, and it appeared to start OK, but I could not login, so the database user creation must have failed !!
After moving the database, I started with
$sudo ./bin/ma.sh start
Connected to localhost:8080 and logged in as admin :-)
Fedora 27, by default uses the wayland display server, which will not let root processes attach to it, if it is running as an ordinary user.
Maybe a new option should be added to the env.properties to allow the server to start in "headless mode", so when I upgrade mango, I do not lose my "-Djava.awt.headless=true" hack
Thanks for the prompt help
Installed free-m2m2-core-3.3.0.zip on linux (Fedora 27).
I added a line to ma.sh as mango would not start, as it was trying to connect to the x11 display.
$ grep JAVAOPTS *.sh
I connect to http://localhost:8080 and get the mango login screen, but cannot connect as admin/admin.
The log on the terminal screen shows
WARN 2018-02-04T17:43:39,781 (com.serotonin.m2m2.web.mvc.spring.security.MangoAuthenticationFailureHandler.saveExceptionImpl:81) - Failed login attempt on user 'admin' from IP +0:0:0:0:0:0:0:1
Any tips for next steps