[OSM-dev] [OSM-talk] Recent API outage

SteveC steve at asklater.com
Mon Apr 16 13:12:59 BST 2007


Nick I fixed it? It was just a broken table.

The current log shows all being fine bar some timeouts.

On Mon, 2007-04-16 at 11:05 +0100, Nick Hill wrote:
> Following package changes/upgrades on the API server (known as www) a series of 
> problems with API came about.
> 
> I reverted all packages I could find related to the API back, but the API is 
> still not functioning.
> 
> I have verified that auth is working again, as is database connectivity to the 
> OSM database from www.
> 
> I am seeing logged errors like:
> 
> [Mon Apr 16 11:00:57 2007] [error] mod_ruby: error in ruby
> [Mon Apr 16 11:00:57 2007] [error] mod_ruby: 
> /var/www/openstreetmap/ruby/osm/osm/dao.rb:952:in `get_multi': undefined method 
> `each_hash' for nil:NilClass (NoMethodError)
> [Mon Apr 16 11:00:57 2007] [error] mod_ruby:   from 
> /var/www/openstreetmap/ruby/osm/osm/dao.rb:1117:in `get_multis_from_segments'
> [Mon Apr 16 11:00:57 2007] [error] mod_ruby:   from 
> /var/www/openstreetmap/ruby/osm/osm/dao.rb:1116:in `each_hash'
> [Mon Apr 16 11:00:57 2007] [error] mod_ruby:   from 
> /var/www/openstreetmap/ruby/osm/osm/dao.rb:1116:in `get_multis_from_segments'
> [Mon Apr 16 11:00:57 2007] [error] mod_ruby:   from 
> /var/www/openstreetmap/ruby/api/0.3/map.rb:80
> [Mon Apr 16 11:00:57 2007] [error] mod_ruby:   from 
> /var/www/openstreetmap/ruby/api/0.3/map.rb:77:in `each'
> [Mon Apr 16 11:00:57 2007] [error] mod_ruby:   from 
> /var/www/openstreetmap/ruby/api/0.3/map.rb:77
> [Mon Apr 16 11:00:57 2007] [error] mod_ruby:   from 
> /usr/lib/ruby/1.8/apache/ruby-run.rb:53:in `load'
> [Mon Apr 16 11:00:57 2007] [error] mod_ruby:   from 
> /usr/lib/ruby/1.8/apache/ruby-run.rb:53:in `handler'
> 
> 
> It seems as if each_hash method is failing on the database object. However, 
> separate scripts verify database connectivity, and relevant files as far as I 
> know have been reverted.
> 
> Any rubyists able to help me debug this are welcome.
> 
> 
> Thanks
> 
> 
> Nick.
> 
> 
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
> 
-- 
have fun,

SteveC | steve at asklater.com | http://www.asklater.com/steve/





More information about the dev mailing list