Disc drive won’t pull discs in

I had this issue for many years now. But even though it doesn’t pull discs in, if I get it in manually and then restart the PS4, it does read them normally. I tried replacing the disc drive in the past but it still had the same issue and I’ve been unable to find any solution or explanation to this.