Phrase for a situation where a problem disappears when you are about to fix it, but reappears later
For example, the car mechanic can't replicate the problem you are having every day, but when you drive it off the service dept, there it is again. Or, when seeing the dentist, the tooth ache goes away, and comes back when you leave.
Solution 1:
Around my office, such a problem is called a Heisenbug, a pun on the name of the great physicist Werner Heisenberg, who first described the observer effect (the rule that observing any phenomenon will change it) and the uncertainty principle (the rule that you can know either where something is or how fast it is going, but not both).
The frustrating thing about a Heisenbug is that there is no way to know for certain you have fixed it. You may believe you understand the cause of a particular Heisenbug, you may address that cause, and the Heisenbug may appear to go away, but you never know..
Solution 2:
I would call it an "elusive" problem.
elusive adjective:
1: tending to evade grasp or pursuit
2: hard to comprehend or define
3: hard to isolate or identify
(Merriam-Webster online)