bitmagnet-io / bitmagnet

A self-hosted BitTorrent indexer, DHT crawler, content classifier and torrent search engine with web UI, GraphQL API and Servarr stack integration.
https://bitmagnet.io/
MIT License
2.01k stars 76 forks source link

Blanked out page buttons webui v0.4.1 #94

Closed Red-Skuller closed 4 months ago

Red-Skuller commented 5 months ago

Can't move through the torrent pages. It only shows the first page. I can change the number of torrents displayed on a page but can't advance. It also shows the number of torrents as 0 however i have north of 2.800.000 torrents

To Reproduce Steps to reproduce the behavior:

  1. Start minimal docker-compose.yml
  2. Try to change torrent page

Expected behavior A clear and concise description of what you expected to happen. Supposed to change the torrent page for example from 1-10 to 11-20

General (please complete the following information):

Additional context

Upgraded from v0.3.1

mgdigital commented 5 months ago

Hi, can you confirm if the problem persists after 10 minutes (the totals should be refreshed every 10 mins)? Did the issue occur immediately after starting the container (that might be before the background job has calculated the counts)? Do you see any relevant errors in the logs?

Red-Skuller commented 5 months ago

You are right. This did occur right after starting the container. After some time the numbers returned and so did the page buttons.

Red-Skuller commented 5 months ago

Now after 16 hours of uptime the number disappeared again and so did the page buttons. After waiting for another 30 mins they reappeared again from docker logs bitmagnet: i only see some UTF-8 encoding errors: ERROR gorm gorm/logger.go:72 gorm trace {"location": "/build/internal/database/dao/torrents.gen.go:616", "error": "ERROR: invalid byte sequence for encoding \"UTF8\": 0x00 (SQLSTATE 22021)", "elapsed": 32018.64195, "sql": "INSERT INTO \"torrents\" ...... DO UPDATE SET \"name\"=\"excluded\".\"name\",\"files_status\"=\"excluded\".\"files_status\",\"piece_length\"=\"excluded\".\"piece_length\",\"pieces\"=\"excluded\".\"pieces\"", "rows": 71} ERROR dht_crawler dhtcrawler/persist.go:44 error persisting torrents: ERROR: invalid byte sequence for encoding "UTF8": 0x00 (SQLSTATE 22021)

Other containers have no discernible errors

Red-Skuller commented 5 months ago

I figured out that if i do two searches at once (in two tabs) and close both tabs before the search completes this happens. Then i have to wait for some time as you said until it refreshes the numbers until i get the buttons and numbers back