Don't Flail
Sometimes it is easy to get sucked into a problem and start "flailing" around for a solution without working methodically.
NOTE
In software, this means read the error message, check the logs, attach a debugger, and test assumptions rather than jumping to code changes.