Upgrade to Thingworx 8.0 Errors
HI,
I have followed all the instructions in this document http://support.ptc.com/WCMS/files/173117/en/Upgrading_to_ThingWorx_8.0_1.0.pdf but with no luck.
Tomcat starts and I get errors in tomcat and Thingworx, when I try to go to localhost:9080/Thingworx. I know tomcat is fine because we have another site on the same server. (Well I know it is not a tomcat configuration error, and also Thingworx 7.3 worked on the same installation).
The Thingworx security log says
2017-06-27 16:23:19.062+1000 [L: INFO] [O: S.c.t.s.a.s.SSOContext] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] SSOContext created...
2017-06-27 16:23:19.175+1000 [L: ERROR] [O: S.c.t.s.a.AuthenticationFilter] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] Could not load session timeout from database, using default: null
2017-06-27 16:23:19.186+1000 [L: INFO] [O: S.c.t.s.s.SCIMProvider] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] Initializing SCIMProvider servlet...
2017-06-27 16:23:19.189+1000 [L: ERROR] [O: S.c.t.s.s.SCIMProvider] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] SCIMProvider initialization failure. Thingworx Server is not running
2017-06-27 16:23:27.067+1000 [L: ERROR] [O: S.c.t.s.a.AuthenticationFilter] [I: ] [U: ] [S: ] [T: http-nio-9080-exec-7] Could not handle request
The Thingworx application log says
2017-06-27 16:23:17.847+1000 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] ========================================
2017-06-27 16:23:17.850+1000 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] ThingWorx Version Information
2017-06-27 16:23:17.850+1000 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] ========================================
2017-06-27 16:23:17.855+1000 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] majorVersion = 8
2017-06-27 16:23:17.856+1000 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] minorVersion = 0
2017-06-27 16:23:17.856+1000 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] revision = 0
2017-06-27 16:23:17.856+1000 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] build = b11
2017-06-27 16:23:17.859+1000 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] schemaVersion = 1000
2017-06-27 16:23:17.859+1000 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] ========================================
2017-06-27 16:23:17.859+1000 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] ========================================
2017-06-27 16:23:17.860+1000 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] ThingWorx System Environment Settings
2017-06-27 16:23:17.860+1000 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] ========================================
2017-06-27 16:23:17.860+1000 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] OS: Windows Server 2008 R2
2017-06-27 16:23:17.860+1000 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] OS arch: amd64
2017-06-27 16:23:17.860+1000 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] OS version: 6.1
2017-06-27 16:23:17.861+1000 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] Total Processors: 4
2017-06-27 16:23:17.862+1000 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] Default encoding: windows-1252
2017-06-27 16:23:17.862+1000 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] JAVA vendor: Oracle Corporation
2017-06-27 16:23:17.862+1000 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] JAVA version: 1.8.0_131
2017-06-27 16:23:17.862+1000 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] JAVA install location: C:\Program Files\Java\jre1.8.0_131
2017-06-27 16:23:17.862+1000 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] JVM Max Memory: 228 (MB)
2017-06-27 16:23:17.862+1000 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] ========================================
2017-06-27 16:23:17.862+1000 [L: INFO] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] WebApp starting...
2017-06-27 16:23:17.863+1000 [L: WARN] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] Please note. Default character is set to Cp1252. It should be [UTF-8]. Please use the VM argument [-Dfile.encoding=UTF-8] in your application server startup script
2017-06-27 16:23:18.315+1000 [L: INFO] [O: c.t.s.ThingWorxServer] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] HA mode not enabled. Initializing and starting in standalone mode.
2017-06-27 16:23:18.316+1000 [L: INFO] [O: c.t.s.ThingWorxPersistenceHandler] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] Default Persistence Provider Name = ThingworxPersistenceProvider
2017-06-27 16:23:18.316+1000 [L: INFO] [O: c.t.s.ThingWorxPersistenceHandler] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] Default Persistence Provider Package Name = PostgresPersistenceProviderPackage
2017-06-27 16:23:18.331+1000 [L: INFO] [O: c.t.p.p.PostgresDatasource] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] Reading configuration from configTableCol
2017-06-27 16:23:18.647+1000 [L: INFO] [O: c.t.s.ThingWorxServer] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] Managers...INITIALIZED
2017-06-27 16:23:18.651+1000 [L: INFO] [O: c.t.s.ThingWorxServer] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] Database initialization started...
2017-06-27 16:23:18.994+1000 [L: ERROR] [O: c.t.p.p.PostgresModelExceptionTranslator] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] [message: ERROR: duplicate key value violates unique constraint "root_entity_collection_pkey"_ Detail: Key (name)=(NotificationDefinitions) already exists.]
2017-06-27 16:23:18.997+1000 [L: ERROR] [O: c.t.p.p.PostgresDocumentModelDriver] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] Problems migrating database
2017-06-27 16:23:18.998+1000 [L: INFO] [O: c.t.s.ThingWorxServer] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] System ownership locking started...
2017-06-27 16:23:19.008+1000 [L: INFO] [O: c.t.s.ThingWorxServer] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] System ownership locking complete
2017-06-27 16:23:19.010+1000 [L: WARN] [O: c.m.v.c.i.NewPooledConnection] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] [c3p0] A PooledConnection that has already signalled a Connection error is still in use!
2017-06-27 16:23:19.010+1000 [L: WARN] [O: c.m.v.c.i.NewPooledConnection] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] [c3p0] Another error has occurred [ org.postgresql.util.PSQLException: ERROR: current transaction is aborted, commands ignored until end of transaction block ] which will not be reported to listeners!
2017-06-27 16:23:19.011+1000 [L: ERROR] [O: c.t.p.p.PostgresModelExceptionTranslator] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] [message: ERROR: current transaction is aborted, commands ignored until end of transaction block]
2017-06-27 16:23:19.011+1000 [L: ERROR] [O: c.t.s.ThingWorxServer] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] [message: ERROR: current transaction is aborted, commands ignored until end of transaction block]
2017-06-27 16:23:19.021+1000 [L: INFO] [O: c.t.p.p.PersistenceProvider] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] Connection ThingworxPersistenceProvider, type PostgresPersistenceProviderPackage stopped
2017-06-27 16:23:19.022+1000 [L: WARN] [O: c.t.p.p.PersistenceProvider] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] Could not find persistenceProviderPackage PostgresPersistenceProviderPackage and thus could not stop data processing
2017-06-27 16:23:19.027+1000 [L: ERROR] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] [message: Unable to initialize and start system: ERROR: current transaction is aborted, commands ignored until end of transaction block]
2017-06-27 16:23:19.028+1000 [L: ERROR] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] *** Web Application STATE is being set to ERROR! ***
2017-06-27 16:23:27.068+1000 [L: ERROR] [O: c.t.s.a.AuthenticationFilter] [I: ] [U: ] [S: ] [T: http-nio-9080-exec-7] Could not handle request
And the tomcat8-stderr.log file says
27-Jun-2017 15:22:17.225 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive C:\WebRoot\Regain.war has finished in 10,535 ms
27-Jun-2017 15:22:17.231 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive C:\WebRoot\Thingworx.war
System property [org.owasp.esapi.opsteam] is not set
System property [org.owasp.esapi.devteam] is not set
[Fatal Error] :1:1: Premature end of file.
[Fatal Error] :1:1: Premature end of file.l
Any hints as to what the problem could be please? I really want to create my own extensions but the extension plug-in for Eclipse only supports 8.0 upwards, so I need to upgrade. Plus no doubt there are some nice new features I could use.
I'm using Postgresql, if that has any bearing.
I've since tried a few other things and I have what I think is a more meaningful message. In the
Application Log
2017-06-27 17:18:14.692+1000 [L: ERROR] [O: c.t.p.p.PostgresModelExceptionTranslator] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] [message: ERROR: duplicate key value violates unique constraint "root_entity_collection_pkey"_ Detail: Key (name)=(NotificationDefinitions) already exists.]
2017-06-27 17:18:14.695+1000 [L: ERROR] [O: c.t.p.p.PostgresDocumentModelDriver] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] Problems migrating database
2017-06-27 17:18:14.695+1000 [L: INFO] [O: c.t.s.ThingWorxServer] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] System ownership locking started...
2017-06-27 17:18:14.711+1000 [L: INFO] [O: c.t.s.ThingWorxServer] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] System ownership locking complete
2017-06-27 17:18:14.714+1000 [L: WARN] [O: c.m.v.c.i.NewPooledConnection] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] [c3p0] A PooledConnection that has already signalled a Connection error is still in use!
2017-06-27 17:18:14.715+1000 [L: WARN] [O: c.m.v.c.i.NewPooledConnection] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] [c3p0] Another error has occurred [ org.postgresql.util.PSQLException: ERROR: current transaction is aborted, commands ignored until end of transaction block ] which will not be reported to listeners!
2017-06-27 17:18:14.716+1000 [L: ERROR] [O: c.t.p.p.PostgresModelExceptionTranslator] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] [message: ERROR: current transaction is aborted, commands ignored until end of transaction block]
2017-06-27 17:18:14.717+1000 [L: ERROR] [O: c.t.s.ThingWorxServer] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] [message: ERROR: current transaction is aborted, commands ignored until end of transaction block]
2017-06-27 17:18:14.730+1000 [L: INFO] [O: c.t.p.p.PersistenceProvider] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] Connection ThingworxPersistenceProvider, type PostgresPersistenceProviderPackage stopped
2017-06-27 17:18:14.730+1000 [L: WARN] [O: c.t.p.p.PersistenceProvider] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] Could not find persistenceProviderPackage PostgresPersistenceProviderPackage and thus could not stop data processing
2017-06-27 17:18:14.733+1000 [L: ERROR] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] [message: Unable to initialize and start system: ERROR: current transaction is aborted, commands ignored until end of transaction block]
2017-06-27 17:18:14.733+1000 [L: ERROR] [O: c.t.s.ThingWorxBootstrapper] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] *** Web Application STATE is being set to ERROR! ***
2017-06-27 17:19:00.135+1000 [L: ERROR] [O: c.t.s.a.AuthenticationFilter] [I: ] [U: ] [S: ] [T: http-nio-9080-exec-6] Could not handle request
I don;t know how the database works exactly, but this would appear that Thingworx on starting is trying to insert into a table root_entity_collection with a primary key value for column pid that already exists.But I cannot see why or how that is happening.
Regards
Ben
Message was edited by: Ben Messenger

