My media files are owned by user 100000 inside the lxc container and all of my docker container use that user and group with chmod 660 on files and 770 on folders (umask 007). So I don't think it's a permission issue either.
Sorry for the late response. I have changed my entire setup. Different distro and everything is set up a lot simpler. However I am still getting the io errors. the rclone-mount.log file doesn't give any debug information for errors like this. Only thing it says is when it's clearing the cache. It has to be something with the cloud files. Newly imported files are getting new subtitles. Cloud files from rclone are getting the io errors. I think the software can't access certain information of the files it needs to get the right subtitles.
Do you have any idea how to fix this and otherwise someone who can help me. The developer of the software "Bazarr" says he can't help me because io errors mean that there's something wrong with my drives. Well, that's definitely not it because I've recently replaced my drives with warranty.
I think I know why local files work and cloud files don't. Local files have chmod 777 because that's what I tell sonarr/radarr to give them. However when uploaded to the cloud rclone is giving them chmod 666 and I can't change it manually with commands. In my systemd rclone mount I have umask 000. With umask it's usually the case that folders will get a higher chmod than files. Umask 000 for example is 777 for folders and 666 for files. I think bazarr needs to have executive permissions in order to obtain certain information about the files?
How can I configure rclone to also give chmod 777 to files?
It's just much easier to share the updated command and the output and what you want to happen as opposed to what you are seeing.
I can't see your server/session so ensuring you share what you are running just makes things smoother as no one is guessing what you may or may not have added.
If that's too much to add in, I'm not sure what else to offer.
I am not running any command. It's just bazarr that is giving the error whenever it's searching for subtitles.
BAZARR Error ([Errno 5] I/O error) trying to get video information for this file: /data/tvshows_shared/Game of Thrones/Season 06/Game of Thrones (2011) - S06E01 - The Red Woman [HDTV-1080p].mkv
Traceback (most recent call last):
File "/app/bazarr/bin/bazarr/subtitles/utils.py", line 39, in get_video
video = parse_video(path, hints=hints, providers=providers, dry_run=used_scene_name,
File "/app/bazarr/bin/bazarr/../libs/subzero/video.py", line 61, in parse_video
return scan_video(fn, hints=hints, dont_use_actual_file=dry_run, providers=providers,
File "/app/bazarr/bin/bazarr/../libs/subliminal_patch/core.py", line 799, in scan_video
video.hashes[\'opensubtitles\'] = osub_hash = osub_hash or hash_opensubtitles(hash_path)
File "/app/bazarr/bin/bazarr/../libs/subliminal/utils.py", line 32, in hash_opensubtitles
filebuffer = f.read(bytesize)
OSError: [Errno 5] I/O error
From the bazarr docker, test out and share the permissions on the mergerfs mount and the rclone locations.
docker exec -it bazarr bash
ls -al /data/tvshows_shared/Game of Thrones/Season 06/Game of Thrones (2011) - S06E01 - The Red Woman [HDTV-1080p].mkv
head /data/tvshows_shared/Game of Thrones/Season 06/Game of Thrones (2011) - S06E01 - The Red Woman [HDTV-1080p].mkv
and on the rclone mount
ls -al /srv/mergerfs/pool/gmedia-cloud/tvshows_shared/Game of Thrones/Season 06/Game of Thrones (2011) - S06E01 - The Red Woman [HDTV-1080p].mkv
head /srv/mergerfs/pool/gmedia-cloud/tvshows_shared/Game of Thrones/Season 06/Game of Thrones (2011) - S06E01 - The Red Woman [HDTV-1080p].mkv