invalid byte sequence in UTF-8 Error installing homebrew - homebrew

Trying to reinstall homebrew on Yosemite and recieving the following error - I think it's something to do with my paths, which echo's like this:
Callams-MBP:Library callam$ echo $PATH
/opt/local/bin:/opt/local/sbin:VimCrypt~01!?΂T?-87Φo?VΕa???SMf???F_??;?_B)Z{ٖzq?#.??Ĕ? u????.?V:/opt/X11/bin:/usr/local/mysql/bin:/usr/bin:/bin
And the error I receive in console is:
remote: Counting objects: 180057, done.
remote: Compressing objects: 100% (49730/49730), done.
remote: Total 180057 (delta 129161), reused 180057 (delta 129161)
Receiving objects: 100% (180057/180057), 35.93 MiB | 766.00 KiB/s, done.
Resolving deltas: 100% (129161/129161), done.
From https://github.com/Homebrew/homebrew
* [new branch] master -> origin/master
HEAD is now at 3dcf8b5 subversion: update 1.8.9 bottle.
-e:192:in `split': invalid byte sequence in UTF-8 (ArgumentError)
from -e:192:in `<main>'
Any Ideas?

Related

Heroku Push failing Ruby Rails App error while loading shared libraries, file too short

I was trying to push a new version of my rails app to my Heroku account which sits on a Heroku-16 stack but suddenly it began failing with the following error:
[master 195f4f9] ...
1 file changed, 6 insertions(+), 1 deletion(-)
Counting objects: 15, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (15/15), done.
Writing objects: 100% (15/15), 1.66 KiB | 1.66 MiB/s, done.
Total 15 (delta 11), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Ruby app detected
remote: /app/tmp/buildpacks/f6d48d8a14fccbb19c0c0402fca224929d18e9ee042b3e204bc5992612e990d3b3a0fb1f9627b1a3bae11e9fa20dffc96e136bd734a2f3cf92a0d05bedd42cfe/vendor/ruby/heroku-16/bin/ruby: error while loading shared libraries: /app/tmp/buildpacks/f6d48d8a14fccbb19c0c0402fca224929d18e9ee042b3e204bc5992612e990d3b3a0fb1f9627b1a3bae11e9fa20dffc96e136bd734a2f3cf92a0d05bedd42cfe/vendor/ruby/heroku-16/bin/../lib/libruby.so.2.2: file too short
remote: ! Push rejected, failed to compile Ruby app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to myherokuapp.
remote:
To https://git.heroku.com/myherokuapp.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/myherokuapp.git'
I tried doing a bundle update, that did not solve anything. I also tried undoing recent changes to the code and that did not resolve the issue. Finally, I also checked Heroku status and there are no relevant incidents that they have reported. Any idea why this would be occurring?
I found the solution. I upgraded my ruby version in my gemfile to 2.3.7, one of the stated versions that Heroku says it supports and that seemed to resolve the issue.

No default language could be detected for this app

I push object to heroku. Run git push heroku master.
It said:
Counting objects: 124, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (113/113), done.
Writing objects: 100% (124/124), 23.86 KiB | 0 bytes/s, done.
Total 124 (delta 29), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: ! No default language could be detected for this app.
remote: HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically.
remote: See https://devcenter.heroku.com/articles/buildpacks
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to fast-spire-62625.
remote:
I googled that, but I did not find the right way to fix it!
Each language/buildpack has a bin/detect file used to detect if it can be used for that app.
That error indicates no default buildpacks were detected here.
The ruby buildpack relies on the presence of a Gemfile file at the top of your directory.
This error means that file wasn't found. Is this really a ruby project? Is it at the top of your directory or in a subfolder?
You can change the buildpack used by an application by setting the buildpack value. When the application is next pushed, the new buildpack will be used.
heroku buildpacks:set heroku/ruby
Refer this

Rails Heroku Gemfile.lock error - push rejected (open source)

I am trying to push my open source RoR application to Heroku but I'm having an issue making the initial push. I have read many similar questions, but none of those answers has helped to solve my problem. I have tried bundle update and bundle install various times. I also have tried removing and then re-committing my Gemfile.lock file, however I get this same error still...
$ git push heroku master
Counting objects: 5199, done.
Compressing objects: 100% (3086/3086), done.
Writing objects: 100% (5199/5199), 4.57 MiB | 131 KiB/s, done.
Total 5199 (delta 3418), reused 3152 (delta 1962)
-----> Removing .DS_Store files
-----> Ruby app detected
-----> Compiling Ruby/NoLockfile
!
! Gemfile.lock required. Please check it in.
!
! Push rejected, failed to compile Ruby app
To git#heroku.com:frozen-springs-4725.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:frozen-springs-4725.git'
Since my application uses MongoDB with MongoMapper, I suspect that I have some configuration incorrect. My code can be found here on Github (I'm currently working on the heroku branch). Feel free to clone our repository and try it yourself.
If anyone has any insight which could help me resolve this issue I would be very thankful!
Or better just run
git push heroku heroku:master
This will push your heroku branch to the master branch on heroku, which is the one heroku use's (Heroku ignores everything but the master branch).
Please read this article first.
Branches pushed to Heroku other than master will be ignored by this command. If you’re working out of another branch locally, you can either merge to master before pushing, or specify that you want to push your local branch to a remote master. To push a branch other than master, use this syntax:
$ git push heroku yourbranch:master

Cannot install gem from github on dev box

I have a gem file which works fine locally. In my gem file one of my gems installs using a github location like so...
gem 'rails3-jquery-autocomplete', :git => 'https://github.com/willfults/rails3-jquery-autocomplete.git'
The problem is when I run ssh into my dev box and run bundle or bundle install I get the following error on my server...
Fetching gem metadata from https://rubygems.org/..
Fetching https://github.com/willfults/rails3-jquery-autocomplete.git
fatal: failed to open '/srv/www/socialu.com/https://github.com/willfults/rails3-jquery-autocomplete.git/objects': No such file or directory
Git error: command `git clone 'https://github.com/willfults/rails3-jquery-autocomplete.git' "/srv/www/socialu.com/https:/github.com/willfults/rails3-jquery-autocomplete.git/ruby/1.9.1/cache/bundler/git/rails3-jquery-autocomplete-186d8dd59401e0d4dd8c2860261d9ba55e0793f2" --bare --no-hardlinks` in directory /srv/www/socialu.com has failed.
How can I resolve such? Thanks.
Update: with the git url I get the following...
Fetching git://github.com/willfults/rails3-jquery-autocomplete.git
remote: Counting objects: 1846, done. remote: Compressing objects:
100% (784/784), done. remote: Total 1846 (delta 1072), reused 1688
(delta 957) Receiving objects: 100% (1846/1846), 481.07 KiB | 764
KiB/s, done. Resolving deltas: 100% (1072/1072), done. ssh: Could not
resolve hostname /srv/www/socialu.com/https: Name or service not known
fatal: The remote end hung up unexpectedly Git error: command git
clone --no-checkout
"/srv/www/socialu.com/https:/github.com/willfults/rails3-jquery-autocomplete.git/ruby/1.9.1/cache/bundler/git/rails3-jquery-autocomplete-6e048304dc5207eafc457581b1fa2d0073d2e1ed"
"/srv/www/socialu.com/https:/github.com/willfults/rails3-jquery-autocomplete.git/ruby/1.9.1/bundler/gems/rails3-jquery-autocomplete-060f2bea5e46"
in directory /srv/www/socialu.com has failed. If this error persists
you could try removing the cache directory
'/srv/www/socialu.com/https:/github.com/willfults/rails3-jquery-autocomplete.git/ruby/1.9.1/cache/bundler/git/rails3-jquery-autocomplete-6e048304dc5207eafc457581b1fa2d0073d2e1ed'
It is a path issue, as you can see the URL is mixed with folder path.
Try to use git:// URL instead of https://.
Not sure if it will work, but it is a path issue somewhere.
Also check your rubygems version on the server, and update it if needed (latest is v1.8.24). There is something different on your machine if it works as is.
gem -v
Hope that helps.

Heroku deploy "Invalid RUBY_VERSION specified", worked yesterday

I was able to deploy to heroku yesterday just fine. We're on the cedar stack with a rails 3.2 application. When I deploy it gives me this:
$ git push -f heroku-ab-staging tmp-heroku-deploy-gochez_heroku_test-2012-05-08-10-43-39:master
Counting objects: 222, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (162/162), done.
Writing objects: 100% (191/191), 112.28 KiB, done.
Total 191 (delta 45), reused 13 (delta 0)
-----> Heroku receiving push
-----> Ruby/Rails app detected
!
! Invalid RUBY_VERSION specified: fatal:-Not-a-git-repository:-'.'-fatal:-Not-a-git-repository:-'.'-fatal:-Not-a-git-repository:-'.'-No-ruby-version-specified
! Valid versions: ruby-1.9.3-p0, ruby-1.9.3-p125, rbx-1.2.4, rbx-2.0.0dev-20120115-1.9, rbx-2.0.0dev-20120115-1.8, rbx-2.0.0dev-20120123-1.9, rbx-2.0.0dev-20120123-1.8, ruby-1.9.2-p290, jruby-1.6.5.1, jruby-1.6.7, ruby-1.9.3, ruby-1.9.2
!
! Heroku push rejected, failed to compile Ruby/rails app
To git#heroku.com:myapp.git
! [remote rejected] tmp-heroku-deploy-gochez_heroku_test-2012-05-08-10-43-39 -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:myapp.git'
(Note that I changed my real app's name to myapp for privacy concerns)
Any idea what might be causing this? It was working just fine yesterday. What debugging can I perform to figure out what the issue is?
We changed the undocumented API you were using and released official version ruby support: http://blog.heroku.com/archives/2012/5/9/multiple_ruby_version_support_on_heroku/ You'll now need to use Bundler 1.2.0 +. Let me know if you have questions.

Resources