Ps4 pro turns on for a second then immediately shuts downi have

I have recently got a ps4 pro second hand and it when turned on it turns on for a second then fully shuts down and you are unable to turn it on unless you pull the power cord out and put it back in with the same thing happening again. The power cord is brand new aswell