A server crash or unclean shutdown can result in .git/index.lck files in sites, which prevent further commits.

At startup, ikiwiki-hosting could find such files and remove. It would need to do it before the webserver is started to avoid races. --Joey