Skip to content

Instantly share code, notes, and snippets.

@sandipransing
Created June 29, 2011 15:05
Show Gist options
  • Select an option

  • Save sandipransing/1054026 to your computer and use it in GitHub Desktop.

Select an option

Save sandipransing/1054026 to your computer and use it in GitHub Desktop.
heroku db pull error
heroku db:pull mysql://root@localhost/otz_production --app otz-production
Loaded Taps v0.3.23
Warning: Data in the database 'mysql://root@localhost/otz_production' will be overwritten and will not be recoverable.
! WARNING: Potentially Destructive Action
! This command will affect the app: otz-production
! To proceed, type "otz-production" or re-run this command with --confirm otz-production
> otz-production
Receiving schema
Schema: 100% |==========================================| Time: 00:00:21
Receiving indexes
storefronts: 100% |==========================================| Time: 00:00:01
schema_migrat: 100% |==========================================| Time: 00:00:00
Receiving data
9 tables, 1,800 records
coupons: 100% |==========================================| Time: 00:00:06
storefronts: 100% |==========================================| Time: 00:00:14
schema_migrat: 100% |==========================================| Time: 00:00:01
deal_alerts: 100% |==========================================| Time: 00:00:07
payments: 100% |==========================================| Time: 00:00:00
images: 5% |== | ETA: 00:17:24
images: 27% |=========== | ETA: 00:16:31
images: 32% |============= | ETA: 00:20:37
images: 33% |============= | ETA: 00:20:23
images: 42% |================= | ETA: 00:23:40
images: 49% |==================== | ETA: 00:23:02
/usr/lib/ruby/gems/1.8/gems/taps-0.3.23/lib/taps/data_stream.rb:177:in `fetch_from_resource': uninitialized constant OkJson::Parser (NameError)
from /usr/lib/ruby/gems/1.8/gems/taps-0.3.23/lib/taps/data_stream.rb:131:in `fetch_remote'
from /usr/lib/ruby/gems/1.8/gems/taps-0.3.23/lib/taps/operation.rb:308:in `pull_data_from_table'
from /usr/lib/ruby/gems/1.8/gems/taps-0.3.23/lib/taps/operation.rb:301:in `loop'
from /usr/lib/ruby/gems/1.8/gems/taps-0.3.23/lib/taps/operation.rb:301:in `pull_data_from_table'
from /usr/lib/ruby/gems/1.8/gems/taps-0.3.23/lib/taps/operation.rb:284:in `pull_data'
from /usr/lib/ruby/gems/1.8/gems/taps-0.3.23/lib/taps/operation.rb:278:in `each'
from /usr/lib/ruby/gems/1.8/gems/taps-0.3.23/lib/taps/operation.rb:278:in `pull_data'
from /usr/lib/ruby/gems/1.8/gems/taps-0.3.23/lib/taps/operation.rb:253
from /usr/lib/ruby/gems/1.8/gems/taps-0.3.23/lib/taps/operation.rb:203:in `call'
from /usr/lib/ruby/gems/1.8/gems/taps-0.3.23/lib/taps/operation.rb:203:in `catch_errors'
from /usr/lib/ruby/gems/1.8/gems/taps-0.3.23/lib/taps/operation.rb:246:in `run'
from /usr/lib/ruby/gems/1.8/gems/taps-0.3.23/lib/taps/cli.rb:171:in `clientxfer'
from /usr/lib/ruby/gems/1.8/gems/heroku-1.17.16/lib/heroku/commands/db.rb:152:in `taps_client'
from /usr/lib/ruby/gems/1.8/gems/heroku-1.17.16/lib/heroku/commands/db.rb:25:in `pull'
from /usr/lib/ruby/gems/1.8/gems/heroku-1.17.16/lib/heroku/command.rb:48:in `send'
from /usr/lib/ruby/gems/1.8/gems/heroku-1.17.16/lib/heroku/command.rb:48:in `run_internal'
from /usr/lib/ruby/gems/1.8/gems/heroku-1.17.16/lib/heroku/command.rb:20:in `run'
from /usr/lib/ruby/gems/1.8/gems/heroku-1.17.16/bin/heroku:13
from /usr/bin/heroku:19:in `load'
from /usr/bin/heroku:19
@amal007
Copy link

amal007 commented Nov 9, 2011

I am also having the same issue. How is this issue fixed. Please help

Thanks
Amal

@sandipransing
Copy link
Author

heroku tap doesn't seems to allow highly loaded db pull operation. So we just skipped this operation and fetched images via URL

@mikeymicrophone
Copy link

is Parser a typo that should actually read ParserError (in ok_json.rb)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment