Wiki 'bad default revision HEAD'
Related to gitlab-com/support-forum#443 (closed)
Under certain circumstances (yet unknown) a wiki's HEAD is lost during a failed update operation. Users report that when this occurs it takes forever to load the page after a save and then they get a 502 error. Subsequently it appears all pages are gone. This looks the same if the user clones the repository.
However, when we inspect the repo we see lots of objects. With @jacobvosmaer help we found the latest commit object and re-referenced in in the master ref.
The question now is, what causes this scenario? I'm looking at our code and it seems we delegate all operations to gollum (i.e. we just call write_page
). I'm wondering if it's upstream, then. However, we need to look on our side as well.
Next steps
I will check if there are any similar report in gollum project. @rdavila Can you take a look at our wiki code and see if there is anything obvious that could cause corruption in certain circumstances?