question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

new dev environment permissions

See original GitHub issue

I was spinning up a new dev environment to take a look an open issue for hacktober (https://github.com/interledger/rafiki/issues/664), but have run into a postgres permissions issue (I think?).

After pnpm localenv up -d --build I can see the docker containers started up.

I then was curling to look at the signature:

curl -X post http://localhost:3006/auth

And the connection closes immediately. I see this in the Docker logs:

2022-10-20 10:22:29.035 UTC [1] LOG:  database system is ready to accept connections
2022-10-20 10:22:29.223 UTC [67] ERROR:  permission denied for schema public at character 14
2022-10-20 10:22:29.223 UTC [67] STATEMENT:  create table "auth_knex_migrations" ("id" serial primary key, "name" varchar(255), "batch" integer, "migration_time" timestamptz)

I tried to add. GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO peerauth etc to each, but that didn’t alter anything.

I’m guessing I’m missing some setup step, but not sure what it might be so any help would be appreciated.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
mankinscommented, Nov 1, 2022

Oh I realize you may have needed this open to track your own fix of it. Feel free to close again, my issue is over.

1reaction
mkurapovcommented, Nov 1, 2022

Yup, I was able to reproduce locally as well earlier. I’ve been playing around with a few ways of making it work in 15, but we should pin the major version going forward to avoid any unexpected issues, whether that is 15 or 14.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Provide access to developers - Azure Deployment Environments
Assign permissions to developers for an environment type · Select the project that you want your development team members to be able to...
Read more >
Appropriate developer permissions on a dev server?
Yes, devs need admin privileges with dev systems. Its just easiest to do this than fumble around asking for access to bits and...
Read more >
Environment Types, a simpler way to manage user permissions
User permissions are granted per environment type at the project level. Environments can share the same type. (You can have multiple Staging or ......
Read more >
Don't be stuck at dev environment setup! | Rookie's Lab
As a team lead, make sure that the new dev has: All the accounts in different environments (dev/staging/testing/qa) with enough permissions, ...
Read more >
Managing access to environments - Contentful
Navigate to the Settings tab and click on Roles & permissions. Click Create a new role. Add a name and a description for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found