Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Support] alturismo - Repos

Featured Replies

  • Author
5 hours ago, mdastous said:

Should I be worried about performance impact of this setting? 

may read again ... what impact should this setting have to performance ... ?

 

its just about more frequently check temps and adjust.

  • Replies 705
  • Views 55.4k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Cache Mover Update   see the extra part in the config page (here incl. opened help sections)     Media Server Mode:   off (or empty), will ONLY run regular mod

  • ok, never thought of that (yet)   noted, and yes, no deal breaker ... just have to think about how to tag either Docker or VM ... will leave a note here.   thanks for the feedback

  • Yes , only unbinding than reboot makes the gpu free than I attach it to VM and than it works for VM only and cannot be used for docker containers . To make it work for docker container i have to bind

Posted Images

@PWM Fans

On my system, the fan does not reliable start when HDDs awake from sleep. It doesn't happen every time, but often enough to write this message.

For context:
- on my main board, the fans need to be turned off manually in BIOS for Unraid plugins to take control (did already apply for Unmanic plugin, I used before, too)
- cron job is working, plugin shows it's started and fan is running

- restarted Unraid yesterday, HDDs went to sleep, woke up first time, fan started running, HDDs went to sleep again, woke up second time today, fan didn't start. Noticed rising temperature, checked cron (still running), reinstalled plugin, tried "echo > 1 /fanxyz_enable" nothing happened. Restarted Unraid: fan is running again.

Any ideas?

  • Author
1 hour ago, Sci-Fidelity said:

Any ideas?

not in a short shot ;)

 

sounds like your mainboard refusing after sometime to let OS control.

 

may as lookup, instead

 

2 hours ago, Sci-Fidelity said:

echo > 1 /fanxyz_enable

 

check from time to time if its still enabledfor OS, sample

 

root@AlsServerII:~# cat /sys/devices/platform/nct6775.672/hwmon/hwmon2/pwm1_enable
1
root@AlsServerII:~#

 

then, may check manual control, sample (depending now on your setup)

 

echo 255 > /sys/devices/platform/nct6775.672/hwmon/hwmon2/pwm1

 

that should startup fan to full speed, if not, something is ...broke.

 

another guess, may your fans dont like spindown complete ... may give them a manual "kick" by hand while they should run ...

 

as im currently still in renovation and moving, support is a little low here currently.

- It is still enabled for OS, command gave back 1 (even when HDDs spun up and fan did not)

- echo 255 (or any other value) didn't do anything

- fan is Noctua, never gave an issue before
- reverted to old Dynamix plugin to double-check behavior, for now (will report back regarding fan spindown assumption)

No worries, good luck, and thanks for replying anyway!

  • Author
11 hours ago, Sci-Fidelity said:

- It is still enabled for OS, command gave back 1 (even when HDDs spun up and fan did not)

 

ok, then nothing did disable it, as it should be

 

11 hours ago, Sci-Fidelity said:

- echo 255 (or any other value) didn't do anything

 

there is the issue, even setting the highest value doesnt com to the BIOS

 

11 hours ago, Sci-Fidelity said:

- fan is Noctua, never gave an issue before

same here, also Noc's here ... silent, reliable, good ;)

 

11 hours ago, Sci-Fidelity said:

- reverted to old Dynamix plugin to double-check behavior, for now (will report back regarding fan spindown assumption)

let me know if there is any change, actually it does the same command (as thats the only way to control the fan) ;)

but may something is not working nice in my plugin on your sys.

I see it's been brought up a few times earlier, but I wanted to chime in and mention that I also have the issue where media files aren't being deleted from the cache, even if they haven't been watched for weeks. Something appears to cause the accessed time to update at 2:30 AM every night. I'm not sure what it is, I don't have any user scripts or Plex scheduled tasks that should be running at that time.

 

The mode I use is "Media Server: Only", so I think a solution that would work 100% of the time for that setting would be to store the access times from the media player playback itself rather than going off of the file system access times.

 

In any case, it's a really useful plugin. Thanks a lot for making it, I appreciate it!

Question about cache mover. It took some tinkering to get it setup but it's been running great except for one thing...

 

