-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Self-host: Storage API is not working (Docker container unhealthy) #27312
Comments
Thanks for opening @RoadToDev101 We will make a PR to address this. That said, the issue of not being able to create folders cannot be reproduced, can you provide logs from the storage container, please? |
Hi @encima, This is the log I get from the storage container when render the storage page on dashboard and create a new bucket name 'design_views'
After that, I try to create a new folder in this bucket, the frontend shows that it created but when I reload, the folder is not there (I think it is not actually create the folder). And when I try uploading the file, it just spinning forever. And in these 2 actions, there is no log in the Plus the studio container also unhealthy, but when check the log, it seems there is no problem. I hope this help. |
thanks @RoadToDev101 , those logs show success for the storage requests so that certainly is weird! |
Hi @encima, I try to fetch the bucket api on Postman but I cant due to "Invalid authentication credentials". I try both Anon and Service Key for authorization. See the image below The jwt in .env : Am I do it wrong? |
@encima, so strange... I can upload the image through my NodeJS app. |
@RoadToDev101 thanks for the update. so it works using the supabase client is that right? does it still fail with the dashboard? from Postman, it looks like the credentials are probably failing due to them being incorrectly encoded or not picked up properly. |
for I went inside the docker container and command
it gave me no error so i increased timeout in health check condition as below to fix unhealthy
However it doesn't work with storage-api. I tried to debug the same way but got below result
|
Are you connecting to storage from within the studio container? Either way, |
@encima I use the healthcheck command in the docker compose file for |
@RoadToDev101 that is expected yes. the studio is accessible through "studio" but not localhost. |
…alhost. This will fix supabase#27312
I'm also facing the unhealthy issues on those two services. In addition, I also got the unauthorized issue when uploading files that are more than 6 MB; though, it works fine for those that are less than that. |
Same issue here, the nginx server doesn't serve on |
Bug report
Describe the bug
I self-host Supabase with Docker on my machine as per the instructions on Supabase Docs. After successfully composing, the containers
supabase/storage-api:v1.0.6
andsupabase/studio
are in an unhealthy status. I can create buckets in the dashboard but fail to create folders in the bucket or upload files.To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Expected behavior
The
supabase/storage-api
andsupabase/studio
containers should be in a healthy status, allowing the creation of folders and uploading of files within buckets.Screenshots
System information
The text was updated successfully, but these errors were encountered: