Wiki Forum Sign up! Explore Home

Not signed in (Sign In)

LiveSearch

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

Vanilla 1.1.2 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthordanvirion
    • CommentTimeJun 27th 2008
     permalink
    Hi

    I ran a local installation with cit-0.99.2, which worked fine.

    However, when I try running cit-0.99.3, get the following error when trying to access the company domain:
    -----------------------------------------------------------------------------------------------------------------------------
    SQL (0.003478) COMMIT
    SQL (0.001805) SHOW TABLES
    Sheet Columns (0.002017) SHOW FIELDS FROM `sheets`


    LoadError (Expected /tmp/cit-0.99.3/app/models/task.rb to define Task):
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:249:in `load_missing_constant'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:453:in `const_missing'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:465:in `const_missing'
    .
    .
    .

    Rendering /tmp/cit-0.99.3/vendor/rails/actionpack/lib/action_controller/templates/rescues/layout.erb (internal_server_error)
    -----------------------------------------------------------------------------------------------------------------------------

    Any tips on what might be wrong?

    Thanks
    • CommentAuthoradmin
    • CommentTimeJun 27th 2008
     permalink
    Rails is unable to load the Task model, due to a dependency not being met.

    Have you run rake db:migrate

    Restarted ferret_server./script/ferret_server -e production stop; ./script/ferret_server -e production start

    Could you send me the first error that's logged after restarting your webserver of choice?

    -- Erlend
    • CommentAuthordanvirion
    • CommentTimeJun 27th 2008
     permalink
    Hi Erlend

    First, thank you for your time.

    I'm running with development environment. There dont seem to be errors prior to that one, at least not any I could decipher.

    I've included more traces here, including the one from db:migrate.

    -------------------------------
    rake db:migrate --trace
    (in /tmp/cit-0.99.3)
    ** Invoke db:migrate (first_time)
    ** Invoke environment (first_time)
    ** Execute environment
    ** Execute db:migrate
    ** Invoke db:schema:dump (first_time)
    ** Invoke environment
    ** Execute db:schema:dump
    -------------------------------

    (Note: I've snipped some of the sql traces, and the redundant rails traces since they were too big)
    -------------------------------
    ./script/server
    => Booting Mongrel (use 'script/server webrick' to force WEBrick)
    => Rails application starting on http://0.0.0.0:3000
    => Call with -d to detach
    => Ctrl-C to shutdown server
    ** Starting Mongrel listening at 0.0.0.0:3000
    ** Starting Rails with development environment...
    ** Rails loaded.
    ** Loading any Rails specific GemPlugins
    ** Signals ready. TERM => stop. USR2 => restart. INT => stop (no restart).
    ** Rails signals registered. HUP => reload (without restart). It might not work well.
    ** Mongrel 1.1.5 available at 0.0.0.0:3000
    ** Use CTRL-C to stop.


    Processing LoginController#login (for 10.150.10.194 at 2008-06-27 14:12:04) [GET]
    Session ID: 641415ce0f0d9fc9a0c8052612149330
    Parameters: {"action"=>"login", "controller"=>"login"}
    Redirected to http://frs.rigved.com:3000/activities/list
    Response body was encoded with gzip
    Completed in 0.00755 (132 reqs/sec) | DB: 0.00300 (39%) | 302 Found [http://frs.rigved.com/]


    Processing ActivitiesController#list (for 10.150.10.194 at 2008-06-27 14:12:04) [GET]
    Session ID: 641415ce0f0d9fc9a0c8052612149330
    Parameters: {"action"=>"list", "controller"=>"activities"}
    User Columns (0.004608) SHOW FIELDS FROM `users`
    Company Columns (0.002384) SHOW FIELDS FROM `companies`
    Project Columns (0.002486) SHOW FIELDS FROM `projects`
    User Load Including Associations (0.004964)
    ShoutChannel Load (0.000947)
    SQL (0.000245) BEGIN
    User Load (0.002808)
    User Update (0.000700) SQL (0.000584) COMMIT
    SQL (0.001792) SHOW TABLES
    Sheet Columns (0.002024) SHOW FIELDS FROM `sheets`


    LoadError (Expected /tmp/cit-0.99.3/app/models/task.rb to define Task):
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:249:in `load_missing_constant'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:453:in `const_missing'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:465:in `const_missing'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:260:in `load_missing_constant'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:469:in `const_missing'
    .
    .
    .
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:496:in `require'
    /vendor/rails/railties/lib/commands/server.rb:39
    ./script/server:3:in `require'
    ./script/server:3

    Rendering /tmp/cit-0.99.3/vendor/rails/actionpack/lib/action_controller/templates/rescues/layout.erb (internal_server_error)
    -------------------------------
    • CommentAuthoradmin
    • CommentTimeJun 27th 2008
     permalink
    Humm... For some reason it won't load app/models/task.rb, and the only reason I can think of for that not to work is if there's a typo in there (or lib/misc.rb) and ferret is unable to start up.

    Dees log/ferret* show any stack-traces?

    -- Erlend
    • CommentAuthordanvirion
    • CommentTimeJun 27th 2008
     permalink
    Hi Erlend

    No traces in ferret* except the starts/exits.
    btw, I just tried the 6/27 snapshot, and that seems to work fine. :-)

    So i won't bother you anymore on this one.

    Thanks again, and sorry about the wild goose chase.

    Dan
    • CommentAuthoradmin
    • CommentTimeJun 27th 2008
     permalink
    Ah goodie. I'll remove the 0.99.3 tarball, as it's not properly released yet. ;-)

    -- Erlend
    • CommentAuthorpkoops
    • CommentTimeAug 14th 2008 edited
     permalink
    I'm not quite sure if this problem is really solved :(

    I was just trying to install cit-0.99.3, current snapshot and the one mentioned here on my own machine.
    The installation went fine, and I was able to enter my credentials.
    But after that, I got the same error as here described, except I have a trace :-)

    Hopefully you can find the error and fix it.

    Best regards,
    Phillipp

    Trace:
    Avaliable for 24 hours on http://rafb.net/p/L1AmCG48.html as the complete trace is to long to post here...
    • CommentAuthoradmin
    • CommentTimeAug 14th 2008
     permalink
    I have a hunch you've tried booting up without running the ferret_server, started it, and not restarted the webserver again afterwards.

    -- Erlend
    • CommentAuthorpkoops
    • CommentTimeAug 14th 2008
     permalink
    I just used the three commands at the end of your setup.rb ;)

    <code>
    All done!
    ---------

    Please start the required services by entering the following in a console:
    ./script/ferret_server -e production start
    nohup ./script/push_server &
    ./script/server production
    </code>

    All processes are running, as the ps -ef shows:
    <code>
    root 7810 1 0 15:10 ? 00:00:00 ruby ./script/ferret_server -e production start
    root 7811 4701 0 15:10 pts/1 00:00:00 ruby ./script/push_server
    root 7812 4701 4 15:10 pts/1 00:00:03 ruby ./script/server production
    </code>

    Am I missing something?
    • CommentAuthoradmin
    • CommentTimeAug 14th 2008
     permalink
    Try restarting script/server.

    -- Erlend
    • CommentAuthorpkoops
    • CommentTimeAug 15th 2008
     permalink
    Hmmm...this is a bit weird.

    After restarting /script/server, it seems to work.
    I additionally set FERRET_USE_LOCAL_INDEX=1 in the environment.

    I can browse nearly everything, but I can not create a task.
    Here we get the error : "NameError (uninitialized constant Ferret::Index::FieldInfos)".
    Restarting services/ferret doesn't work.

    Trace: http://rafb.net/p/lo4g3895.html

    Thanks for your help Erlend.
    • CommentAuthoradmin
    • CommentTimeAug 15th 2008
     permalink
    I think I'd remove the FERRET_USE_LOCAL_INDEX=1, thingie, and just run with a development environment instead as that would have the same effect. What's reported in logs/ferret*.log after a
    ./script/ferret_server -e production stop
    ./script/ferret_server -e production start

    and restarting the mongrel/thin/whatever webserver?

    -- Erlend
    • CommentAuthorpkoops
    • CommentTimeAug 15th 2008
     permalink
    Okay, I removed the environment variable.

    Then I restarted the ferret server, and got the following:
    ferret_server.log:

    # Logfile created on Fri Aug 15 10:24:27 +0200 2008 by /

    ferret_index.log:

    # Logfile created on Fri Aug 15 10:24:27 +0200 2008 by /
    LocalIndex: ensure_index_exists at /usr/local/src/cit-0.99.3/index/development/task
    rebuild index: [Task(id: integer, name: string, project_id: integer, position: integer, created_at:
    datetime, due_at: datetime, updated_at: datetime, completed_at: datetime, duration: integer, hidden:
    integer, milestone_id: integer, description: text, company_id: integer, priority: integer, updated_
    by_id: integer, severity_id: integer, type_id: integer, task_num: integer, status: integer, requeste
    d_by: string, creator_id: integer, notify_emails: string, repeat: string, hide_until: datetime, sche
    duled_at: datetime, scheduled_duration: integer, scheduled: boolean)]
    LocalIndex: ensure_index_exists at /usr/local/src/cit-0.99.3/index/development/task
    rebuild index: [Task(id: integer, name: string, project_id: integer, position: integer, created_at:
    datetime, due_at: datetime, updated_at: datetime, completed_at: datetime, duration: integer, hidden:
    integer, milestone_id: integer, description: text, company_id: integer, priority: integer, updated_
    by_id: integer, severity_id: integer, type_id: integer, task_num: integer, status: integer, requeste
    d_by: string, creator_id: integer, notify_emails: string, repeat: string, hide_until: datetime, sche
    duled_at: datetime, scheduled_duration: integer, scheduled: boolean)]
    LocalIndex: ensure_index_exists at /usr/local/src/cit-0.99.3/index/development/task
    rebuild index: [Task(id: integer, name: string, project_id: integer, position: integer, created_at:
    datetime, due_at: datetime, updated_at: datetime, completed_at: datetime, duration: integer, hidden:
    integer, milestone_id: integer, description: text, company_id: integer, priority: integer, updated_
    by_id: integer, severity_id: integer, type_id: integer, task_num: integer, status: integer, requeste
    d_by: string, creator_id: integer, notify_emails: string, repeat: string, hide_until: datetime, sche
    duled_at: datetime, scheduled_duration: integer, scheduled: boolean)]

    Error is still the same :(
    • CommentAuthoradmin
    • CommentTimeAug 15th 2008
     permalink
    Righto... Then I need to see the first error from your log/[development|production].log after a server restart. Ie. the one before Expected task.rb to define Task..

    -- Erlend
    • CommentAuthorpkoops
    • CommentTimeAug 15th 2008
     permalink
    Hello Erlend,

    the task.rb seems to be defined now, as I am able to see the front end at "create new task" and other sites too.

    But as I want to add the task, I get the error with the ferret-Server constant.

    Please take a look at http://rafb.net/p/X5SIbG91.html
    There are the entrys from development.log, just as I want to add a task.

    Regards,
    Phillipp
    • CommentAuthoradmin
    • CommentTimeAug 15th 2008
     permalink
    Smells like something is up with ferret. What does

    rake ferret:rebuild_all_indexes RAILS_ENV=development
    rake ferret:rebuild_all_indexes RAILS_ENV=production

    give you?

    Version of ferret?
    gem list ferret

    -- Erlend
    • CommentAuthorpkoops
    • CommentTimeAug 15th 2008
     permalink
    # rake ferret:rebuild_all_indexes RAILES_ENV=production
    (in /usr/local/src/cit-0.99.3)
    rake aborted!
    uninitialized constant Ferret::Index::FieldInfos

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

    # gem list ferret

    *** LOCAL GEMS ***

    ferret (0.11.6, 0.9.6)
    • CommentAuthoradmin
    • CommentTimeAug 15th 2008
     permalink
    Seems your ferret install is only partially done:

    http://blog.zmok.net/articles/2007/09/06/acts_as_ferret-tip-uninitialized-constant-ferret-index-fieldinfos

    -- Erlend
    • CommentAuthorpkoops
    • CommentTimeAug 15th 2008
     permalink
    I also found that link and tried it.

    But that solution doesn't work for me :(

    Is there another way of installing ferret on a server without a connection to the internet?
    • CommentAuthoradmin
    • CommentTimeAug 15th 2008
     permalink
    As I don't know how you installed it, I wouldn't know. :-)

    No idea what Ferret would need an internet connection for during the gem install part, but I guess it should be possible to build / install it on a similar machine with internet access and then sync the files over afterwards.

    -- Erlend
    • CommentAuthorpkoops
    • CommentTimeAug 15th 2008
     permalink
    Okay.

    I will try it.

    Thanks for your help, and I hope that I will get it to work, as your software is really great.

    Regards,
    Phillipp