[OSM-dev] set up test server

Jonas Svensson jonass at lysator.liu.se
Mon Aug 28 19:09:10 BST 2006


On 28 Aug 2006 at 11:30, Jonas Svensson wrote:

> Now I have to figure out why I can't create users even though that script
> is works fine.

This is what I get in osm.error.log:
[Mon Aug 28 19:47:35 2006] [error] mod_ruby: error in ruby
[Mon Aug 28 19:47:35 2006] [error] mod_ruby: 
/usr/lib/ruby/1.8/net/protocol.rb:206:in `initialize': Connection 
refused - connect(2) (Errno::ECONNREFUSED)
[Mon Aug 28 19:47:35 2006] [error] mod_ruby:   from 
/usr/lib/ruby/1.8/net/protocol.rb:206:in `old_open'
[Mon Aug 28 19:47:35 2006] [error] mod_ruby:   from 
/usr/lib/ruby/1.8/timeout.rb:56:in `timeout'
[Mon Aug 28 19:47:35 2006] [error] mod_ruby:   from 
/usr/lib/ruby/1.8/timeout.rb:76:in `timeout'
[Mon Aug 28 19:47:35 2006] [error] mod_ruby:   from 
/usr/lib/ruby/1.8/net/protocol.rb:206:in `old_open'
[Mon Aug 28 19:47:35 2006] [error] mod_ruby:   from 
/usr/lib/ruby/1.8/net/smtp.rb:393:in `do_start'
[Mon Aug 28 19:47:35 2006] [error] mod_ruby:   from 
/usr/lib/ruby/1.8/net/smtp.rb:378:in `start'
[Mon Aug 28 19:47:35 2006] [error] mod_ruby:   from 
/usr/lib/ruby/1.8/net/smtp.rb:316:in `start'
[Mon Aug 28 19:47:35 2006] [error] mod_ruby:   from 
/home/jonas/svn.openstreetmap.org/www.openstreetmap.org/eruby/create
-account.rhtml:81
[Mon Aug 28 19:47:35 2006] [error] mod_ruby:   from (eval):117
[Mon Aug 28 19:47:35 2006] [error] mod_ruby:   from 
/usr/lib/ruby/1.8/apache/eruby-run.rb:116:in `run'
[Mon Aug 28 19:47:35 2006] [error] mod_ruby:   from 
/usr/lib/ruby/1.8/apache/eruby-run.rb:72:in `handler'

Does this say that ruby/apache were not able to connect at all to 
mysql or that the name/password were wrong? Or something else?

Maybe the error is in my osm/servinfo.rb? I am not sure about the 
parameters there. $Username, $password I suppose is for accessing 
mysql and $database should be the name of the database in mysql. 
But what is $DBserver and $server_name? I have set $dbserver to 
localhost since that is what is used on the devserver according to 
the wiki and I have tried several names for $server_name, like the 
IP# for the computer this is running on.

Any other suggestions?

/Jonas





More information about the dev mailing list