If you run multiple PullLocal daemons on the same repositories or run bin/repository update on the repository a daemon is running on, you can get lock exceptions. These are expected during normal operation (if multiple processes are really updating, at least) but the stack trace you hit when they occur doesn't explain why they happened or how to resolve them.
We should catch this and rethrow a proxy exception with a more admin-friendly description:
- Add a troubleshooting section to the documentation somewhere, see below in this task for some steps.
- Catch this exception, rethrow it with a proxy wrapper that says "everything is OK, another process is updating that repository right now, try again in a little while or see <the documentation> for more information".
After adding a SVN repository for testing, I got to the import stage but the daemon was failing. Logs showed the following: