![]() |
#16 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,149
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
database_path is a legacy config item, library_path is the important one.
|
![]() |
![]() |
![]() |
#17 |
Connoisseur
![]() Posts: 94
Karma: 10
Join Date: May 2010
Device: Win 10
|
|
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 695
Karma: 822675
Join Date: May 2010
Device: Kobo Aura, Nokia Lumia 920 (Freda)
|
I think I have it working. I didn't want to have to give rw permissions to Network Service on metadata.db, but that seems to be the only way to make it work.
So, recapping:
I really don't like that calibre-server, ostensibly a read-only process, has to have rw access to the database in order to run. Any thoughts on changing that? Should I file a ticket? |
![]() |
![]() |
![]() |
#19 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,149
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No point, the db access library calibre uses has no way to open a sqlite db in read only mode.
|
![]() |
![]() |
![]() |
#20 |
Enthusiast
![]() Posts: 34
Karma: 10
Join Date: Mar 2009
Device: none
|
So by the title of it, I thought this thread was what I wanted, but it seems you're talking about something different. Seems like you're talking about the WHS serving books to Calibre clients over the local network. However, it would be even better if I could put my http://<username>.homeserver.com:8080 link into Calibre and have it connect as a client over the internet.
Any chance of that being possible in the near future? |
![]() |
![]() |
Advert | |
|
![]() |
#21 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,149
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Not in the near future, but it is in my long term plans.
|
![]() |
![]() |
![]() |
#22 | |
Zealot
![]() ![]() Posts: 115
Karma: 150
Join Date: Jul 2008
Location: Netherlands Veenendaal
Device: Palm T5, Sony PRS-505, Nook Color
|
Quote:
The trick usually is to make a special account for this kind of operations which allows it to read/write to the network but doesn't have any rights on the rest of the system(s). Regards, Joop |
|
![]() |
![]() |
![]() |
#23 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 695
Karma: 822675
Join Date: May 2010
Device: Kobo Aura, Nokia Lumia 920 (Freda)
|
Quote:
![]() Edit: Actually, let me amend that slightly. Something happened during an upgrade that broke my service running as network service. Checking my permissions, everything seems to still be correct, but after an upgrade (maybe it was 0.6 to 0.7?) the service stopped working and I hadn't had time to debug it. It could be a change in code that requires more/different permissions, or that requires permissions somewhere I haven't provided them. Network service has permissions to read/execute calibre-server and read/write the database, but no permissions to read or write the actual book location. I figured that was the safest way to protect my books since I have to give write access to the database due to sqlite. Maybe a change to the catalog/server now requires reading the library as well as the database, I don't know. Eventually I'll get around to debugging it, or not and just live with running as admin. Last edited by toddos; 06-28-2010 at 05:17 AM. |
|
![]() |
![]() |
![]() |
#24 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,888
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
That said I'll pass on this info. Calibre never supported UNC paths, but they worked previously. With the change to 0.7.x many folks have reported that UNC paths have stopped working properly with calibre. |
|
![]() |
![]() |
![]() |
#25 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 695
Karma: 822675
Join Date: May 2010
Device: Kobo Aura, Nokia Lumia 920 (Freda)
|
Quote:
|
|
![]() |
![]() |
![]() |
#26 | |
Zealot
![]() ![]() Posts: 115
Karma: 150
Join Date: Jul 2008
Location: Netherlands Veenendaal
Device: Palm T5, Sony PRS-505, Nook Color
|
Quote:
Yesterday I did some work on it and it looks like it might be a bug in QT 4.6.2. Atleast I can reproduce it with an example included with the QT I installed to get Sigil to compile. Its the findfiles example. If I let it search for pdf's on a server share and then try to start it it does nothing but if I let it search my local disk for pdf's it will start my pdf viewer just fine. It uses the same syntax to start an external programme as Calibre does ![]() Now I'm going to install Calibre-0.6.55 to see which QT version it uses. one moment please .... Ah, its using 4.6.0, so that would mean, check the sources of 4.6.0 against 4.6.2 and see what changed in the handling of QDesktopServices.openUrl(QUrl.fromLocalFile(name)) . QUrl.fromLocalFile() is producing the expected output but QDesktopServices.openUrl is the culprit ![]() The latest QT, 4.6.3 might have this fixed but didn't see it in the changelog ![]() PS: Just saw that the qt dlls from calibre-0.7x and 0.6.55 are the same ![]() The call to QDesktopServices.openUrl(QUrl.fromLocalFile(name)) is the same in 0.6.55 and 0.76 and as in findfiles but in 0.6.55 it works and in the others it doesn't ![]() Regards, Joop Last edited by JvdW; 06-29-2010 at 05:35 AM. Reason: wrong information presented |
|
![]() |
![]() |
![]() |
#27 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,149
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The Qt version hasn't changed between 0.6.55 and 0.7.x. What has changed (I think) is that earlier calibre was not using QUrl.fromLocalFile it was directly passing a filename to QDesktopServices. While this used to work for UNC paths, it broke in several other more common cases, so I switched it to QUrl.fromLocalFile
If you can figure out the correct way to pass UNC filenames to QUrl I'll be happy to make the change. You can test by doing Code:
calibre-debug -c "from PyQt4.Qt import *; app = QApplication([]); f = r'\\server\whatever'; url = QUrl.fromLocalFile(f); QDesptopServices.open(url)" |
![]() |
![]() |
![]() |
#28 | ||
Zealot
![]() ![]() Posts: 115
Karma: 150
Join Date: Jul 2008
Location: Netherlands Veenendaal
Device: Palm T5, Sony PRS-505, Nook Color
|
Quote:
Quote:
![]() Testing a bit further I might decide to recompile QT 4.6.3 with some debugging print statements added to qdesktopservices_win.cpp to see what it makes of the file://server/file.pdf since I have a feeling that things go very wrong there. Atleast the version of 4.5.2 does something more sensible to my eyes. Regards, Joop |
||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adding ODPS client to calibre (Bug #1665, Download from Bookshelf/Stanza servers) | hakan42 | Calibre | 11 | 12-05-2010 12:19 PM |
calibre server and client synch? | machstem | Calibre | 12 | 09-15-2010 06:27 PM |
Calibre metadata.calibre not allowing updates | Chuckels550 | Calibre | 10 | 08-09-2010 05:12 PM |
An instance where PDF works | J. Strnad | Kobo Reader | 10 | 07-16-2010 09:05 PM |
calibre command line utilities and calibre defaults | astrodad | Calibre | 2 | 08-07-2008 03:27 PM |