Closed xzeldon closed 1 year ago
You have a video (or file) in your videos folder that does not have a file type. You videos folder should only contain video files. If they don't have a file type on them or if you have a file that is not a video in there that is what is causing the problem. The scan is failing before it gets to the step of creating the thumbnails.
Check your /videos
path.
In /videos
directory only one file: , but thumbnails are not created.
Log:
fireshare | 2023-06-18 23:37:22,162 INFO __init__.update_config:27 | Validating configuration file...
fireshare | 2023-06-18 23:37:22,180 INFO cli.create_posters:227 | Checking for videos with missing posters...
fireshare | 2023-06-18 23:37:22,180 WARNING cli.create_posters:232 | Skipping creation of poster for video 07d60f8bdfe60ef6a1957f13cda543a1 because the video at /processed/video_links/07d60f8bdfe60ef6a1957f13cda543a1.mp4 does not exist or is not accessible
fireshare | 2023-06-18 23:37:22,180 INFO cli.bulk_import:286 | Finished bulk import. Timing info: {"scan_videos": 0.04590892791748047, "sync_metadata": 0.020049571990966797, "create_posters": 0.01930689811706543}
Well right there in your log it says one of your videos is not accessible.
Delete the videos via the fireshare ui and try uploading a video again. Make sure you have 0 videos. If you don't delete them with the fireshare ui they will still be in the database creating issues. OR you can delete everything in the /data and /processed folders and restart the application and see if that solves the issue.
This was an error on my end when coding #199 I'll make a patch and pull request it in ASAP
Fixed in #202 Waiting for the pull request to be accepted
@J-Stuff Ah! Thank you for catching that. I never came across that issue since I haven't added a new video in a while myself.
@xzeldon Here in about 45 minutes you can pull down a new docker container tagged v1.2.11
or latest
which includes @J-Stuff fix. Please let me know if that resolves the issue.
@ShaneIsrael Ok I pulled the develop
tag and the problem may have been solved, but the thumbnail is still not generated. The error message is gone, but the following warning appears:
fireshare | 2023-06-20 16:14:58,104 WARNING cli.sync_metadata:186 | Missing or invalid symlink at /processed/video_links/07d60f8bdfe60ef6a1957f13cda543a1.mp4 to video 07d60f8bdfe60ef6a1957f13cda543a1 (original location: 123.mp4)
It is worth mentioning that my instance of Fireshare is running inside a Docker container that is running in an LXC container on the Proxmox host with ext4 filesystem.
I created a Qemu virtual machine, pulled the develop
tag and everything seems to work as it should, thumbnails are created...
It seems that the problem was actually related to running inside the LXC container.
Anyway, thank you all for your help!
@xzeldon Awesome. Glad you were able to figure it out.
Keep in mind, the develop tag will always be updated with what is on the develop branch which is more likely to have an issue or not work at all. I would either use the latest
tag or hard set it to v1.2.11
. Latest is always the latest production ready build which is less likely to be plagued with an issue.
@ShaneIsrael Thank you! I will do so. It's just that at the time of testing the v1.2.11
tag was not on the Docker Hub.
Describe the bug No thumbnails are generated after scanning the library
To Reproduce
Expected behavior Thumbnails are generated after scanning the library
Screenshots![image](https://github.com/ShaneIsrael/fireshare/assets/18625282/0990f5ab-bc7a-43ff-b1d7-abd222eb91ca)
Desktop (please complete the following information):
112.0.5615.50
(Official Build) (64-bit)Additional context Error log:
../videos/uploads
contents: