Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running "volt server" on Windows #39

Closed
058c37a272bed3464d47f0b01038a16a opened this issue Sep 20, 2014 · 24 comments
Closed

Comments

@058c37a272bed3464d47f0b01038a16a

I'm unable to start the volt server due to an error:

$ thin start
Using rack adapter
c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/volt-0.7.18/lib/volt/server
.rb:7:in `require': cannot load such file -- thin (LoadError)
        from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/volt-0.7.18/li
b/volt/server.rb:7:in `<top (required)>'
        from c:/Users/raino_000/Documents/Workspaces/Ruby/volttest/config.ru:3:i
n `require'
        from c:/Users/raino_000/Documents/Workspaces/Ruby/volttest/config.ru:3:i
n `block in <main>'
        from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib
/rack/builder.rb:55:in `instance_eval'
        from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib
/rack/builder.rb:55:in `initialize'
        from c:/Users/raino_000/Documents/Workspaces/Ruby/volttest/config.ru:1:i
n `new'
        from c:/Users/raino_000/Documents/Workspaces/Ruby/volttest/config.ru:1:i
n `<main>'
        from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/thin-1.6.2/lib
/rack/adapter/loader.rb:33:in `eval'
        from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/thin-1.6.2/lib
/rack/adapter/loader.rb:33:in `load'
        from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/thin-1.6.2/lib
/rack/adapter/loader.rb:42:in `for'
        from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/thin-1.6.2/lib
/thin/controllers/controller.rb:170:in `load_adapter'
        from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/thin-1.6.2/lib
/thin/controllers/controller.rb:74:in `start'
        from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/thin-1.6.2/lib
/thin/runner.rb:199:in `run_command'
        from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/thin-1.6.2/lib
/thin/runner.rb:155:in `run!'
        from c:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/thin-1.6.2/bin
/thin:6:in `<top (required)>'
        from c:/RailsInstaller/Ruby1.9.3/bin/thin:23:in `load'
        from c:/RailsInstaller/Ruby1.9.3/bin/thin:23:in `<main>'
@ryanstout
Copy link
Member

The command to run a volt project is:
bundle exec volt s

Also, can you upgrade to ruby 2.1 and let me know if it works. Thanks

@058c37a272bed3464d47f0b01038a16a
Copy link
Author

@ryanstout
Getting the same error, with both bundle exec volt s and volt server.

@ryanstout
Copy link
Member

Is thin in your Gemfile.lock file?

@058c37a272bed3464d47f0b01038a16a
Copy link
Author

@ryanstout
It is, under the DEPENDENCIES section: thin (~> 1.6.0)

@058c37a272bed3464d47f0b01038a16a
Copy link
Author

Still having the same issue :/

@dbeltowski
Copy link

I'm receiving the same error.

@ryanstout
Copy link
Member

@dbeltowski you are on windows, correct? How did you install Ruby? What version of Ruby are you running? Thanks

@dbeltowski
Copy link

Running Windows 7 64bit. Current version of Ruby is 2.1.4p265 <2014-10-27 revision 48166> [x64-mingw32] Originally I was running Ruby 2.0 and experienced this error so upgraded per your suggestion to the other user.

I installed Ruby using the Ruby 2.1.4(x64) exe from http://rubyinstaller.org/downloads/

@ryanstout
Copy link
Member

@dbeltowski Sorry for the late reply. I'll take a look at it tomorrow and see if I can figure it out. I only got to where I needed to install the development kit today :-)

@dbeltowski
Copy link

Have you had a chance to look into this? I'm really hoping this can be
resolved quickly.

On Sat, Nov 8, 2014 at 12:30 AM, Ryan Stout notifications@github.com
wrote:

@dbeltowski https://github.com/dbeltowski Sorry for the late reply.
I'll take a look at it tomorrow and see if I can figure it out. I only got
to where I needed to install the development kit today :-)


Reply to this email directly or view it on GitHub
#39 (comment).


Doug Beltowski | Consultant | Acumen Solutions, Inc.
http://www.acumensolutions.com

