Announcement

Collapse
No announcement yet.

Could not start web server

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Could not start web server

    Hello,

    We are trying to run Mirth Connect and getting error while trying to open Administrator, but otherwise Mirth server is running in background.

    When we try to enter http://localhost:8080 or https://localhost8443, it gives error too.

    Do you know the reason of this?

    Thanks in advange for all your helps.

    Error log are like below;

    Mirth Log file;
    ERROR 2019-05-15 18:15:03,727 [Main Server Thread] com.mirth.connect.server.controllers.DefaultConfig urationController: Could not initialize security settings.
    java.lang.NullPointerException
    at java.io.File.<init>(Unknown Source)
    at com.mirth.connect.server.controllers.DefaultConfig urationController.initializeSecuritySettings(Defau ltConfigurationController.java:966)
    at com.mirth.connect.server.Mirth.startup(Mirth.java: 207)
    at com.mirth.connect.server.Mirth.run(Mirth.java:153)
    WARN 2019-05-15 18:15:08,431 [Main Server Thread] com.mirth.connect.server.Mirth: Could not start web server.
    java.lang.NullPointerException
    at java.io.File.<init>(Unknown Source)
    at com.mirth.connect.server.MirthWebServer.createSSLC onnector(MirthWebServer.java:347)
    at com.mirth.connect.server.MirthWebServer.<init>(Mir thWebServer.java:132)
    at com.mirth.connect.server.Mirth.startWebServer(Mirt h.java:372)
    at com.mirth.connect.server.Mirth.startup(Mirth.java: 252)
    at com.mirth.connect.server.Mirth.run(Mirth.java:153)

    Administrator error details/exceptions
    CouldNotLoadArgumentException[ Could not load file/URL specified: http://localhost:8080/webstart.jnlp?maxHeapSize=512m]
    at com.sun.javaws.Main.launchApp(Unknown Source)
    at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
    at com.sun.javaws.Main.access$000(Unknown Source)
    at com.sun.javaws.Main$1.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.DualStackPlainSocketImpl.connect0(Native Method)
    at java.net.DualStackPlainSocketImpl.socketConnect(Un known Source)
    at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
    at java.net.AbstractPlainSocketImpl.connectToAddress( Unknown Source)
    at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at sun.net.NetworkClient.doConnect(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.<init>(Unknown Source)
    at sun.net.www.http.HttpClient.New(Unknown Source)
    at sun.net.www.http.HttpClient.New(Unknown Source)
    at sun.net.http://www.protocol.http.HttpURLConn...Client(Unknown Source)
    at sun.net.http://www.protocol.http.HttpURLConn...nnect0(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection$6.run( Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection$6.run( Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessController.doPrivilegedWithCom biner(Unknown Source)
    at sun.net.http://www.protocol.http.HttpURLConn...onnect(Unknown Source)
    at sun.net.http://www.protocol.http.HttpURLConn...onnect(Unknown Source)
    at sun.net.http://www.protocol.http.HttpURLConn...tream0(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.access $200(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection$9.run( Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection$9.run( Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessController.doPrivilegedWithCom biner(Unknown Source)
    at sun.net.http://www.protocol.http.HttpURLConn...Stream(Unknown Source)
    at com.sun.deploy.net.HttpUtils.followRedirects(Unkno wn Source)
    at com.sun.deploy.net.BasicHttpRequest.doRequest(Unkn own Source)
    at com.sun.deploy.net.BasicHttpRequest.doRequest(Unkn own Source)
    at com.sun.deploy.net.BasicHttpRequest.doGetRequest(U nknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory._buildDescrip tor(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescript or(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescript or(Unknown Source)
    ... 5 more
    Yavuz Selim Demiryılmaz
    Computer Engineer @imageRAD

  • #2
    Which version are you running?
    Also can you check mirth.properites file for the value of keystore.

    Comment


    • #3
      Has anyone figured this out?

      This same problem has started occurring with one of our Mirth Servers. Seems like the channels are still running, but cant start the administer to take a look at things, change things, etc.

      Was running 3.5.2, but trying to figure this out upgraded to 3.8.0


      Have another issue on another Mirth server running 3.5.1. Left admin up running yesterday. When went to look at something today the admin tool was closed. Tried to start it back up and after login is authenticated get an error that the tool cant connect to https://localhost:8443 verify service is running.

      Comment


      • #4
        This is getting to be a bit of a crisis. Cant get into the administrator or view any of the messages.

        Does anyone have any idea why this would occur. I dont know where to start to get this working again.

        Comment


        • #5
          What OS are you running? Have you tried disabling SELinux (if on Linux) and/or any firewalls (just to see if that's causing it)?

          From the logs, the service doesn't have the security to attach to the ports...

          -= Jack Haines : Founder/CEO of Healthcare Integrations, LLC
          -= [email protected]
          -= Mirth Connect (Advanced)-certified
          -= Gold member of HL7.org
          -= Available for Mirth Connect channel development and consultation! Schedule a FREE call with me at https://calendly.com/jackhaines

          Comment


          • #6
            Our Mirth Servers are running on Windows Server 2012 R2. We have not been applying any changes to this server and this started occurring.

            The version of Java on this machine is 1.8.0_221
            Location http://java.sun.com/products/autodl/j2se

            I believe Java installed came with the Mirth installation, but I could be wrong.

            Mirth is version 3.8.0. The problem first occurred with a previous version. I couldn't find out any reason why, so we decided to upgrade and hoped the install would fix it. It didnt.

            The log says the web server is running. Messages are being received, processed and transmitted

            Comment


            • #7
              Mirth does not come with Java. It is a prerequisite to installing Java. I would suspect that a java update was run and your security settings got reset.

              -= Jack Haines : Founder/CEO of Healthcare Integrations, LLC
              -= [email protected]
              -= Mirth Connect (Advanced)-certified
              -= Gold member of HL7.org
              -= Available for Mirth Connect channel development and consultation! Schedule a FREE call with me at https://calendly.com/jackhaines

              Comment


              • #8
                Originally posted by jackwhaines View Post
                Mirth does not come with Java. It is a prerequisite to installing Java. I would suspect that a java update was run and your security settings got reset.

                OK really that experienced with keeping Java in sync. What do I look for and where.

                Also is all the settings for channels stored in the database? Could I uninstall and reinstall (including Java) and then change from Derby to our SQL Server? Would that restore all the channels? Would it restore history?

                Comment


                • #9
                  I'm not a Windows guy (go Linux) but I know it will pop up and ask you to update which people tend to hit, and that's not always the best idea for Mirth.

                  All of the data is stored in the Mirth database. You should NEVER use Derby for ANYTHING other than the install and then moving to something else... MySQL, PostgreSQL, SQL Server. You can reinstall Mirth, Java, etc and as long as the database connection is the same, you'll be okay. (Make a config backup before you do anything, just to be sure)

                  -= Jack Haines : Founder/CEO of Healthcare Integrations, LLC
                  -= [email protected]
                  -= Mirth Connect (Advanced)-certified
                  -= Gold member of HL7.org
                  -= Available for Mirth Connect channel development and consultation! Schedule a FREE call with me at https://calendly.com/jackhaines

                  Comment


                  • #10
                    Originally posted by jackwhaines View Post
                    I'm not a Windows guy (go Linux) but I know it will pop up and ask you to update which people tend to hit, and that's not always the best idea for Mirth.

                    All of the data is stored in the Mirth database. You should NEVER use Derby for ANYTHING other than the install and then moving to something else... MySQL, PostgreSQL, SQL Server. You can reinstall Mirth, Java, etc and as long as the database connection is the same, you'll be okay. (Make a config backup before you do anything, just to be sure)
                    When you say backup config do you mean the database or some files somewhere?

                    Comment


                    • #11
                      Do you see any errors in the mirth logs when the server starts up?

                      Comment


                      • #12
                        If you utilize "Backup Config" under Settings, it creates a single XML file that contains all channels, code, etc. Everything EXCEPT the Users and the messages themselves. Using that ONE file, you can backup your Mirth server, and restore it back to working order using the same, new, or different database on the same box or a different box.

                        -= Jack Haines : Founder/CEO of Healthcare Integrations, LLC
                        -= [email protected]
                        -= Mirth Connect (Advanced)-certified
                        -= Gold member of HL7.org
                        -= Available for Mirth Connect channel development and consultation! Schedule a FREE call with me at https://calendly.com/jackhaines

                        Comment


                        • #13
                          Well since I cant get the administrator to run I cant get to that.

                          Let me ask you this. I can load Mirth on my dev workstation and connect to same database. Can I backup from that or since it isnt the same Mirth server some of the settings could be different?

                          Comment


                          • #14
                            No. No errors in the server logs. Just when the client (Administration tool) tries to connect.

                            Comment


                            • #15
                              Need to correct last post. Web Server is not starting. Getting the following error:

                              ERROR 2019-11-13 15:31:10,224 [Main Server Thread] com.mirth.connect.server.controllers.DefaultConfig urationController: Could not initialize security settings.
                              java.lang.NullPointerException
                              at java.io.File.<init>(Unknown Source)
                              at com.mirth.connect.server.controllers.DefaultConfig urationController.initializeSecuritySettings(Defau ltConfigurationController.java:1087)
                              at com.mirth.connect.server.Mirth.startup(Mirth.java: 208)
                              at com.mirth.connect.server.Mirth.run(Mirth.java:154)
                              WARN 2019-11-13 15:31:16,146 [Main Server Thread] com.mirth.connect.server.Mirth: Could not start web server.
                              java.lang.NullPointerException
                              at java.io.File.<init>(Unknown Source)
                              at com.mirth.connect.server.MirthWebServer.createSSLC onnector(MirthWebServer.java:368)
                              at com.mirth.connect.server.MirthWebServer.<init>(Mir thWebServer.java:150)
                              at com.mirth.connect.server.Mirth.startWebServer(Mirt h.java:385)
                              at com.mirth.connect.server.Mirth.startup(Mirth.java: 265)
                              at com.mirth.connect.server.Mirth.run(Mirth.java:154)

                              I checked Java Settings and all TLS settings enabled

                              Comment

                              Working...
                              X