I have been stuck on a ship for several months with the gate locked and I can find no one inside other than an NPC. A Faction promised me a ride but for months now nothing has happend!
Contact the faction leader, tell them that you are on their ship with no way out, and that you were a part of their faction a while ago and they might release you..
Your position page should have a button you can use to contact the owner of the ship. If that fails and you can't get in touch with your faction, mail assistants@swcombine.com with the details of your situation so they can help you out - but they will not assist you until you've exhausted the IC methods.