• The singer has been in an ongoing legal battle with producer Dr. Luke, after she accused him of sexual assault and battery.

• Her fans started a petition to "tell Sony not to force her to work with her alleged abuser."

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.

New York Daily News Archive via Getty Images Kesha (center in white) cries as she learns she will not be released from her record label contract in Manhattan Supreme Court on Friday, February 19, 2016. A judge said she would not allow Kesha to leave her record label.

New York Daily News Archive via Getty Images Kesha (center in white) cries as she learns she will not be released from her record label contract in Manhattan Supreme Court on Friday, February 19, 2016. A judge said she would not allow Kesha to leave her record label.

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. Kesha later amended her complaint to include Sony, claiming that Gottwald's "proclivity for abusive conduct was open and obvious [to Sony] executives, who either knew of the conduct and turned a blind eye, failed to investigate Dr. Luke's conduct, failed to take any corrective action or actively concealed Dr. Luke's abuse." The amended complaint further claimed that Sony placed Kesha and other female artists in "physical danger."

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."

James Devaney via Getty Images

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.

Under her contract, Kesha is obligated to make three more records with Gottwald's label. While Sony has offered to let her work with a different producer, her attorney Mark Geragos told The Huffington Post it remains unclear if any new music will be released under another Sony imprint.

Geragos called Sony’s offer to work with other producers a “small step,” though they wanted “complete separation from Luke. So we're going to move forward and we're going to get her that. She doesn't have to be victimized repeatedly by this guy."

Chrstine Lepera, Gottwald's attorney, released a statement to The Huffington Post.

We are pleased with the Court's decision from the bench fully denying Ms. Sebert’s motion for a preliminary injunction. As the Court recognized, Ms. Sebert has always had the ability to proceed with her career if she so chooses. We remain confident that when all the facts are presented that Ms. Sebert’s allegations against Luke will be shown to be completely false and were asserted solely to extort money and gain contractual leverage.

#Kesha's lawyer says even w/ new Sony offer, "they're setting her up to fail" bc they won't promote her music. Says Sony sided w/ Dr Luke. — Mary Georgantopoulos (@marygeorgant) February 19, 2016

Judge: You’re asking me to presume an entity like Sony, who is in competitive position ... will not want to make money on their investment. — Mary Georgantopoulos (@marygeorgant) February 19, 2016

Sony lawyer: "Our interest ins in her success. Our interest in in Dr. Luke’s success. They are not in the least bit mutually exclusive." — Mary Georgantopoulos (@marygeorgant) February 19, 2016

Sony lawyer says an injunction would "turn the law on its face." #Kesha — Mary Georgantopoulos (@marygeorgant) February 19, 2016

#Kesha's motion for preliminary injunction denied. "There has been no showing of irreparable harm. She’s being given opportunity to record." — Mary Georgantopoulos (@marygeorgant) February 19, 2016

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 more than 118,000 signatures.

Roy Rochlin via Getty Images Kesha fans protest Sony Music Entertainment outside New York State Supreme Court on February 19, 2016 in New York City. Sony has refused to voluntarily release the pop star from her contract which requires her to make eight more albums with producer Dr. Luke, a man she claims sexually assaulted her.

Roy Rochlin via Getty Images Kesha fans protest Sony Music Entertainment outside New York State Supreme Court on February 19, 2016 in New York City. Sony has refused to voluntarily release the pop star from her contract which requires her to make eight more albums with producer Dr. Luke, a man she claims sexually assaulted her.

Roy Rochlin via Getty Images Kesha fans protest Sony Music Entertainment outside New York State Supreme Court on February 19, 2016 in New York City. Sony has refused to voluntarily release the pop star from her contract which requires her to make eight more albums with producer Dr. Luke, a man she claims sexually assaulted her.

Roy Rochlin via Getty Images Michael Eisley who runs the Kesha Today Twitter account organized Kesha fans to protest Sony Music Entertainment outside New York State Supreme Court on February 19, 2016 in New York City. Sony has refused to voluntarily release the pop star from her contract which requires her to make eight more albums with producer Dr. Luke, a man she claims sexually assaulted her.

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.

tomorrow this is me + u guys. every one of you who has sent me sweet messages thoughts or energy. I am so grateful. A photo posted by Kesha (@iiswhoiis) on Feb 18, 2016 at 5:40pm PST

Note: The Huffington Post reached out to those involved. This post has been updated to include additional information about Kesha's lawsuit against Gottwald and Sony, as well as comment from both Kesha's and Gottwald's lawyers.

Also on HuffPost:

PHOTO GALLERY Celebrity News & Photos

HuffPost