From: Snoop1990 Snoop1990 Date: 2007-12-28T02:18:08+09:00 Subject: Re: Port Ruby on Rails Application Snoop1990 Snoop1990 wrote: > Sorry I do not get this! > > I just setup a new rails application and started it at port 40000 and it > works ... why ? ... neither I nor my friend changed anything ! > Found the first Error: I get : $ ./script/server => Booting WEBrick... Rails Error: Unable to access log file. Please ensure that /home/Share/www/snoop/backup/blog copy/log/development.log exists and is chmod 0666. The log level has been raised to WARN and the output directed to STDERR until the problem is fixed. => Rails application started on http://127.0.0.1:3000 => Ctrl-C to shutdown server; call with --help for options [2007-12-27 18:14:41] INFO WEBrick 1.3.1 [2007-12-27 18:14:41] INFO ruby 1.8.6 (2007-06-07) [i486-linux] [2007-12-27 18:14:41] WARN TCPServer Error: Address already in use - bind(2) /usr/lib/ruby/1.8/webrick/utils.rb:73:in `initialize': Address already in use - bind(2) (Errno::EADDRINUSE) from /usr/lib/ruby/1.8/webrick/utils.rb:73:in `new' from /usr/lib/ruby/1.8/webrick/utils.rb:73:in `create_listeners' from /usr/lib/ruby/1.8/webrick/utils.rb:70:in `each' from /usr/lib/ruby/1.8/webrick/utils.rb:70:in `create_listeners' from /usr/lib/ruby/1.8/webrick/server.rb:75:in `listen' from /usr/lib/ruby/1.8/webrick/server.rb:63:in `initialize' from /usr/lib/ruby/1.8/webrick/httpserver.rb:24:in `initialize' from /home/Share/www/snoop/backup/blog copy/vendor/rails/railties/lib/webrick_server.rb:58:in `new' from /home/Share/www/snoop/backup/blog copy/vendor/rails/railties/lib/webrick_server.rb:58:in `dispatch' from /home/Share/www/snoop/backup/blog copy/vendor/rails/railties/lib/commands/servers/webrick.rb:59 from /home/Share/www/snoop/backup/blog copy/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require' from /home/Share/www/snoop/backup/blog copy/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require' from /home/Share/www/snoop/backup/blog copy/vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in' from /home/Share/www/snoop/backup/blog copy/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require' from /home/Share/www/snoop/backup/blog copy/vendor/rails/railties/lib/commands/server.rb:39 from ./script/server:3:in `require' from ./script/server:3 Instead of : $ ./script/server => Booting WEBrick... => Rails application started on http://127.0.0.1:3000 => Ctrl-C to shutdown server; call with --help for options [2007-12-27 18:13:09] INFO WEBrick 1.3.1 [2007-12-27 18:13:09] INFO ruby 1.8.6 (2007-06-07) [i486-linux] [2007-12-27 18:13:09] INFO WEBrick::HTTPServer#start: pid=23598 port=3000 when I try to run two webrick servers at the same port on the same system. I just mixed up to shutdown one and started another, which causes an error. As described above. But what about the FreeBSD application ? When I try to start it I still get the following error : $ ./script/server -p 40001 ./script/../config/boot.rb:18:in `require': no such file to load -- rubygems (LoadError) from ./script/../config/boot.rb:18 from ./script/server:2:in `require' from ./script/server:2 -- Posted via http://www.ruby-forum.com/.