[OSM-talk] Recent API outage
Nick Hill
nick at nickhill.co.uk
Mon Apr 16 11:05:42 BST 2007
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.
More information about the talk
mailing list