Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update_brat_parameters failing for some users #339

Closed
MattReimer opened this issue Jul 9, 2021 · 6 comments
Closed

update_brat_parameters failing for some users #339

MattReimer opened this issue Jul 9, 2021 · 6 comments
Assignees
Labels
🐛 bug Something isn't working pkg:BRAT BRAT Python Package

Comments

@MattReimer
Copy link
Member

@tyler1218hatch is trying to run scripts/update_brat_parameters.py using the brat_data_steward

but he gets:

unnamed

Seems like maybe a permissions problem?

@MattReimer MattReimer added 🐛 bug Something isn't working pkg:BRAT BRAT Python Package labels Jul 9, 2021
@tyler1218hatch
Copy link

@philipbaileynar Any updates on this? If there's a quick workaround for this, let me know. I just need the watershed parameters updated for this one run.

@philipbaileynar
Copy link
Contributor

Sorry @tyler1218hatch

I just set a reminder to do this at 9am. Should be quick.

@tyler1218hatch
Copy link

tyler1218hatch commented Jul 20, 2021 via email

@philipbaileynar
Copy link
Contributor

@tyler1218hatch I do not get this error. And I have confirmed that brat_data_steward can indeed read from the watersheds table.

What credentials do you have in your .env file in your Python environment. DON'T POST THEM HERE. Perhaps give me a ping on Google Chat or BaseCamp to discuss.

@philipbaileynar
Copy link
Contributor

I have tweaked my setup so that I am now running update parameters using the brat_data_steward postgres account. I get past the error that @tyler1218hatch was having but then it fails for me when it is trying to determine the primary keys of tables by reading from the postgres information_schema.table_constraints table:

https://github.com/Riverscapes/riverscapes-tools/blob/master/packages/brat/scripts/update_brat_parameters.py#L74-L80

Running this query on the root account returns rows. Running it as data steward does not. Which then causes an error in the script.

@philipbaileynar
Copy link
Contributor

Script was tweaked. No one reported the error in 2 years. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working pkg:BRAT BRAT Python Package
Projects
None yet
Development

No branches or pull requests

3 participants