Pale stool, chronic right side pain - bile problems?

Hi has anyone any ideas? Im struggling with upper right side pain around the rib. i have had a scope and have mild gastritis with some inflammation but this pain is debilitating. i have quite pale stool started a while ago but i never mentioned this to dr. but reading on line it mentions stool color changes may be bile duck blockage. I don’t have stones. just need some help. been in pain too long now. On top of this i cant stop peeing myself. It’s just so dreadful. ANY IDEAS.