Every problem needs a solution. But often people know the solution. They don't need your guidance, advice. Because you are not their consultant, or advisor. You are their friend. They just want you to be by their side, giving moral support to them. That is all that is needed.
Sometimes just be present, don't fix.