Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 02-01-2023, 12:19 AM   #1
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Linux OpenSUSE with btrfs: Supported?

Should Calibre work 'properly' using Linux OpenSUSE with btrfs?
DaltonST is offline   Reply With Quote
Old 02-01-2023, 02:48 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by DaltonST View Post
Should Calibre work 'properly' using Linux OpenSUSE with btrfs?
As far as I know it should. Cant say I have tested it personally though
kovidgoyal is offline   Reply With Quote
Old 02-01-2023, 12:34 PM   #3
isarl
Addict
isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.
 
Posts: 287
Karma: 2534928
Join Date: Nov 2022
Location: Canada
Device: Kobo Aura 2
I'm not sure about OpenSUSE or anything it might do differently, but if it helps at all, I run Calibre with zero issues on Arch Linux using multiple btrfs filesystems. My root partition is btrfs, and so is my home partition – Calibre is installed to the root partition (through my package manager) and my Calibre Library is stored in my home partition.

If you start doing strange things like restoring a snapshot while Calibre is open and running, then I could easily imagine strangeness, in exactly the same way that I would expect strangeness if Calibre was running and I went and started messing about with files in the library directory. But as long as you're restoring a proper snapshot of the entire Calibre library directory, and Calibre is not open at the time, then I can't see how btrfs could otherwise cause problems.
isarl is offline   Reply With Quote
Old 02-01-2023, 02:59 PM   #4
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
A Calibre user of one of my plugins has been having an impossible time getting APSW to connect (ATTACH) to multiple Libraries sequentially. She uses OpenSUSE with btrfs, and has had no problems with Calibre until now with this very specific issue. APSW is spectacularly unhelpful as to why it gets an OpenError; debugging log shown nothing worthwhile.

The connection for attachment is supposed to look like this, but always throws an exception, OpenError, just after the "Attaching to New Source Library:" message, where the APSW SQL "ATTACH DATABASE 's:/calibre/calibrelibrarycodes/metadata.db' AS 'SOURCE' ;" is executed by APSW.
Code:
ATTACH DATABASE 's:/calibre/calibrelibrarycodes/metadata.db'  AS 'SOURCE' ;
length of path:  42
Attaching to New Source Library: s:/calibre/calibrelibrarycodes/metadata.db
Now Attached to New Source Library: s:/calibre/calibrelibrarycodes/metadata.db
PRAGMA SOURCE.busy_timeout = 4000;
Finished: apsw_attach_to_source
So far, the closest random, odd issue might be found in: https://btrfs.wiki.kernel.org/index.php/Gotchas regarding the Fragmentation of application databases. She is going to defrag her btrfs system and report back the results.

I don't use Linux except for my Raspberry Pi Manjaro/Arch Calibre server.

DaltonST
DaltonST is offline   Reply With Quote
Old 02-01-2023, 07:00 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
What's with the s:/ prefix on those paths?
kovidgoyal is offline   Reply With Quote
Old 02-01-2023, 09:16 PM   #6
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
That was the example debug log from my testing to ensure it still works on my Windows 11 system, not the OpenSUSE btrfs path of the user's latest log that I just got: */home/susan/calibre/testlibrary

She defragged btrfs, and nothing changed.
DaltonST is offline   Reply With Quote
Old 01-14-2024, 11:03 PM   #7
nixR3ad
Enthusiast
nixR3ad began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Jan 2024
Device: Sage / rm2
If this comes up again, ask the user if they disabled copy-on-write for their database. There is really bad advice out there about btrfs and databases. Users commonly (and incorrectly) do

Code:
chattr +C /path/to/database
This is practically the mantra. But this disables CoW (and all the data integrity features btrfs employs). The damage is silent until a triggering event like replication, balance, or defrag.

I have been using Calibre on a multi-disk btrfs system for years, and the only problems have been self-made. Aside from the time I believed it would be wise to convert my Kobo's filesystem to btrfs, the worst experiences came from disabling CoW for things like databases and VMs.
nixR3ad is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
USB connection issues - Linux OpenSUSE, Onyx Note Pro rhizomatic Onyx Boox 11 07-01-2022 11:44 AM
Libra btrfs and my kobo shoelesshunter Kobo Developer's Corner 3 07-27-2020 12:08 PM
devices supported by mainstream linux distros (future proofing) Sgt.Stubby Which one should I buy? 9 12-17-2013 04:34 PM
OpenSuSE 12.3 and Huawei P6 navy_seabear Devices 3 09-30-2013 02:41 PM
libprs500 on openSuse 10.3? mauibay Calibre 25 01-12-2008 08:21 PM


All times are GMT -4. The time now is 11:33 PM.


MobileRead.com is a privately owned, operated and funded community.