Page 1 of 1

Can I simply Delete Media Index Log via SSH?

Posted: 21 Apr 2023, 00:32
by quella
I have been having some issues with the media index (v5.1.33) and the process fails about a 1/3 of the way through with errors and it stops saying the indexing was completed, which it was not.

I have run the commands listed below (via SSH) to get the mediadb.log and media.log, but the media.log file is rather large to look through. Can I simply delete the two media log files in the /var/log directory and run a rebuild fro the GUI? I simply want to clear out the logs to make debugging of the issue much easier.

Commands to get logs for viewing:
cp -r /var/log/media.log /Volume1/public/
cp -r /var/log/mediadb/mediadb.log /Volume1/public/

Re: Can I simply Delete Media Index Log via SSH?

Posted: 21 Apr 2023, 00:45
by TMroy
You do not need to delete the database, you just need to rebuild the index, and the database will be overwritten. would you send us the log to check what stop the index to finish?

Re: Can I simply Delete Media Index Log via SSH?

Posted: 21 Apr 2023, 00:57
by quella
Thanks for the quick reply and follow-up. When I do a rebuild from the GUI, it does not seem to rewrite/overwrite the media.log file. If I download the log file after a rebuild, I still see log info from over a week ago. The file is currently 32.28mb in size. If it would be better, I can disable Indexing first, delete the log files, and re-enable the Indexing. Just did not want to break anything by removing these files. Thoughts?

Re: Can I simply Delete Media Index Log via SSH?

Posted: 21 Apr 2023, 01:06
by TMroy
If we do not know what reason the index stopped, another rebuild will not help, the same issue may happen again. would you send us the log to study?

Re: Can I simply Delete Media Index Log via SSH?

Posted: 21 Apr 2023, 03:39
by quella
I see the below in the logs when I do a new scan... Thoughts?

[2023/04/20 15:37:26] metadata.c:694: info: /Volume2/storage/Share/Photos/Uncategorized/tumblr_ohjrmzx8x11twe1q0o1_500.jpg don't have exif data
[2023/04/20 15:37:26] metadata.c:1107: info: thumbnailPath: /Volume2/@thumbnail/4908b38bfdb4f80be8a29441790f6c74/300_300_20.webp
[2023/04/20 15:37:26] metadata.c:879: info: Parsing /Volume2/storage/Share/Photos/Uncategorized/tumblr_ohk5bc5vhC1s299zxo1_1280.jpg ImageMetadata
[2023/04/20 15:37:26] minidlna.c:1360: info: Scanner exited
[2023/04/20 15:37:26] monitor_inotify.c:494: info: start monitor inotify the file

Re: Can I simply Delete Media Index Log via SSH?

Posted: 21 Apr 2023, 17:31
by TMroy
quella wrote: 21 Apr 2023, 03:39 I see the below in the logs when I do a new scan... Thoughts?

[2023/04/20 15:37:26] metadata.c:694: info: /Volume2/storage/Share/Photos/Uncategorized/tumblr_ohjrmzx8x11twe1q0o1_500.jpg don't have exif data
[2023/04/20 15:37:26] metadata.c:1107: info: thumbnailPath: /Volume2/@thumbnail/4908b38bfdb4f80be8a29441790f6c74/300_300_20.webp
[2023/04/20 15:37:26] metadata.c:879: info: Parsing /Volume2/storage/Share/Photos/Uncategorized/tumblr_ohk5bc5vhC1s299zxo1_1280.jpg ImageMetadata
[2023/04/20 15:37:26] minidlna.c:1360: info: Scanner exited
[2023/04/20 15:37:26] monitor_inotify.c:494: info: start monitor inotify the file
the log told the photo "tumblr_ohk5bc5vhC1s299zxo1_1280.jpg" fails to add into index, would you send us this photo to check what's wrong with it?

Re: Can I simply Delete Media Index Log via SSH?

Posted: 21 Apr 2023, 17:59
by quella
So, the file that the scanner lists just prior to the stop event is the one that has an issues? I can take a look at that specific file, and run the index again. Earlier I did run a few indexes and it seemed to stop a a few different files. Maybe I will put them in a non-indexed folder until I can get a complete index. If I cannot seem to solve it, I will send you a few of the files for validation. Could it be an issue with the metadata found in that specific file?

Thank you.

Re: Can I simply Delete Media Index Log via SSH?

Posted: 22 Apr 2023, 00:26
by TMroy
if you can send us such photos, that will be a great help.