you mentioned your soil is made of compost, I assume the soil is waterlogged and no oxygen can react with the organic matter and you now have an anaerobic decomposition situation, that will give you that rotten odor.
I would suggest plunging a pencil down into the pot all over to allow air to...