Edge History not being stored

I’m working on a project where we are trying to store tag history on our edge gateway. I have configured the gateway to call the main master gateway and store tag history, however it is not happy with this, and is providing the following error:

java.lang.Exception: Error executing tag history query. Please verify that the connection is available, and that tag history is being stored to it.

I’m not sure how to get around this, any ideas?