Kesha broke down in tears on Friday when a judge denied the motion to release her from her contact with Sony.
The "Blow" singer has been in an ongoing legal battle with producer Dr. Luke (born Lukasz Gottwald) after she accused him of sexual assault and battery.
According to the 2014 filing obtained by TMZ, Kesha claimed that Gottwald made sexual advances toward her, plied her with drugs and alcohol and repeatedly sexually, physically, verbally and emotionally abused her for 10 years.
Gottwald responded to Kesha's allegations with a countersuit, saying that the singer was trying to break her contract with his production company. Kesha is currently unable to produce any music unless she works with Gottwald, who's record label, Kemosabe Records, is a part of Sony. Kesha has yet to release any new music since her 2013 hit with Pitbull, "Timber."
On Friday, a judge denied her injunction to record outside of Sony, ruling that she can still work with another producer for the label. The decision came after the judge shot down her lawyer's claims that Sony was "setting her up to fail" and won't promote her music should she work with someone aside from Gottwald.
Despite the ruling on Friday, the singer had a small victory earlier this month when a judge dismissed Gottwald's suit against Kesha, her manager Jack Rovner and her mother Pebe Sebert.
Kesha's fans started a petition called "Free Kesha," which urged people to sign and send a message to "tell Sony not to force her to work with her alleged abuser." So far, the petition has over 118,000 signatures.
Kesha has been open with her fans throughout the legal case, thanking her "animals" for their support on social media. The night before the trial, Kesha expressed her gratitude for her loyal supporters in an emotional Instagram message.