Page 1 of 1

"Could not clear Essential Viewer Cache successfully." [SOLVED]

Posted: 21 Mar 2018, 11:00
by gunther.lachambre
Hi,

As I try to send XML snapshot to Viewer from Protégé, it says:

Code: Select all

Rendering repository...
Sending repository snapshot...
Checking for access...
Sending XML snapshot...
Failed to send snapshot to the Report Service : 
Essential Viewer ReportService encountered an internal error while receiving your repository snapshot. Contact your system administrator and check Essential Viewer server logs for errors, e.g. memory exceptions.
If I check catalina.out on Viewer server, it says:

Code: Select all

EasReportService: Could not clear Essential Viewer Cache successfully.
Does anyone have already encountered those errors?

Thanks
Gunther

Re: "Could not clear Essential Viewer Cache successfully."

Posted: 21 Mar 2018, 13:27
by jmk
Acl problem ?

I'd check if files under tomcat/webapp are owned/readable/writable by
the tomcat process user.

@+

Re: "Could not clear Essential Viewer Cache successfully."

Posted: 21 Mar 2018, 16:36
by gunther.lachambre
Thanks Jean-Marie for the reply.

Viewer files are all well writable by tomcat user.

I have to mention that I'm using git and Gitlab to maintain source code over my various environments, and I ignore reportXML.xml and graph_images/*.png by listing them into .gitignore.
Thus I separate Viewer source code updating and repo data publishing.

Regards,
Gunther

Re: "Could not clear Essential Viewer Cache successfully."

Posted: 22 Mar 2018, 10:27
by jonathan.carter
Hi Gunther,

It does sound like Git might be causing you some trouble. This exception is happening as the Viewer is clearing it's cache when finishing the publish process.

In addition to graph_images/*.png, you'll need to exclude:
  • graph_images/uml
  • graph_images/pageCache
  • graph_images/pageCache/application
Try this - make sure that you have these folders set up and that you have the oscache.properties file in graph_images/pageCache

Let me know when you've checked these and whether this has helped. Git can cause some trouble if not excluding all the relevant folders.

My Git Ignore for Viewer looks like this:

Code: Select all

reportXML.xml
graph_images/*.png
graph_images/uml/*.png
OLD*
graph_images/pageCache/application
Jonathan

Re: "Could not clear Essential Viewer Cache successfully."

Posted: 23 Mar 2018, 15:14
by gunther.lachambre
As usual Jonathan, you deserve many thanks!

I was missing the `uml` and `application` folders on all environments. And I had a `tmp` folder too in the `graph_images` folder, so I've added it to the `.gitignore` list too.

Now everything is running well.

Thanks!
Gunther