In the early versions of No Man’s Sky, if there was combat in your system, the entrance to your freighter would turn red, and you couldn’t get in. Not only that, but players who were inside couldn’t get out. And it could go on and on for hours.
I think with 1.3 (?) this stopped being a problem. At least, I haven’t noticed it for a long time.
Now it seems to be back - with a vengeance. I leave my freighter to mine asteroids, and I get attacked by pirates. Generally not a problem - goodbye pirates, hello loot. But then I try to go back to my freighter - and it’s locked up. I can’t get in. And it stays that way, and stays that way, and…
So far, the only answer I’ve found is to warp to another system, and call my freighter. That solves it - but it’s damned inconvenient, particularly if I wanted to stay in the system I was in originally.
Have you tried landing on a planet, and then summoning the freighter and seeing if that works? Maybe also try using the pulse engine to travel further away and summoning the freighter.