question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug when using storage locally with docker-compose

See original GitHub issue

Bug report

Describe the bug

I’ve been trying to have Supabase running locally in my computer for testing purposes. I’m using the docker-compose file and I managed to have everything up and running. When I try to connect to the DB everything seems to be working fine, but when I try to use the storage module to upload/retrieve a picture I get the following error:

The file system does not support extended attributes or has the feature disabled

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Use the docker-compose file to launch Supabase locally
  2. Create a bucket in the storage DB (I did this with pgadmin4)
  3. Try to upload a picture to the storage with the JS client:
  await client.storage.from(bucket).upload(key, blob, {
    contentType: blob.type,
    upsert: false,
    cacheControl: "public, max-age=31536000, immutable",
  });

Expected behavior

The upload works without getting errors

Screenshots

System information

  • OS: macOS Big Sur (11.6)
  • Browser: Chrome (95.0.4638.69) and Brave (1.31.87)
  • Version of supabase-js: 1.21.0
  • Version of Node.js: 14.15.4

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nacho-carnicerocommented, Dec 1, 2021

Ok thanks, for the answer, let me know if you want me to add a PR for documenting this

1reaction
soedirgocommented, Nov 23, 2021

@nacho-carnicero yes this is a macOS-specific Docker limitation - we could document this somewhere. Right now you’d need to use S3-like backend for this to work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

docker-compose opening storage failed: permission denied ...
The problem is the folder structure/files on your local machine have the incorrect file permissions and when the docker container is fired up...
Read more >
How to Fix and Debug Docker Containers Like a Superhero
Container errors are tricky to diagnose, but some investigative magic works wonders. Read along to learn how to debug Docker containers.
Read more >
Known issues for Docker Desktop on Mac
This is due to a bug in MacOS. We have written a detailed report on this. You might encounter errors when using docker-compose...
Read more >
Docker Compose release notes | Docker Documentation
Docker Compose release notes. 2.14.2 . 2022-12-20. Update . Dependencies upgrade: bump containerd to 1.6.14. Bug fixes and enhancements ....
Read more >
Try Docker Compose - Docker Documentation
Try Docker Compose. This tutorial is designed to introduce the key concepts of Docker Compose whilst building a simple Python web application.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found