Comments (6)
Thanks, that was the issue
from storage.
Hi @difelice, can you check if postgrest has storage in PGRST_DB_SCHEMA
like here
from storage.
Hi @heromiyo, this happens if you don't have the search path set correctly. Can you ensure that the .env.sample file has been copied to .env and there is a PGOPTIONS in your .env file?
from storage.
I'm having similar issue running a container from supabase/storage-api
, migrations worked fine, and PGOPTIONS
is in the final env
list, but for some reason it's still requesting on the public
schema:
Docker Compose logs:
storage_1 | running migrations
storage_1 | finished migrations
storage_1 | [1623760631182] INFO (8 on 66b95fdc2426): Server listening at http://0.0.0.0:5000
storage_1 | Server listening at http://0.0.0.0:5000
rest_1 | 172.22.0.9 - - [15/Jun/2021:13:10:50 +0000] "GET /buckets?select=id%2Cname%2Cpublic%2Cowner%2Ccreated_at%2Cupdated_at HTTP/1.1" 404 - "" "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)
kong_1 | 172.22.0.6 - - [15/Jun/2021:13:10:50 +0000] "GET /storage/v1/bucket HTTP/1.0" 400 88 "-" "PostmanRuntime/7.28.0"
storage_1 | [1623762650441] ERROR (1 on 076642b861e0): error bucket
storage_1 | "hint": null,
storage_1 | "details": null,
storage_1 | "code": "42P01",
storage_1 | "message": "relation \"public.buckets\" does not exist"
storage_1 | }
$ docker compose exec storage /bin/bash -c 'env | grep PGO'
PGOPTIONS=-c search_path=storage
Database looks OK:
$ PGOPTIONS="-c search_path=storage" ./psql.sh
Null display is "💩".
psql (12.6, server 12.3 (Debian 12.3-1.pgdg100+1))
Type "help" for help.
postgres=# \d
List of relations
Schema | Name | Type | Owner
---------+------------+-------+----------
storage | buckets | table | postgres
storage | migrations | table | postgres
storage | objects | table | postgres
(3 rows)
Thanks.
from storage.
Hi @difelice, can you check if postgrest has storage in PGRST_DB_SCHEMA like here
Thank you! That was it. I missed completely from the supabase
PR. 🤗
from storage.
Glad its sorted :)
from storage.
Related Issues (20)
- Can not integrate Lock Objects S3 with Supabase HOT 3
- Can't update files after migration HOT 5
- UNEXPECTED BEHAVIOR 'move' method HOT 1
- Move set owner to null HOT 1
- FFmpeg/FFprobe 'moov atom not found' Error When Processing Videos from Local Supabase Instance HOT 2
- Storage API changing file name HOT 1
- `move`, `copy` do not returning new file id HOT 4
- Add `file_metadata` field to objects schema HOT 30
- Rest Api For Storage Questions/Suggestions HOT 2
- Storage Upload Error Typescript Issue
- The values of both column `owner` and `owner_id` are set to `NULL` after calling `StorageFileApi` method `move`. HOT 1
- Private bucket files become public HOT 2
- How to set file owner on TUS upload HOT 1
- S3 Upload with presigned URL HOT 5
- Cannot download object from public bucket
- Issue with different Schema HOT 5
- Uploaded file in supabase storage is corrupted HOT 1
- x-amz-acl missing for files <> Generic CDN Support
- Can't use S3 Sdk - SignatureDoesNotMatch HOT 10
- After uploading a markdown file containing Chinese characters, the Chinese characters become garbled
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from storage.