PURPOSE: This phase I trial is studying the side effects and the best dose of temsirolimus when given together with valproic acid in treating young patients with relapsed neuroblastoma, bone sarcoma, or soft tissue sarcoma.