MIAMI (CBSMiami/AP) — A federal judge ruled South Florida rapper Kodak Black be held in jail without bond following his arrest on weapons charges which prevented him from performing at the Rolling Loud hip-hop festival.

Federal prosecutors went to court Wednesday to appeal a judge’s decision to release the 21-year-old Pompano Beach native on $550,000 bond.

READ MORE: Blue Alert Issued Out Of North Florida County for Patrick McDowell, Accused Of Murdering Deputy During Traffic Stop

The rapper, whose current legal name is Bill Kapri and who was born Dieuson Octave, was arrested before his scheduled festival performance at the Rolling Loud festival this month in connection with an earlier weapons purchase.

U.S. District Court, Judge Federico Moreno said the rapper was a “danger to the community” based on his lengthy criminal record and should be detained until trial and set an August trial date.

Black previously pleaded not guilty to falsifying information on federal forms to purchase three firearms.

Authorities are investigating three unrelated shootings in the Miami area with possible connections to the festival.

READ MORE: Facing South Florida: 1-On-1 With Miami-Dade Mayor Daniella Levine Cava

Authorities also say one weapon purchased by Black was found at the scene of a shooting in nearby Pompano Beach.

In Florida, he has been charged at different times with drug and weapons possession, armed robbery, sexual assault, probation violations and fleeing from officers, but Black has never done significant prison time.

He also faces drug, weapons and sexual assault charges in other states.

Black’s better-known singles include “Skrt,” ”Zeze”, “Roll in Peace”, “Tunnel Vision”, and “No Flockin.”

MORE NEWS: Miami Gardens Faith Leaders, Officials & Community Members Come Together To Remember Lives Lost To Gun Violence

(© Copyright 2019 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)