Ticket #744 (defect)

Opened 2 months ago

Last modified 2 months ago

Fresh migrate (empty db) fails. MySQL

Status: closed (fixed)

Reported by: Dentharg Assigned to: bsag
Priority: normal Milestone:
Component: Coding Version: trunk
Severity: blocker Keywords: migrate, db, clean, empty
Cc: marcin.gil@gmail.com

Please see attached error log.

I have this:

[gilowiep@lotis tracks.git]$ git log -n1 commit 30c49b685fbf251eb84acff6f2f81f3797ed1c7d Author: Reinier Balt <lrbalt@gmail.com> Date: Wed Jun 25 20:28:18 2008 +0200

fixes #742 by placing the you-have-no-contexts message outside the scope of

revision.

Attachments

migrate_log.txt (4.7 kB) - added by marcin.gil@gmail.com on 06/28/08 09:42:35.
Migration log
migrate_log_dev.txt (6.4 kB) - added by marcin.gil@gmail.com on 06/30/08 08:20:27.
rake db:migrate RAILS_ENV=development --trace

Change History

06/28/08 09:42:35: Modified by marcin.gil@gmail.com

  • attachment migrate_log.txt added.

Migration log

06/28/08 21:49:34: Modified by lrbalt

did you recreate the environment.rb file after your upgrade to tracks with rails2.1?

06/29/08 08:17:29: Modified by marcin.gil@gmail.com

Yes, I've created it from template and just changed the salt. Since I was starting with fresh DB I did no other modifications except uncommenting "production" ENV setting.

06/30/08 07:14:50: Modified by lrbalt

Strange. I cannot reproduce it here.

06/30/08 07:44:37: Modified by marcin.gil@gmail.com

Did you try on fresh repository checkout? Maybe there is some difference between what you have and what's in repo?

Anything more info I can provide?

Is there a list of required gems with min. versions?

06/30/08 08:11:53: Modified by lrbalt

I've tried it on the latest git repo.

Tracks does not have required gems that are not included in /vendor/ so that should not be it (except for running tests, but you are not there yet).

I'm running ruby 1.8 (.6) and rake 0.8.1 as you are.

Did you also try running rake db:migrate with RAILS_ENV=development ?

06/30/08 08:20:27: Modified by marcin.gil@gmail.com

  • attachment migrate_log_dev.txt added.

rake db:migrate RAILS_ENV=development --trace

06/30/08 08:21:07: Modified by marcin.gil@gmail.com

Attached you'll find a trace from dev migration.

06/30/08 08:31:02: Modified by lrbalt

could you try to comment out line 10 of application.rb

http://github.com/bsag/tracks/tree/master/app/controllers/application.rb#L10

06/30/08 08:36:44: Modified by marcin.gil@gmail.com

Migration succeeds both in development and production mode with that line commented out.

06/30/08 08:38:32: Modified by lrbalt

great! I'll create a patch for it to remove the line.

06/30/08 08:43:30: Modified by lrbalt

  • status changed from new to closed.
  • resolution set to fixed.