Questions tagged [webrick]

Webrick is a zero-configuration HTTP server stack chiefly used as the web server for the Ruby on Rails framework development and test environments.

WEBrick is an HTTP server toolkit that can be configured as an HTTPS server, a proxy server, and a virtual-host server. WEBrick features complete logging of both server operations and HTTP access.

A WEBrick server can be composed of multiple WEBrick servers or servlets to provide differing behavior on a per-host or per-path basis. WEBrick includes servlets for handling CGI scripts, ERb pages, ruby blocks and directory listings.

WEBrick also includes tools to run a process as a service and starting a process at a higher privilege level and dropping permissions.

From the version of ruby 1.9.1 Webrick is a part of ruby standard library. More info is on ruby docs. Sources for an older ruby version is on github.

523 questions
0
votes
2 answers

WEBrick server keeps shutting down

I'm new to Ruby and Rails and setting up a project for the first time. Every time I try to start the WEBrick server it boots up and then shuts down. Any help would be appreciated. It seems like I need to provide the password, but I'm not sure how to…
Barrett Kuethen
  • 1,864
  • 7
  • 25
  • 33
0
votes
0 answers

Can't launch server on rails (LoadError)

I can't launch server on rails. I uninstalled and re-installed both mysql and mysql gem. But still I get the same error This is what i get C:/Ruby200/lib/ruby/gems/2.0.0/gems/mysql2-0.3.11-x86-mingw32/lib/mysql2/mysql2.rb:2:in `require': cannot load…
John
  • 1
0
votes
1 answer

Rails noob having trouble with WEBrick and mySQL

I'm very new to rails and am trying to familiarize myself with the framework by following the Rails Essential Training on Lynda.com. Although I thought that I got everything installed properly, I am running into some trouble when trying to launch a…
user2336294
0
votes
1 answer

Why wont my ruby server load in terminal on os x 10.7

I am currently following an online video from Lynda.com, on Ruby on Rails essentials. I am a beginner in web development an am trying to practice using rails web app framework. So far I have updated all of my gems, installed mysql2, and am using the…
0
votes
1 answer

WebRick. Can't shutdown the server

My OS is Ubuntu 10.04. I started WebRick by "rails s" command. But now a can't stop him. I try to stop him using this hotkeys Ctrl + C and Ctrl +Break...but nothin helping...
John Oggy
  • 319
  • 1
  • 3
  • 14
0
votes
2 answers

Error running WEBrick: Can't Connect to MySQL server

Hey I can't figure out what to do to fix this error message. Just started with ruby with rails and trying to get it all set up so I can learn more but and stuck on trying to get WEBrick to work. Anything will help, THANKS! …
BTG
  • 1
  • 3
0
votes
1 answer

Heroku starts Thin but returns error from weBrick - Devise User Create Failure

When a new user registration is attempted I receive a server status code of 500 and no error is logged in Heroku. Here is the received response header: Connection keep-alive Content-Length 728 Content-Type text/html; charset=utf-8 Date Mon,…
John Forbes
  • 145
  • 3
  • 8
0
votes
1 answer

Connect to a Rails Server via Ruby using the TCPSocket. Getting "Length Required WEBrick::HTTPStatus::LengthRequired"

I am trying to connect to a Rails server but the response i keep getting is Length Required WEBrick::HTTPStatus::LengthRequired I am using TCPSocket to connect to the server. require 'socket' host = 'localhost' port =…
0
votes
1 answer

Resque Not Picking Up Jobs

So, I am trying to set up resque and it is a bit of a weird issue. I had it working before, but I don't know what happened. When I run the command: QUEUE=* bundle exec rake resque:work It starts webrick and the following output is…
Justin Time
  • 485
  • 6
  • 18
0
votes
1 answer

Rails connection pool size for WEBrick

I am getting ActiveRecord::ConnectionTimeoutError (could not obtain a database connection within 5 seconds (waited 5.000798 seconds). The max pool size is currently 1; consider increasing it.) when I try to run WEBrick (rails server) with the pool…
UncleGene
  • 2,132
  • 16
  • 19
0
votes
1 answer

WEBrick socket returns eof? == true

I'm writing a MITM proxy with webrick and ssl support (for mocking out requests with VCR on client side, see this thread VCRProxy: Record PhantomJS ajax calls with VCR inside Capybara or my github repository https://github.com/23tux/vcr_proxy), and…
23tux
  • 14,104
  • 15
  • 88
  • 187
0
votes
2 answers

Rails error serving assets

I am migrating a big site from Rails 2 to Rails 3. When I try to get an asset I get the following error using Webrick: Started GET "/assets/key.png" for 127.0.0.1 at 2013-03-20 11:00:06 -0300 Served asset /key.png - 200 OK (15ms) [2013-03-20…
Tony
  • 10,088
  • 20
  • 85
  • 139
0
votes
0 answers

webrick and active_support (LoadError)

I've CentOS 5.8 x86_64 with RVM installed. Under root I do: 1) rvm install ruby-1.9.2 2) rvm gemset create global 3) rvm gemset use global 4) gem list *** LOCAL GEMS *** actionmailer (2.3.14) actionpack (2.3.14) activerecord…
gmdidro
  • 11
  • 1
0
votes
1 answer

Ruby on Rails: how to handle wrong encoded JSON string on receive

I have a rails server getting input from an android app. This android app is passing some data to the server in JSON format, but current version of the app does not encode the string to UTF-8, so it remains 'binary' with e.g. '\xE0' instead of…
Schlangi
  • 1,135
  • 1
  • 9
  • 19
0
votes
1 answer

when is webrick different from development.log

Running with a default configuration, I have yet to see an instance where messages appeared in the webrick window but not in development.log or vice versa. Does anyone know of specific messages which I should expect to appear in only one of the two…