This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 198537 - Internal Server error - when running webrick within Netbeans 7
Summary: Internal Server error - when running webrick within Netbeans 7
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Rails (show other bugs)
Version: 7.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Erno Mononen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-12 07:20 UTC by RobNichols
Modified: 2011-06-03 16:42 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description RobNichols 2011-05-12 07:20:45 UTC
I keep getting Internal Server Errors when running my website from within NetBeans 7. Below is an example of the output I get.

Once the error occurs I get Internal Server Error every time I try to load a page, until I restart the server.

The error does not appear to be specific to a particular page, or process. In the example below, it appears to have occurred while getting data from the database. It can as easily happen during rendering. The consistent aspect is the failure at log_tailer.rb:25:in `write'.

I don't get any problems running the site from Netbeans 6.9.1. The site is also working fine on an internal test server (Rail production environment), and when running webrick from shell on both Windows 7 and Ubuntu.

I'm running NetBeans 7.0 (Build 201104080000) and added the Ruby plugin (1302981014_nbruby041611). I'm running Windows 7 32 bit. My project is using Ruby 1.8.7-p302, with WEBrick as it's server. Rails is version 3.0.6.

Rob


----------------------------------------------------------------------------------------------------------------------------------
Started GET "/articles/categorise?article_subset_criteria=moderator_id&category_subset_criteria=11&sort_by=title_text&title_includes=cheese" for 127.0.0.1 at Wed May 11 10:13:47 +0100 2011
  Processing by ArticlesController#categorise as HTML
  Parameters: {"title_includes"=>"cheese", "article_subset_criteria"=>"moderator_id", "sort_by"=>"title_text", "category_subset_criteria"=>"11"}
  User Load (0.0ms)  SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
  CACHE (0.0ms)  SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
  Author Load (0.0ms)  SELECT `users`.`id` FROM `users` WHERE `users`.`permission_level` IN ('admin', 'moderator', 'author') AND `users`.`id` = 1 LIMIT 1
  SQL (3.0ms)  describe `articles_categories`
  SQL (2.0ms)  describe `articles_categories`
  Category Load (0.0ms)  SELECT `categories`.`id` FROM `categories` WHERE `categories`.`id` = 11 LIMIT 1
  mCategory Load (0.0ms)  SELECT `categories`.* FROM `categories` WHERE `categories`.`id` = 11 LIMIT 1
  Article Load (3.0ms)  SELECT DISTINCT `articles`.id FROM `articles` LEFT OUTER JOIN `articles_categories` ON `articles_categories`.`article_id` = `articles`.`id` LEFT OUTER JOIN `categories` ON `categories`.`id` = `articles_categories`.`category_id` WHERE (articles.deleted_at IS NULL) AND ((articles.moderator_id = 1 AND articles.title_text LIKE '%cheese%' AND categories.id = 11)) ORDER BY articles.title_text ASC LIMIT 10 OFFSET 0
  Article Load (1.0ms)  SELECT `articles`.`id` AS t0_r0, `articles`.`author_id` AS t0_r1, `articles`.`created_at` AS t0_r2, `articles`.`updated_at` AS t0_r3, `articles`.`moderation_status` AS t0_r4, `articles`.`moderator_id` AS t0_r5, `articles`.`language` AS t0_r6, `articles`.`view_status` AS t0_r7, `articles`.`icon_background_colour` AS t0_r8, `articles`.`icon_symbol_url` AS t0_r9, `articles`.`icon_cml` AS t0_r10, `articles`.`title_content_id` AS t[2011-05-11 10:13:48] ERROR Errno::EINVAL: Invalid argument
    C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.0.5/lib/rails/rack/log_tailer.rb:25:in `write'
    C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.0.5/lib/rails/rack/log_tailer.rb:25:in `print'
    C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.0.5/lib/rails/rack/log_tailer.rb:25:in `tail!'
    C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.0.5/lib/rails/rack/log_tailer.rb:15:in `call'
    C:/Ruby187/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/content_length.rb:13:in `call'
    C:/Ruby187/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/handler/webrick.rb:52:in `service'
    C:/Ruby187/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
    C:/Ruby187/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
    C:/Ruby187/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
    C:/Ruby187/lib/ruby/1.8/webrick/server.rb:162:in `start'
    C:/Ruby187/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
    C:/Ruby187/lib/ruby/1.8/webrick/server.rb:95:in `start'
    C:/Ruby187/lib/ruby/1.8/webrick/server.rb:92:in `each'
    C:/Ruby187/lib/ruby/1.8/webrick/server.rb:92:in `start'
    C:/Ruby187/lib/ruby/1.8/webrick/server.rb:23:in `start'
    C:/Ruby187/lib/ruby/1.8/webrick/server.rb:82:in `start'
    C:/Ruby187/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/handler/webrick.rb:13:in `run'
    C:/Ruby187/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/server.rb:213:in `start'
    C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.0.5/lib/rails/commands/server.rb:65:in `start'
    C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.0.5/lib/rails/commands.rb:30
    C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.0.5/lib/rails/commands.rb:27:in `tap'
    C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.0.5/lib/rails/commands.rb:27
    script/rails:6:in `require'
    script/rails:6
Comment 1 Aux 2011-05-18 22:00:18 UTC
Confirm. Looks like NetBeans is blocking log file from time to time. Does not happen when running server from command line.
Comment 2 codehunter 2011-05-20 03:30:14 UTC
I get this bug too!!
Comment 3 strvmarv 2011-06-03 16:40:59 UTC
Running into this too, exact same behavior.  Further note, it appears if I close Netbeans and re-open it that it sometimes starts working again.  I've added deletion of the log file to that process as well.  Hope they fix it soon, really frustrating...