My install is aborting with 4 more pending migrations. How do I proceed?
I have ran into the a problem migrating Calagator. In fact, I am trying on an Ubuntu server and a x64 Linux Server (hostmonster). I get to the same point on both, and rake aborts.
the error:
fivonez1@510atnight.com [~/etc/rails_apps/calagator]# rake db:migrate db:test:prepare
(in /home2/fivonez1/etc/rails_apps/calagator)
== CreateVersionedEvents: migrating ==========================================
rake aborted!
An error has occurred, this and all later migrations canceled:
undefined method `create_versioned_table' for #<class:0x7f27889766f0>
I am new to RoR, but I have been playing intense catchup over the last few days, and got ruby installed and running and all the gems needed installed. I have looked at the file: 20081011181519_create_versioned_events.rb, honestly though I do not know what I am looking at. I am unsure what the purpose of this call is, the only methods I have found is:
* create_table
* change_table
* drop_table
* add_column
* change_column
* rename_column
* remove_column
* add_index
* remove_index
what is the method " Event.create_versioned_table do |t|" do?
How do i proceed, it says i have for pending migrations.</class:0x7f27889766f0>
the error:
fivonez1@510atnight.com [~/etc/rails_apps/calagator]# rake db:migrate db:test:prepare
(in /home2/fivonez1/etc/rails_apps/calagator)
== CreateVersionedEvents: migrating ==========================================
rake aborted!
An error has occurred, this and all later migrations canceled:
undefined method `create_versioned_table' for #<class:0x7f27889766f0>
I am new to RoR, but I have been playing intense catchup over the last few days, and got ruby installed and running and all the gems needed installed. I have looked at the file: 20081011181519_create_versioned_events.rb, honestly though I do not know what I am looking at. I am unsure what the purpose of this call is, the only methods I have found is:
* create_table
* change_table
* drop_table
* add_column
* change_column
* rename_column
* remove_column
* add_index
* remove_index
what is the method " Event.create_versioned_table do |t|" do?
How do i proceed, it says i have for pending migrations.</class:0x7f27889766f0>
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?Thanks for the report.
I can't reproduce your error. If I delete my database and run "rake db:migrate", the process completes successfully.
The Event.create_versioned_table, it's not a built-in Rails command -- it's a special command provided by the "acts_as_versioned" plugin and has been correctly activated.
However, that method provides our old record versioning code, which I've obsoleted in a recent commit and replaced with another versioning system. So if none of the below items help, I'll try pointing you at a branch with the obsoleted "acts_as_versioned" stuff completely removed.
Are you sure you're running the current version out of git, if not try that?
Are you using Ruby 1.8.6, 1.8.7 or REE, if not try those?
Can you just delete your "db/development.sqlite3" file and try rerunning "rake db:migrate"?
If you're still having trouble, can you run "rake db:migrate --trace" and post the results? -
Inappropriate?Thanks for your response, i really appreciate.
I am running the recent git.
I am running REE on the Ubuntu and ruby 1.8.6 on the linux x64 hostmonster server.
I tried deleting development.sqlite3 and i got to the same problem
here is the trace result:
fivonez1@510atnight.com [~/etc/rails_apps/calagator]# rake db:migrate --trace
(in /home2/fivonez1/etc/rails_apps/calagator)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
== CreateVersionedEvents: migrating ==========================================
rake aborted!
An error has occurred, this and all later migrations canceled:
undefined method `create_versioned_table' for #<class:0x7fcea4c7cf70>
/home2/fivonez1/ruby/gems/gems/activerecord-2.3.4/lib/active_record/base.rb:1959:in `method_missing_without_paginate'
/home2/fivonez1/ruby/gems/gems/mislav-will_paginate-2.3.11/lib/will_paginate/finder.rb:168:in `method_missing'
./db/migrate//20081011181519_create_versioned_events.rb:3:in `up_without_benchmarks'
/home2/fivonez1/ruby/gems/gems/activerecord-2.3.4/lib/active_record/migration.rb:282:in `send'
/home2/fivonez1/ruby/gems/gems/activerecord-2.3.4/lib/active_record/migration.rb:282:in `migrate'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/home2/fivonez1/ruby/gems/gems/activerecord-2.3.4/lib/active_record/migration.rb:282:in `migrate'
/home2/fivonez1/ruby/gems/gems/activerecord-2.3.4/lib/active_record/migration.rb:365:in `__send__'
/home2/fivonez1/ruby/gems/gems/activerecord-2.3.4/lib/active_record/migration.rb:365:in `migrate'
/home2/fivonez1/ruby/gems/gems/activerecord-2.3.4/lib/active_record/migration.rb:486:in `migrate'
/home2/fivonez1/ruby/gems/gems/activerecord-2.3.4/lib/active_record/migration.rb:560:in `call'
/home2/fivonez1/ruby/gems/gems/activerecord-2.3.4/lib/active_record/migration.rb:560:in `ddl_transaction'
/home2/fivonez1/ruby/gems/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in `transaction'
/home2/fivonez1/ruby/gems/gems/activerecord-2.3.4/lib/active_record/transactions.rb:182:in `transaction'
/home2/fivonez1/ruby/gems/gems/activerecord-2.3.4/lib/active_record/migration.rb:560:in `ddl_transaction'
/home2/fivonez1/ruby/gems/gems/activerecord-2.3.4/lib/active_record/migration.rb:485:in `migrate'
/home2/fivonez1/ruby/gems/gems/activerecord-2.3.4/lib/active_record/migration.rb:472:in `each'
/home2/fivonez1/ruby/gems/gems/activerecord-2.3.4/lib/active_record/migration.rb:472:in `migrate'
/home2/fivonez1/ruby/gems/gems/activerecord-2.3.4/lib/active_record/migration.rb:400:in `up'
/home2/fivonez1/ruby/gems/gems/activerecord-2.3.4/lib/active_record/migration.rb:383:in `migrate'
/home2/fivonez1/ruby/gems/gems/rails-2.3.4/lib/tasks/databases.rake:116
/home2/fivonez1/ruby/gems/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/home2/fivonez1/ruby/gems/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/home2/fivonez1/ruby/gems/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/home2/fivonez1/ruby/gems/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/home2/fivonez1/ruby/gems/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/home2/fivonez1/ruby/gems/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/home2/fivonez1/ruby/gems/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/home2/fivonez1/ruby/gems/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/home2/fivonez1/ruby/gems/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/home2/fivonez1/ruby/gems/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/home2/fivonez1/ruby/gems/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/home2/fivonez1/ruby/gems/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/home2/fivonez1/ruby/gems/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/home2/fivonez1/ruby/gems/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/home2/fivonez1/ruby/gems/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/home2/fivonez1/ruby/gems/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/home2/fivonez1/ruby/gems/gems/rake-0.8.7/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
BTW, i was raised in Portland, and wanted to say this is a great project, its good to see work coming out of Portland.</class:0x7fcea4c7cf70> -
Inappropriate?Good news, I figured out what was going on.
Sorry, it turns that I broke the migrations (only affecting folks setting up a new database) while disabling the "acts_as_versioned" plugin.
Please pull the latest source code from "http://calagator.org/gitbackup/" with my fix. I publishing my change there because the official github.com repository is in the middle of being moved and can't be used. Or, you can wait for github to come back and for me to push the change there, which may take a day or two.
Does this work for you?
PS: Can you join the mailing list (pdx-tech-calendar) and tell us what you're planning to use Calagator for, where, etc? :) -
Inappropriate?The github migration finished sooner than I'd thought. I've pushed my fixes to the official repository on github, please give them a try.
-
This reply was removed on 09/28/09.
see the change log -
Inappropriate?The ubuntu server cannot run rake solr:start it says port 8982 is used:
fuser -v 8982/tcp
USER PID ACCESS COMMAND
8982/tcp: root 11573 F.... java
I hate to bother you, but this program is great and it would be perfect for the site. -
Inappropriate?The error is telling you that you have another process using this port.
When you run "rake solr:start", it starts the Solr process and runs it in the background.
If you started Solr and still have this process running, you don't need to start it again and will get this error if you try.
If you really do have another process running on that port that's not Calagator's Solr, then you should pull my latest changes and configure a custom port to use in "config/solr.yml". -
Inappropriate?Sorry, another issue. I know it isn't typically this hard, but nothing seems to be working for me.
Here is the request I got from Hostmonster, setting it up through them has required different techniques. I used the tutorial on the site they gave me: http://helpdesk.hostmonster.com/index... to get this far.
The website I am building this for is 510atnight.com
[Tue Sep 29 08:44:52 2009] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error. [Tue Sep 29 08:44:52 2009] [error] [client 66.147.243.115] Premature end of script headers: dispatch.fcgi
Running dispatch.fcgi manually, I get:
-bash: ./dispatch.fcgi: /usr/bin/ruby1.8: bad interpreter: No such file or directory
After correcting the #! line to:
#!/ramdisk/bin/ruby
I get different results through the web server and from the command line. From the command line, I get an error about lib/database_yml_reader not being found. From the web server, I see complaints about not being able to find the hpricot gem.
Please verify that your gem path is correct in your config/environment.rb file, and then ensure that the path and/or search path to database_yml_reader is correct.
I have rebuilt it several times, and it is fine when i rebuild and rake solr:start
I cannot find anything that needs to change in the config/environment.rb file and the database_yml_reader does not exist. -
Inappropriate?Any thoughts by anybody on the above issue?
Loading Profile...



EMPLOYEE