Suwayomi-Server icon indicating copy to clipboard operation
Suwayomi-Server copied to clipboard

[Bug] 410 HTTP response causes Tachidesk to not download and update cover image and thumbnails. (Uncaught Exception)

Open Underestimated opened this issue 1 year ago • 9 comments

Device information

  • Tachidesk version: v0.7.0-r1384 (docker preview) however have had same issue with stable release too
  • Server Operating System: Ubuntu 23.04
  • Server Desktop Environment: N/A
  • Server JVM version: Java 11 (Temurin)
  • Client Operating System: iOS
  • Client Web Browser: Safari

Steps to reproduce

While this is something happening in an extension, the error seems to be in the servers handling of the request response, see notes

  1. Have extension that accesses bato.to
  2. Have a work from that site in library
  3. Initially a thumbnail is downloaded successfully from the site, however after 2-3 days (haven’t been able to determine the exact number) the temporary link bato generates to display the thumbnail for the client expires, resulting in a 410 http error. Tachidesk doesn’t seem to understand the response, and the cover image breaks until a manual refresh of the comic data is done, which sometimes helps.

Expected behavior

Thumbnail is retrieved from site or from storage and displayed.

Actual behavior

Tachidesk attempts to access the expired image url and gets a 410 http error, causing an uncaught exception in the server, which shows in the logs. Thumbnail will not show without manual intervention.

Other details

logs: IMG_2025

Underestimated avatar Oct 15 '23 13:10 Underestimated

The problems also shows up when browsing the source. Screenshot for reference: image

Kickunio avatar Jan 15 '24 08:01 Kickunio

Is there any solution to this? When I press the retry on the button I get following:

2024-06-02 11:00:17.731 [DefaultDispatcher-worker-1] ERROR suwayomi.tachidesk.server.JavalinSetup - IOException while handling the request java.io.FileNotFoundException: /thumbnails/431.tmp (No such file or directory)

ddbreyer avatar Jun 02 '24 10:06 ddbreyer

Update to the latest preview version, and use the preview web ui. It seems to have been fixed now.

Underestimated avatar Jun 02 '24 12:06 Underestimated

Update to the latest preview version, and use the preview web ui. It seems to have been fixed now.

Thank you. I use the docker container. If I use preview tag it will work?

ddbreyer avatar Jun 02 '24 15:06 ddbreyer

Yes that should do the trick, that’s how I use it. You should also add the variable WEB_UI_CHANNEL=preview to your environment variables.

Underestimated avatar Jun 03 '24 00:06 Underestimated

Yes that should do the trick, that’s how I use it. You should also add the variable WEB_UI_CHANNEL=preview to your environment variables.

you should avoid using the docker environment variables if possible, as the example says they will actively overwrite any changes you make to that setting at run time

just making the change at run time is enough

Robonau avatar Jun 03 '24 00:06 Robonau

Does it cache the thumbnails on your browser accessing Suwayomi and not on the server? I'm wondering because when I log in on another client the thumbnails are gone again on that particular client. On my main computer it's still fine.

Also really weird behavior; when i try to migrate to the same source (to get thumbnail back) it says failed and the manga/comic is gone from my library. Then I re-add it again and it's ok.

ddbreyer avatar Jun 03 '24 15:06 ddbreyer

Does it cache the thumbnails on your browser accessing Suwayomi and not on the server? I'm wondering because when I log in on another client the thumbnails are gone again on that particular client. On my main computer it's still fine.

the thumbnails are stored on the server. client caching depends on the client, though generally also yes you can probably clear the cache of that client in some way

Robonau avatar Jun 03 '24 17:06 Robonau

Does it cache the thumbnails on your browser accessing Suwayomi and not on the server? I'm wondering because when I log in on another client the thumbnails are gone again on that particular client. On my main computer it's still fine.

the thumbnails are stored on the server. client caching depends on the client, though generally also yes you can probably clear the cache of that client in some way

Thank you for replying. Unfortunately the thumbnails are gone again for some reason and the application log doesn't really tell me anything other than what I first posted. Maybe starting fresh and deleting all files on the host server will fix the problem? Thanks again.

ddbreyer avatar Jun 03 '24 18:06 ddbreyer