From experience, just now: This error can also occur if you removed a variable, for which a value in the configuration already exists. To reproduce, here’s what I did:
- add a variable
- commit
- configure some value for that variable
- remove it from the extension code
- commit again
- upgrade fails
- edit the config, clear out the value
- upgrade succeeds.