You are viewing limited content. For full access, please sign in.

Question

Question

LDPS Loses Generated Previews for Office Documents

asked on January 5, 2024 Show version history

We've started having a strange issue in the last couple of months with the Laserfiche Document Preview Service, where previewing Office documents (mostly Word and Excel documents) sporadically doesn't want to work.  When trying to preview those documents, we just get a "Page is not available" message.

Now, what's interesting is that I can do something like check out the document, edit it (even just save it without actually making any changes) and then check it back in and the preview will now work... for a few days.  Then it goes back to "Page is not available" until the document is changed again.

No other errors that I can see.  I can't seem to find any maintenance screens or settings for LDPS either.  Are there any recommendations on how to troubleshoot this kind of issue?

1 0

Answer

SELECTED ANSWER
replied on January 11, 2024

That's interesting information. The cleanup operation will remove the cache information from the sqlite database before deleting the files, so LDPS shouldn't be creating this situation itself. And it would be surprising if another application was going into this folder and deleting files, but AV or similar systems sometimes do surprising things.

I think the way we could improve LFDS would be to verify that the cached files are indeed present when the database indicates that the document is cached. I don't think it performs this check, and it seems like an easy remedy. I've filed a story to add this, it's story #504627. You can open a support case if you want to track its progress. We are in the process of releasing a web client update, which unfortunately won't include this, so the support case is also how we would give you a fix before it is included in an official release.

2 0

Replies

replied on January 5, 2024

Have you checked the event viewer on the web client machine? There should be more details recorded there.

0 0
replied on January 5, 2024

Thanks for the reply Brian.  I'm unable to get on the server until January 10th to have a look at some of that, but I will definitely have a look once on there.  My time spent looking into LDPS so far was on another server that isn't having the issue, but that's also making me realize that I can't find any meaningful configuration options or other log files for LDPS that could help.  That's why I was hoping for some ideas on how LDPS is typically troubleshot or configured if at all.

Schedule conflicts along with government production server protocols are making this tricky to troubleshoot in an timely or interactive way, so all the ammo I can get going into the remote session will help speed this up tremendously.

0 0
replied on January 5, 2024

LDPS is meant to not require any configuration, and it's pretty rare that the default settings need to be changed. That said, the config file is C:\Program Files\Laserfiche\Document Preview\Config\LdpsConfig.xml. There's no UI for it, so all changes are manual. You can do a few things, like set the path it uses for its temp files, if that turns out to be the problem. If you don't see enough info in the event viewer to determine what the problem might be, you can change the log level to Informational to gather more information.

Any change will require recycling the app pool before they take effect.

0 0
replied on January 5, 2024

That matches what my experience has been so far, especially while not finding much in terms of configuration.  I will check the LdpsConfig.xml file when on the server and see what else I can find in the event viewer or other locations.  It's not clear what might suddenly be the cause for the behaviour we're seeing, but all I can think of is that perhaps it's starved for memory or space somehow and so LDPS cycles documents out of the cache fairly aggressively.

Looking at the other server, I see the EventLogLevel setting is set to Critical, which must be the default.  What other options are available?  "Debug"?

I also see some other settings that might be relevant t, such as MaxLogAgeDays, CacheDirectoryLimit and MaxCacheDays, but they're all blank.  Does LDPS assume a default in that case?

0 0
replied on January 5, 2024

Logging options are: Critical, Important, Informational, Debug.

Right, no value set in the config means that it uses defaults specified in the code. E.g. for cache age, it's 5 days. It's possible there's something around the cache being cleaned up that's causing a problem, but that's a case that it's meant to be able to handle.

0 0
replied on January 8, 2024

Thanks, I'll get on the server on Wednesday this week and have a look at what's up.  Hopefully there's something in the event log that gives me an idea of what's going on, but either way I'll post back with what I find.

0 0
replied on January 10, 2024

I have some more information on this issue that will hopefully shed some light as to what's going on.

First off, disk space or memory don't seem to be issues here.  Also, all the LdpsConfig.xml file settings are at defaults.  Logging was set to Critical only, and there were no log files at C:\ProgramData\Laserfiche\LDPS\EventLog.

The C:\ProgramData\Laserfiche\LDPS\Cache folder is about 150 MB and contains 1584 files including SVG and the LDPS.sqlite database file.

I'm definitely able to see new SVG files getting created if I preview either a new Office document or do the check out and back in method I described in my original post above.

Where things get interesting is with the attached error.  There are many of these errors in the Event Viewer, and I was able to generate more by trying to preview documents that I know had been previously previewed only a few days ago.  For some reason they're typed as Information and not and Error or Warning, but the messages seem to correspond to LDPS trying to access a previously cached SVG file but it's no longer in the Cache folder.

What's not so clear is why SVG files are going missing from this folder.  Could we be bumping into one of the settings like CacheDirectoryLimit?  If it's part of normal LDPS cache operation and cleanup, then wouldn't the database be updated accordingly so it didn't think a file was still in the cache? 

