AttributeNotFound with gitlab-ctl reconfigure

Due to an issue I caused I had to restore a backup for my gitlab-12.8.7-ee install that I manage. The next step after a successful restore is:
gitlab-ctl reconfigure
but this fails with:
could not find filename for attribute default.rb.dpkg-new in cookbook package
The path for this file is:
but when I delete it and rerun the reconfig command it comes right back.

How do I fix this?