It's tough to tell from your formula.
It could be a lot of things, including the oils you used may have been old.
A blog mentions this:
Rancidity is due to the oxidation of fatty acids in our soap. There are many things that accelerate oxidation, including heat, light, and water, but contact...