it may be caused by copper algaecides, ionizers, or corrosion of copper and brass pipes, fittings and heaters.
Shock treatment with sodium or lithium hypochlorite, accompanied by constant filtration and use of a clarifier.