Unable to create new ruby on rails apps

Repository of web frameworks and applications for Microsoft IIS.
User avatar
Posts: 4
Joined: 26 Feb 2013, 13:05

Unable to create new ruby on rails apps

20 Mar 2014, 03:42

Hello. I've been using Helicon Zoo with IIS7 for some time, and I've always been able to create ruby on rails apps, but for some reason I am not able to anymore. The only site I had that was running on ruby on rails stopped working as well.

I've been following a process pretty akin to this: http://www.helicontech.com/articles/rub ... roduction/

I cannot make it very far at all, however. I get to the screen that says "Welcome to universal Ruby template powered by Helicon Zoo" at the top, but when I click the link to open the web console, I get the following error:

Helicon Zoo module has caught up an error. Please see the details below.
Worker Status
The process was created
Windows error
The pipe has been ended. (ERROR CODE: 109)
Internal module error
message: Application backend read Error. type: ZooException file: App\Jobs\JobBase.cpp line: 531 version: 3.1.98.522
STDERR
[tid-4444392] cannot load such file -- C:\inetpub\TestingApp/config/boot.rb (LoadError) C:/Ruby19/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' C:/Ruby19/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' C:/Zoo/Workers/ruby/lib/app.rb:27:in `build_app' C:/Zoo/Workers/ruby/lib/app.rb:16:in `initialize' C:/Zoo/Workers/ruby/lib/worker.rb:4:in `new' C:/Zoo/Workers/ruby/lib/worker.rb:4:in `initialize' C:/Zoo/Workers/ruby/zoorack.rb:30:in `new' C:/Zoo/Workers/ruby/zoorack.rb:30:in `<module:Zack>' C:/Zoo/Workers/ruby/zoorack.rb:12:in `<main>'


Anyone have any idea what's going on? If I just use a command prompt and go run 'rails new .' myself in the folder, then when I hit the site I see the Ruby on Rails welcome page that comes with a new app, but if I create a route and a controller and try to access the index method I see the following error:

Helicon Zoo module has caught up an error. Please see the details below.
Worker Status
The process was created
Windows error
The pipe has been ended. (ERROR CODE: 109)
Internal module error
message: Application backend read Error. type: ZooException file: App\Jobs\JobBase.cpp line: 531 version: 3.1.98.522
STDERR
[tid-4149480] Couldn't run bundler/setup: cannot load such file -- bundler/setup (String) [tid-4149480] cannot load such file -- rack (LoadError) C:/Zoo/Workers/ruby/lib/app.rb:84:in `eval' C:/Ruby19/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' (eval):1:in `assure_rack' C:/Zoo/Workers/ruby/lib/app.rb:84:in `eval' C:/Zoo/Workers/ruby/lib/app.rb:84:in `assure_rack' C:/Zoo/Workers/ruby/lib/app.rb:23:in `build_app' C:/Zoo/Workers/ruby/lib/app.rb:16:in `initialize' C:/Zoo/Workers/ruby/lib/worker.rb:4:in `new' C:/Zoo/Workers/ruby/lib/worker.rb:4:in `initialize' C:/Zoo/Workers/ruby/zoorack.rb:30:in `new' C:/Zoo/Workers/ruby/zoorack.rb:30:in `<module:Zack>' C:/Zoo/Workers/ruby/zoorack.rb:12:in `<main>'


I have tried various version of ruby, rails, and have tried using the http://www.helicontech.com/zoo/feed-beta.xml feed as well but no luck. Please help!

User avatar
Posts: 4
Joined: 26 Feb 2013, 13:05

Re: Unable to create new ruby on rails apps

20 Mar 2014, 03:44

Oh, and I should mention that the helicon zoo process works fine if I use it for IIS Express 8.0, but I would much rather continue using IIS7.

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Unable to create new ruby on rails apps

20 Mar 2014, 06:44

Hello,

Please check if your app works fine without Zoo.
To do that, please run Zoo manager
Find your application, run default IDE which is CMD.exe
In cmd, execute

rails server

If it doesn't run or gives out errors, please fix these errors first.
Quite often everything gets fixed after

> bundle install

If it does work from console but doesn't work from Zoo, then report and e'l investigate further.

User avatar
Posts: 4
Joined: 26 Feb 2013, 13:05

Re: Unable to create new ruby on rails apps

20 Mar 2014, 10:53

Hi Anton! Thanks so much for replying so quick.

Yes the server runs just fine outside of zoo. When I run 'rails server' I am able to see the welcome page on http://localhost:3000, then if I create a controller with an index method and then I visit the created route I see the default view. Everything seems to work fine outside of zoo.

Another interesting fact I just noticed, the welcome page appears perfectly when I run the site outside of zoo, but when I visit the welcome page running within zoo none of the image assets seem to be loading, as the Rails logo is not visible. Not sure if that helps at all.

I want to point out as well that the problem occurs before I even create the rails app with 'rails new .'. Just when trying to use the web console that zoo creates by default, before any rails commands have been run, I see the first error from my original message.

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Unable to create new ruby on rails apps

21 Mar 2014, 06:32

Hello,

Such a mess with gems often happens when there are version conflicts between globally installed gems and per-site gems.

1. if possible, please re-install everything from scratch: uninstall Ruby and install Ruby hosting package from feed.
2. If you can't do that or it didn't help, please send us your web.config, applicationHost.config and the result of the following command

> gem list

excuted for site and globally to [email protected]
3. or you can give us remote access to your server for us to see everything live and check the settings.

Return to Helicon Zoo

Who is online

Users browsing this forum: No registered users and 13 guests