Project

General

Profile

CreateWikis migration aborted?

Added by Kedar Mhaswade almost 14 years ago

Hello Redminers,

Here is my environment:

kedar@teleport:~/redmine$ RAILS_ENV=production script/about
About your application's environment
Ruby version 1.8.7 (x86_64-linux)
RubyGems version 1.3.5
Rack version 1.1
Rails version 2.3.8
Active Record version 2.3.8
Active Resource version 2.3.8
Action Mailer version 2.3.8
Active Support version 2.3.8
Application root /home/kedar/redmine
Environment production
Database adapter mysql
Database schema version 26

I am trying to set up Redmine by checking out the source from svn and following the documentation at: http://www.redmine.org/wiki/redmine/RedmineInstall to the letter.

When I did the step 5: RAILS_ENV=production rake db:migrate however, I get the following error.

CreateWikis: migrating ==================================================
-- create_table(:wikis)
> 0.0030s
-
add_index(:wikis, :project_id, {:name=>:wikis_project_id})
rake aborted!
An error has occurred, all later migrations canceled:

undefined method `length' for :wikis_project_id:Symbol

(See full trace by running task with --trace)

What is the problem here?

(Another annoyance here is I can just rerun the rake db:migrate task with --trace immediately after that because then I get a different error. So, I guess (See full trace by running task with --trace) is a misleading instruction, but it may be rails thing, having to do nothing with redmine. But I am starting off, and I am running into weird errors).

Regards,
Kedar


Replies (3)

RE: CreateWikis migration aborted? - Added by Kedar Mhaswade almost 14 years ago

Ok, sorry, found http://www.redmine.org/boards/2/topics/14367 which says I should have rack installed. I did that and my list of gems shows it. (BTW, the RedmineInstall wiki page should say that one has to do gem install rack just like it does for rails).

I am still getting the same error :(

RE: CreateWikis migration aborted? - Added by Felix Schäfer almost 14 years ago

  1. What system are you trying to install this on?
  2. rack should have been pulled as a dependency of rails.
  3. You have the wrong versions of rake and rails, see the install page for the needed versions.
  4. What version of MySQL do you have? The current mysql gem doesn't work with 5.1 (yet).

RE: CreateWikis migration aborted? - Added by Kedar Mhaswade almost 14 years ago

All right, all right. It does work when you have exact rack version 1.0.1 (I guess that is required for both trunk and 0.9.4 stable release).

I have updated the instructions at http://www.redmine.org/wiki/redmine/RedmineInstall to say so.

I erroneously assumed that 1.1.0 (rack) should be backward compatible with 1.0.1. I guess not.

BTW, when I ran rake db:migrate on 0.9.4 it did tell me that I have rack 1.1.0 != 1.0.1. The same error could not be identified by the trunk version.

Thank you,

Kedar

    (1-3/3)