heres your fix.
the cutoff spindle is held in place by a set screw at the end of the cutoff, if this is loose or missing it will let the spindle move foward, keeping the ejector from working.
also, if the ejector spring{pin that looks like a screw} is missing, loose or puggerd, it will also keep the ejector from working.
check the screw first, loosen it, pull the spindle back to the point were you can see a notch , thats for a ord, tool offered, to grab the spindle and pull it out, that should be exposed just a bit,
then with the bolt removed, check for free play, set the ejector so it stick out, replace the screw in the cutoff, snug it down, and replace the bolt, run an emty case through the rifle.
see if it ejects this time.