similar to: Debugging WEBrick problems?

Displaying 20 results from an estimated 20000 matches similar to: "Debugging WEBrick problems?"

2005 May 14
4
Problems with custom service and webrick
Hi all, Windows XP Pro Ruby 1.8.2 I''m having a couple of problems with the following service. The first issue is that the code in service_start doesn''t seem to fire off. The second problem is that any attempt to do ''require "webrick"'' within webrick_daemon.rb causes the service to fail on start. Any ideas? # webrickctl.rb
2005 Nov 18
2
Migrate Ubuntu Rails App to Fedora?
I developed a small RoR app on my Ubuntu laptop and I just tried to migrate it to my "production" box which is Fedora FC3. I moved the entire rails app. I received this error when I tried to get the first page: [2005-11-17 15:36:00] INFO WEBrick::HTTPServer#start: pid=32546 port=3000 192.168.0.61 - - [17/Nov/2005:15:40:01 EST] "GET /freesql HTTP/1.1" 200 0 - ->
2006 Mar 24
2
Basic Auth in WEBrick
Yo all, All I want to accomplish at this moment in time is simple password protection around a rails application in development using WEBrick on a custom port. Just one account would be fine. I have done an extensive Google hunt for an example, but I all find are code chunks for starting WEBrick such as: realm = "Gnome realm" start_webrick {|server| htpasswd
2006 Jul 13
2
application always unresponsive overnight
Hi, I set up my application on Linux (Suse), running MySQL (which sits on a different server) and Webrick. It works fine. However, every morning when I come back to my desk, the application gets unresponsive. If I simply access http://host:3000 <http://host:3000/> I can see the rails greeting page (that means Webrick is running fine right?), but if I access any of pages in the
2006 Mar 03
1
starting webrick from ruby (tar2rubyscript.rb)
I am using tar2rubyscript to package up a rails application and run it as one file from the server. If you run script/server and have lighttpd install it will start lighty instead of webrick. So, thanks to Erik Veenstra''s suggestion, I add ARGV.unshift("webrick") to the init.rb file to force webrick to start: ARGV.unshift("webrick") load "script/server"
2006 Oct 19
2
WEBRick process not responding after few hours (rails 1.1.6 on linux)
the rail application I have developed (really simple one 2 -> db tables with no more than 100 records) works perfectly in development / production mode on my windows desktop (win200 pro + mysql + ruby 1.8.2 + rails 1.1.6). when deploying the application on linux (ruby 1.8.4 , rails 1.1.6 the same mysql as on windows) everything *seems* to work fine. well atleast for the first few hours. the
2006 Jun 23
2
WEBrick hangs with OCI8?
Has anyone experienced "hangs" with the WEBrick/OCI8 combination? The sequence of actions I perform to consistently get WEBrick to hang is: 1. start WEBrick 2. list a table form my Oracle 10g DB 3. startup sqlplus and update a few records in the table 4. go back to my browser and reload the table Here none of the chances I made directly to the table are reflected in the listing.
2006 May 03
2
WEBrick initialisation error
I am new to Ruby so I thought the best way to get into it would be to follow the ONLamp "Rolling with Ruby on Rails" intro. I followed the instructions to the letter and everything work just great, very impressive:-). A couple of days later when I went back to it I got the following message when trying to start the WEBrick server. U:\RoRProjects\cookbook>ruby script\server =>
2006 May 04
2
WEBrick initialisation problem
I am new to Ruby so I thought the best way to get into it would be to follow the ONLamp "Rolling with Ruby on Rails" intro. I followed the instructions to the letter and everything work just great, very impressive:-). A couple of days later when I went back to it I got the following message when trying to start the WEBrick server. U:\RoRProjects\cookbook>ruby script\server =>
2008 Jul 21
2
webrick needs 80 seconds for starting
ruby script/console webrick after 23 seconds: => Booting WEBrick... after 78 seconds: => Rails application started on http://0.0.0.0:3000 => Ctrl-C to shutdown server; call with --help for options [2008-07-21 08:07:17] INFO WEBrick 1.3.1 [2008-07-21 08:07:17] INFO ruby 1.8.6 (2007-09-24) [i386-mswin32] [2008-07-21 08:07:17] INFO WEBrick::HTTPServer#start: pid=4664 port=3000
2010 Mar 05
1
WEBrick 500 error only with https
I have an application i''m installing on my application server. I''ve been using WEBrick and for now i''d like to just keep using it working in prototype development mode. This works fine on my development machine using both http and https, where the host is ''localhost'' (ports 3000,3001). It also works fine on the application server http port 3000. The
2006 Mar 18
2
problem with webrick and edge rails
i know i do not really have the right to seek help with edge rails, but i am hoping it is something trivial. quick scenario: $ rails test # create a new project $ svn import # import it into the repo, then go elsewhere, and checkout $ ruby script/server => Booting WEBrick... => Rails application started on http://0.0.0.0:3000 => Ctrl-C to shutdown server; call with --help for options
2005 Oct 14
1
Detecting Webrick // determining application "root" directory
Is there a way to detect Webrick at runtime? I''ve noticed a couple of differences between my dev environment (Webrick) and the production environment (Apache 2/FastCGI): * stream must be false in send_file with webrick * pwd is different - Webrick: It''s where you run ruby script/server from - Apache: It''s the public directory ... unless someone
2006 Mar 16
2
WEBrick and OS X 10.4.5 problems?
Has anyone who is running OS X 10.4.5 and the security patches thereafter noticed that WEBrick is no longer functioning? I have a machine at school that I believe to be patched with 10.4.5 but not with the latest security patch and WEBrick seems to run fine for it. However, on my machine at home I can''t get WEBrick to successfully run even freshly generated apps. For both
2005 Dec 28
2
where is WEBrick (daemon mode) output? not in log/server.log
I am running WEBrick in daemon mode (with the -d option). Where is the server output that would ordinarily be on my console if I ran without the -d option? APP_ROOT/log/server.log is empty and not being appended to, though it is owned by the same user WEBrick is running as and has write permissions. The only files in APP_ROOT/log are: development.log production.log server.log test.log Where
2007 Mar 15
2
WEBrick freezes overnight
Each morning when I return to work, I find that my WEBrick server has stopped working. The process is still running, but when I try to connect to it with a web browser, the browser doesn''t get any response back. Usually when this happens I cannot control-c the process to shut it down, and not even "kill" works-- I have to get rid of it with kill -9. I then restart it and it
2006 Jul 01
5
how can i set the default protocol of WEBrick to https?
On my server, stunnel is running to accept HTTPS (port 443) connection from clients and redirect them to localhost:80. And on port 80 of my server, WEBrick is running to accept HTTP connection. In such situation, WEBrick generates URLs beginning with ''http://'', not with ''https://''. So one can access to ''https://myserver/'', but when he click on
2006 Jan 24
2
webrick and in_place_editor_field
I''m having a strange problem with webrick spinning forever. I have a view ''list'' that renders a collection: <%= render :partial => ''item'', :collection => @items %> The item partial looks like so: <div id="item_<%= item.id %>"> ... <div id="price"> <%= in_place_editor_field :item, :price
2006 May 30
5
Implementing HTTPS with WEBrick?
All, I would like to test some secure pages that I''m developing in my WEBrick-based development environment. I''ve done some research and it appears that I need to create a new command that will start a HTTPS based WEBrick server. Is this correct? Also, it appears that the https.rb module is not included with the WEBrick bundled in Rails. So, I will need to go get that
2006 Feb 19
5
Memory use: WEBrick vs Apache
Hello, >From purely a memory consumption standpoint, is it generally more efficient to run a simple Rails app using WEBrick alongside a separate apache installation or to run Rails under FCGI and use Apache to bridge to the Web? I have looked through lots of docs and old forum posts. Most seem to center on just getting Apache+Rails running, or on speed. I am really not concerned about my