ruby on rails - Git pull error: "fatal: Couldn't find remote ref master" from Heroku -


i upload application on heroku. face problems. problem: fatal: 'priroda' not appear git repository?

~/priroda$ git pull fatal: 'priroda' not appear git repository fatal: remote end hung unexpectedly  ~/priroda$ git remote -v     heroku  git@heroku.com:secure-anchorage-3129.git (fetch)     heroku  git@heroku.com:secure-anchorage-3129.git (push)     origin  priroda (fetch)     origin  priroda (push) 

when add command: git push heroku master receive many mistakes:

~/priroda$ git remote add origin git@heroku.com:secure-anchorage-3129.git  ~/priroda$ git pull origin master initializing repository, done. fatal: couldn't find remote ref master  ~/priroda$ git push heroku master initializing repository, done. counting objects: 117, done. delta compression using 4 threads. compressing objects: 100% (104/104), done. writing objects: 100% (117/117), 126.46 kib, done. total 117 (delta 16), reused 0 (delta 0)  -----> ruby app detected -----> compiling ruby/rails -----> using ruby version: ruby-2.0.0 -----> installing dependencies using 1.6.3        running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment        gemfile lists gem pg (>= 0) more once.        should keep 1 of them.        while it's not problem now, cause errors if change version of 1 of them later.        fetching gem metadata https://rubygems.org/.......        fetching additional metadata https://rubygems.org/..        installing multi_json 1.10.1        installing rake 10.3.2        installing i18n 0.6.9        installing builder 3.0.4        installing journey 1.0.4        installing erubis 2.7.0        installing hike 1.2.3        installing rack 1.4.5        installing tilt 1.4.1        installing mime-types 1.25.1        installing polyglot 0.3.5        installing arel 3.0.3        installing acts_as_indexed 0.8.3        installing tzinfo 0.3.39        installing addressable 2.3.6        installing babosa 0.3.11        installing coffee-script-source 1.7.0        installing execjs 2.2.0        installing thor 0.19.1        installing orm_adapter 0.5.0        installing excon 0.37.0        installing bcrypt 3.1.7        installing netrc 0.7.7        installing json 1.8.1        using bundler 1.6.3        installing rubyzip 1.1.4        installing rails_serve_static_assets 0.0.2        installing rails_stdout_logging 0.0.3        installing sass 3.3.8        installing truncate_html 0.9.2        installing will_paginate 3.0.5        installing activesupport 3.2.18        installing rails-i18n 0.7.4        installing rack-cache 1.2        installing rack-test 0.6.2        installing rack-ssl 1.3.4        installing warden 1.2.3        installing dragonfly 0.9.15        installing sprockets 2.2.2        installing rest-client 1.6.7        installing treetop 1.4.15        installing launchy 2.4.2        installing coffee-script 2.2.0        installing bcrypt-ruby 3.1.5        installing heroku-api 0.3.18        installing uglifier 2.5.1        installing rdoc 3.12.2        installing rails_12factor 0.0.2        installing activemodel 3.2.18        installing mail 2.5.4        installing heroku 3.8.4        installing sdoc 0.3.20        installing actionpack 3.2.18        installing activerecord 3.2.18        installing activeresource 3.2.18        installing actionmailer 3.2.18        installing routing-filter 0.3.1        installing railties 3.2.18        installing awesome_nested_set 2.1.6        installing friendly_id 4.0.10.1        installing globalize 3.1.0        installing coffee-rails 3.2.2        installing refinerycms-i18n 2.1.0        installing devise 2.2.8        installing decorators 1.0.3        installing rails 3.2.18        installing jquery-rails 2.3.0        installing sass-rails 3.2.6        installing seo_meta 1.4.0        installing pg 0.17.1        installing refinerycms-core 2.1.2        installing refinerycms-dashboard 2.1.2        installing refinerycms-authentication 2.1.2        installing refinerycms-images 2.1.2        installing refinerycms-pages 2.1.2        installing refinerycms-resources 2.1.2        installing refinerycms-acts-as-indexed 1.0.0        installing refinerycms 2.1.2        bundle complete!        gems in groups development , test not installed.        installed ./vendor/bundle        post-install message bcrypt-ruby:        #######################################################        bcrypt-ruby gem has changed name bcrypt.  instead of        installing `bcrypt-ruby`, should install `bcrypt`.  please update        dependencies accordingly.        #######################################################        post-install message rdoc:        depending on version of ruby, may need install ruby rdoc/ri data:        <= 1.8.6 : unsupported        = 1.8.7 : gem install rdoc-data; rdoc-data --install        = 1.9.1 : gem install rdoc-data; rdoc-data --install        >= 1.9.2 : nothing do! yay!        post-install message heroku:        !    `heroku` gem has been deprecated , replaced heroku toolbelt.        !    download , install from: https://toolbelt.heroku.com        !    api access, see: https://github.com/heroku/heroku.rb        post-install message friendly_id:        note: friendlyid 4.x breaks compatibility 3.x. if you're upgrading        3.x, please see document:        http://rubydoc.info/github/norman/friendly_id/master/file/whatsnew.md        post-install message globalize:        globalize has extracted versioning support separate gem named        globalize-versioning. if using versioning (with paper_trail        or other versioning gem), please add line        "gem 'globalize-versioning'" gemfile , go github        page @ globalize/globalize-versioning if encounter problems.        note globalize-versioning gem not delegate versions        translation table, have update syntax        form: `post.translation.versions`. see globalize-versioning        readme details.        bundle completed (25.95s)        cleaning bundler cache. -----> writing config/database.yml read database_url -----> preparing app rails asset pipeline        running: rake assets:precompile        connecting database specified database_url        rake aborted!        pg::connectionbad: not connect server: connection refused        server running on host "127.0.0.1" , accepting        tcp/ip connections on port 5432?        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/postgresql_adapter.rb:1222:in `initialize'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/postgresql_adapter.rb:1222:in `new'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/postgresql_adapter.rb:1222:in `connect'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/postgresql_adapter.rb:324:in `initialize'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/postgresql_adapter.rb:28:in `new'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/postgresql_adapter.rb:28:in `postgresql_connection'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_pool.rb:315:in `new_connection'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_pool.rb:325:in `checkout_new_connection'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_pool.rb:247:in `block (2 levels) in checkout'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `loop'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `block in checkout'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_pool.rb:239:in `checkout'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_pool.rb:102:in `block in connection'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_pool.rb:101:in `connection'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_pool.rb:410:in `retrieve_connection'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_specification.rb:171:in `retrieve_connection'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in `connection'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/model_schema.rb:310:in `clear_cache!'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/railtie.rb:103:in `block (2 levels) in <class:railtie>'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:418:in `_run__2404055040551563881__prepare__433825113203608011__callbacks'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:405:in `__run_callback'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:385:in `_run_prepare_callbacks'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/callbacks.rb:81:in `run_callbacks'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.18/lib/action_dispatch/middleware/reloader.rb:74:in `prepare!'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.18/lib/action_dispatch/middleware/reloader.rb:48:in `prepare!'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/application/finisher.rb:47:in `block in <module:finisher>'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/initializable.rb:30:in `instance_exec'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/initializable.rb:30:in `run'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/initializable.rb:55:in `block in run_initializers'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/initializable.rb:54:in `each'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/initializable.rb:54:in `run_initializers'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/application.rb:136:in `initialize!'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/railtie/configurable.rb:30:in `method_missing'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/config/environment.rb:5:in `<top (required)>'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in `require'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in `block in require'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:236:in `load_dependency'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in `require'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/application.rb:103:in `require_environment!'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/application.rb:305:in `block (2 levels) in initialize_tasks'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.18/lib/sprockets/assets.rake:93:in `block (2 levels) in <top (required)>'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.18/lib/sprockets/assets.rake:60:in `block (3 levels) in <top (required)>'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.18/lib/sprockets/assets.rake:23:in `invoke_or_reboot_rake_task'        /tmp/build_c4c36556-f948-4d00-9345-e2e4903f11f4/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.18/lib/sprockets/assets.rake:29:in `block (2 levels) in <top (required)>'        tasks: top => environment        (see full trace running task --trace)  !  !     precompiling assets failed.  !     attempted access nonexistent database:  !     https://devcenter.heroku.com/articles/pre-provision-database  !   !     push rejected, failed compile ruby app  git@heroku.com:secure-anchorage-3129.git  ! [remote rejected] master -> master (pre-receive hook declined) error: failed push refs 'git@heroku.com:secure-anchorage-3129.git' ~/priroda$ 

you need add origin remote:

  1. delete current one

    git remote rm origin

  2. add git remote link ex: (https://user@bitbucket.org/test.git or https://github.com/user/test.git)

    git remote add origin link

  3. git pull origin master (or other branch)

if trying pull app heroku

git pull heroku master 

or if try upload new version heroku

git push heroku master 

[edit]

please fallow tutorial, when reach bottom of page click on rails.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -