getblocktemplate returns out of memory I tried on a few different machines, vps etc. Also, few different altcoin litecoin included. Most were with 4 GB of ram, if this matters.

Every time when I enter the command getblocktemplate , I get return error message -7 "out of memory".

This prevents me from mining the coins in a pool.

Does anyone have any idea, why do I get these errors, and what to do to fix them?
It was the masternodes syncing.
Once I created a masternode and synced it, the getblocktemplate started returning normally.