Is there any way to prevent this? I assume I can't get back what I originally stored there.
I had stored all my surplus ingredients in one chest, and a big pile of gold in the other. The next time that I returned to my ship, both chests were empty.
This is a regular bank-purchased ship. I do have the "come sail away" mod but I have never deployed one of those ships from the deeds.
Edit: I found a save where the chests were still full: it is numbered 48 and I am on 65 now so it has been a while.
It looks like the items vanished from the boat the first time I used (overland) fast travel, after placing them there.
Is it possible to copy the container contents out of the older save to get the stuff back?
Edit 2: This turned out to be a problem with the Save Editor. For some reason, it changed the loadID of the ship in the sceneCache.
It just so happened that I used the editor to swap a primary and major skill immediately after the only time I put items into ship storage, so I never identified that as a potential cause.
Restoring the original loadID made the container contents available again, and I reported the issue on github.