Giter Club home page Giter Club logo

Comments (9)

fenos avatar fenos commented on September 13, 2024 1

Hello @glani the image is now available 0.44.1
Also not sure i understand what you by is not checked for creation?

If you want to disable role creation you would want to pass the DB_INSTALL_ROLES=false as an env.
This is useful if the roles are created externally from storage

from storage.

fenos avatar fenos commented on September 13, 2024

Hello @customkandura could you please provide the records of your migrations table under the storage schema?

from storage.

glani avatar glani commented on September 13, 2024

Interestingly a new connection url to cloud hosted storage DB causes the same error. Looks like a balancer always points to public scheme instead of "storage".
Steps to reproduce are simple.
I created a project:
Spawned a storage service in docker (I need it because the configuration of cloud version is pretty weak)
connection via pgbouncer works smoothly. However when I switched to AWS balancer of postgres all queries started failing with the above mentioned issue.

on the 15th of January there will be no support anymore for pgbouncer and looks like the current solution is pretty raw.

from storage.

fenos avatar fenos commented on September 13, 2024

@customkandura I have dug deeper into this issue and apparently the original error was caused by not having the initial migration as part of the service.

My recent PR #409 will now include the initial migration and the Storage service will now start without manually run the migrate command.

A release is yet to be done for this feature I'll keep you up to date.


@glani Storage requires the pooler to support either transaction mode or session where transaction mode is the preferred setting for optimum performance.

Could you please link the AWS pool service you are trying to use, i'll have a look at their docs. Also can you make sure the DATABASE_POOL_URL env is set with the correct user

from storage.

glani avatar glani commented on September 13, 2024

@fenos now it starts working when I specified DATABASE_POOL_URL. When a new docker image will be available or release ? I built a current master to check it. However, merged PR of a new migration system is very questionable (b0331a1). No way to deploy it as independent database with storage schema. Role "authenticator" is not checked for a creation.

from storage.

fenos avatar fenos commented on September 13, 2024

Closing the issue as this is now supported

from storage.

fenos avatar fenos commented on September 13, 2024

here is a docker-compose file example:
https://github.com/supabase/storage/blob/master/docker-compose.yml

from storage.

Coderwelsch avatar Coderwelsch commented on September 13, 2024

Hello @glani the image is now available 0.44.1 Also not sure i understand what you by is not checked for creation?

If you want to disable role creation you would want to pass the DB_INSTALL_ROLES=false as an env. This is useful if the roles are created externally from storage

this solved also my issue with supabase/storage-api:v0.46.3 ! thanks a lot! had the problem that storage migrations failed with role "anon" already exists

from storage.

glani avatar glani commented on September 13, 2024

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.