View Issue Details

IDProjectCategoryView StatusLast Update
0014830mantisbtupgradepublic2012-12-01 12:05
Reporterxavier_de_potter Assigned Todregad  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionno change required 
Summary0014830: Upgrade from version 1.1.7 to 1.2.11 - Issue History Date always empty
Description

Hi,
Since the migration, i always have the timestamp of issue history empty (see screenshot1 ).
In the database (screenshot 2), my datas are well displayed.

Another problem is when I made change in a issue, the date recorded is always empty (screenshot 3).
I don't find any quick solution, can you help me please?
Thanks in advance for your help.
Regards

TagsNo tags attached.
Attached Files
Problem description.jpg (73,088 bytes)   
Problem description.jpg (73,088 bytes)   
DB datas.jpg (173,638 bytes)   
DB datas.jpg (173,638 bytes)   
DB empty timestamp saved.jpg (179,474 bytes)   
DB empty timestamp saved.jpg (179,474 bytes)   
Tutoriel.doc (131,072 bytes)

Relationships

related to 0012735 closedvboctor Update upgrade script to handle retries in case of timeouts for large databases 
related to 0012601 closedvboctor Upgrading scripts sometimes fails with a server error in case of large databases 

Activities

dregad

dregad

2012-10-16 08:02

developer   ~0033213

Sorry but I was not able to reproduce your problem.

I installed a fresh 1.1.7, created a few test issues, ran the upgrade. All the history dates are migrated OK, and I don't get empty dates when updating issues.

Please additional information that allow to reproduce the issue.

xavier_de_potter

xavier_de_potter

2012-10-16 08:49

reporter   ~0033218

I think the only way to show you that is to give you the code and the DB (more than 12Go)...
I've resolved this problem changing a few part of the source code, forcing to display/save the date from field "date_modified_int" (unix timestamp date) and not from "date_modified" (windows date).
Maybe this problem is coming from our Regional Culture Setting...

dregad

dregad

2012-10-16 09:16

developer   ~0033222

Xavier,

The field 'date_modified_int' should not exist in your database if the upgrade process ran successfully.

It is a temporary field, which is created by the installer, to manage the conversion of dates into the new (unix) format.

Considering the size of your database, it is possible that the upgrade did not execute or complete properly (maybe due to timeout)

Can you please confirm, what is your current schema version (see Manage overview page) - should be 183 for 1.2.11

xavier_de_potter

xavier_de_potter

2012-10-17 02:02

reporter   ~0033237

Thank you for your feedback,
I'm on schema 113.
If you have any idea how to resolve that and have a stable version, I'm in :-)

xavier_de_potter

xavier_de_potter

2012-10-17 02:07

reporter   ~0033238

Another solution for us is to install a fresh and new version of mantis and integrate a link of the current mantis (in readonly) with all the history...
But I'm not sure that my team will be agree with that.

Lapinkiller

Lapinkiller

2012-10-17 02:50

reporter   ~0033240

you can change manually type of field date_modified from date to int, and copy data from date_modified_int to date_modified with only 2 sql requests ;)

xavier_de_potter

xavier_de_potter

2012-10-17 03:05

reporter   ~0033242

Right Animal Killer, it can be down like donw :-)
I will make those changes...
Thanks

PS:
Maybe they will have many others problem like that if the installation script end not correctly...
I cross my fingers

dregad

dregad

2012-10-17 06:06

developer   ~0033246

Actually I strongly recommend NOT to attempt a manual update of your database as LapinKiller said.

If you're on schema version 113, there are many other schema upgrade steps which are missing in your setup, and you will be facing other problems down the line, not to mention that you risk breaking the upgradability of your system.

I think you should try to do a clean upgrade from scratch. Make sure to note down and report any error messages that may occur. If you get a timeout, try increasing the relevant PHP settings to avoid that, and restart the upgrade. I believe it will resume from where it left off (see 0012735).

xavier_de_potter

