JMRI can't connect to MQTT broker server

Travis Farmer Aug 3, 2019

  1. Travis Farmer

    Travis Farmer TrainBoard Member

    352
    320
    14
    here is a log entry i found. i cleaned it up a bit to allow it to post better.

    Code:
    INFO  - ****** JMRI log ******* [main]
    INFO  - This log is appended to file: C:\Users\travi\JMRI\log\messages.log [main]
    INFO  - This log is stored in file: C:\Users\travi\JMRI\log\session.log [main]
    INFO  - PanelPro version 4.16+R6f9aced starts under Java 1.8.0_221 on Windows 10 x86 v10.0 at Fri Aug 02 14:47:49 EDT 2019 [main]
    INFO  - Starting with profile My_JMRI_Railroad.3f5ef60b [main]
    INFO  - Using ba2b9892-f4a2-4c07-8256-7db24791c913 as the JMRI storage identity for profile id 3f5ef60b [AWT-EventQueue-0]
    ERROR - Unable to create jmri.jmrix.mqtt.configurexml.MqttConnectionConfigXml for [Element: <connection/>], load returned false [main]
    ERROR - Exception initializing jmri.jmrix.ConnectionConfigManager: Unable to create several of your connections. [main]
    ERROR - Exception initializing apps.StartupActionsManager: jmri.util.prefs.InitializationException: Unable to run startup actions due to earlier failures. [main]
    INFO  - Normal termination complete [main]
    the MQTT broker i am using is a local network server, running Mosquitto (on a CentOS server). not sure what the issue is, as i can connect to the broker with MQTT Explorer, with the same settings.

    ~Travis
     
  2. Travis Farmer

    Travis Farmer TrainBoard Member

    352
    320
    14
    Also, how do i set the username and password to connect to my broker?

    ~Travis
     
  3. Atani

    Atani TrainBoard Member

    1,469
    1,757
    37
  4. Travis Farmer

    Travis Farmer TrainBoard Member

    352
    320
    14
    yeah, i tried both with and without auth. currently my MQTT broker is set to anonymous connections (probably fine as it is behind a firewall anyway). i thought it may work better with auth, but couldn't figure out how to add the auth info to JMRI.
    the thing is, i just noticed when viewing the Syslog on my server, when i log in with MQTT Explorer, it logs the connection. but when i try with JMRI, nothing pops up on the log, suggesting no attempt to even connect before it throws an error.

    ~Travis
     
  5. Atani

    Atani TrainBoard Member

    1,469
    1,757
    37
    Travis Farmer likes this.

Share This Page