[OSM-dev] OSMOSIS: Problems Importing Data

Lucier, Trent trent.lucier at lmco.com
Fri Jun 12 14:26:59 BST 2009


Here is the error message I get when I run " rake test". (I deleted some
of the failures to get around this mailing list's message size limit.
The ones I deleted were similar to the ones surrounding them with the
'send' errors).  I had already run the commands you linked to.  Do my
errors indicate that it did not work?  I assumed all the failures for
the _send_ calls were due to tests trying to talk back to
www.openstreetmap.org.  As I've said, my environment is not internet
enabled.  

 

Also, I noticed something else strange when I ran the rake db:migrate
command.  One of the lines of output mentioned "innodb", which I know is
a MySQL thing (not PostgreSQL).  I was using MySQL previously, but
switched everything over to PostgreSQL (yes, my database.yml file now
points to postgresql).  I would post the message, but my rake db:migrate
command doesn't think any changes were made and won't do a total
rebuild.  Is there a way to force rake db:migrate to build again so I
can post that output?

 

 

rake test

(in /og/rails_port)

 1self.class.gem_version = 2.2.2

/usr/local/bin/ruby -I"lib:test"
"/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.
rb" "test/unit/old_way_tag_test.rb" "test/unit/trace_test.rb"
"test/unit/way_tag_test.rb" "test/unit/node_tag_test.rb"
"test/unit/friend_test.rb" "test/unit/diary_comment_test.rb"
"test/unit/country_test.rb" "test/unit/relation_test.rb"
"test/unit/way_test.rb" "test/unit/user_preference_test.rb"
"test/unit/relation_member_test.rb" "test/unit/relation_tag_test.rb"
"test/unit/user_test.rb" "test/unit/acl_test.rb"
"test/unit/message_test.rb" "test/unit/diary_entry_test.rb"
"test/unit/old_node_test.rb" "test/unit/tracetag_test.rb"
"test/unit/old_relation_tag_test.rb" "test/unit/old_node_tag_test.rb"
"test/unit/tracepoint_test.rb" "test/unit/changeset_tag_test.rb"
"test/unit/way_node_test.rb" "test/unit/user_token_test.rb"
"test/unit/changeset_test.rb" "test/unit/node_test.rb" 

 1self.class.gem_version = 2.2.2

Loaded suite
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader

Started

............................EE..........E...............................
................................

Finished in 55.043852 seconds.

 

  1) Error:

test_create(NodeTest):

OSM::APIChangesetAlreadyClosedError: The changeset 1 was closed at Thu
Jun 11 11:49:21 UTC 2009

    /og/rails_port/lib/consistency_validations.rb:29:in
`check_create_consistency'

    /og/rails_port/app/models/node.rb:179:in `create_with_history'

    ./test/unit/node_test.rb:85:in `test_create'

 
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support
/testing/setup_and_teardown.rb:60:in `__send__'

 
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support
/testing/setup_and_teardown.rb:60:in `run'

 

  2) Error:

test_delete(NodeTest):

OSM::APIChangesetAlreadyClosedError: The changeset 1 was closed at Thu
Jun 11 11:49:21 UTC 2009

    /og/rails_port/lib/consistency_validations.rb:18:in
`check_consistency'

    /og/rails_port/app/models/node.rb:134:in `delete_with_history!'

 
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/c
onnection_adapters/postgresql_adapter.rb:550:in `transaction'

 
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/t
ransactions.rb:129:in `transaction_without_deadlock_handling'

 
/og/rails_port/vendor/plugins/deadlock_retry/lib/deadlock_retry.rb:45:in
`transaction'

    /og/rails_port/app/models/node.rb:132:in `delete_with_history!'

    ./test/unit/node_test.rb:148:in `test_delete'

 
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support
/testing/setup_and_teardown.rb:60:in `__send__'

 
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support
/testing/setup_and_teardown.rb:60:in `run'

 

  3) Error:

test_update(NodeTest):

OSM::APIChangesetAlreadyClosedError: The changeset 1 was closed at Thu
Jun 11 11:49:25 UTC 2009

    /og/rails_port/lib/consistency_validations.rb:18:in