I have it set to move files instead of if folders which works great for movies, but for tv shows it seems like the plugin checks the last access time for copied file but it also checks the folder size for the season folder on the array instead of the individual file size. Since it only copied a single episode(s) and not the entire season, the logs says the size doesn't match on disk, check manually. 

 

Is there a setting I need to change to have the plugin not check the size of the season folder on the array but to check the file size of the file on the cache and array then make it's decision?

 

Thanks again for a great plugin!

  • Author
2 hours ago, Faxton said:

In any case, it's a really useful plugin. Thanks a lot for making it, I appreciate it!

thanks for the feedback

 

2 hours ago, Faxton said:

so I think a solution that would work 100% of the time for that setting would be to store the access times from the media player playback itself rather than going off of the file system access times.

well ... good point as there are more ppl here which doesnt know what happens on their system (i know, its sarcasm ... ;))

 

actually, normally this wont happen, sample here

 

Apr 20 07:05:01 AlsServerII root: cache-cleaner: /mnt/cache/Media/TVRIPS/Supernatural/Season 11 56 still in range
Apr 20 07:05:01 AlsServerII root: cache-cleaner: /mnt/cache/Media/TVRIPS/Supernatural/Season 12 32 still in range

 

but yes, i ll consider writing something up to be independant on OS behaviour, but im pretty sure somebbody  will  come up and say why my cached files are deleted while im ... nevermind, may i make it optional ;)

 

will take some time (sorry) but still in renovation mode here, moved over now but still plenty of work todo (besides my regular job)

 

1 hour ago, toyanucci said:

Is there a setting I need to change to have the plugin not check the size of the season folder on the array but to check the file size of the file on the cache and array then make it's decision?

 

actually, simple fail from me ;) i added the file feature by demand but forgot to add it on cleaner mode, you are absolutely right, doesnt work ;) my fault. thanks for pointing this.

 

about timeline, please see upper info about current free time, but will come for sure, sorry for now.

 

1 hour ago, toyanucci said:

I have it set to move files instead of if folders which works great for movies,

just as note, it also works for regular folder mode (which i always would prefer, sample sub files ...), but has nothing todo now with the missing part in cleaner mode, just as note ...

 

alsothanks for the feedback.

1 hour ago, alturismo said:

thanks for the feedback

 

well ... good point as there are more ppl here which doesnt know what happens on their system (i know, its sarcasm ... ;))

 

actually, normally this wont happen, sample here

 

Apr 20 07:05:01 AlsServerII root: cache-cleaner: /mnt/cache/Media/TVRIPS/Supernatural/Season 11 56 still in range
Apr 20 07:05:01 AlsServerII root: cache-cleaner: /mnt/cache/Media/TVRIPS/Supernatural/Season 12 32 still in range

 

but yes, i ll consider writing something up to be independant on OS behaviour, but im pretty sure somebbody  will  come up and say why my cached files are deleted while im ... nevermind, may i make it optional ;)

 

will take some time (sorry) but still in renovation mode here, moved over now but still plenty of work todo (besides my regular job)

 

actually, simple fail from me ;) i added the file feature by demand but forgot to add it on cleaner mode, you are absolutely right, doesnt work ;) my fault. thanks for pointing this.

 

about timeline, please see upper info about current free time, but will come for sure, sorry for now.

 

just as note, it also works for regular folder mode (which i always would prefer, sample sub files ...), but has nothing todo now with the missing part in cleaner mode, just as note ...

 

alsothanks for the feedback.

Thanks for the quick reply and the time you've put into this plugin. I'll look out for that update whenever you get a chance to revisit the issue. And just out of curiosity...would it be feasible to have an option to spin the array down after switching the playback to the cache drive? I've been looking for a script to do it but I've been unsuccessful 🙃.

- Cache Mover (Media Cacher)

Hello,
thank you very much for creating this plugin, it is very helpful so far. In my setup i backup my full cache disk to my array, which results in my media paths to appear twice when searching the disk. Now if cache mover detects a file being played which is on the cache it also finds it on the array in the backup folder, it then proceeds to copy this folder to cache. This should not happen as the file is not played from the backup folder. Setting the Cache Mover Exclusions option to the backup folder does not seem to work, as as far as i can see it only checks the openfiles and not the built rsync path. Am i correct in my assumption?
This is the line in the script:
        ### break if there is a exclusion match
        if [ ! -z "$exclusions" ]; then
                if [[ ! $(cat $tmp_openfiles | grep -E "$exclusions") == "" ]]; then
                        echo "matching exclusion $exclusions, breaking here"
                        exit;
                fi
        fi
