trakt / Plex-Trakt-Scrobbler

Add what you are watching on Plex to trakt.tv
1.45k stars 167 forks source link

Critical Error: Plex cache raised an input/output error (disk I/O error) #419

Open werkaster opened 7 years ago

werkaster commented 7 years ago

Windows 7 fully updated with latest Plex version. When I try to open trakt.tv in Plex to force sync I get the following message "Critical Error: Plex cache raised an input/output error (disk I/O error)" and nothing else.

Trakt.tv channel/scrobbler worked without problems for over a year I think, so this is very new. Obviously, it already says what went wrong, a disk I/O error, but all my HDDs work in Windows at the moment, and before I start running diagnostics on working drives, I thought I would check if there's an easy, trakt-scrobbler-specific, solution. Thank you.

fuzeman commented 7 years ago

You could try delete the plex.db file from:

C:\Users\<username>\AppData\Local\Plex Media Server\Plug-in Support\Caches\com.plexapp.plugins.trakttv

Sometimes these files can be corrupted for unknown reasons. Your next sync might take a bit longer as the cache will need to be rebuilt, but everything should return to normal after that.

werkaster commented 7 years ago

Thanks for the reply. I tried that and several other things, before and after asking here. Since then I've encountered two new errors, sometimes "This channel is not responding." and checking just now another one I've seen a few times "Critical Error: Plex cache is corrupt (database disk image is malformed)".

Does this change your recommendation, or do you still think deleting caches...…....trakttv\plex.db should be enough? I saw another .db-file in the folder if I remember correctly, but I didn't touch that one. As I said earlier, this could be an HDD problem rather than a plugin problem, but after several HDD scans with different software and not getting any alarming results, I'm a little confused.

fuzeman commented 7 years ago

Not sure what would cause the This channel is not responding. error, would need to see the plugin log file to identify that issue.


Does this change your recommendation, or do you still think deleting caches...…....trakttv\plex.db should be enough? I saw another .db-file in the folder if I remember correctly, but I didn't touch that one.

I would try delete the plex.db file first as that's specifically what the error is mentioning. If the Trakt cache is corrupt error comes up as well, try delete the trakt.db file as well.

As I said earlier, this could be an HDD problem rather than a plugin problem, but after several HDD scans with different software and not getting any alarming results, I'm a little confused.

An unclean process exit (system shutdown, or Plex Media Server shutdown) at the wrong time during a sync might of caused this as well, it's really hard to know what exactly caused this..

werkaster commented 7 years ago

@fuzeman I think I fixed it, finally. After removing plex.db I had the same problems, but I did install WebTools and reinstalled Plex Trakt Scrobbler through that interface instead. I also did a chkdsk X: /R (you know how to do the same in Ubuntu) which fixed some trashed files in my Plex directory. Those could be the reason or the proper reinstall with WebTools could be, I don't know.

At first, it didn't matter, though, I got the interface back but all the sync missions failed. After removing plex.db a second time (at this stage after doing the things above) I managed to at least pull to trakt.tv, and it seems to have saved most of what I've watched. I'm trying a full sync now and that seems to work too. Impossible for me to judge if every single episode was saved, but a lot of them seems to be there. I'll have to look deeper and compare with PlexPy.

Edit: @LasseSLambertsen Even if I used WebTools to install the scrobbler this time, I think the real problem was the bad clusters. I have a lot of things on that drive and the few bad ones it found were in the Plex folder? Seems odd. Try to fix those first of all, you know, sudo fsck /dev/.... in your case and see if that works.