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: MDFR Identifies "Voice In The Rubble" Victim

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: Gov. Ron DeSantis Signs Bill That Bans 'Picketing And Protesting' Outside A Person's Home

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: Former Substitute Teacher Enreeka Nalasco Accused Of Giving Drugs To Teen Girls For Sexual Favors

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