Bug when using storage locally with docker-compose
See original GitHub issueBug 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:
- Use the docker-compose file to launch Supabase locally
- Create a bucket in the storage DB (I did this with pgadmin4)
- 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:
- Created 2 years ago
- Reactions:2
- Comments:7 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok thanks, for the answer, let me know if you want me to add a PR for documenting this
@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.