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.

media share cache set to no but some files are cached

Featured Replies

Just noticed when I went into shares that it was showing that some files aren't protected, when looking on the cache drive I can see some media files are there, but under the share, it is set to 'no' under use cache.

 

Involking mover does not move the files back on to the array, whats going on?

If you have a single cache drive then files on it are unprotected - hence the indication.

 

To get the mover to move the files from the cache to the array first set the share to "Use Cache Disk: Yes". You can set it back to No after running the mover, if that's what you want.

Edited by John_M
typo

  • Author

But files shouldn't be on the cache disk, the media share is set to no. I don't know how the files have ended up on the cache disk but it does appear that they are a duplicate of what is already on the media share on the array. So I have just deleted the media folder from the cache drive.

Perhaps some misconfigured application put them there?

51 minutes ago, Spies said:

But files shouldn't be on the cache disk, the media share is set to no. I don't know how the files have ended up on the cache disk but it does appear that they are a duplicate of what is already on the media share on the array. So I have just deleted the media folder from the cache drive.

 

Do you use plugins/docker containers to download/process media files? If so, check their configurations.

 

If you deleted the media folder from the cache drive without moving the files it contained first, you probably lost them... The setting "no" only relates to writing, not to reading. If files are present on the cache drive folder corresponding to the "media" share, they will show up in the regular "media" share even if it is set not to use cache drive.

  • Author
5 minutes ago, gubbgnutten said:

 

Do you use plugins/docker containers to download/process media files? If so, check their configurations.

 

If you deleted the media folder from the cache drive without moving the files it contained first, you probably lost them... The setting "no" only relates to writing, not to reading. If files are present on the cache drive folder corresponding to the "media" share, they will show up in the regular "media" share even if it is set not to use cache drive.

files were already present on the array as I opened mc to move the folder but it reported that the files already existed.

  • Community Expert

From the V6 FAQ sticky at the top of this subforum:

 

 

46 minutes ago, Spies said:

files were already present on the array as I opened mc to move the folder but it reported that the files already existed.

If a file is present in /mnt/cache/media, it will also be present in /mnt/user/media. That does not mean that it will still be there if you delete it from the cache disk.

 

/mnt/user is the combined contents of the array's data disks and the cache disk/pool.

/mnt/user0 is the combined contents of the array's data disks only.

 

Hopefully you tried to move files to the latter...

 

In any case, try to figure out how the files ended up on the cache disk in the first place. My bet is on either a misconfigured plugin/docker container or that they were saved to a share using the cache and then moved to media using mc or similar.

  • Community Expert
1 hour ago, Spies said:

files were already present on the array as I opened mc to move the folder but it reported that the files already existed.

Were you trying to move from /mnt/cache/media to some specific disk, such as /mnt/disk1/media? (always move from disk to disk or user share to user share)

 

Or were you trying to move from /mnt/cache/media to /mnt/user/media? (never move from disk to user share or user share to disk)

 

As gubbgnutten has been saying, /mnt/cache/media is part of /mnt/user/media.

 

A user share is simply the contents of all top level folders with that name on cache or array disks. Folders on cache are included. The only thing the user share settings do is tell unRAID where to write new files.

 

I fear you have deleted some of your files.

  • Author

Looks like the files were indeed deleted. Thankfully I still have the rars so I can extract them again.

  • Author

It seems to be doing it again, my paths are set correctly in my dockers, is there a log somewhere that might show me why this is happening?

 

I remember moving files from /mnt/user/downloads (cache dir) to /mnt/user/media (array) but shouldn't that have actually moved the file and not just moved it into another folder on the cache drive?

Edited by Spies

  • Community Expert
22 minutes ago, Spies said:

I remember moving files from /mnt/user/downloads (cache dir) to /mnt/user/media (array) but shouldn't that have actually moved the file and not just moved it into another folder on the cache drive?

No. Linux doesn't know /mnt/user/downloads is a different disk than /mnt/user/media, so it moves it on the same disk. And since /mnt/user/media reads from all disks the files are in the media user share, just not on the disk you expect.

Archived

This topic is now archived and is closed to further replies.

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.