Difegue / LANraragi

Web application for archival and reading of manga/doujinshi. Lightweight and Docker-ready for NAS/servers.
https://lrr.tvc-16.science
MIT License
2.18k stars 153 forks source link

[Problem] How to reset all the data to make Shinobu work again? #1008

Closed hucurve closed 2 months ago

hucurve commented 2 months ago

I have been using lanraragi for almost a year now. I really love and appreciate the fact that someone can make software that is so highly customizable and as interactive and friendly as possible.

However, there are still some major bugs that make me very sad. The garbled file names are visually distracting at best, and the occasional missing file is truly maddening.

I found that every time I tried to use the cleanup database option, I thought it would lighten the load on the system. It actually pops up with 200+ files cleaned (I'm up to about 500 total), the corresponding files disappear upon refresh, and despite all attempts to re-read the files, Shinobu ignores them. They are there, but seem to be isolated forever. I don't have a background of computer-related expertise, I'm using docke desktop to mount the image, so I made the following attempts: (which basically failed)

  1. update the software version (0.89 to 0.91, only succeeded once)
  2. Delete all files I could find in /databse and /content, backup files and thumbnails, and use the reset database option.
  3. remount the image and replace the folder with a new one.
  4. try using windows desktop version

None of this has worked, and I think the missing file ids are actually still marked by Shinobu. I was even hoping to re-modify the ids of the files to make them new, but I can't!

i got 520+ files in total about 14.5G.but only 300+ files readed(about 5G) image image

Docker shows [LANraragi] [info] Successful login attempt from 172.17.0.1 [Shinobu] [info] Shinobu File Watcher started. [Shinobu] [info] Content folder is /home/koyomi/lanraragi/content. [Shinobu] [info] Scanning content folder for changes... [Shinobu] [info] Found 304 new files. [Shinobu] [info] 0 files were found on the filemap but not on the filesystem.

lanraragi is a very handy tool and I understand that this fatal bug is very difficult to deal with. All I'm hoping for now is to find a way to re-read the missing files (no matter what) Finally I'd like to thank the author for his hard work!Thank U!

Difegue commented 2 months ago

There's no specific data storage for Shinobu alone, all it "remembers" is the filemap in the database and that's wiped when you click "rescan content folder".

I'm not sure why you'd have 200 files not being picked up unfortunately. File watching support on windows is spotty in that it won't detect newly added files, but doing a rescan/restarting the server normally picks them up.