This has happened to me more than once, when I was playing on a vanilla server. I set a password on the old codelock, put the codelock on the gate, and the password I set just doesn’t work. One time, I was full loot and wanted to store my items, but because of this bug, I had to raid the base and ended up losing most of my loot. This bug happened with both the blue codelock and the red codelock.