Office: 216.654.9869 | Fax: 216.447.8982

5700 Lombardo Center, Suite 201, Seven Hills, OH 44131

*This email and its attachments are for the use of the intended
recipient(s) only. If you are not the intended recipient, please do not
disclose the contents to anyone, but notify the sender by return email and
delete this email (and any attachments) from your system. *

@ryanstout
Copy link
Member

@dbeltowski sorry for the late reply, I caramel down with a stomach bug yesterday. Hopefully I'll get some time to look at this today. Thanks.

@ryancastro
Copy link
Contributor

Loved the volt presentation at rubyconf today but this stopped me dead in my tracks. :)

@ryanstout
Copy link
Member

Ryan,
Sorry, we're still working on this one. I'm planning to switch to faye for
our data syncing, which would let us use any Ruby server. Hopefully I can
get that out in the next few weeks. Also it's possible we can figure out
thin on windows.
On Wed, Nov 19, 2014 at 4:23 PM ryancastro notifications@github.com wrote:

Loved the volt presentation at rubyconf today but this stopped me dead in
my tracks. :)


Reply to this email directly or view it on GitHub
#39 (comment).

@ryancastro
Copy link
Contributor

Running on Windows actually works with ruby 2.0.0p481 (2014-05-08) [i386-mingw32]. I think it's broken on 2.1 ^. The problem I get is this:

..lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/runner.rb:147:in parse!': invalid option: --max-conns (OptionParser::InvalidOption) from c:/mc_ruby/lib/ruby/gems/2.0.0/gems/thin-1.6.3/lib/thin/runner.rb:50:in 'initialize' from c:/mc_ruby/lib/ruby/gems/2.0.0/gems/volt-0.8.22/lib/volt/cli.rb:68:in 'new'

I've got thin 1.6.3, which should support the --max-conns argument, but for some reason doesn't (I don't even see it when I run thin -h).

If I head to:
volt\cli.rb, and comment out the --max-conns array arguments from ln 62, volt server now works on my windows installation.

@ryancastro
Copy link
Contributor

sorry for the spam of comments - after further research I found Thin doesn't support --max-conns on windows. Submitted pull request #67 to fix this for Windows.

@ryanstout
Copy link
Member

@ryancastro so things are still broken in >=ruby 2.1 right?

@ryancastro
Copy link
Contributor

Unfortunately, yes. But it looks like for different reasons. Thin doesn't want to start on ruby 2.1.5p273 (2014-11-13 revision 48405) [i386-mingw32] unless it uses em/pure_ruby instead of just eventmachine. Looking in their issues, looks like it has to do with how the native extensions are compiled for windows. Once I make that change, event machine starts to have problems and dies on a Bad file descriptor. Volt appears to start up - I get the Volt ASCII art, listening port, Control+C to stop, etc.... and then eventmachine dies. I'd provide a stack trace at your request, but I think the issue might lie in Thin right now.

I installed 2.1.5 just to test it at your request - I'm just glad it works in 2.0.0 so I can figure out how Volt's going to change my life. :)

@ryanstout
Copy link
Member

@ryancastro thanks for the info. If you want to see if you can figure out what's going on with >2.0, that would be really helpful. No worries if you don't have time though. Is it an issue with our eventmachine version?

@ryanstout
Copy link
Member

@ryancastro is it related to this: eventmachine/eventmachine#536

@ryancastro
Copy link
Contributor

Yep! That's the one.

@sodabrew
Copy link

Please try today's eventmachine 1.0.4 release - please comment or close the ticket if it resolves the issue!

@ryanstout
Copy link
Member

@sodabrew I'll upgrade volt tomorrow and people can try it.

@ryanstout
Copy link
Member

can anyone confirm this is still happening on master? A few people have said things are working. Thanks @RainoBoy97 @ryancastro @sodabrew @dbeltowski

@ryanstout
Copy link
Member

Ok, so 0.9.1.pre3 runs on puma, anyone want to see if it works on that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants