Openfire 3.9.1 not returning chats after ubuntu server is restarted!

Recently I rebooted my amazon ec2 server and after that I logged in from Pandion client and entered a room I created 10 days ago. After connecting to the room no old chats were seen.

I have also enable the option from the console " Return all chats after joining a room " but that only returns the chats that are currently in the cache. But if you restart again the amazon server the recents won’t be returned also.

I have enabled ofMucConversationLog and all chats are seen in the log table but not returned by the openfire server.

Please help is needed on this issue urgently.