[Logo] Serotonin Software Community
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Version upgrade  XML
Forum Index » Mango installation
Author Message
Bot

Initiate
[Avatar]

Joined: 08/07/2007 17:33:52
Messages: 5
Location: Sweden
Offline

I try to upgrade version 1.60 to version 1.64 and get follows error:


Bot
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1454
Offline

Very strange. The error says that the field "RTNTS" is missing from you Events table in your database. But, this field was added in version 1.5.0, so if it's not there your 1.6.0 installation couldn't have worked.

Best regards,
Matthew Lohbihler
Bot

Initiate
[Avatar]

Joined: 08/07/2007 17:33:52
Messages: 5
Location: Sweden
Offline

Now I have tray to upgrade version to version , and when I upgrade from
version 1.60 to version 1.61 a get the errors that I write about before.
Version 1.60 works any idea?






Bot
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1454
Offline

If 1.6.1 doesn't work for that reason, 1.6.0 shouldn't work either. Check a few things:

1) That your 1.6.0 instance really is that version by looking on the system settings page.
2) That your database has that field by going to the sql page and running "select * from events" and finding the RTNTS field.
3) That the respective versions are in fact pointing to the same database instance. The value is in the WEB-INF/classes/env.properties file, called "db.url".

This message was edited 1 time. Last update was at 09/09/2009 17:28:53


Best regards,
Matthew Lohbihler
Bot

Initiate
[Avatar]

Joined: 08/07/2007 17:33:52
Messages: 5
Location: Sweden
Offline

Answer:

1) The data instance version is 1.6.0.

2) The database has no RTNTS field.

3) The env.properties file db.url=C:/tomcat/apache-tomcat-6.0.14/mangodb.

I have look into the script for create database from scratch, and I find the RTNS field into version 1.6.1?(createTables-derby.sql).

There must be a bug in upgrade funktion or scripts.




Bot
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1454
Offline

The code that upgrades from version 1.5.0 to 1.6.0 (Upgrade1_5_0.java) contains these lines:



(So, the field was introduced in version 1.6.0, not 1.5.0. My mistake, but it doesn't change our situation right now.)

If the instance was properly upgraded to 1.6.0 the field would be there. Also, the 1.6.0 code expects that field to be there, so you should be seeing errors if it's not. The upgrade code creates an output file called Upgrade1_5_0.log. Can you search for this and see if it lists any errors?

Best regards,
Matthew Lohbihler
Bot

Initiate
[Avatar]

Joined: 08/07/2007 17:33:52
Messages: 5
Location: Sweden
Offline

Upgrade1_5_0.log




Bot
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1454
Offline

The log says the field was created:



But you confirmed that it's not actually there. Can you confirm that other operations (like "alter table events add rtnCause int", and "alter table pointEventDetectors add alias varchar(255)") where also not done, or is the rtnTs field an isolated thing?

I don't think there is a bug in the upgrade anywhere since other users would have had the same problem, and believe me we would have heard about it by now.

If you find that there are other script statements that were apparently not executed, you might consider changing your database version back to 1.5.0 and upgrading to 1.6.0 again.

Best regards,
Matthew Lohbihler
Bot

Initiate
[Avatar]

Joined: 08/07/2007 17:33:52
Messages: 5
Location: Sweden
Offline

I delete installation of tomcat and mango, then I make a new installation of both tomcat 6.0.14 and mango version1.6.1.
Now its work, there must be some corrupted files with old installation.
Thanks for your help.


Bot
 
Forum Index » Mango installation
Go to:   
Powered by JForum 2.1.9 © JForum Team