Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 05-31-2016, 08:04 AM   #1
aerospyke
Junior Member
aerospyke began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2016
Device: Android phone
Content server on Raspberry Pi. Move database error

Hi all,

I am running (or was) a content server on my raspberry pi for my paltry number of ebooks. I had to move the library as an external drive failed and so now it doesn't work. The only clue I have is int he server_error_log.txt is the last line as shown below

OSError: [Errno 2] No such file or directory: '/media/Books/metadata.db'

That is the old location but I don't know where it is getting this from as my process is running successfully under the new path .... as mentioned earlier this is on a raspberry pi so i'm only running calibre-server not the full software so I don't know what i can do with this.

HELP!!

Oh and hi, i'm new to the forums :-)
aerospyke is offline   Reply With Quote
Old 05-31-2016, 11:25 AM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
If you've moved the library, you need to change the calibre-server command line arguments from
Code:
--with-library=/media/Books/
to
Code:
--with-library=/path/to/new/library/
eschwartz is offline   Reply With Quote
Advert
Old 05-31-2016, 11:27 AM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,939
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
The (hidden) user configuration folder? (contains the last Library used)

or you could use the command line option --with_library <path>
theducks is offline   Reply With Quote
Old 06-02-2016, 08:48 AM   #4
aerospyke
Junior Member
aerospyke began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2016
Device: Android phone
Quote:
Originally Posted by eschwartz View Post
If you've moved the library, you need to change the calibre-server command line arguments from
Code:
--with-library=/media/Books/
to
Code:
--with-library=/path/to/new/library/
Thanks, but as mentioned my process is running (through systemd script) with the new path using that parameter .... or do I need to run it manually. I have made sure the correct user has permissions to it also.
aerospyke is offline   Reply With Quote
Old 06-02-2016, 09:18 AM   #5
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
"my process is running successfully under the new path" was not entirely clear to me, especially as you first said that it wasn't working successfully at all...

What happens when you try to access the Content Server?
eschwartz is offline   Reply With Quote
Advert
Old 06-02-2016, 09:42 AM   #6
aerospyke
Junior Member
aerospyke began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2016
Device: Android phone
Hey all, problem solved.... turns out I had a line in cron rebooting and running the process with the old library path .... removed that, rebooted the PI and viola, content! yay

and eschwartz sorry i was a bit vague, if I open the web page i'd get lots of errors on the page in the calibre frame. if i connected using hte calibre app on my phone it would give me a server 500 error if i tried to open metadata or download a book. Odd.
aerospyke is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Content Server on Raspberry Pi not working with password darryl Related Tools 10 02-03-2016 10:22 AM
Content Server error tedpeer Calibre 2 08-16-2013 09:28 PM
500 Internal Server Error accessing content server Calibre 0.8.8 DaddyO57 Calibre 1 07-20-2012 06:08 PM
content server error brysio Calibre 3 12-18-2010 12:24 PM
Adobe Move to Server 4 Content kevingaus HanLin eBook 1 04-08-2009 09:29 AM


All times are GMT -4. The time now is 06:01 PM.


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