-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ruby 2.0 is unmaintained - also cannot install on Ubuntu LTS #61
Comments
Btw, I've tried manually compiling Ruby 2.0, using rvm, all to no avail – the CodeDeploy agent install script insists on a "ruby2.0" package being available and will not accept the manually installed version |
You can work around this by installing Ruby 2.0 from the Brightbox Ruby NG PPA Right now they don't have a PPA for 16.04 so you'll have to add the PPA for 15.10 but that ruby package currently installs without issue on 16.04.
|
@Raniz85 great, thanks for the instructions on how to do this – these should definitely be added to the official documentation I was using brightbox earlier on 15.10, but had issues adding the repo on 16.04 – glad it works by adding it manually In any case, if AWS have any investment in CodeDeploy going forward they should definitely move off ruby2.0. I'd really like to see an official comment on this. |
👍 we really need an update to this. |
+1 |
2 similar comments
+1 |
+1 |
+1 :) My workaround for this was to create an fake package named ruby2.0 which only includes a symoblic link to the current ruby. Works like a charm and no need to have another ruby environment. |
Is it the case that it actually works fine on ruby 2.3? There is a PR that has been open for 11 days that simply changes what version the agent checks for: #62 |
We are actually actively working on relaxing the hard dependency on ruby2.0 now. Next release of the host agent should work with ruby versions >= 2.0 |
I couldn't find any technical reason why this agent shouldn't work on ruby 2.3, except for the hardcoded version in the scripts :) |
I forked this and am now building a deb package with fpm for our use until the official version supports ruby > 2.0. https://github.com/bdashrad/aws-codedeploy-agent It runs on xenial fine, the only actual change to the code is changing |
On Redhat/CentOS you just read the banner which is displayed on installation failure and do something like This worked for me perfectly.
|
@timurb this won't work on ubuntu since the deb package requires ruby2.0 to be installed. |
@n1tr0g is that really dependency or simple checking for in CentOS that's postinst script |
@timurb it's a package dependency in Ubuntu .... |
Any news here? |
Yea, it has been a month since the last update. Is there any news on when the latest ubuntu lts will be supported and the unmaintained version of ruby will not longer be required? |
+1 |
Had a nice few hours messing around with this, ended up using @Raniz85 solution.. Might have been worth thinking about writing the agent in something a bit more portable like go.. |
After Ruby 2.0 installation, codedeploy agent still can't be installed on Debian 8 (Jessie). +1 |
Everybody should talk to his TAM and request an update. |
+1 |
RE TAM, good idea. I just sent a note. |
TAM? On 18 Jul 2016 21:22, "9sparkfuls" notifications@github.com wrote:
|
Installing a fake version of the
|
sudo add-apt-repository ppa:brightbox/ruby-ng |
@feverLu any updates here? CodeDeploy Agent installs are still failing on 16.04 instances because of the hard requirement on ruby2.0. |
@arojeff oh ok, so they have a PPA for 16.04 now? That must have changed recently: #61 (comment) |
@mhart - Yes, that worked for me! |
Kinda stunned that here it is September and AWS still hasn't fixed this and we have to work around it. C'mon Amazon get your shit in gear. |
Folks, we are working on fixing the Ruby 2.0 dependency issue. We released agent version 1.0.1.1011 which was the first step to fixing the problem, but we had to roll it back due to some issues we discovered. We are trying to address the issues and test the agent thoroughly before the next release, which should roll out in a couple of weeks. |
@arojeff This has worked for the Ubuntu 16.04 Marketplace AMI and the new AMI in the quick launch. I still much rather have a supported version of Ruby though. @ambareesha Please keep us up to date. |
Come on AWS, fix this.... Workaround: |
@ambareesha How many more weeks is this likely to take? No offense, but this is pretty awful. |
@apenney, we are in the process of rolling out the first set of changes this week (a couple of big regions done and some more to go). This set of changes will upgrade the preinstalled agent to using Ruby2.x. Once that goes through, we will release the updated installers. I'm expecting it to be a few more weeks before you can install on Ruby2.x. Thanks for your patience! In the meantime, have you tried @klatu201's workaround? That should unblock you for the moment. |
following @klatu201 's workaround and then continuing with AWS' docs works |
We have released host agent version 1.1037 which gets us halfway through the Ruby2.x migration process. The current agent invokes the latest version of ruby installed on the system. Next steps: |
in the meantime, is there any way to just give us a flag that will run the right interpreter. I have RVM installed with ruby 2.0 available. If I could just point this script at that, I would not need to make a dummy ruby 2.0 package on my production machine just to install this logging agent. It's also worth noting that ubuntu 16.04 is now the free tier eligible ubuntu image, as opposed to a short time ago when it was 14.04 |
+1 |
Thank you all for your patience. |
Confirmed that the steps outlined in the docs now work for Ubuntu 16.04 (in The description of the messages from $ sudo service codedeploy-agent status
● codedeploy-agent.service - LSB: AWS CodeDeploy Host Agent
Loaded: loaded (/etc/init.d/codedeploy-agent; bad; vendor preset: enabled)
Active: inactive (dead)
Docs: man:systemd-sysv-generator(8) Then after $ sudo service codedeploy-agent status
● codedeploy-agent.service - LSB: AWS CodeDeploy Host Agent
Loaded: loaded (/etc/init.d/codedeploy-agent; bad; vendor preset: enabled)
Active: active (exited) since Sat 2016-11-26 16:16:28 UTC; 20s ago
Docs: man:systemd-sysv-generator(8)
Process: 9082 ExecStart=/etc/init.d/codedeploy-agent start (code=exited, status=0/SUCCESS)
Nov 26 16:16:28 ip-172-31-30-252 systemd[1]: Starting LSB: AWS CodeDeploy Host Agent...
Nov 26 16:16:28 ip-172-31-30-252 codedeploy-agent[9082]: Starting codedeploy-agent:
Nov 26 16:16:28 ip-172-31-30-252 systemd[1]: Started LSB: AWS CodeDeploy Host Agent. Anyway, closing this for now – if others have problems getting this running, probably best to open separate issues – the main concern has been addressed. Thanks all! |
It seems that the documentation still states 16.04 isn't supported; it would be good to update that as well, if someone can: http://docs.aws.amazon.com/codedeploy/latest/userguide/host-cleanup.html#how-to-run-agent-supported-oses |
Hi I am seeing this issue on eu-west-2. It looks like the agent deb file is not up to date (1.0-1.1011.1). Can you also update that region please?
|
sc-pulsion@, we have uploaded the latest agent to eu-west-2 |
The specific requirement for "ruby2.0" means that CodeDeploy cannot be installed on Ubuntu 16.04 LTS.
Considering that maintenance for Ruby 2.0 ended in February 2016, CodeDeploy is now relying on an unmaintained version. It was advised well over a year ago to move all Ruby 2.0 projects to a newer version.
This also means that the CodeDeploy install instructions no longer work for Ubuntu as they say they should.
How should users who are on Ubuntu LTS install the CodeDeploy agent?
Is CodeDeploy still going to be maintained going forward? (Ruby 2.0 is over three years old now!)
The text was updated successfully, but these errors were encountered: