-
Notifications
You must be signed in to change notification settings - Fork 387
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
Google / Amazon menus not visible, S3 access not working #1607
Comments
This is a known issue introduced in release 2.18.2. We have a fix but its not been released. In the interim you can either (1) use 2.18.1, or (2) use the development snapshot build. You can download 2.18.1 from the archive
The development snapshot is available at
Note the special instructions if you are on a Mac The webapp does not support S3 credentials, a web application has no access to your disk, including of course ~/.aws |
Duplicate of #1598 |
Thanks — it doesn't work for me with 2.18.1 either (menus not visible, and loading from an S3 URL gives the error above). |
The fact that the Amazon menu does not appear implies that IGV could not read the credentials file. It relies on the AWS SDK to do this, which looks in various places including, on my Mac, in ~/.aws/credentials. Could you look in the IGV log file, located in the "igv" folder in your home directory, and see if there are any errors? The file name is usually igv0.log. The Google menu does not appear by default, you have to enable it in the preferences. |
Here's the error from the log:
I'm using sso, and have both ~/.aws/config and ~/.aws/credentials. |
This might be the cause, but I am not enough of an AWS expert to know what to do about it. However it is a clue
Do you have an oauth provisioning profile set (in the IGV preferences)? You should not, if using ~/.aws/credentials. |
Actually I don't think the AWS_WEB_IDENTITY_TOKEN_FILE is the real issue here, it shouldn't even get that far if it successfully read ~/.aws/credentials for the access key. It would read this on startup. |
Apologies for the train of messages, I am far from an AWS expert, but you might be using an Amazon option (SSO) that IGV does not support. The authentication options are repeated below from the IGV readme, (1) setting access key and secret in ~/.aws/credentials, and (2) configuring Cognito as described in the link.
|
These instructions might be relevant https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/setup.html |
If ~/.aws/credentials is available, is anything else needed? This is also what I'm using to view the same BAMs with samtools, which hasn't been an issue. |
Figured it out — it seems like the sso information in ~/.aws/config was the problem. Simplifying it to the following worked:
|
I was just about to suggest that. From the instructions posted above, when using SSO it looks like you have to sign in from the command line with SSO before accessing with Java (IGV). I have no idea what samtools is doing, it is probably ignoring SSO configuration altogether and just accessing .aws/credentials directly. |
Is it possible there is an error in your original .aws/config? If samtools just ignores the SSO option this would explain how it worked. The real test would be can you access the files via SSO from the command line. |
I don't think so — CLI access worked fine. I only needed ~/.aws/credentials for samtools. |
OK, well once again instructions for using SSO with Java programs are here: https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/setup.html. This section on signing in from the CLI is especially interesting, its seems a bit strange to me but worth a try: https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/setup.html#setup-login-sso |
Hi,
I'm having trouble accessing BAMs on s3, with both the Mac desktop and web apps. On the desktop app, the Google and Amazon menu aren't visible (I tested multiple versions, including 2.18.4). The credentials in ~/.aws/credentials work, and I can access the BAMs using samtools for example.
When I try to load a BAM with the desktop app, I get the following error
The text was updated successfully, but these errors were encountered: