-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Broken bundle install on AWS Ubuntu 16.04 via cloud-init #5376
Comments
To add https://github.com/sybrenstuvel/python-rsa/blob/master/CHANGELOG.md Regarding 4.6
|
Hi @MrLunar, I gave this a try on the same AMI provided with the same User Data script. My installation was successful, here's the end of the
Of note, I see a different version of rsa installed. Are you installing other things that may have a different dependency? |
Hi @kdaily I'll have a closer look tomorrow, but I can see that there have been 2 awscli releases since this was raised (yours installed .99) I can also see the following PR which has been merged since this was raised, so I wonder if this has (intentionally or not) fixed this issue? The PR pin version matches the one you installed. Thanks. |
@MrLunar - looks like it, and thanks for seeing that! I meant to highlight that I tried the latest ( |
@kdaily Can confirm this is now working for me with
|
Saw the same issue with awscli-1.18.99 and rsa-4.5 there was a similar issue: sybrenstuvel/python-rsa#129 |
Hi @mahsoud, this should only affect the bundle. Are you still experiencing this? |
Downgrading to |
Describe the bug
Since 10th July (
1.18.97
release), when launching a Ubuntu 16.04 instance on AWS EC2, attempting to install awscli within a User Data script will fail.There appears to have been a recent change in the dependency constraint for
rsa
. The bundle now includes version4.5
of this package. Unfortunately, this version appears to contain a regression from4.4
within it'ssetup.py
when noLANG
environment variable is present to specify UTF-8 encoding.During cloud-init scripts on Ubuntu 16.04s AMIs, there is no
LANG
environment variable. Thussetup.py
attempts to decode a UTF-8 file as ASCII, which results in a fatal error.This has resulted in instances now failing to launch.
A quick look at the rsa project appears to show this has been fixed in 4.6 with the re-addition of
encoding='utf-8'
tosetup.py
:https://github.com/sybrenstuvel/python-rsa/compare/version-4.5...version-4.6
SDK version number
aws-cli/1.18.97 Python/3.5.2 Linux/4.4.0-1110-aws botocore/1.17.20
Platform/OS/Hardware/Device
Ubuntu 16.04 on AWS EC2 (
ami-09623236df3ab2b4e
)To Reproduce (observed behavior)
Launch an AWS EC2 instance with a Ubuntu 16.04 AMI using the following User Data:
(The same can also be simulated manually by prefixing the install command with
LANG=
)Check for the error in
/var/log/cloud-init-output.log
(see output below).Expected behavior
For the installation to complete successfully.
Logs/output
The text was updated successfully, but these errors were encountered: