I assume this is a drain/waste pipe vent? When reconnecting did you disturb the seal around the pipe at the roof line? That would let rain water in.
Did you glue the pipes using purple primer first?
And did you angle the pipes so they drain properly (vents do drain)