MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Server (https://www.mobileread.com/forums/forumdisplay.php?f=277)
-   -   How to migrate Content Server with user annotations? (https://www.mobileread.com/forums/showthread.php?t=337719)

georgehuang 03-01-2021 08:06 AM

How to migrate Content Server with user annotations?
 
I have been using Content Server with authentication enabled on my local machine and had read several books with annotations made along the way. It works great and now I decided to move my library to a VPS (Ubuntu running on Amazon Lightsail, to be specific).

I successfully set up a new Content Server with an new Calibre library, and I can now import my books into it. However, annotations I made on the local machine do not show (it is expected) since the library and its authentication are both new.

The question I have is: what is the right way to migrate my library to the new Content Server? And how do I access my old highlights and notes made on the books?

kovidgoyal 03-01-2021 08:54 AM

The annotations are stored in metadata.db simply copy over your library foder to the server.

georgehuang 03-01-2021 10:22 AM

Quote:

Originally Posted by kovidgoyal (Post 4098427)
The annotations are stored in metadata.db simply copy over your library foder to the server.

OK, should have done that instead of copying just one book for test. Just copied the whole folder to the remote server, and the annotations show! Thanks!

However, some books showed an error saying:
Code:

Could not download book
Could not open {Book Name}. Failed to download some book data, click "Show details" for more information

When clicked "Show details", there is a list of files saying something like:

Code:

OEBPS/Styles/Copyrightpage.css
Failed to communicate with "/book-file/474/EPUB/957061/16146072090/OEBPS/Styles%2FCopyrightpage.css?library_id=Calibre&1614608088628", with status: [400 (error)] Bad Request

The uri in the Request Line and the Authorization header do not match

Those books work fine on my local server and ebook-viewer. Is this a problem with my server?

georgehuang 03-01-2021 10:37 AM

Just saw this thread: Viewer problem running behind Apache

And yes I am also running Viewer with Apache. Guess this is the problem. I might have to try nginx instead.


All times are GMT -4. The time now is 05:34 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.