More information would be helpful. How many fish, what kind of fish, how much water, how much grow space, how are you growing your plants? Bad smell is usually caused by anaerobic conditions in your tank or growbed. Are you using a media based system? How are you aerating your water?
Fish poo isnt leaving the fish tank.
Not enough Aeration in your tanks
Too many fish