Giter Club home page Giter Club logo

Comments (6)

heromiyo avatar heromiyo commented on July 25, 2024 1

Thanks, that was the issue

from storage.

inian avatar inian commented on July 25, 2024 1

Hi @difelice, can you check if postgrest has storage in PGRST_DB_SCHEMA like here

from storage.

inian avatar inian commented on July 25, 2024

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.

difelice avatar difelice commented on July 25, 2024

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.

difelice avatar difelice commented on July 25, 2024

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.

inian avatar inian commented on July 25, 2024

Glad its sorted :)

from storage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.