Hello guys,
I am trying to upload GPX tracks to my private OSM server but it seems like i am running into a server error while doing so
Here is the cURL command i am using
curl -u arsaXXXX:XXXXX -H "Expect: " -F "file=@C:\Users\arsa3858\Desktop\1.gpx -F description=description \ -F tags=tags -F visibility=public http://b20003:3000/api/0.6/gpx/create
Below is the error report that i am seeing , i understand that its a ruby on rails server problem but i have no idea how to go about fixing this. Thanks in advance for your help
API threw unexpected Errno::ENOENT exception: No such file or directory - (/tmp/0.7056756430417218, /home/osm/traces/11.gpx)
/usr/lib/ruby/1.9.1/fileutils.rb:519:in `rename'
/usr/lib/ruby/1.9.1/fileutils.rb:519:in `block in mv'
/usr/lib/ruby/1.9.1/fileutils.rb:1515:in `block in fu_each_src_dest'
/usr/lib/ruby/1.9.1/fileutils.rb:1531:in `fu_each_src_dest0'
/usr/lib/ruby/1.9.1/fileutils.rb:1513:in `fu_each_src_dest'
/usr/lib/ruby/1.9.1/fileutils.rb:508:in `mv'
/data/src/openstreetmap-website-master/app/controllers/trace_controller.rb:374:in `block in do_create'
/var/lib/gems/1.9.1/gems/activerecord-4.0.5/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction'
/var/lib/gems/1.9.1/gems/activerecord-4.0.5/lib/active_record/connection_adapters/abstract/database_statements.rb:221:in `within_new_transaction'
/var/lib/gems/1.9.1/gems/activerecord-4.0.5/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'
/var/lib/gems/1.9.1/gems/activerecord-4.0.5/lib/active_record/transactions.rb:209:in `transaction'
/var/lib/gems/1.9.1/gems/deadlock_retry-1.2.0/lib/deadlock_retry.rb:31:in `transaction_with_deadlock_handling'
/data/src/openstreetmap-website-master/app/controllers/trace_controller.rb:368:in `do_create'
/data/src/openstreetmap-website-master/app/controllers/trace_controller.rb:330:in `api_create'
/var/lib/gems/1.9.1/gems/actionpack-4.0.5/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/var/lib/gems/1.9.1/gems/actionpack-4.0.5/lib/abstract_controller/base.rb:189:in `process_action'
/var/lib/gems/1.9.1/gems/actionpack-4.0.5/lib/action_controller/metal/rendering.rb:10:in `process_action'
/var/lib/gems/1.9.1/gems/actionpack-4.0.5/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
/var/lib/gems/1.9.1/gems/activesupport-4.0.5/lib/active_support/callbacks.rb:514:in `block in _run__252704330398790117__process_action__callbacks'
/var/lib/gems/1.9.1/gems/activesupport-4.0.5/lib/active_support/callbacks.rb:212:in `block in _conditional_callback_around_5'
/data/src/openstreetmap-website-master/app/controllers/application_controller.rb:322:in `api_call_handle_error'
/var/lib/gems/1.9.1/gems/activesupport-4.0.5/lib/active_support/callbacks.rb:211:in `_conditional_callback_around_5'
/var/lib/gems/1.9.1/gems/activesupport-4.0.5/lib/active_support/callbacks.rb:513:in `_run__252704330398790117__process_action__callbacks'
/var/lib/gems/1.9.1/gems/activesupport-4.0.5/lib/active_support/callbacks.rb:80:in `run_callbacks'
/var/lib/gems/1.9.1/gems/actionpack-4.0.5/lib/abstract_controller/callbacks.rb:17:in `process_action'
/var/lib/gems/1.9.1/gems/actionpack-4.0.5/lib/action_controller/metal/rescue.rb:29:in `process_action'
/var/lib/gems/1.9.1/gems/actionpack-4.0.5/lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
/var/lib/gems/1.9.1/gems/activesupport-4.0.5/lib/active_support/notifications.rb:159:in `block in instrument'
/var/lib/gems/1.9.1/gems/activesupport-4.0.5/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/var/lib/gems/1.9.1/gems/activesupport-4.0.5/lib/active_support/notifications.rb:159:in `instrument'
/var/lib/gems/1.9.1/gems/actionpack-4.0.5/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
/var/lib/gems/1.9.1/gems/actionpack-4.0.5/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
/var/lib/gems/1.9.1/gems/activerecord-4.0.5/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/var/lib/gems/1.9.1/gems/actionpack-4.0.5/lib/abstract_controller/base.rb:136:in `process'
/var/lib/gems/1.9.1/gems/actionpack-4.0.5/lib/abstract_controller/rendering.rb:44:in `process'
/var/lib/gems/1.9.1/gems/actionpack-4.0.5/lib/action_controller/metal.rb:195:in `dispatch'
/var/lib/gems/1.9.1/gems/actionpack-4.0.5/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
/var/lib/gems/1.9.1/gems/actionpack-4.0.5/lib/action_controller/metal.rb:231:in `block in action'
/var/lib/gems/1.9.1/gems/actionpack-4.0.5/lib/action_dispatch/routing/route_set.rb:80:in `call'
/var/lib/gems/1.9.1/gems/actionpack-4.0.5/lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
/var/lib/gems/1.9.1/gems/actionpack-4.0.5/lib/action_dispatch/routing/route_set.rb:48:in `call'
/var/lib/gems/1.9.1/gems/actionpack-4.0.5/lib/action_dispatch/journey/router.rb:71:in `block in call'
/var/lib/gems/1.9.1/gems/actionpack-4.0.5/lib/action_dispatch/journey/router.rb:59:in `each'
/var/lib/gems/1.9.1/gems/actionpack-4.0.5/lib/action_dispatch/journey/router.rb:59:in `call'
/var/lib/gems/1.9.1/gems/actionpack-4.0.5/lib/action_dispatch/routing/route_set.rb:674:in `call'
/var/lib/gems/1.9.1/gems/oauth-plugin-0.5.1/lib/oauth/rack/oauth_filter.rb:75:in `call'
/var/lib/gems/1.9.1/gems/rack-cors-0.2.9/lib/rack/cors.rb:54:in `call'
/data/src/openstreetmap-website-master/config/initializers/cors.rb:9:in `call'
/var/lib/gems/1.9.1/gems/http_accept_language-2.0.1/lib/http_accept_language/middleware.rb:13:in `call'
/var/lib/gems/1.9.1/gems/rack-openid-1.4.2/lib/rack/openid.rb:98:in `call'
/var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/etag.rb:23:in `call'
/var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/conditionalget.rb:35:in `call'
/var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
/var/lib/gems/1.9.1/gems/actionpack-4.0.5/lib/action_dispatch/middleware/flash.rb:241:in `call'
/var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:225:in `context'
/var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:220:in `call'
/var/lib/gems/1.9.1/gems/actionpack-4.0.5/lib/action_dispatch/middleware/cookies.rb:486:in `call'
/var/lib/gems/1.9.1/gems/activerecord-4.0.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
/var/lib/gems/1.9.1/gems/activerecord-4.0.5/lib/active_record/migration.rb:373:in `call'
/var/lib/gems/1.9.1/gems/actionpack-4.0.5/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
/var/lib/gems/1.9.1/gems/activesupport-4.0.5/lib/active_support/callbacks.rb:373:in `_run__4521713156344120633__call__callbacks'
/var/lib/gems/1.9.1/gems/activesupport-4.0.5/lib/active_support/callbacks.rb:80:in `run_callbacks'
/var/lib/gems/1.9.1/gems/actionpack-4.0.5/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/var/lib/gems/1.9.1/gems/actionpack-4.0.5/lib/action_dispatch/middleware/reloader.rb:64:in `call'
/var/lib/gems/1.9.1/gems/actionpack-4.0.5/lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
/var/lib/gems/1.9.1/gems/actionpack-4.0.5/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
/var/lib/gems/1.9.1/gems/actionpack-4.0.5/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
/var/lib/gems/1.9.1/gems/railties-4.0.5/lib/rails/rack/logger.rb:38:in `call_app'
/var/lib/gems/1.9.1/gems/railties-4.0.5/lib/rails/rack/logger.rb:20:in `block in call'
/var/lib/gems/1.9.1/gems/activesupport-4.0.5/lib/active_support/tagged_logging.rb:68:in `block in tagged'
/var/lib/gems/1.9.1/gems/activesupport-4.0.5/lib/active_support/tagged_logging.rb:26:in `tagged'
/var/lib/gems/1.9.1/gems/activesupport-4.0.5/lib/active_support/tagged_logging.rb:68:in `tagged'
/var/lib/gems/1.9.1/gems/railties-4.0.5/lib/rails/rack/logger.rb:20:in `call'
/var/lib/gems/1.9.1/gems/actionpack-4.0.5/lib/action_dispatch/middleware/request_id.rb:21:in `call'
/var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
/var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
/var/lib/gems/1.9.1/gems/activesupport-4.0.5/lib/active_support/cache/strategy/local_cache.rb:83:in `call'
/var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call'
/var/lib/gems/1.9.1/gems/actionpack-4.0.5/lib/action_dispatch/middleware/static.rb:64:in `call'
/var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in `call'
/var/lib/gems/1.9.1/gems/railties-4.0.5/lib/rails/engine.rb:511:in `call'
/var/lib/gems/1.9.1/gems/railties-4.0.5/lib/rails/application.rb:97:in `call'
/var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call'
/var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call'
/var/lib/gems/1.9.1/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
/usr/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
/usr/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
/usr/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
Rendered text template (0.0ms)
Completed 500 Internal Server Error in 90ms (Views: 0.7ms | ActiveRecord: 2.7ms)
Atjun
asked
09 Oct '14, 10:11
Osm_Enthu
56●3●3●7
accept rate:
0%
There is some error within the path of the file , seems like the uploaded gpx trace needs to be saved on the server but the destination address isnt correct/ does not exist
Source:
https://trac.openstreetmap.org/ticket/1396#comment:1