Paint that won't stick

We painted our ceiling and the paint started peeling off before it was done drying. We peeled off all the paint and washed down the ceiling. After it dried, we started to apply a gripper primer. Again before it was done drying it began to peel. Help, we don't know what to do or how to fix this problem.

Paint that won't stick

The only questions I would like to add are: Which room are you painting? Were the ceilings cleaned/washed before painting? Any dust, grease (kitchen), moisture on the ceiling?? Exactly which products did you use? What prep work did you do??