Can't start server. Get a 'LoadError' after start.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Can't start server. Get a 'LoadError' after start.

Саша и Марина Самохины
Hello!

I'm using the latest trunk of inquisitor svn.
Sucessfully compiled enterprise version on Ubuntu 12.10. Now I'm trying to start a server by executing
./server, but I receive the following error:
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead.
=> Booting WEBrick
=> Rails 2.3.2 application starting on http://0.0.0.0:3000
/var/lib/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:145:in `load': cannot load such file -- lib/mykit/dummy_keywords.rb (LoadError)
    from /var/lib/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:145:in `block in load_with_new_constant_marking'
    from /var/lib/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
    from /var/lib/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:145:in `load_with_new_constant_marking'
    from /home/lambda/inq/server/web/config/mykit-config.rb:2:in `<top (required)>'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /var/lib/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `block in require'
    from /var/lib/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
    from /var/lib/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
    from /home/lambda/inq/server/web/config/environment.rb:13:in `<top (required)>'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /var/lib/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `block in require'
    from /var/lib/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
    from /var/lib/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
    from /var/lib/gems/1.9.1/gems/rails-2.3.2/lib/commands/server.rb:84:in `<top (required)>'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from ./server:3:in `<main>'

How could I avoid this error:
/var/lib/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:145:in `load': cannot load such file -- lib/mykit/dummy_keywords.rb (LoadError) ???

File dummy_keyword.rb exists in directory
inq/server/web/lib/mykit
I'm starting server script from inq/server/web/script.

Also, I've tried running this script from upper directory (inq/server/web), but I got:
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- script/../config/boot (LoadError)
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from script/server:2:in `<main>'

Which directory should I run server, "script" or parent? 
I'm using ruby version 1.9.3.

Best regards, Alexander S.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
inq-discuss-en mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/inq-discuss-en
Reply | Threaded
Open this post in threaded view
|

Re: Can't start server. Get a 'LoadError' after start.

Mikhail Yakshin
Administrator
Hi,

> I'm using the latest trunk of inquisitor svn.
> Sucessfully compiled enterprise version on Ubuntu 12.10. Now I'm trying to
> start a server by executing
> ./server, but I receive the following error:

[...]

> How could I avoid this error:
>>
>> /var/lib/gems/1.9.1/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:145:in
>> `load': cannot load such file -- lib/mykit/dummy_keywords.rb (LoadError) ???
>
> File dummy_keyword.rb exists in directory
>>
>> inq/server/web/lib/mykit
>
> I'm starting server script from inq/server/web/script.
>
> Also, I've tried running this script from upper directory (inq/server/web),
> but I got:
>>
>> /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot
>> load such file -- script/../config/boot (LoadError)
>>     from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
>>     from script/server:2:in `<main>'
>
> Which directory should I run server, "script" or parent?
> I'm using ruby version 1.9.3.

Technically, the "correct" way to run a webrick-based web server for
Rails application is running "script/server" in base app directory
(that's inq/server/web in Inquisitor's case).

However, chances are that here we're dealing with incompatiblity of
Rails used in Inquisitor trunk with Ruby 1.9. If at all possible -
could you try the same with ruby 1.8? I'm not sure, but probably
Ubuntu 12.10 still has "ruby1.8" package? I'll try to address
compatiblity issues shortly, but I can't promise hard deadlines here -
things might be a little more complicated that I think.

--
WBR, Mikhail Yakshin

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
inq-discuss-en mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/inq-discuss-en