Zoo error: Rails - cannot load such file -- rack

Repository of web frameworks and applications for Microsoft IIS.
User avatar
Posts: 4
Joined: 03 Jun 2015, 14:46

Zoo error: Rails - cannot load such file -- rack

19 Jun 2015, 11:46

I am currently porting a Heroku site over to IIS using HeliconZoo and it is a chore to say the least :). However, the product is quite impressive and I get the default installs to work no problem. It is when I move in the /app from the Heroku site the problems start. I updated all the gems as outlined in the gemfile, etc. and the last error I am working on now is:

DL is deprecated, please use Fiddle [tid-2772520] cannot load such file -- rack (LoadError) C:/Zoo/Workers/ruby/lib/app.rb:84:in `eval' (eval):1:in `assure_rack'
message: Application backend read Error. type: ZooException file: App\Jobs\JobBase.cpp line: 531 version: 3.1.98.

DL is deprecated, please use Fiddle
[tid-2543140] cannot load such file -- rack (LoadError)
C:/Zoo/Workers/ruby/lib/app.rb:84:in `eval'
(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>'

[19.06.2015 07:39:19.302467] [v 3.1.98.538] [tid 0x00046ed0] [sev 2] # 43888504 Application has been started
[19.06.2015 07:39:19.309303] [v 3.1.98.538] [tid 0x00046ed0] [sev 3] # 43888504 Application need to perform deploy script
[19.06.2015 07:39:20.502757] [v 3.1.98.538] [tid 0x00046abc] [sev 3] # 43888504 Application deploy done. Going to work
[19.06.2015 07:39:21.502847] [v 3.1.98.538] [tid 0x00046abc] [sev 3] # 43888504 Application has been deployed
[19.06.2015 07:39:22.643574] [v 3.1.98.538] [tid 0x00047e2c] [sev 2] WorkersManager - OnProcessExit()
[19.06.2015 07:39:22.643574] [v 3.1.98.538] [tid 0x00047e2c] [sev 2] WorkersManager - Worker shutdown. #1 - [pid:295188] "C:\Ruby200-x64\bin\ruby.exe" C:\Zoo\Workers\ruby\zoorack.rb
[19.06.2015 07:39:51.505535] [v 3.1.98.538] [tid 0x00047e2c] [sev 2] WorkersManager - Worker closed. #1
[19.06.2015 07:39:52.583756] [v 3.1.98.538] [tid 0x00047e2c] [sev 2] WorkersManager - OnProcessExit()
[19.06.2015 07:39:52.583756] [v 3.1.98.538] [tid 0x00047e2c] [sev 2] WorkersManager - Worker shutdown. #2 - [pid:297508] "C:\Ruby200-x64\bin\ruby.exe" C:\Zoo\Workers\ruby\zoorack.rb
[19.06.2015 07:40:21.523849] [v 3.1.98.538] [tid 0x00047e2c] [sev 2] WorkersManager - Worker closed. #2
[19.06.2015 07:40:22.664576] [v 3.1.98.538] [tid 0x00047e2c] [sev 2] WorkersManager - OnProcessExit()
[19.06.2015 07:40:22.664576] [v 3.1.98.538] [tid 0x00047e2c] [sev 2] WorkersManager - Worker shutdown. #3 - [pid:30168] "C:\Ruby200-x64\bin\ruby.exe" C:\Zoo\Workers\ruby\zoorack.rb
[19.06.2015 07:40:51.620296] [v 3.1.98.538] [tid 0x00047e2c] [sev 2] WorkersManager - Worker closed. #3
[19.06.2015 07:40:52.526627] [v 3.1.98.538] [tid 0x00047e2c] [sev 2] WorkersManager - OnProcessExit()
[19.06.2015 07:40:52.526627] [v 3.1.98.538] [tid 0x00047e2c] [sev 2] WorkersManager - Worker shutdown. #4 - [pid:299044] "C:\Ruby200-x64\bin\ruby.exe" C:\Zoo\Workers\ruby\zoorack.rb
[19.06.2015 07:41:21.622984] [v 3.1.98.538] [tid 0x00047e2c] [sev 2] WorkersManager - Worker closed. #4
[19.06.2015 07:41:22.732458] [v 3.1.98.538] [tid 0x00047e2c] [sev 2] WorkersManager - OnProcessExit()
[19.06.2015 07:41:22.732458] [v 3.1.98.538] [tid 0x00047e2c] [sev 2] WorkersManager - Worker shutdown. #5 - [pid:292624] "C:\Ruby200-x64\bin\ruby.exe" C:\Zoo\Workers\ruby\zoorack.rb
[19.06.2015 07:41:51.641272] [v 3.1.98.538] [tid 0x00047e2c] [sev 2] WorkersManager - Worker closed. #5
[19.06.2015 07:41:52.797618] [v 3.1.98.538] [tid 0x00047e2c] [sev 2] WorkersManager - OnProcessExit()
[19.06.2015 07:41:52.797618] [v 3.1.98.538] [tid 0x00047e2c] [sev 2] WorkersManager - Worker shutdown. #6 - [pid:298236] "C:\Ruby200-x64\bin\ruby.exe" C:\Zoo\Workers\ruby\zoorack.rb
[19.06.2015 07:42:22.331325] [v 3.1.98.538] [tid 0x00047e2c] [sev 2] WorkersManager - Worker closed. #6
[19.06.2015 07:42:28.159935] [v 3.1.98.538] [tid 0x00047e2c] [sev 2] WorkersManager - OnProcessExit()
[19.06.2015 07:42:28.159935] [v 3.1.98.538] [tid 0x00047e2c] [sev 2] WorkersManager - Worker shutdown. #7 - [pid:299408] "C:\Ruby200-x64\bin\ruby.exe" C:\Zoo\Workers\ruby\zoorack.rb
[19.06.2015 07:42:52.740105] [v 3.1.98.538] [tid 0x00047e2c] [sev 2] WorkersManager - Worker closed. #7
[19.06.2015 07:42:54.115220] [v 3.1.98.538] [tid 0x00047e2c] [sev 2] WorkersManager - OnProcessExit()
[19.06.2015 07:42:54.115220] [v 3.1.98.538] [tid 0x00047e2c] [sev 2] WorkersManager - Worker shutdown. #8 - [pid:300772] "C:\Ruby200-x64\bin\ruby.exe" C:\Zoo\Workers\ruby\zoorack.rb
[19.06.2015 07:43:22.742601] [v 3.1.98.538] [tid 0x00047e2c] [sev 2] WorkersManager - Worker closed. #8
[19.06.2015 07:43:23.961453] [v 3.1.98.538] [tid 0x00047e2c] [sev 2] WorkersManager - OnProcessExit()
[19.06.2015 07:43:23.961453] [v 3.1.98.538] [tid 0x00047e2c] [sev 2] WorkersManager - Worker shutdown. #9 - [pid:302440] "C:\Ruby200-x64\bin\ruby.exe" C:\Zoo\Workers\ruby\zoorack.rb
[19.06.2015 07:43:52.932539] [v 3.1.98.538] [tid 0x00047e2c] [sev 2] WorkersManager - Worker closed. #9
[19.06.2015 07:43:56.651360] [v 3.1.98.538] [tid 0x00047e2c] [sev 2] WorkersManager - OnProcessExit()
[19.06.2015 07:43:56.651360] [v 3.1.98.538] [tid 0x00047e2c] [sev 2] WorkersManager - Worker shutdown. #10 - [pid:296780] "C:\Ruby200-x64\bin\ruby.exe" C:\Zoo\Workers\ruby\zoorack.rb

User avatar
Posts: 402
Joined: 06 Mar 2012, 11:59

Re: Zoo error: Rails - cannot load such file -- rack

22 Jun 2015, 06:57

I'm not Ruby developer, but the error is in the "require 'rack'" command. Maybe rack has not been installed in your Ruby installation somehow. Please try to install it.
Also, moving other Ruby application means install "Ruby template" first, let it run and configure it as needed and then move application over it by copying files on top of template. There may be some essential files absent in your application so use template.

User avatar
Posts: 4
Joined: 03 Jun 2015, 14:46

Re: Zoo error: Rails - cannot load such file -- rack

22 Jun 2015, 14:11

this is what's installed:

Successfully installed rack-1.6.4
Parsing documentation for rack-1.6.4
Done installing documentation for rack after 4 seconds
1 gem installed
gem list
actionmailer (4.2.2, 4.0.0.beta1)
actionpack (4.2.2, 4.0.0.beta1)
actionview (4.2.2)
activejob (4.2.2)
activemodel (4.2.2, 4.0.0.beta1)
activerecord (4.2.2, 4.0.0.beta1)
activerecord-deprecated_finders (0.0.3)
activesupport (4.2.2, 4.0.0.beta1)
addressable (2.3.8)
arel (6.0.0, 4.0.0.beta2)
better_errors (2.1.1)
bigdecimal (1.2.0)
binding_of_caller (0.7.2)
builder (3.2.2, 3.1.4)
bundler (1.10.4, 1.10.3)
coderay (1.1.0, 1.0.9)
coffee-rails (4.1.0, 4.0.1)
coffee-script (2.4.1)
coffee-script-source (1.9.1.1)
columnize (0.9.0)
daemons (1.2.2)
debug_inspector (0.0.2)
debugger (1.6.8)
debugger-linecache (1.2.0)
debugger-ruby_core_source (1.3.8)
domain_name (0.5.24)
erubis (2.7.0)
eventmachine (1.0.7)
excon (0.45.3)
execjs (2.5.2)
ffi (1.9.8 x86-mingw32)
globalid (0.3.5)
heroku (3.38.1)
heroku-api (0.3.23)
hike (2.1.3, 1.2.3)
http-cookie (1.0.2)
httparty (0.11.0)
i18n (0.7.0, 0.6.11)
io-console (0.4.2)
jbuilder (2.3.0, 1.5.3)
jquery-rails (4.0.4)
json (1.8.3, 1.7.7)
launchy (2.4.3)
loofah (2.0.2)
mail (2.6.3, 2.5.4)
method_source (0.8.2, 0.7.1)
mime-types (2.6.1, 1.25.1)
mini_portile (0.6.2)
minitest (5.7.0, 4.7.5, 4.3.2)
multi_json (1.11.1)
multi_xml (0.5.5)
netrc (0.10.3)
nokogiri (1.6.6.2 x86-mingw32, 1.5.9 x86-mingw32)
pg (0.18.2 x86-mingw32)
polyglot (0.3.5)
pry (0.10.1 i386-mingw32, 0.9.8.4 i386-mingw32)
pry-rails (0.3.4, 0.1.6)
psych (2.0.0)
quiet_assets (1.1.0)
rack (1.6.4, 1.6.3, 1.6.2, 1.5.4)
rack-test (0.6.3)
rails (4.2.2, 4.0.0.beta1)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.6)
rails-html-sanitizer (1.0.2)
rails_12factor (0.0.3)
rails_serve_static_assets (0.0.4)
rails_stdout_logging (0.0.3)
railties (4.2.2, 4.0.0.beta1)
rake (10.4.2, 10.3.1, 0.9.6)
rdoc (4.2.0, 4.0.0, 3.12.2)
rest-client (1.8.0 x86-mingw32)
rubyzip (1.1.7)
sass (3.4.14, 3.2.19)
sass-rails (5.0.3, 4.0.5)
sdoc (0.4.1)
slop (3.6.0, 2.4.4)
sprockets (3.2.0, 2.12.3)
sprockets-rails (2.3.1, 2.0.0.rc4)
sqlite3 (1.3.10 x86-mingw32)
test-unit (2.0.0.0)
thin (1.6.3)
thor (0.19.1)
thread_safe (0.3.5)
tilt (1.4.1)
treetop (1.4.15)
truncate_html (0.9.3)
turbolinks (2.5.3)
tzinfo (1.2.2, 0.3.44)
tzinfo-data (1.2015.5)
uglifier (2.7.1)
unf (0.1.4)
unf_ext (0.0.7.1 x86-mingw32)
web-console (2.1.3)
win32console (1.3.2 x86-mingw32)

User avatar
Posts: 4
Joined: 03 Jun 2015, 14:46

Re: Zoo error: Rails - cannot load such file -- rack

22 Jun 2015, 15:43

Also,the error is generated in one of your files C:/Zoo/Workers/ruby/zoorack.rb. What is this file for?

User avatar
Posts: 402
Joined: 06 Mar 2012, 11:59

Re: Zoo error: Rails - cannot load such file -- rack

23 Jun 2015, 06:35

This file is a FastCGI worker for Ruby. You can switch your project to use HTTP with Thin or other HTTP server following instructions on "Ruby project" start page. HTTP backend connection does not require FastCGI worker and this file will not be called.

User avatar
Posts: 4
Joined: 03 Jun 2015, 14:46

Re: Zoo error: Rails - cannot load such file -- rack

23 Jun 2015, 10:21

Thank you, I followed your advice and switched to http but now get this error:

Unable to load the EventMachine C extension; To use the pure-ruby reactor, require 'em/pure_ruby' C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:73:in `require': incompatible library version -

Return to Helicon Zoo

Who is online

Users browsing this forum: No registered users and 19 guests