MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.29k stars 21.47k forks source link

Failure on git push to Azure #21164

Closed jf0rce closed 5 years ago

jf0rce commented 5 years ago

After I added the local git deployment URL and went to do my initial push, I received the following output.

2018-12-21T18:06:08.308818062Z
2018-12-21T18:06:08.308850164Z /
\ __
___ ___
2018-12-21T18:06:08.308867764Z / /
\ _
/ | _ _/ \ 2018-12-21T18:06:08.308871665Z / | \/ /| | /| | \/\ / 2018-12-21T18:06:08.308875065Z __| /__ __/ |_| \ > 2018-12-21T18:06:08.308878665Z \/ \/ \/ 2018-12-21T18:06:08.308882265Z A P P S E R V I C E O N L I N U X 2018-12-21T18:06:08.308885765Z 2018-12-21T18:06:08.308888965Z Documentation: http://aka.ms/webapp-linux 2018-12-21T18:06:08.308892165Z Ruby quickstart: https://aka.ms/ruby-qs 2018-12-21T18:06:08.308895466Z 2018-12-21T18:06:08.457022751Z Starting OpenBSD Secure Shell server: sshd. 2018-12-21T18:06:08.950064171Z Bundle install with no 'without' options 2018-12-21T18:06:08.950226578Z Defaulting gem installation directory to /tmp/bundle 2018-12-21T18:06:08.966187855Z Defaulting site config directory to /home/site/config 2018-12-21T18:06:08.966319761Z Secret key base present 2018-12-21T18:06:08.966585172Z RAILS_ENV not set, default to production 2018-12-21T18:06:08.966678476Z Removing any leftover pids if present 2018-12-21T18:06:08.988073384Z Running bundle check 2018-12-21T18:06:09.500924245Z rbenv: version 2.4.1' is not installed (set by /home/site/wwwroot/.ruby-version) 2018-12-21T18:06:10.047876053Z rbenv: version2.4.1' is not installed (set by /home/site/wwwroot/.ruby-version) 2018-12-21T18:06:10.055212864Z missing dependencies, try redeploying

I did have a .ruby-version file present in my project, but removed it and am still receiving the following output. Please advise


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

jf0rce commented 5 years ago

Never mind, I fixed this by putting a new .ruby-version file in the repo with the supported Ruby version.

Thanks!

Grace-MacJones-MSFT commented 5 years ago

@joeoftheforsythe we are glad you were able to resolve your issue!

daltonrenaldo commented 5 years ago

@joeoftheforsythe what is the supported ruby version? because I am having the same issue

cephalin commented 5 years ago

@daltonrenaldo As shown in the doc, run az webapp list-runtimes --linux in the Cloud Shell to see.

daltonrenaldo commented 5 years ago

@cephalin I did... and it still wondering work for ruby-2.4 which is listed. I finally removed the .ruby-version file, and I got a new error saying that my ruby version was 2.4.5, but gemfile specified something else. So I updated gemfile, re-added the .ruby-version with 2.4.5 and that seems to work...

however, the containers have older version of bundler install, which still prevents them from running bundle install... :(

cephalin commented 5 years ago

@daltonrenaldo Did you try to create a 2.4 web app? The tutorial was written for 2.3 so trying to run it on a different ruby image could get errors.

daltonrenaldo commented 5 years ago

I did create a 2.4 web app, cause az webapp list-runtimes --linux returned

"RUBY|2.3",
"RUBY|2.4",
...

and since I was already using 2.4 locally and it's the latest, seem like it was the way to go . Why is it returning things that it doesn't actually support is beyond me. :(

cephalin commented 5 years ago

@daltonrenaldo I'm not saying that Azure doesn't support 2.4 as it indicates, but that the tutorial (or rather, the sample) was written for 2.3 and was tested to work with 2.3, not 2.4.