Downloading Data from ICGC via Amazon AWS EC2
0
0
Entering edit mode
7 weeks ago
Hashirama ▴ 20

Dear community,

I have some troubles using the score-client 5.8.1 on an Amazon AWS EC2 instance. I followed all the steps provided by their website https://docs.icgc.org/download/downloading-data/#downloading-data-from-the-aws-repository and I installed the client from Tarball like described here: https://docs.icgc.org/download/guide/#install-from-tarball.

When I finally try to download download the data with the command:

ubuntu@ip-172-31-92-41:~/score-client-5.8.1$ bin/score-client download --object-id 5a5e6e82-b33d-5c16-9cae-2ef92d22d64a --output-dir data

The following error occurs:

ERROR: Command error: java.io.IOException: Amazon S3 error: FORBIDDEN: If you are trying to connect to the AWS S3 Repository, you need to be running ths ICGC client on an EC2 VM instance<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>InvalidAccessKeyId</Code><Message>The AWS Access Key Id you provided does not exist in our records.</Message><AWSAccessKeyId>AKIAIDAITD7JYHCF4URQ</AWSAccessKeyId><RequestId>T43T2JTX6FZV4YF7</RequestId><HostId>Du8T2FNCLQcfmurxcqFmvKPK4GZ7jonh53tCZkauYJbO0aF7aP8kc6xG1gS6IoVkCohwXZ2Eo9M=</HostId></Error>

I think that there is a problem editing the Accestoken into the config file for score-client on the AWS VM as I am not sure how to edit the application.properties file to add the generated acesss token.

I even tried installing the client from Docker Image but even there I get the same Error.

The file I am trying to download is: https://dcc.icgc.org/repositories/files/FI824948

Could someone please provide help how to download the file by Amazon AWS EC2? Or do you know other more convenient ways to download the file?

I would be glad for any help!

Kind regards, Hashirama

ICGC Token • 215 views
ADD COMMENT
1
Entering edit mode

Error seems to be clear:

The AWS Access Key Id you provided does not exist in our records.

As for the other question:

I am not sure how to edit the application.properties file to add the generated acesss token.

Looks like you simply need to copy and paste the token in the application.properties file. Use a programmers editor like NoptePad++ (PC) or bbEdit (macos).

#
# Defines the ICGC access token for authorized access to data
# 
accessToken=**paste_your_aws_token_here** <- replace this part with the token
ADD REPLY

Login before adding your answer.

Traffic: 2393 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6