<s>[INST] Everytime I take tramadol I get this excruciating pain right under my upper ribs on the left side .... So, I ve found that ibuprofen takes the abdominal pain away. I ve also had this pain twice before without taking tramadol ... But it woke me out of sleep that s how bad it hurts ... Is this a gallbladder attack? [/INST] Hello and Welcome to ‘Ask A Doctor’ service. I have reviewed your query and here is my advice.If you have gall bladder stones you will get pain on left not right. You may be having gastritis. Take gastric tablets before you take any painkillers. I hope this info helps you sort out your problems and if you feel its helpful kindly give me user thank vote happy health </s>