• R
    rob987

    Hi,
    Thanks for your prompt reply.
    I restored the database , and all good now. The times on the logs were out, as I just "grep ERROR *ma.log" and cut/paste the interesting ones.

    Thanks again - Its the fastest SCADA support I have seen.

    posted in User help read more
  • R
    rob987

    Hi,
    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 ?

    Thanks

    posted in User help read more
  • R
    rob987

    Hi,
    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.
    see
    [link text](https://docs.fedoraproject.org/f27/system-administrators-guide/Wayland.html
    and
    [link text](https://ask.fedoraproject.org/en/question/97856/why-do-i-get-an-error-launching-gedit-with-sudo-in-fedora-25/

    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

    posted in Mango Automation Installation read more
  • R
    rob987

    Hi,
    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
    ma.sh:JAVAOPTS=" -Djava.awt.headless=true"

    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

    Thanks

    posted in Mango Automation Installation read more