Skip to content

Permission denied error when generating types #621

@bombillazo

Description

@bombillazo

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

We are getting a weird bug when running the type generation in github actions using the supabase gen types typescript command:

Status: Downloaded newer image for ghcr.io/supabase/postgres-meta:v0.68.0
(node:1) ExperimentalWarning: Importing JSON modules is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
file:///usr/src/app/dist/server/server.js:58
        throw new Error(tablesError.message);
              ^

Error: permission denied for schema cron
    at file:///usr/src/app/dist/server/server.js:58:15
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
error running container: exit 1
Try rerunning the command with --debug to troubleshoot the error.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Run gen types typescript

Expected behavior

Supabase types are generated without a problem

System information

  • OS: ubuntu
  • Version of supabase cli: 1.104.0
  • Version of supabase-js: 2.38.0
  • Version of Node.js: 18.16.0

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions