HumanSignal / label-studio

Label Studio is a multi-type data labeling and annotation tool with standardized output format
https://labelstud.io
Apache License 2.0
18.28k stars 2.29k forks source link

Problem updating S3 bucket ownership #2261

Open mpuccini opened 2 years ago

mpuccini commented 2 years ago

Describe the bug I've an image classification project which load images from a S3 bucket (hosted on a Ceph object storage cluster). When i've changed bucket ownership on the Object Storage, i've changed keys into the project -> settings -> cloud storage. I've been able to connect and sync but fail to load images on the main project page and when trying to load the single image.

To Reproduce Steps to reproduce the behavior:

  1. Go to your Object Storage external service, change your bucket ownership with a new user
  2. Go to 'Your project' -> settings -> Cloud Storage
  3. Click on '3 dots'
  4. Scroll down to 'Edit'
  5. Change 'Access Key ID' and 'Secret Access Key' with the one of the new user
  6. Try to connect and sync to bucket with this new configuration
  7. Go 'Project' page
  8. Click on 'Your project'
  9. You're not able to see images thumbs
  10. Click on a image
  11. You're not able to see the image and get the error page saying that cannot reach 's3:///'

Expected behavior I expect to see the images thumbs list in the main page of my project and load each single image for labelization work.

Environment (please complete the following information):

Additional context Label Studio is running as a docker container with docker-compose.

AbubakarSaad commented 2 years ago

Is it possible docker is caching and not updating the keys or secrets. Can you try restarting the docker container?