I use the media server only mode.
Thank you very much in advance!

Edited by GiacoMujNo

  • Author
7 hours ago, GiacoMujNo said:

i backup my full cache disk to my array, which results in my media paths to appear twice when searching the disk.

i assume there is your point, you probably added /mnt/cache/.. /mnt/disk1/... ,,, in your Media Server and not /mnt/user/...

 

am i correct ?

1 hour ago, alturismo said:

i assume there is your point, you probably added /mnt/cache/.. /mnt/disk1/... ,,, in your Media Server and not /mnt/user/...

 

am i correct ?

No I use /mnt/user/ This is my volume mapping for my media server: /data:/mnt/user/media

And when there is an open file I get a /mnt/user/ path(the one the script checks).

  • Author
4 hours ago, GiacoMujNo said:

No I use /mnt/user/ This is my volume mapping for my media server: /data:/mnt/user/media

 

ok, then i proll ymissunderstand your issue, may remember in a little (when i have more time) so we look into your point.

5 hours ago, alturismo said:

ok, then i proll ymissunderstand your issue, may remember in a little (when i have more time) so we look into your point.

Great thank you!
I think i have found the source of my problem. The script searches the whole array and not only the media share defined in the media server mapping. For this i hardcoded the find command in the script to my media share, to solve this problem for now. It now looks like this: diskpath=$(find /mnt/disk[0-9]/media -type f -name "$filename_search")
For a general solution to this problem, would it make sense to instead of searching for the file on all disks replace the user in the openfile path with user0 and check if the file exists. Then move or copy that from user0 to the cache pool. I am not that experienced with unraid plugins so this could also not make sense at all, sorry if that is the case.
Anyway thank you very much for creating and maintaining this plugin!

  • Author
49 minutes ago, GiacoMujNo said:

For a general solution to this problem, would it make sense to instead of searching for the file on all disks replace the user in the openfile path with user0 and check if the file exists. Then move or copy that from user0 to the cache pool. I am not that experienced with unraid plugins so this could also not make sense at all, sorry if that is the case.

its been like this before, but for adding more options like UAD "arrays" behind mergerfs ... i changed to /mnt/disk, we ll see in future.

 

thanks for the feedback.

On 4/20/2025 at 7:29 AM, alturismo said:

let me know if there is any change, actually it does the same command (as thats the only way to control the fan) ;)

but may something is not working nice in my plugin on your sys.

Reverted to old Dynamix Plugin and had the same behavior, changed to your PWM Fan again, fiddled with some fan settings in BIOS, and it seems to work smoothly since two days now. 

  • Author
4 minutes ago, Sci-Fidelity said:

Reverted to old Dynamix Plugin and had the same behavior, changed to your PWM Fan again, fiddled with some fan settings in BIOS, and it seems to work smoothly since two days now. 

Thanks for the feedback 👍

On 4/22/2025 at 8:01 PM, alturismo said:

its been like this before, but for adding more options like UAD "arrays" behind mergerfs ... i changed to /mnt/disk, we ll see in future.

 

thanks for the feedback.

Would it make sense to use the Expire Target Dir option for this use case? As I understand, someone who doesn't use the normal array should not use this option.
Thank you!

Hi! New here. I found your Cache Mover (Media Cacher) via github and I "think" it can do what I want.

 

I'm wondering if there is anyway to repurpose the plugin for another source other than plex media files. I'd want the ability to point it to the lightroom files if I ever need to re-edit them. I made a post in the general forum and was told to post in the plugin's support forum.

 

https://forums.unraid.net/topic/189514-move-a-set-of-files-from-array-to-cache/

 

Thanks for any input into this.

  • Author
9 hours ago, VeloxNex said:

I'm wondering if there is anyway to repurpose the plugin for another source other than plex media files. I'd want the ability to point it to the lightroom files if I ever need to re-edit them. I made a post in the general forum and was told to post in the plugin's support forum.

 

actually its not meant for "Plex" Media Files, its meant for Media Files gennerally  ;)

 

about your questions, 2 main points before processing

 

