Giter Club home page Giter Club logo

Comments (6)

fusion94 avatar fusion94 commented on July 18, 2024

Please run this command again. I've been trying to track the error down but a second run generally also works.

bundle exec rake kandan:bootstrap

from kandan.

kirantpatil avatar kirantpatil commented on July 18, 2024

Fedora 18 ruby version: ruby 1.9.3p362 (2012-12-25 revision 38607) [x86_64-linux] used crash the kandan app. Earlier when I tried to delete channel, it used to crash the app.

Now installed RVM and ruby 1.9.3p374 (2013-01-15 revision 38858) and app works perfectly on my machine.

from kandan.

shadowmint avatar shadowmint commented on July 18, 2024

Just an FYI, this continues to be an issue on "ruby-1.9.3-p374 [ x86_64 ]" on OSX. As mentioned, running kandan:bootstrap works if you run it a second time. Weird...

from kandan.

fusion94 avatar fusion94 commented on July 18, 2024

@shadowmint exactly...

from kandan.

jrgifford avatar jrgifford commented on July 18, 2024

Weird thou. Wonder if its an upstream or us problem. I'll make a note.

from kandan.

csloz avatar csloz commented on July 18, 2024

From experiencing this myself,its still broken.

bundle exec rake db:create db:migrate kandan:bootstrap

Creating default user...
Creating default channel...
rake aborted!
undefined method to_i' for #<Channel:0x000000057687e8> /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activemodel-3.2.11/lib/active_model/attribute_methods.rb:407:inmethod_missing'
/usr/local/rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.11/lib/active_record/attribute_methods.rb:149:in method_missing' /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.11/lib/active_record/connection_adapters/column.rb:178:invalue_to_integer'
/usr/local/rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.11/lib/active_record/connection_adapters/column.rb:78:in type_cast' /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.11/lib/active_record/attribute_methods/dirty.rb:86:in_field_changed?'
/usr/local/rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.11/lib/active_record/attribute_methods/dirty.rb:63:in write_attribute' /usr/local/rvm/gems/ruby-1.9.3-p374/gems/activerecord-3.2.11/lib/active_record/attribute_methods/write.rb:14:inchannel_id='
/home/cubieboard/chat/lib/tasks/kandan.rake:35:in block (3 levels) in <top (required)>' /home/cubieboard/chat/lib/tasks/kandan.rake:23:ineach'
/home/cubieboard/chat/lib/tasks/kandan.rake:23:in block (2 levels) in <top (required)>' /usr/local/rvm/gems/ruby-1.9.3-p374/bin/ruby_noexec_wrapper:14:ineval'
/usr/local/rvm/gems/ruby-1.9.3-p374/bin/ruby_noexec_wrapper:14:in `

'
Tasks: TOP => kandan:bootstrap
(See full trace by running task with --trace)

It only works 2nd run around, as it assumes that the 0 byte file is fine:

-rw-r--r-- 1 root www-data 17408 Feb 3 09:20 development.sqlite3
drwxr-sr-x 2 cubieboard www-data 4096 Feb 3 07:14 migrate
-rw-r--r-- 1 cubieboard www-data 3237 Feb 3 09:20 schema.rb
-rw-r--r-- 1 cubieboard www-data 343 Feb 3 07:14 seeds.rb
-rw-r--r-- 1 root www-data 0 Feb 3 09:20 test.sqlite3

bundle exec rake db:create db:migrate kandan:bootstrap
db/development.sqlite3 already exists
db/test.sqlite3 already exists

Although it obviously is not.

According to google, its due to ActiveRecord 3.2 changing functionality?
http://stackoverflow.com/questions/13348980/activerecord-to-i-method-removed-in-rails-3-2-9

For the moment, I've deployed with passenger, and rvm development.

I think you need to add a channel id to the db deployment - I fiddled, but didn't get anywhere, so i'll leave this with you..

from kandan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.