ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Problems running Webrick

Added by Konstantin Krupp at 2011-10-04 10:56 am

In order to test chiliproject a little bit on our server, i tried to install and test it just with webrick.
But after Hours of installing im not able to run it.
When i run the command to start the webrickserver:

C:\chiliproject>bundle exec script/server -e production

I just get this error:

C:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.20/lib/bundler/cli.rb:344:in `exec
': Exec format error - script/server (Errno::ENOEXEC)
        from C:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.20/lib/bundler/cli.rb
:344:in `exec'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.20/lib/bundler/vendor
/thor/task.rb:22:in `send'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.20/lib/bundler/vendor
/thor/task.rb:22:in `run'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.20/lib/bundler/vendor
/thor/invocation.rb:118:in `invoke_task'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.20/lib/bundler/vendor
/thor.rb:263:in `dispatch'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.20/lib/bundler/vendor
/thor/base.rb:386:in `start'
        from C:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.20/bin/bundle:13
        from C:/Ruby187/bin/bundle:19:in `load'
        from C:/Ruby187/bin/bundle:19

I dont know whats wrong, would be glad if someone could give me a hint...
System is:

Win XP Pro SP3
Ruby 1.87 + DevKit
Chili v.2.2.0
DB: mySQL (5.0.7)
All Gems (except rmagick) autoinstalled by bundler (v1.0.20)


Replies (3)

RE: Problems running Webrick - Added by Felix Schäfer at 2011-10-04 12:50 pm

I'm not familiar with windows, but it seems bundle exec can't find the script/server script. Could you try either going with windows notation for the directory separator, i.e. bundle exec script\server, or put the whole path bundle exec C:\path\to\chiliproject\script\server, the same as before but with / instead of \, and lastly any combination with bundle exec ruby script/server (and with \ and with the whole path or not).

At least that's alternatives that could work _"

RE: Problems running Webrick - Added by Konstantin Krupp at 2011-10-04 01:10 pm

THX!
Thx for the very quick help, i already tried the different path notations and full path, the final hint was the ruby that hast to be included behind the exec!
After one day of setting all components up finally the testing can begin^^

Maybe the ruby hint could be integrated in the Installation-Wiki-Page for other windows users that arent familiar with using ruby...

RE: Problems running Webrick - Added by Felix Schäfer at 2011-10-04 01:21 pm

Konstantin Krupp wrote:

Maybe the ruby hint could be integrated in the Installation-Wiki-Page for other windows users that arent familiar with using ruby...

It's a wiki page, feel free to add it :-)

(1-3/3)