You may be need to check the orientation of your ship verses the orientation of the docking box. The orientation of the ship when it is docked is fixed, so it can look like the ship should fit, but it doesn't because you are expecting to dock with a different orientation.
Also, if your ship...