ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Migration Error from RedMine

Added by Dan Cameron at 2011-09-15 12:51 am

The db:migrate rake is failing, here's the error.

mini-lion:chiliproject sproutventure$ rake db:migrate RAILS_ENV=production --trace
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
==  MergeWikiVersionsWithJournals: migrating ==================================
ruby(1566,0x7fff7bd67960) malloc: *** error for object 0x7fddc786e9c0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6

Replies (5)

RE: Migration Error from RedMine - Added by Felix Schäfer at 2011-09-15 06:38 am

Well, the error comes from your ruby binary, what version are you on?

It might also be that the migration hit some memory limit, how much memory do you have on that machine? How many records/lines do you have in the wiki_content_versions table in your Redmine DB?

RE: Migration Error from RedMine - Added by Dan Cameron at 2011-09-15 03:11 pm

Well, the error comes from your ruby binary, what version are you on?

1.9.2

It might also be that the migration hit some memory limit, how much memory do you have on that machine? How many records/lines do you have in the wiki_content_versions table in your Redmine DB?

That helped. Since this is a test I blew out all the wiki versions and it upgraded fine. Thanks!

Now I need to figure out what else is preventing the app from booting up ...

RE: Migration Error from RedMine - Added by Dan Cameron at 2011-09-16 03:23 am

I actually do need some help with this since blowing out all the wikis in order to upgrade is going to be a bigger issue than I thought.

It might also be that the migration hit some memory limit, how much memory do you have on that machine?

4GBs, it's an i7 Mac Mini.

How many records/lines do you have in the wiki_content_versions table in your Redmine DB?

Only 435.

I ended up testing a bunch of different scenarios and I still can't figure out what to do:

  • I trimmed the DB down to only 86 entries
    • Trimming down to one row didn't help either.
  • I deleted all the gzip compressed rows in wiki_content_versions

I'm (guessing but) led to believe it has something to do with the version of redmine (trunk r6029) I'm upgrading from to the version of chiliproject (master)

RE: Migration Error from RedMine - Added by Felix Schäfer at 2011-09-16 06:55 am

Dan Cameron wrote:

It might also be that the migration hit some memory limit, how much memory do you have on that machine?

4GBs, it's an i7 Mac Mini.

OK, so it shouldn't be a problem with the available amount of memory.

How many records/lines do you have in the wiki_content_versions table in your Redmine DB?

Only 435.

That shouldn't be a problem either.

I ended up testing a bunch of different scenarios and I still can't figure out what to do:

  • I trimmed the DB down to only 86 entries
    • Trimming down to one row didn't help either.
  • I deleted all the gzip compressed rows in wiki_content_versions

I'm (guessing but) led to believe it has something to do with the version of redmine (trunk r6029) I'm upgrading from to the version of chiliproject (master)

Mmh, that would be most peculiar.

I see you run 1.9.2, so probably rvm, could you try the migration on 1.8.7?

RE: Migration Error from RedMine - Added by Dan Cameron at 2011-09-16 06:47 pm

Thanks! Downgrading did the trick. Now I'm getting an error when loading wikis but it's probably unrelated.

(1-5/5)