1/ there is a Mediaserver setup (senseless for your case) and a "general setup" for open Media Files

 

now, depending on your app (lightroom) if the app keeps the file open on the filesystem, if so, yes, this plugin could copy the file to the cache and switch access "live" ... now to  2/

 

2/ the plugin is not meant for edited files ... at least not in the current state ;) its about consume from cache (ssd) instead array (hdd)

 

now, when you edit files on the cache, next step to consider would be, what happens then ... "who" is taking care about versioning and copy (move) back to array ... this is not implemented yet at all, well, i had a optional move function instead copy before which would somehow satisfy this (always only 1 version on Share) ... but dropped it as main purpose and better disk handling is copy and delete after time consumed (the cached copy).

 

back to 1/ i cant imagine your app will active keep the file open on the filesystem, you may can check this as simple sample from an open file in lightroom on as sample disk2 by checking in unraid terminal

 

lsof -a /mnt/disk2/

 

it needs to be open all the time ...

 

if not, the general mode is already obsolet, next lookup would be then, is there some api call to lightroom to check "open files" and the app will respond them, thats what this plugin does in "Mediaserver mode" ... calling Plex, Emby, Jelly, they tell what is currently played, plugin processing then ...

 

so, until 1/ is open, we dont have to consider 2/ ;)

  • 3 weeks later...

I have been trying to set up the Cache Mover Plugin for a while now. It seems to work from time to time, but it is not consistent. It is also telling me that it can't access the following locations.

May 12 17:32:40 Cyberdyne root: cache-cleaner: chmod: cannot access '/mnt/user/system/mover/mover_excl.txt': No such file or directory
May 12 17:32:40 Cyberdyne root: cache-cleaner: chmod: cannot access '/mnt/user/system/mover/mover_ignore.txt': No such file or directory

Do I need to create these?

 

I am also wondering about media subfolders, mine are named: hd movies, hd tv, sd movies, tv and anime. With it requiring a space separator will my naming scheme not work?

Screenshot 2025-05-13 070556.png

Screenshot 2025-05-13 070630.png

Screenshot 2025-05-13 070621.png

cache cleaner log.txt cache mover log.txt

Edited by UninspiredENVY
I added logs and screen shots of my settings for reference.

  • Author
5 hours ago, UninspiredENVY said:

Do I need to create these?

 

yep, would be useful in combination with mover tuning to temp exclude them to get moved off

 

5 hours ago, UninspiredENVY said:

With it requiring a space separator will my naming scheme not work?

exactly, actually i didnt implemented support for "spaces" in dirnames, you can try to put the in quotes ... never tested, spaces in root dirnames are not a good idea anyway in my personal enviroment ;)

So I added those files and it still doesn't seem to be working right. I've seen it move a few shows but they arent even ones that people are watching. What could I be doing wrong?

 

It continues to move Doctor Who as shown below but nobody is watching that show.

 

