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:
/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/attributes/default.rb.dpkg-new
but when I delete it and rerun the reconfig command it comes right back.

How do I fix this?

Thanx!