IBM / jupyterlab-s3-browser

A JupyterLab extension for browsing S3-compatible object storage
Apache License 2.0
119 stars 43 forks source link

Unable to see any objects in S3 (possibly problem with configuration) #51

Closed bkahloon closed 2 years ago

bkahloon commented 2 years ago

Describe the bug

Hi, this might not be a bug but rather me configuring the extension improperly but I'm unable to see any objects under the bucket icon (once clicked). I do see the following error message in the logs

404 GET /jupyterlab_s3_browser/auth?163007 (xx.xx.xxx.xxx) 19.64ms referer=http://localhost:9999/lab

To Reproduce Steps to reproduce the behavior:

  1. Installed jupyterlab-s3-browser (for jupyter lab 3) following the instructions in the main readme
  2. Refreshed AWS credentials (have a ~/.aws/credentials file available and also tried setting the values via env variables)
  3. Click on the bucket icon in the jupyter lab UI (saw no prompt come up to enter aws credentials), but see no objects or any errors
  4. Looked in the logs for jupyter lab and saw the error mentioned above (404 error)

Expected behavior

Expected to be able to see objects in S3 (at least the ones in the AWS account for which the credentials were configured)

Screenshots

image

Desktop (please complete the following information):

bkahloon commented 2 years ago

Was able to resolve

gopesh1992 commented 2 years ago

@bkahloon, can you pls explain how did you fix this issue, I am also facing similar issues. I have configured S3 browser in Jupyterlab as per given instructions in IBM/jupyterlab-s3-browser and set below three environment variables ,

export JUPYTERLAB_S3_ENDPOINT="https://s3.us.cloud-object-storage.appdomain.cloud" export JUPYTERLAB_S3_ACCESS_KEY_ID="my-access-key-id" export JUPYTERLAB_S3_SECRET_ACCESS_KEY="secret"

But I cant see the buckets when I click on S3 bucket icon in jupyterlab. FYI, used aws service account has all permission to access S3 bucket.

bkahloon commented 2 years ago

oh, can you click on the folder icon instead and see if that helps. I ended up using a different extention (s3contents) for my use case if that helps

gopesh1992 commented 2 years ago

@bkahloon , Folder icon does contain files that I have created like - notebook, text file etc..