31 Replies Latest reply on Jun 16, 2017 5:56 AM by fmanniti RSS
    fmanniti Creator

    HTTP Status 404 - /Thingworx/Home

    I have this issue:
    If I'm working on ThingWorx, and I'm start doing something else for a while (like half an hour) when I go back on ThingWorx and I refresh the page I have apache problem:

    HTTP Status 404 - /Thingworx/Home

    type Status report

    message /Thingworx/Home

    description The requested resource is not available.


    Apache Tomcat/8.0.20

     

    It doesn't happens ALL the times but like 50% of the times so I don't understand on what it depends.

     

    So far I can only solve the problem by uninstalling and re-installing Apache Tomcat

      • Re: HTTP Status 404 - /Thingworx/Home
        supandey Collaborator

        Have you had a look at the Apache error log - is there any reference to this? Does the Apache service continue run while you get this error?

        • Re: HTTP Status 404 - /Thingworx/Home
          giri Communicator

          Fabio,

          Just an fyi, make sure you are not using Tomcat 8.0.30 or above. I had this HTTP 404 problem with 8.0.30 and 8.0.33 (though it is intermittent).

           

          Deploying Thingworx instance in 8.0.24/26 fixed my issue. Not exactly sure about the root cause.

          • Re: HTTP Status 404 - /Thingworx/Home
            fmanniti Creator

            Just a clue:
            May it depends on the fact I'm working on my local computer and not on the Virtual Machine?

            • Re: HTTP Status 404 - /Thingworx/Home
              ssolanke Newbie

              Hi All,

              Even I am facing the same issue. the error I get is in attached screen shot. I feel it is not getting deployed successfully.

              The error occurs for version 6.5 and above. Version 6 is getting deployed successfully.

              My system configurations are:

              Java version 8

              and Apache tomcat version 8.0.36.

              Screenshot from 2016-09-03 11:10:24.png

              Screenshot from 2016-09-03 11:10:11.png

              Can you tel me is I am missing something?

              • Re: HTTP Status 404 - /Thingworx/Home
                gprasad Newbie

                404 error.PNG

                Application.log files:

                [L: ERROR] [O: c.t.s.ThingWorxServer] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-5]

                2017-02-06 16:03:41.982+0530 [L: INFO] [O: c.t.p.p.PersistenceProvider] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-5] Connection ThingworxPersistenceProvider, type PostgresPersistenceProviderPackage stopped

                2017-02-06 16:03:41.982+0530 [L: WARN] [O: c.t.p.p.PersistenceProvider] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-5] Could not find persistenceProviderPackage PostgresPersistenceProviderPackage and thus could not stop data processing

                2017-02-06 16:03:41.985+0530 [L: ERROR] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-5] [message: Unable to initialize and start system: null]

                2017-02-06 16:03:41.985+0530 [L: ERROR] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-5] *** Web Application STATE is being set to ERROR! ***

                2017-02-06 16:03:45.255+0530 [L: ERROR] [O: c.t.s.a.AuthenticationFilter] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-8] Could not handle request

                2017-02-06 16:03:49.471+0530 [L: ERROR] [O: c.t.s.a.AuthenticationFilter] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-10] Could not handle request

                2017-02-06 16:03:55.444+0530 [L: ERROR] [O: c.t.s.a.AuthenticationFilter] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-4] Could not handle request

                2017-02-06 16:08:31.911+0530 [L: ERROR] [O: c.t.s.a.AuthenticationFilter] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-12] Could not handle request

                2017-02-06 16:10:25.836+0530 [L: ERROR] [O: c.t.s.a.AuthenticationFilter] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-13] Could not handle request

                2017-02-06 16:10:26.426+0530 [L: ERROR] [O: c.t.s.a.AuthenticationFilter] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-15] Could not handle request

                2017-02-06 16:10:29.407+0530 [L: ERROR] [O: c.t.s.a.AuthenticationFilter] [I: ] [U: ] [S: ] [T: http-nio-8080-exec-17] Could not handle request

                2017-02-06 16:11:26.570+0530 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-16] WebApp stopping:

                2017-02-06 16:11:26.570+0530 [L: ERROR] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-16] ThingWorx Web Application STATE is in ERROR, so normal shutdown logic may fail!

                2017-02-06 16:11:26.570+0530 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-16] ========================================

                2017-02-06 16:11:26.575+0530 [L: ERROR] [O: c.t.s.ThingWorxServer] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-16] Error Attempting To Stop Scheduler: null

                2017-02-06 16:11:26.575+0530 [L: INFO] [O: c.t.s.ThingWorxServer] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-16] ========================================

                2017-02-06 16:11:26.575+0530 [L: INFO] [O: c.t.s.ThingWorxServer] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-16] Stopping Platform Subsystems

                2017-02-06 16:11:26.575+0530 [L: INFO] [O: c.t.s.ThingWorxServer] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-16] ========================================

                2017-02-06 16:11:26.575+0530 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-16] Thingworx Server Application...OFF

                2017-02-06 16:11:26.575+0530 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-16] Thingworx Server Application...Cleaned up

                2017-02-06 16:11:26.575+0530 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-16] WebApp OFF [server = Apache Tomcat/8.0.27]

                2017-02-06 16:11:26.576+0530 [L: ERROR] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: http-nio-8080-exec-16] Error getting ApplicationContext: {}null

                 

                Please help to fix this error. I have also attached tomcat log file.

                  • Re: HTTP Status 404 - /Thingworx/Home
                    supandey Collaborator

                    Hi Guru, it appear as though the Postgresql isn't reachable or correctly configured. Have you check the postgresql installation? Could you connect to it? does it contain ThingWorx schema along with its tables?

                     

                    Is this a fresh installation or was this setup working before?

                      • Re: HTTP Status 404 - /Thingworx/Home
                        gprasad Newbie

                        Hi Sushant, I checked and reinstalled postgresql again.I verify db connection too and it looks good.

                        But now i am getting

                        HTTP Status 401 - Could not handle request

                         

                        In Tomcat log file:

                        Caused by: java.security.InvalidParameterException: id cannot be null or empty.

                          at com.thingworx.persistence.common.EntityIdHelper.getTypeFromId(EntityIdHelper.java:12)

                          at com.thingworx.persistence.postgres.dao.PostgresModelDaoFactory.create(PostgresModelDaoFactory.java:22)

                          at com.thingworx.persistence.postgres.PostgresDocumentModelDriver.fromStorage(PostgresDocumentModelDriver.java:154)

                          ... 46 more

                        java.lang.Exception: Unable to initialize and start system: null

                          at com.thingworx.system.ThingWorxServer.loadModel(ThingWorxServer.java:448)

                          at com.thingworx.system.ThingWorxServer.doHA(ThingWorxServer.java:181)

                          at com.thingworx.system.ThingWorxBootstrapper.contextInitialized(ThingWorxBootstrapper.java:124)

                          at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4738)

                          at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5181)

                          at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

                          at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1293)

                          at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:673)

                          • Re: HTTP Status 404 - /Thingworx/Home
                            polinao Collaborator

                            How did you deploy thingworx.war? The proper way is to copy the thingworx.war file inside tomcat/webapps folder while the tomcat service is stopped, then start it and have it unpackage the thingworx app automatically.

                            Could you please provide the versions of the Thingworx platform and postgresql you are using?

                        • Re: HTTP Status 404 - /Thingworx/Home
                          polinao Collaborator

                          What are your Thingworx platform version and the postgresql version? I also see you have Apache Tomcat/8.0.27 -- while this would not  be the cause for this particular issue, our system requirements guide recommends a minimum of 8.0.33 for Tomcat.

                        • Re: HTTP Status 404 - /Thingworx/Home
                          dalguacil Newbie

                          We experienced the same problem and we could solve it just changing the java version from 1.8_121 to 1.8_92, that it was the recommended version in the installation guide.

                           

                          I don't know if this can help you Fabio Manniti.