Closed abubaman closed 4 years ago
I think It can be a timezone problem because I found that log's date and time are different to my system's date and time.
doesn't apply to the real metadata on metadata.opf file in Calibre-library
This is correct, as calibre-web doesn't generate, modify and use the opf files generated by calibre as backup.
And how calibre-web can modify metadata of books in the library without modift metadata.opf file?
My knowledge how calibre handles books: Upon adding books to the calibre program metadata is extracted from the ebooks and stored in a database (metadata.db) in the root folder of the database. The books are identified by an id. Furthermore the books are stored in a files structure with [authorname]/[bookname]([book_id]). In parallel a file metadata.opf is generated with the current metadata stored in the library (I think this is done as backup if the metadata.db is crashed somehow). Calibre-web handles books as follow: Upon uploading books to the calibre-web program metadata is extracted from certain file types (epub, pdf, cbz files) the ebooks and stored in a database (metadata.db) in the root folder of the database. The books are identified by an id. Furthermore the books are stored in a files structure with [authorname]/[bookname]([book_id]). No metadata.opf file is generated and used. If you edit metadata of files in calibre, this is stored in the metadata.db and in parallel in the metadata.opf file, if author/booktitle is edited, the files are moved arond on hdd. If you edit metadata of files in calibre-web, this is stored in the metadata.db, if author/booktitle is edited, the files are moved arond on hdd.
Regarding the errors in the stacktrace:
file_hash = bust_filename(values["filename"])
KeyError: 'filename'
I think you changed some filecontents, and you reverted your change and now is it working again and has nothing to do with the problem. So I don't do anythink about this part.
Now, I solved this problem. But I don't know what was the exact problem becuase i tried lots of things. So, now i am sharing my setting of docker(technosoft2000) in synology nas. And i will also share suspious thing which it can be a cause of this problem.
My Docker ENV & Owner Setting
So, It is working well now. thank you for your kind support.
@technosoft2000: Maybe this is helpful for you, as several users have reported similar problems in the past to me.
It is same issue I spend #522. But it works as same as what I explained to you. I closed Calibre-Progrm when I modify metadata on calibre-web, but it doesn't apply to the real metadata on metadata.opf file in Calibre-library.
I am using Synology nas with docker(technosoft2000). and I added PUID, PGID following technosoft's instruction(because I think the problem is related to permission problem.). But it doesn't work as same as before.
Below is my calibre-web.log file. It was an info level so it doesn't contain much information which we want but please look into them. and I changed it to debug level now.
522
I have updated all book's meta data(tags, author, series, rating) and it works fine.
But after I tried to update metadata(description) for one book, I found that I can see any changes in calibre-web but it doesn't apply to Calibre-Library.
So after that, I tried to add new book to Calibre-Library. but it didn't work. Calibre-web didn't change anything even though I clicked 'Re-Connect to Calibre DB' in admin page.
So do you have any idea to solve this problem? If you need further information please let me know.