upcp --reset
moves HEAD to master, which is the problem. This should do it:
# Move pointer to before v3.2.38.2 release
git reset --hard v3.2.38.2^
# Verify your update policy is major:
cpcmd scope:get cp.update-policy
# If not, cpcmd scope:set cp.update-policy major
# Alternatively, to junk all changes: git clean -df
git stash save old-code
# "git describe" will report v3.2.38.1-2
# upcp runs as user apnscp, so let's make sure it has permission
chown -R apnscp:apnscp /usr/local/apnscp
# Finally, move through migrations
upcp
Your migrations may fail, and if so, let me know on the context. We’ll go from there.