May 13 13:02:28 Cyberdyne root: cache-mover: reg: Number of files: 35 (reg: 34, dir: 1)
May 13 13:02:28 Cyberdyne root: cache-mover: reg: Number of created files: 34 (reg: 34)
May 13 13:02:28 Cyberdyne root: cache-mover: reg: Number of deleted files: 0
May 13 13:02:28 Cyberdyne root: cache-mover: reg: Number of regular files transferred: 34
May 13 13:02:28 Cyberdyne root: cache-mover: reg: Total file size: 4.39G bytes
May 13 13:02:28 Cyberdyne root: cache-mover: reg: Total transferred file size: 4.39G bytes
May 13 13:02:28 Cyberdyne root: cache-mover: reg: Literal data: 4.39G bytes
May 13 13:02:28 Cyberdyne root: cache-mover: reg: Matched data: 0 bytes
May 13 13:02:28 Cyberdyne root: cache-mover: reg: File list size: 0
May 13 13:02:28 Cyberdyne root: cache-mover: reg: File list generation time: 0.001 seconds
May 13 13:02:28 Cyberdyne root: cache-mover: reg: File list transfer time: 0.000 seconds
May 13 13:02:28 Cyberdyne root: cache-mover: reg: Total bytes sent: 4.36G
May 13 13:02:28 Cyberdyne root: cache-mover: reg: Total bytes received: 662
May 13 13:02:28 Cyberdyne root: cache-mover: reg: 
May 13 13:02:28 Cyberdyne root: cache-mover: reg: sent 4.36G bytes  received 662 bytes  170.85M bytes/sec
May 13 13:02:28 Cyberdyne root: cache-mover: reg: total size is 4.39G  speedup is 1.01
May 13 13:02:28 Cyberdyne root: cache-mover: reg: open file Doctor Who (1963) - S04E31 - The Faceless Ones 1 [Bluray-1080p][AAC 2.0][h265]-OUIJA.mkv will be switched datacache now
May 13 13:02:29 Cyberdyne root: cache-mover: reg: /mnt/datacache/data/media/tv/Doctor Who (1963) {imdb-tt0056751}/Season 04/Doctor Who (1963) - S04E31 - The Faceless Ones 1 [Bluray-1080p][AAC 2.0][h265]-OUIJA.mkv
May 13 13:02:29 Cyberdyne root: cache-mover: reg: ready to switch live
May 13 13:02:29 Cyberdyne root: cache-mover: reg: -: No such file or directory.
May 13 13:02:29 Cyberdyne root: cache-mover: reg: (gdb) Attaching to process 23401
May 13 13:02:29 Cyberdyne root: cache-mover: reg: [New LWP 65818]
May 13 13:02:29 Cyberdyne root: cache-mover: reg: [New LWP 65815]
May 13 13:02:29 Cyberdyne root: cache-mover: reg: [New LWP 65814]
May 13 13:02:29 Cyberdyne root: cache-mover: reg: [New LWP 65813]
May 13 13:02:29 Cyberdyne root: cache-mover: reg: [New LWP 65811]
May 13 13:02:29 Cyberdyne root: cache-mover: reg: [New LWP 50379]
May 13 13:02:29 Cyberdyne root: cache-mover: reg: [New LWP 31787]
May 13 13:02:29 Cyberdyne root: cache-mover: reg: [New LWP 23881]
May 13 13:02:29 Cyberdyne root: cache-mover: reg: [New LWP 23403]
May 13 13:02:29 Cyberdyne root: cache-mover: reg: [New LWP 23402]
May 13 13:02:29 Cyberdyne root: cache-mover: reg: [Thread debugging using libthread_db enabled]
May 13 13:02:29 Cyberdyne root: cache-mover: reg: Using host libthread_db library "/lib64/libthread_db.so.1".
May 13 13:02:29 Cyberdyne root: cache-mover: reg: 0x000014576946dc4f in __futex_abstimed_wait_cancelable64 ()
May 13 13:02:29 Cyberdyne root: cache-mover: reg:    from /lib64/libc.so.6
May 13 13:02:29 Cyberdyne root: cache-mover: reg: (gdb) [Detaching after vfork from child process 1891811]
May 13 13:02:29 Cyberdyne root: cache-mover: reg: $1 = 246
May 13 13:02:29 Cyberdyne root: cache-mover: reg: (gdb) $2 = 179
May 13 13:02:29 Cyberdyne root: cache-mover: reg: (gdb) [Detaching after vfork from child process 1891813]
May 13 13:02:29 Cyberdyne root: cache-mover: reg: $3 = 0
May 13 13:02:29 Cyberdyne root: cache-mover: reg: (gdb) Detaching from program: /usr/libexec/unraid/shfs, process 23401
May 13 13:02:29 Cyberdyne root: cache-mover: reg: [Inferior 1 (process 23401) detached]
 

Edited by UninspiredENVY

  • Author
10 hours ago, UninspiredENVY said:

It continues to move Doctor Who as shown below but nobody is watching that show.

 

as we see its triggered by reg mode, meaning, may anything accessing the file triggering ...

 

try switch to Media Server mode

 

image.thumb.png.a40ca915e34291a11a165e680189d165.png

 

then it will only trigger if the Mediaserver will return playback.

I must have something setup wrong with my plex docker then because I cant get it to find anything at all if I switch it to only mode. Is there something I can send you to take a look at my setup and help me get this set properly?

 

When I set the cron to started it doesn't run any logs. The cache cleaner logs start but not the cache mover logs.

 

****Thanks for all your help on this. It looks like my issue is resolved and everything is working correctly now. 

Edited by UninspiredENVY
Issue resolved

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.