Checkwatches script doesn't use correct DB user
Bug #134312 reported by
Tom Haddon
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Tom Haddon |
Bug Description
The checkwatches.py cronscript should use the "checkwatches" DB user, but it currently uses the default DB user from the launchpad.conf file in the specified LPCONFIG environment variable's directory.
Additionally, it seems like the permissions for checkwatches user needs updating. Running the checkwatches script while explicitly specifying the user I got the following error message:
"permission denied for relation packagebugcontact"
Changed in launchpad: | |
importance: | Undecided → Critical |
status: | New → Confirmed |
Changed in malone: | |
assignee: | nobody → bjornt |
status: | Confirmed → In Progress |
Changed in malone: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I've manually granted the permission.
To close this bug we need to: schema/ security. cfg.
- Add the correct permissions to database/
Remove the 'groups=write' line and explicitly list all required
permissions.
- Make checkwatches.py connect as the 'checkwatches' user.
- Make the tests connect as the correct user.