please help solve the problem. i made on localhost rails4-application and push him on github. after i create account on heroku and connected to my github-repository and starting manual deploy.
in result i get follow error messages:
Gem files will remain installed in /tmp/build_fec37d1bef82a4e579ae08ae57b76a1b/zlodiak-skladik_kartinok-6533f10/vendor/bundle/ruby/2.0.0/gems/debugger-1.6.8 for inspection.
Results logged to /tmp/build_fec37d1bef82a4e579ae08ae57b76a1b/zlodiak-skladik_kartinok-6533f10/vendor/bundle/ruby/2.0.0/gems/debugger-1.6.8/ext/ruby_debug/gem_make.out
An error occurred while installing debugger (1.6.8), and Bundler cannot
continue.
Make sure that `gem install debugger -v '1.6.8'` succeeds before bundling.
!
! Failed to install gems via Bundler.
!
! Push rejected, failed to compile Ruby app
I tried all the solutions to this topic: heroku push rejected, failed to compile Ruby/rails app
but they did not help me
You can't install the debugger gem on Heroku and you probably don't want it there. Put it into a development group in your gem file so that it is available in your local development environment but not deployed in production, e.g.
group :development do
gem 'debugger'
end
See https://devcenter.heroku.com/articles/ruby-support#debugger-gems-fail-to-install for further explanation.
Related
I'm having a lot of trouble deploying my code to Heroku.
I started by going to the Heroku logs. And, the photo is what was there.
enter image description here
So, I ran bundle install and got the error
An error occurred while installing pg (1.2.3), and Bundler cannot
continue.
Make sure that `gem install pg -v '1.2.3' --source 'https://rubygems.org/'`
succeeds before bundling.
Eventually, I got that corrected. Just decided to work for some reason. Then, however, I started getting another error when trying to deploy. The error was:
remote: ! Failed to install gems via Bundler.
4:32
remote: ! Push rejected to brownsapp.
remote:
To https://git.heroku.com/brownsapp.git
! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/brownsapp.git'
I then tried git push --force heroku. No dice. Then it came to thinking that it was trying to deploy from the wrong branch. But the main branch is the only branch I have. I checked and made sure. Noticed that the terminal also said
Warning - The same version of this code has already been built:
So, I ran git commit --allow-empty -m "Redeploying" trying to get the app deployed.
No dice. Then I noticed another error saying:
Your bundle only supports platforms ["x86_64-darwin-18"] but your local platform
remote: is x86_64-linux.`
So, I ran the command bundle lock --add-platform x86_64-linux
And then the error continued to show. I tried deleting the Gemfile.lock file. That didn't help either. I'm at a compete loss. Any help would be appreciated.
I fixed my problem by adding the linux platform to my bundler Gemfile.lock with this commande.
bundle lock --add-platform x86_64-linux
Perhaps you can add it manually. Look for platform in your Gemfile.lock,
see the picture here for help https://i.stack.imgur.com/PLpya.png
I am running bundle update in the AWS environment but I am getting an error:
An error occurred while installing pg (0.20.0), and Bundler cannot continue.
Make sure that gem install pg -v '0.20.0' --source 'https://rubygems.org/' succeeds before bundling.
I am following the this tutorial. When I run git push Heroku master , it says it failed to install gems via bundler.
Im not sure why I cannot install the gems needed.
Any help or guidance would be greatly appreciated. Thank you
I don't know but i think you should run this step before bundling
gem install pg
Are you trying to deploy to AWS or Heroku?
If it's Heroku:
The pg version's that Heroku uses is: 0.21.0
So, you should put into your Gemfile:
gem 'pg', '0.21.0'
And then commit and push to Heroku
If it's AWS:
You should try just as #Kumar commented on your post...
I have been trying to install Rails on my Windows PC for the past days. I got the bundle from www.railsinstaller.org and it installed great. When creating a new application I can see that all the app files are created then I get the following error:
bundle install
DL is deprecated, please use Fiddle Fetching gem metadata from
https://rubygems.org/.......... Resolving dependencies...
Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0
state=SSLv3 read server certificate B : certificate verify failed
(https://rubygems.org/gems/rake-10.4.2.gem) An error occurred while
installing rake (10.4.2), and Bundler cannot continue. Make sure that
gem install rake -v '10.4.2' succeeds before bundling.
Hoping someone can help with resolving this.
This link could be helpful.
Creating a Ruby on Rails environment on Windows, in a VM Vagrant Box
Instead of install ROR directly onto Windows, you might want to use a Linux like OS. Not because Rails environment cannot be setup in Windows. But all the problems you will encounter, especially when most of tools are designed for that when you are not using a Linux like OS and try to mimic that.
But I highly recommend you skip doing all that if you are just trying to learn, and use Nitrous.io, which is an online IDE that gives you all the tool.
IMHO, dealing with Windows in this case is a waste of time.
First message:
DL is deprecated, please use Fiddle Fetching gem metadata ..
is a warning message. You read about it here.
The main error is encountered while installing rake.
An error occurred while installing rake (10.4.2), and Bundler cannot
continue. Make sure that gem install rake -v '10.4.2' succeeds before
bundling.
To solve this, you should first update Rubygems:
gem update --system
And then update Bundler:
gem install bundler
I simply run
gem update --system
and it fixed. More info please check bundle install fails with SSL certificate verification error
I'm a Ruby novice working on a Rails application. We're trying to speed up our installs by running a local gem server instead of always going out to rubygems.org. I found that running the command:
gem server
sets this up, with the server running at localhost 8808. However when I add a source line for that URL to my Gemfile, and then run "bundle install", it fails after a minute or so saying:
Gem::RemoteFetcher::FetchError: bad response Not Found 404 (http://localhost:8808/gems/rake-10.3.1.gem)
An error occurred while installing rake (10.3.1), and Bundler cannot continue.
Make sure that `gem install rake -v '10.3.1'` succeeds before bundling.
If I browse to that server, I see a page saying that Rake, version 10.3.1 is installed, but when I go to the listed URL, I do get a 404 page. After running the gem install command, I still get a 404 page, but the bundle install gets a step further and fails with:
Gem::RemoteFetcher::FetchError: bad response Not Found 404 (http://localhost:8808/gems/activesupport-3.2.12.gem)
An error occurred while installing activesupport (3.2.12), and Bundler cannot continue.
Make sure that `gem install activesupport -v '3.2.12'` succeeds before bundling.
What's going on here? I have both source lines in my Gemfile, so I'd expect the bundler to go out to rubygems.org for anything it couldn't find locally, but it also seems like the gems are in fact installed locally already. Do I have to run individual installs on each gem dependency? I'm sure I'm doing something obviously wrong here, but I'm don't know what it is.
This is a decent walkthrough of a few situations you might encounter while setting up a gem server: http://guides.rubygems.org/run-your-own-gem-server/
This one isn't half-bad either, if you're looking to just use local versions of gems (though this technique doesn't set up a separate gem server): https://coderwall.com/p/tqdrhq
Anyonw have any idea what's happening with the aws-sdk gem. I noticed this popped up in one of my applications today and it's effecting more then one now. I get the same error in all app's yet the link to the gem seems to be working.
On Heroku
Gem::RemoteFetcher::FetchError: bad response Not Found 404 (https://s3.amazonaws.com/production.s3.rubygems.org/gems/aws-sdk-1.19.0.gem)
An error occurred while installing aws-sdk (1.19.0), and Bundler cannot
continue.
Make sure that `gem install aws-sdk -v '1.19.0'` succeeds before bundling.
!
! Failed to install gems via Bundler.
!
! Push rejected, failed to compile Ruby/Rails app
And locally:
$ gem install aws-sdk
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
bad response Not Found 404 (http://production.cf.rubygems.org/gems/aws-sdk-1.19.0.gem)
Thanks in advance.
Looks like a botched deploy of some kind, version 1.18.0 looks like it's available. 1.19.0 was released today, do you really need to be using that version? Did you do a bundle update across your whole application or something that may have forced all gems to update? Don't do that! :)
Might want to let them know: https://github.com/aws/aws-sdk-ruby