Never take a problem to your boss until you have multiple solutions to it.
It may seem obvious to some but imagine the difference between an employee coming to you with a problem that you then have to figure out how to solve VS an employee coming to you with a problem they already have several solutions for and you simply need to choose (as the manager) which option you believe is best.
In my experience when most employees come across a problem they don’t know how to instantly solve they simply present it to their manager and wait for a response.
This does nothing other than concrete your managers opinion that you are unable to do their job and they subconsciously disqualify you from promotion, presenting them with multiple solutions to a problem however makes them feel they are in control whilst simultaneously considering you as an asset worthy of promotion or at the very least retention.