- Posts: 7
- Thank you received: 0
LibraryServer freezes with 25600 byte library.ydb
- nstephenh
- Topic Author
- Offline
- New Member
-
Is there by chance an undocumented verbose option on YACReaderLibraryServer that I could use to see if the program is frozen or just taking a really long time?
Thanks
Please Log in or Create an account to join the conversation.
- Luis Ángel
-
- Offline
- Administrator
-
- Posts: 3354
- Thank you received: 692
YACReaderLibrary will let you stop the process at any moment and resume later. If you have a chance to connect your storage device directly to your computer please do it and then create the library, after that you can just add the library using YACReaderLibraryServer.
Anyway, no covers in the covers directory sounds bad...Could you try to create a library in a small folder? Create a folder in the same path you are tryting to create your library, something like MyComics/test, and add a couple of subfolders there and throw a couple of comics in each folder, lets see if your setup works that way and we'll look into the huge library handling later.
Contribute to the project becoming a patron: www.patreon.com/yacreader
You can also donate via Pay-Pal: www.paypal.com/donate?business=5TAMNQCDD...e=Support+YACReader\
Please Log in or Create an account to join the conversation.
- selmf
- Offline
- Moderator
-
- Posts: 639
- Thank you received: 136
the Docker image is supplied by the community, so I don't know which version of the headless library server it is using. Older versions of the headless server suffer from the absence of even basic path checking, which can lead to empty/broken libraries.
Also, you write that you have 9 (!) Terabytes (!!) of comics mounted via NFS(!!!). That probably is the largest collection I have heard of until now and it's way beyond the largest size we ever tested. I'm not sure if leaving the server running for one night will be enough in this case as the data has to be transferred back and forth for processing.
There is also one known bug related to network file systems and YACReader Library or rather it's database backend, sqlite. Sqlite requires file locking to work and this is poorly supported by some NFS implementations. A solution to this problem can be found somewhere here in the forum, use the search function
Best regards,
selmf
My answers are not necessarily official YACReader statements but mostly represent my own opinion in technical matters.
Please Log in or Create an account to join the conversation.
- nstephenh
- Topic Author
- Offline
- New Member
-
- Posts: 7
- Thank you received: 0
- Compiling everything myself (using the latest version as of March 10
- Not mounting over NFS
- Not trying to figure out docker at the same time
Perhaps if I was using a raspberry pi, but my server is somewhat comparable to my laptop and I can't move the storage so this is the most efficient.Luis Ángel wrote: I always recomend to create the initial library using a pc/mac because the CPU makes a huge difference, specially for a library so huge.
selmf wrote: Also, you write that you have 9 (!) Terabytes (!!) of comics mounted via NFS(!!!). That probably is the largest collection I have heard of until now and it's way beyond the largest size we ever tested. I'm not sure if leaving the server running for one night will be enough in this case as the data has to be transferred back and forth for processing.
I agree that its quite large. I'm not sure what factor was the one preventing it from loading, probably some combination of NFS, and an older docker image. I imagine that scanning it all via NFS would take forever given that in 12 hours I've scanned 10k out of 230k. I estimate it will take ~12 days at this speed.
Now my only question is can I run library-add and start while library-create is underway? I'd like to test if I can with what I have now, but I don't want to risk breaking everything.
Please Log in or Create an account to join the conversation.
- nstephenh
- Topic Author
- Offline
- New Member
-
- Posts: 7
- Thank you received: 0
- Compiling everything myself (using the latest version as of March 10
- Not mounting over NFS
- Not trying to figure out docker at the same time
Perhaps if I was using a raspberry pi, but my server is somewhat comparable to my laptop and I can't move the storage so this is the most efficient.Luis Ángel wrote: I always recomend to create the initial library using a pc/mac because the CPU makes a huge difference, specially for a library so huge.
selmf wrote: Also, you write that you have 9 (!) Terabytes (!!) of comics mounted via NFS(!!!). That probably is the largest collection I have heard of until now and it's way beyond the largest size we ever tested. I'm not sure if leaving the server running for one night will be enough in this case as the data has to be transferred back and forth for processing.
I agree that its quite large. I'm not sure what factor was the one preventing it from loading, probably some combination of NFS, and an older docker image. I imagine that scanning it all via NFS would take forever given that in 12 hours I've scanned 10k out of 230k. I estimate it will take ~12 days at the current speed.
I will report back in 12 days and let you know how YAC handles the library. I tried adding the library and starting the server while the scan was taking place but clicking the library at the webui would just take me back to the library selection page.
I also have a question: What do the dots printing to the console mean? Do they signify anything or are they just printed every number of books or time period?
Thanks
Please Log in or Create an account to join the conversation.
- selmf
- Offline
- Moderator
-
- Posts: 639
- Thank you received: 136
With such huge datasets you usually have two factors that limit your speed - one is filesystem input/output, the other is CPU power. In your case the limiting factor is probably the filesystem, but, to be fair, it also has to be noted that YACReader is not properly taking advantage of modern multicore CPUs when processing libraries. The whole process is essentially single core single thread, so we're wasting ressources. Changing that is on our TODO list and it will probably happen sometime in the 9.x series, but getting the implementation "just right" is a delicate issue. Your huge collection probably would be a perfect testcase once we've reached a point where a multithreaded library processor is usable …
My answers are not necessarily official YACReader statements but mostly represent my own opinion in technical matters.
Please Log in or Create an account to join the conversation.
- nstephenh
- Topic Author
- Offline
- New Member
-
- Posts: 7
- Thank you received: 0
Thanks for being so responsive. Sorry about the double-posting, I'm on a bad connection (traveling) so I assumed the first one didn't submit properly.
Please Log in or Create an account to join the conversation.
- Luis Ángel
-
- Offline
- Administrator
-
- Posts: 3354
- Thank you received: 692
There is a new setting in 9.0 for improving performace while browsing remotelly, you'll probably have to enable it until The new server 2.0 will be released. There are some big performance improvements coming.
Thanks for the feedback!
Contribute to the project becoming a patron: www.patreon.com/yacreader
You can also donate via Pay-Pal: www.paypal.com/donate?business=5TAMNQCDD...e=Support+YACReader\
Please Log in or Create an account to join the conversation.
- nstephenh
- Topic Author
- Offline
- New Member
-
- Posts: 7
- Thank you received: 0
Biggest feature request for me would be a search function. With a collection this large, if I can't search then I won't be able to find anything, particularly given the long page loading time.
Also, is there any way to use the YACReader Library on my desktop as a frontend? I don't see one jumping out at me but I could have overlooked it.
Please Log in or Create an account to join the conversation.
- Luis Ángel
-
- Offline
- Administrator
-
- Posts: 3354
- Thank you received: 692
config:
Contribute to the project becoming a patron: www.patreon.com/yacreader
You can also donate via Pay-Pal: www.paypal.com/donate?business=5TAMNQCDD...e=Support+YACReader\
Please Log in or Create an account to join the conversation.