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

Log errors from "git remote update" #121

Open
rjollos opened this issue Mar 3, 2017 · 0 comments
Open

Log errors from "git remote update" #121

rjollos opened this issue Mar 3, 2017 · 0 comments

Comments

@rjollos
Copy link
Member

rjollos commented Mar 3, 2017

I was seeing a lot of sync failure that I first assumed were just associated with #111, but after syncing failed a half dozen consecutive times I looked into it.

www-data@trac:~$ git --git-dir bugs.jqueryui.com/private/repositories/jquery-ui.git/ remote update --prune
Fetching origin
fatal: Unable to create '/var/www/bugs.jqueryui.com/private/repositories/jquery-ui.git/refs/pull/1755/merge.lock': Permission denied
error: Could not fetch origin

I suspect what happened is that I fixed a sync failure as root rather thanwww-data, which resulted in some git internal files having incorrect permissions.

It would be useful if we could detect and log any failures when git.remote('update', '--prune') is called. I didn't see any hints of the failure in the logs, just the downstream error message:

2017-03-03 17:42:33,075 Trac[github] ERROR: Payload contains unknown commit 032ddc3349f625e0840aa8e266b5d8ebee994853
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant