View Single Post
Old 05-22-2010, 06:58 PM   #13
toddos
Guru
toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.
 
toddos's Avatar
 
Posts: 695
Karma: 822675
Join Date: May 2010
Device: Kobo Aura, Nokia Lumia 920 (Freda)
I'm a little bit closer, but this is turning into quite the mess. What I've done so far:
  1. Moved configuration from the administrator's Application Data directory to another location using the CALIBRE_CONFIG_DIRECTORY environment variable
  2. Gave Network Service rw access to the config location (don't know why it needs write access, but read didn't seem to be enough -- looks like it was related to the ExclusiveFile code that attempts to "lock" files so others can't read them).
  3. Gave Network Service read access to the ebook repository (both local file access and share access, since I'm referring to the location by share name)

At this point I'm getting this error:

Quote:
Python function terminated unexpectedly
unable to open database file
RemoteTraceback (most recent call last):
File "site-packages\calibre\library\sqlite.py", line 127, in run
OperationalError: unable to open database file (Error Code: 1)
Network Service has read/write access to the metadata.db database location. The GUI can still read the database so it's not corrupted.

I'm about ready to give up on this and just keep running the service as administrator. At least that worked
toddos is offline   Reply With Quote