`check_consistency'

    /og/rails_port/app/models/node.rb:156:in `update_from'

 
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/c
onnection_adapters/postgresql_adapter.rb:550:in `transaction'

 
/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/t
ransactions.rb:129:in `transaction_without_deadlock_handling'

 
/og/rails_port/vendor/plugins/deadlock_retry/lib/deadlock_retry.rb:45:in
`transaction'

    /og/rails_port/app/models/node.rb:154:in `update_from'

    ./test/unit/node_test.rb:117:in `test_update'

 
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support
/testing/setup_and_teardown.rb:60:in `__send__'

 
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support
/testing/setup_and_teardown.rb:60:in `run'

 

104 tests, 5454 assertions, 0 failures, 3 errors

/usr/local/bin/ruby -I"lib:test"
"/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.
rb" "test/functional/old_node_controller_test.rb"
"test/functional/relation_controller_test.rb"
"test/functional/search_controller_test.rb"
"test/functional/old_relation_controller_test.rb"
"test/functional/trace_controller_test.rb"
"test/functional/node_controller_test.rb"
"test/functional/api_controller_test.rb"
"test/functional/export_controller_test.rb"
"test/functional/changeset_controller_test.rb"
"test/functional/diary_entry_controller_test.rb"
"test/functional/message_controller_test.rb"
"test/functional/old_way_controller_test.rb"
"test/functional/browse_controller_test.rb"
"test/functional/friend_controller_test.rb"
"test/functional/swf_controller_test.rb"
"test/functional/site_controller_test.rb"
"test/functional/way_controller_test.rb"
"test/functional/amf_controller_test.rb"
"test/functional/user_preference_controller_test.rb"
"test/functional/user_controller_test.rb"
"test/functional/changeset_tag_controller_test.rb"
"test/functional/geocoder_controller_test.rb" 

 1self.class.gem_version = 2.2.2

Loaded suite
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader

Started

.............F....F..............................F.....F.F.............F
....FFFFF.FF.F.FFFFFF.F..............FFF..FF..F.......FF.F.F.FF.....FE..
...............FFF.....

Finished in 62.490959 seconds.

 

  1) Failure:

test_putpoi_create_valid(AmfControllerTest)

    [./test/functional/amf_controller_test.rb:393:in
`test_putpoi_create_valid'

 
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support
/testing/setup_and_teardown.rb:60:in `__send__'

 
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support
/testing/setup_and_teardown.rb:60:in `run']:

expected to get the status ok from the amf.

<0> expected but was

<-1.0>.

 

  2) Failure:

test_putpoi_update_valid(AmfControllerTest)

    [./test/functional/amf_controller_test.rb:352:in
`test_putpoi_update_valid'

 
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support
/testing/setup_and_teardown.rb:60:in `__send__'

 
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support
/testing/setup_and_teardown.rb:60:in `run']:

<0> expected but was

<-1.0>.

 

/////############  REMOVED SOME ERRORS DUE TO MESSAGE SIZE LIMIT
##############///////

 

 38) Failure:

test_delete(WayControllerTest)

    [./test/functional/way_controller_test.rb:283:in `test_delete'

 
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support
/testing/setup_and_teardown.rb:60:in `__send__'

 
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support
/testing/setup_and_teardown.rb:60:in `run']:

Expected response to be a <:success>, but was <409>

 

167 tests, 1538 assertions, 37 failures, 1 errors

/usr/local/bin/ruby -I"lib:test"
"/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.
rb" "test/integration/user_diaries_test.rb"
"test/integration/user_creation_test.rb" 

 1self.class.gem_version = 2.2.2

Loaded suite
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader

Started

..

Finished in 0.293341 seconds.

 

2 tests, 15 assertions, 0 failures, 0 errors

Errors running test:units and test:functionals!

 

 

 

From: Shaun McDonald 

 

On 11 Jun 2009, at 15:17, Lucier, Trent wrote:

 

Also, I am just using PostgreSQL 8.3.7.  I don't need to install
PostGIS, right?  When I ran the "rake test" script, I did get some
errors and failures, but I assumed that was because my OSM installation
is not in an internet enabled environment. 

 

 

What was the errors when you were running rake test?

 

There will be 3 errors when you don't have the C based functions
installed.

Instructions to install:

http://trac.openstreetmap.org/browser/sites/rails_port/db/README#L57

 

Shaun

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20090612/9fa92dfb/attachment.html>


More information about the dev mailing list