xavier_de_potter

2012-10-17 08:58

reporter   ~0033253

Hi,
Thank Dregad, I will test that and give you a feedback when it's done.
Regards

dregad

dregad

2012-11-01 06:21

developer   ~0033398

xavier_de_potter,

You did not provide any feedback; I am therefore resolving this issue as "no change required".

Feel free to reopen the issue at a later time and provide the requested information.

xavier_de_potter

xavier_de_potter

2012-11-05 02:26

reporter   ~0034234

Hi,
I was in holliday for 2 weeks :-)
I planned to do that this week and I will give feedback after that.
Regards

xavier_de_potter

xavier_de_potter

2012-11-05 08:35

reporter   ~0034237

Sorry,
I don't understand very well and didn't find any documentation about that.
Where does I need to write that? In wich file?
mod - admin/install_functions.php
I'm not a "Linuxien", so could you explain me how and where execute this query?
Regards,
Xavier

dregad

dregad

2012-11-05 09:35

developer   ~0034238

Xavier

There should not be anything to do, change or write. In particular, do not touch anything in admin/install_functions.php.

Timeouts during date conversions are a known problem on large databases (see 0012601) but the code was modified so that it can resume from the point of failure when restarted (see 0012735).

Therefore I suggest you try again the complete upgrade from scratch (i.e. using a fresh copy of your 1.1.7 database). If the installation/upgrade process times out, just restart it as many times as needed, until normal, successful completion. At the end your schema version should be 183.

I was asking you to note down errors and messages, as this is not something I can reproduce here. This could help in better documenting the upgrade process.

xavier_de_potter

xavier_de_potter

2012-11-06 03:59

reporter   ~0034247

Hi,
I've execute the intallation and now I have the good schema version.
I've also seen the message "installation complete successful"
After a few test, seem that all my bugs have disappeard!
Thanks for all and the support.
I will push my boss to made a donation for all you work and I'm sure he will do it.
Thanks for all!
Regards,
Xavier

dregad

dregad

2012-11-06 04:16

developer   ~0034248

Glad I could help, and thanks for thinking of donating.

I am still interested in the actual errors you received while upgrading (screenshots, messages, etc), to better document this process for other people who might experience the same problems.

xavier_de_potter

xavier_de_potter

2012-11-06 04:24

reporter   ~0034249

Ok, Tonight, I replicate the same steps but this time it's for the mantis on our Production server.
I will document all my steps and join it to this Issue.

xavier_de_potter

xavier_de_potter

2012-11-15 02:28

reporter   ~0034320

Here is the basic tutoriel to resolve that
Regards

dregad

dregad

2012-11-15 05:38

developer   ~0034322

Last edited: 2012-11-15 05:46

Merci Xavier.

EDIT:
Looking at the doc you provided, it does not match with the error that you reported earlier with failure on date conversion; the adding of user_id column in mantis_bug_file_table is schema version 173, while you mentioned having an issue in schema version 113 before.

Did you get the same error at that time ?

xavier_de_potter

xavier_de_potter

2012-11-15 05:50

reporter   ~0034323

Yes, it was the error (on test and production system)

Related Changesets

MantisBT: master-1.2.x a0fbeebf

2012-11-05 10:05

dregad


Details Diff
Documentation: note on upgrading large databases

Added a comment on how to handle the failure to process the date
conversion in a single setup for large databases, as documented in
issues 0012601, 0012735 and 0014830
Affected Issues
0012601, 0012735, 0014830
mod - docbook/administration_guide/en/installation.sgml Diff File

MantisBT: master f46b71f6

2012-11-05 10:05

dregad


Details Diff
Documentation: note on upgrading large databases

Added a comment on how to handle the failure to process the date
conversion in a single setup for large databases, as documented in
issues 0012601, 0012735 and 0014830
Affected Issues
0012601, 0012735, 0014830
mod - docbook/Admin_Guide/en-US/Installation.xml Diff File