To meet misfortune at the very outset of an undertaking.
Literally: hail falls the moment the head is shaved