There are two really old SVG files from 11/24/2020 and 11/25/2020 in that folder, but the rest are from 2/16/2021 and on, which is a pretty big gap.  Does cache cleanup focus on oldest files first?

As far as I can tell, nothing else is deleting files from that folder, but I'll see if we can monitor for that.

Can you provide all the in-code defaults for the LdpsConfig.xml file settings?  I can't seem to find them documented anywhere.

I'm a bit stumped here for the moment, but hopefully someone can help shed some light on my findings and we can figure this out.

Error.png
Error.png (289.1 KB)
0 0
SELECTED ANSWER
replied on January 11, 2024

That's interesting information. The cleanup operation will remove the cache information from the sqlite database before deleting the files, so LDPS shouldn't be creating this situation itself. And it would be surprising if another application was going into this folder and deleting files, but AV or similar systems sometimes do surprising things.

I think the way we could improve LFDS would be to verify that the cached files are indeed present when the database indicates that the document is cached. I don't think it performs this check, and it seems like an easy remedy. I've filed a story to add this, it's story #504627. You can open a support case if you want to track its progress. We are in the process of releasing a web client update, which unfortunately won't include this, so the support case is also how we would give you a fix before it is included in an official release.

2 0
replied on January 12, 2024

I appreciate the help Brian, and thanks for putting in that story and sticking with me on this.  I can't find anything else that is deleting those files but will keep at it.  Short of some kind of hotfix and ultimately web client update, there may not be much I can do here.

I didn't see a response on the part of the question regarding the in-code defaults if values aren't set in the config file.  Are you able to provide that?  I'd like to try adjusting some of those to see if it will help, but knowing the defaults might help to identify where to start.

0 0
replied on January 12, 2024

The configuration defaults are:

MaxCacheDays: 5

MaxOperationPerProcessor: 8

DiskLimit: 50 gb

CacheDirectory:  ProgramData\Laserfiche\LDPS\Cache

MaxLogAgeDays: 7

EventLogLevel: Critical

EventLogDirectory: ProgramData\Laserfiche\LDPS\EventLog

3 0
replied on January 5, 2024

Are you by any chance load balancing between multiple Web Client instances?

0 0
replied on January 5, 2024

No, there is no load balancing set up.  There's only the one web server.

0 0
replied on May 3, 2024

We have an identical issue at one of our customer sites. Did you ever find a resolution to this?

0 0
replied on May 3, 2024

Unfortunately not.  Our central IT hasn't been able to find anything wrong and is calling this a Laserfiche issue, and Laserfiche also hasn't owned it.  To be fair to everyone we are a number of versions behind so I'm planning an upgrade to the latest release in hopefully a month or so and then we'll be in a better position to be supported.

1 0
replied on May 7, 2024 Show version history

Thanks for the update Stephane, I'm seeing this on the latest version of the web client so I'm not sure a version update will resolve your issue. https://support.laserfiche.com/kb/1014502/list-of-changes-for-laserfiche-web-client-11-update-8

 

Interestingly in my case, it works fine in Chrome, but not Edge.

0 0
replied on May 7, 2024

That's unfortunate, as I was just planning an upgrade to the latest web client to see if that would sort it out.

Interesting about Edge vs. Chrome, however.  As a government office we've standardized around Edge but I'm going to run some experiments with Chrome to see if that plays a part and I can report back.  I'm not certain why the preview caching system would care, but there could be something subtle going on.

0 0
replied on May 29, 2024

Stephane, do you have a case number for your support case with Laserfiche?

1 0
replied on May 29, 2024

The only number I have is story #504627.  I'm not sure if a specific support case was ever opened, I would have to check with my VAR.

 

Oh, and to follow up with my above comment, trying with Chrome did not help at all.

1 0
replied on June 6, 2024

Hi Stephane, same issue here if you have any update in your case with LF support please let us know. Thanks! 

0 0
replied on September 9, 2024

We're having the same issue as well. Any updates?

0 0
replied on September 9, 2024

I have some good news, but not much for insights unfortunately.  I recently went on the server and completely uninstalled the Document Preview Service.  I then completely removed all files in ProgramData\Laserfiche\LDPS\Cache, including any generated preview files and the database.  It's important to note that there were a lot of very old SVG files that LDPS should have cleared out but never did.  Something clearly wasn't working correctly or perhaps had become corrupted.

Once I was certain everything was cleaned out I re-installed the LDPS and triggered some document previews.  Everything seemed to be working well, so I carefully monitored things for a few weeks.  So far, so good: we haven't seen a relapse of our previews not working as advertised.

It's still not clear to me what happened and if it was related to the version we were on or perhaps some issues that came forward after upgrading from an older version, but our problems seem to be resolved for now.

2 0
You are not allowed to follow up in this post.

Sign in to reply to this post.