Sour smells and slimy wet spots: bacterial contamination
What does bacterial contamination mean on a mushroom grow?
It means bacteria, not mould, are growing where the mushroom fungus should be. Bacteria are single-celled organisms. They feed on the same damp, nutritious material your fungus wants.
Here's the honest limit. The reliable sources saved for this site are written about commercial farms, mostly for button mushrooms. They cover bacterial blotch, which shows on mushroom caps. They don't describe a sour smell on a home grow bag or jar. So treat what follows as background and not a home diagnosis.
What is bacterial blotch?
Wikipedia names Pseudomonas tolaasii as a "causal agent of bacterial blotch in white button mushrooms". A toxin it makes is "responsible for the brown blotches associated with the disease"1. The blotches are brown spots on the mushroom itself.
That is all the source says about how it looks. A farm guide for the UK industry calls it one of the most important disease problems for mushroom growers there and in Europe2.
Why would a grow get wet spots?
Water is the common thread in the farm sources. The AHDB says the disease "is favoured by high relative air humidity that can lead to condensation on the caps" when temperature swings and airflow is poor2. Condensation is water that forms on a cooler surface.
For a home grower, the lesson to take is a simple one: drips and standing water on a cap are a risk. They aren't proof of bacteria. Free water also means the grow is probably too damp.
What about the smell?
Smell is a clue. The farm guide on green mould lists "a distinct smell" among the symptoms of that mould3. It doesn't say what the smell is like, so I can't tell you green mould smells one way and bacteria another.
What you can say is this. A fresh grow shouldn't smell rotten, sharp or sour. If yours does, something has changed. Bacteria, mould or both could be behind it.
Can bacterial problems be treated?
On farms, not really. The AHDB says "There are still no practical treatments for bacterial blotch", and that growers manage it by cultural practices such as "reducing the humidity in the growing rooms"2. Cultural practices just means changing how you run the room, such as airflow and watering.
Those fixes apply to a growing room full of mushrooms. They don't tell you how to rescue a wet bag or jar. For that call, see whether to keep a suspect grow.
How is it different from a mycelium patch?
Healthy mycelium is dry-looking threads. Wet, slimy or smelly patches aren't that. Check also for colour, using the clues on the mould or mycelium page. If you see both wetness and mould colour, the grow has more than one problem.
Slow growth can also point to trouble. The AHDB notes in a green mould context that the mushroom mycelium "may seem slower in its growth" when infection is present3. Slow alone proves nothing, but slow plus smell or wet spots is worth acting on. For how spores and bacteria reach a grow at all, see how it gets in.