I just started doing pull-ups about two weeks ago on a pull-up bar (the one that fits on a doorframe - similar to this).
A day after I started, I got muscle pains all over my shoulder and upper arm. I stopped doing pull-ups for two days, until the muscle pains were gone.
I continued doing pull-ups daily afterwards, but two days earlier, I felt pain in my right shoulder joint when I am lowering my body. It also gets painful when I raise my right arm up. The pain is bearable and is not that intense. It only gets painful when I am lowering my body from a pull-up position and when raising my right arm up.
I decided to stop pull-ups for one day - the pain stopped too, even when raising my right arm. I continued doing pull-ups today but I again felt pain in my right shoulder joint when lowering my body.
How do I recover from the pain? Also, how do I prevent or avoid the pain from occurring again when doing pull-ups?