PURPOSE: This phase I trial is studying the side effects and best dose of azacitidine plus phenylbutyrate in treating patients with advanced or metastatic solid tumors that have not responded to previous treatment.