aws / opsworks-cookbooks

Chef Cookbooks for the AWS OpsWorks Service
Other
1.05k stars 1.23k forks source link

Can't download RPM package for nodejs on Amazon Linux 2016.09 #407

Closed rramsden closed 7 years ago

rramsden commented 7 years ago

Related https://github.com/aws/opsworks-cookbooks/issues/399 (not sure why the author closed the ticket)

I'm trying to setup nodejs 0.12.10 on AWS Linux 2016.09. However, the package URL is returning a 403 and won't let me provision an instance.

Opsworks Error Log

[2017-04-04T03:16:08+00:00] DEBUG: Sending HTTP Request via GET to opsworks-instance-assets-ap-northeast-1.s3.amazonaws.com:443/packages/amazon/2016.09/opsworks-nodejs-0.12.10-1.x86_64.rpm
[2017-04-04T03:16:08+00:00] DEBUG: Streaming download from https://opsworks-instance-assets-ap-northeast-1.s3.amazonaws.com/packages/amazon/2016.09/opsworks-nodejs-0.12.10-1.x86_64.rpm to tempfile /tmp/chef-rest20170404-1921-1u0xq7z-0
[2017-04-04T03:16:08+00:00] INFO: Retrying execution of remote_file[/tmp/opsworks-nodejs-0.12.10-1.x86_64.rpm], 1 attempt(s) left
[2017-04-04T03:16:10+00:00] DEBUG: remote_file[/tmp/opsworks-nodejs-0.12.10-1.x86_64.rpm] checking for changes
[2017-04-04T03:16:10+00:00] DEBUG: Sending HTTP Request via GET to :/
[2017-04-04T03:16:10+00:00] ERROR: Connection refused connecting to : for /, retry 1/5
[2017-04-04T03:16:15+00:00] ERROR: Connection refused connecting to : for /, retry 2/5
[2017-04-04T03:16:20+00:00] ERROR: Connection refused connecting to : for /, retry 3/5
[2017-04-04T03:16:25+00:00] ERROR: Connection refused connecting to : for /, retry 4/5
[2017-04-04T03:16:30+00:00] ERROR: Connection refused connecting to : for /, retry 5/5
[2017-04-04T03:16:35+00:00] DEBUG: remote_file[/tmp/opsworks-nodejs-0.12.10-1.x86_64.rpm] cannot be downloaded from 
[2017-04-04T03:16:35+00:00] INFO: Retrying execution of remote_file[/tmp/opsworks-nodejs-0.12.10-1.x86_64.rpm], 0 attempt(s) left

SSH in opsworks instance

$ wget https://opsworks-instance-assets-ap-northeast-1.s3.amazonaws.com/packages/amazon/2016.09/opsworks-nodejs-0.12.11-1.x86_64.rpm
--2017-04-04 04:45:01--  https://opsworks-instance-assets-ap-northeast-1.s3.amazonaws.com/packages/amazon/2016.09/opsworks-nodejs-0.12.11-1.x86_64.rpm
Resolving opsworks-instance-assets-ap-northeast-1.s3.amazonaws.com (opsworks-instance-assets-ap-northeast-1.s3.amazonaws.com)... 52.219.68.125
Connecting to opsworks-instance-assets-ap-northeast-1.s3.amazonaws.com (opsworks-instance-assets-ap-northeast-1.s3.amazonaws.com)|52.219.68.125|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2017-04-04 04:45:01 ERROR 403: Forbidden.
githuesch commented 7 years ago

On Amazon Linux 2016.09 you will have to use Node.js 0.12.15 or higher, up to 0.12.18. Looking at the documentation page in question, I notice that more recent versions are missing there, but they will be available for download.