WebFaction
Community site: login faq

Hi,

I have a trace application running and I'd like to migrate it to Redmine. What's the best way to do this?

I found http://www.redmine.org/projects/redmine/wiki/RedmineMigrate but I'm running into issues. Once I set my env's Rake runs but I get this:

rake aborted! No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)

Apparently the file needed from trunk/lib/tasks isn't installed by red mine.

What's the best way to proceed? Any suggestions?

Thanks!

asked 08 Jun '12, 21:06

davinderm
111
accept rate: 0%


hmm, seems I was in the wrong dir (I'm not a ruby person) but once I went into redmine dir and ran it the command it started to work.

However, it now fails when trying to get the database from trace.

rake aborted! no such file to load -- sqlite

I had installed sqlite3 but still having problems.

Help! :)

permanent link

answered 08 Jun '12, 21:37

davinderm
111
accept rate: 0%

Check the Rails Documentation we provide for steps on how to build sqlite and to set the path for gems, this should resolve the issue.

(08 Jun '12, 21:48) johns

After some teeth-pulling and research, I did the following to get my trac instance imported to redmine. Hopefully this will help someone in the same boat/mine in the future.

# your app directory

cd /home/USER/webapps/APP

# establish Ruby environment

export PATH=$PWD/bin:$PATH

export GEM_HOME=$PWD/gems

export RUBYLIB=$PWD/lib

# install sqlite3 gem

gem install sqlite3 -- --with-sqlite3-dir=$HOME

# fix up the gem file

cd redmine

vi Gemfile

# add the line: gem "sqlite3-ruby", :require => "sqlite3"

bundle install --without development test

# do the import

rake redmine:migrate_from_trac RAILS_ENV=production

# follow the prompts

permanent link

answered 11 Aug '12, 06:42

pixelglow
123
accept rate: 0%

edited 11 Aug '12, 06:46

Thank you. We appreciate it!

(11 Aug '12, 06:47) iliasr ♦♦

The above worked for me too but I had to do two additional steps:

1) create the directory "attachments" in my trac webapp dir

mkdir $HOME/webapps/MYWEBAPP/attachments

2) proceed the migrate with another command

rake redmine:load_default_data RAILS_ENV="production"

After that running the migrate apparently worked. (the trac directory I used was: $HOME/webapps/MYWEBAPP)

permanent link

answered 02 Aug '13, 10:08

billh
12
accept rate: 0%

Did not work entirely, actually. I got an error in the migrate script when it was importing my wiki.

Migrating components....
Migrating milestones.
Migrating custom fields
Migrating tickets..............................................
Migrating wiki............rake aborted!
can't convert nil into an exact number

I followed the steps here http://www.redmine.org/issues/6868 to patch this file lib/tasks/migrate_from_trac.rake and now the import runs to the end without error

Checking the migrate all the issue pages fail to load. 500 error for lots of stuff. Much much digging shows that this is due to bad import of date values since Trac changed their date format in their db. Look here for details on the issue and how to fix it. Dont import without patching your migration script http://www.redmine.org/boards/2/topics/19162

permanent link

answered 02 Aug '13, 10:21

billh
12
accept rate: 0%

edited 02 Aug '13, 12:40

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×46
×26

question asked: 08 Jun '12, 21:06

question was seen: 5,416 times

last updated: 02 Aug '13, 12:40

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM