Try applying rotation of the mesh and the rig in object mode, this might be the issue you're facing.

(Im sorry I don't have enough reputation score to comment, so I'm posting the answer)