Yep, it might look closed but it only takes a couple of mm to prevent it firing.
When new this happens more often. Its pretty annoying.
Use lots of lube on the bolt and rails, push the bolt forward before firing to make sure its fully in battery.
And check its clean, maybe the bolt relief in the barrel is gummed up etc.