GithubHelp home page GithubHelp logo

Comments (11)

dbarrosop avatar dbarrosop commented on June 24, 2024

hi, which environment? Is this the cloud, the cli, self-hosted? if it's the cloud, can you share the subdomain? Thanks

from nhost.

ronitbatra avatar ronitbatra commented on June 24, 2024

I'm using the cloud, and the subdomain is https://app.nhost.io/edtrax/edtrax-test.

from nhost.

dbarrosop avatar dbarrosop commented on June 24, 2024

and what error are you getting exactly? could you share a screenshot or similar? thanks!

from nhost.

ronitbatra avatar ronitbatra commented on June 24, 2024
Screenshot 2024-05-22 at 2 24 15 PM I don't have permission to create a new table, even though I was able to create two other tables previously.

from nhost.

dbarrosop avatar dbarrosop commented on June 24, 2024

Strange, have you changed any database setting or run any SQL command that might have altered permissions? In any case, try running:

SET ROLE postgres;
ALTER SCHEMA hdb_catalog OWNER TO nhost_hasura;
GRANT SELECT ON ALL TABLES IN SCHEMA information_schema TO nhost_hasura;
GRANT SELECT ON ALL TABLES IN SCHEMA pg_catalog TO nhost_hasura;
GRANT USAGE ON SCHEMA public TO nhost_hasura;
GRANT ALL ON ALL TABLES IN SCHEMA public TO nhost_hasura;
GRANT ALL ON ALL SEQUENCES IN SCHEMA public TO nhost_hasura;
GRANT ALL ON ALL FUNCTIONS IN SCHEMA public TO nhost_hasura;

from nhost.

ronitbatra avatar ronitbatra commented on June 24, 2024

I haven't changed any settings or run any commands to alter permissions. I tried running the code you gave but it still says permission is denied for public schema.

from nhost.

dbarrosop avatar dbarrosop commented on June 24, 2024

can you try:

SET ROLE postgres;
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO nhost_hasura;

and if that doesn't work:

SET ROLE postgres;
GRANT CREATE ON SCHEMA public TO nhost_hasura;

this is very odd, have you restored a backup with pg_dump or similar? Just wondering how the permissions might have been lost.

from nhost.

ronitbatra avatar ronitbatra commented on June 24, 2024

That worked. Thanks for your help!

from nhost.

dbarrosop avatar dbarrosop commented on June 24, 2024

Perfect, glad to hear. Closing for now. If you have more info on the chain of events that might have led to this issue don't hesitate to let us know. Thanks!

from nhost.

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.