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.

Appdata on all my disks

Featured Replies

  • Author
  • Community Expert

Thanks! Wasn't a copy&paste from an earlier post, but below is from a "fresh" command line run of the command you suggested.

 

Below is from the new command (with my username manually removed):

 

root@Tower:~# ls -lah /mnt/test
total 0
drwxrwxrwx  3 nobody   users  17 Feb  1 18:35 ./
drwxr-xr-x 21 root     root  420 Feb  1 18:25 ../
drwxrwxrwx  2 <myusername> users  54 Jan 22 07:19 Yet/

  • Replies 124
  • Views 12.6k
  • Created
  • Last Reply

Top Posters In This Topic

Posted Images

  • Community Expert

And what do you get with this?

ls -lah /

 

  • Author
  • Community Expert

And here we go:

 

root@Tower:~# ls -lah /
total 16K
drwxr-xr-x  20 root root  460 Feb  8 00:03 ./
drwxr-xr-x  20 root root  460 Feb  8 00:03 ../
-rw-------   1 root root   31 Feb  8 00:04 .bash_history
-rw-rw-rw-   1 root root  215 Feb  5 07:12 .wget-hsts
drwxr-xr-x   2 root root 3.7K Jan 22  2020 bin/
drwx------  17 root root 8.0K Jan  1  1970 boot/
drwxr-xr-x  15 root root 4.6K Feb  7 23:52 dev/
drwxr-xr-x  53 root root 3.0K Feb  7 23:39 etc/
drwxr-xr-x   2 root root   40 Apr  8  2021 home/
drwxr-xr-x   3 root root    0 Feb  1 18:25 hugetlbfs/
lrwxrwxrwx   1 root root   10 Apr  8  2021 init -> /sbin/init*
drwxr-xr-x   8 root root  160 Apr  8  2021 lib/
drwxr-xr-x   5 root root 3.5K Apr  8  2021 lib64/
drwxr-xr-x  21 root root  420 Feb  1 18:25 mnt/
drwx--x--x   3 root root   60 Feb  1 18:25 opt/
dr-xr-xr-x 733 root root    0 Feb  1 18:23 proc/
drwx--x---   2 root root  120 Apr  8  2021 root/
drwxr-xr-x  11 root root  280 Feb  1 18:25 run/
drwxr-xr-x   2 root root 5.1K Feb  1 18:24 sbin/
dr-xr-xr-x  13 root root    0 Feb  1 18:23 sys/
drwxrwxrwt  13 root root  320 Feb  8 00:18 tmp/
drwxr-xr-x  15 root root  360 Feb  7 03:02 usr/
drwxr-xr-x  14 root root  320 Apr  8  2021 var/

  • Community Expert

On my system, instead of

1 minute ago, steve1977 said:

drwxr-xr-x  21 root root  420 Feb  1 18:25 mnt/

I have

drwxrwx---  13 nobody users  260 Feb  2 10:36 mnt/

 

Let's see if anybody else chimes in with something different. @itimpi @JonathanM @Squid @JorgeB

Server 1
drwxr-xr-x   18 root root  360 Jan 30 11:03 mnt/

Server 2
drwxr-xr-x   8 root root  160 Jan  5 17:45 mnt/

Server 3
drwxr-xr-x  11 root root  220 Jan 11 08:52 mnt/

Server 4
drwxr-xr-x   9 root root  180 Jan 11 08:54 mnt/

 

Data points, but no clarity.

  • Community Expert
32 minutes ago, JonathanM said:
drwxr-xr-x

Same for me.

  • Author
  • Community Expert

So, you are saying that my permissions are actually correct?


Any other idea what I can do that the folders of cache devices are included in user shares?

  • 2 weeks later...
  • Author
  • Community Expert

Any more ideas to help troubleshoot my issues. Happy to provide more info about my setup. Thanks!

  • 1 month later...
  • Author
  • Community Expert

Thanks again @trurl, @JonathanMand @JorgeB.

 

I am still struggling to get this working. Let me recap my issue and also provide more detailed diagnostic logs and screenshots of my issue.

 

Issue: Folders on my pool device do not shop up as user shares. This leads to issues with some dockers.

 

Screenshot 1: Pool device in main screen. Currently a USB disk (Test), but also tried with internal disks without success

image.thumb.png.ea5700b3721319d23cd0679f3348fbc2.png

 

Screenshot 2: Folder called "Yet" on this pool device

image.thumb.png.6cd13a106d8303a7c1ce8b764bf67892.png

 

Screenshot 3: User shares with "Yet" not showing up

image.thumb.png.0fa614314b0b016754b20a6d6e4ddc38.png

 

Screenshot 4: Manually added a user share called "Yet", settings below

image.thumb.png.8238a8f8b93d4b565be4bdd5099d37d7.png

 

Screenshot 5: Yet user share exists, but no files can be seen (although the device pool test has files in folder yet)

image.thumb.png.8bb802527fecf35c9f1185c54a6140ba.png

tower-diagnostics-20220405-1653.zip

Edited by steve1977
Forgot to attach file

  • Community Expert

Edit share.cfg on the flash drive, change

shareCacheEnabled="no" to "yes" and reboot

  • Author
  • Community Expert

Hooray!!! Thanks a lot. This indeed finally solved my issue 🙂

 

Thanks a lot for your help!

 

Any idea why this wasn't set up properly and anything else I should check whether it is properly set up?

 

Seems I can now do some cleanup that my default locations are set properly. I believe they typically point to user shares? What are the Unraid defaults for the following folders?

 

Docker vdisk location

Default appdata storage location

Libvirt storage location

Default VM storage path

Default ISO storage path

 

Any other docker or VM related default path?


Where is the /user/system and /user/domains set and what is it for?

Edited by steve1977

  • Community Expert
1 hour ago, steve1977 said:

Any idea why this wasn't set up properly and anything else I should check whether it is properly set up?

IIRC it's a bug with v6.9.x, if cache wasn't enable before that release there's no way to enable it in the GUI.

  • Author
  • Community Expert

Thanks. Unfortunately, my docker containers don't work. Getting error message "docker AppFolder /config is not writable" in some of the logs. Will send diagnostic log shortly.

  • Author
  • Community Expert

I restarted. It seems that not only dockers have been impacted. See attached diagnostic log and dockers logs for the impacted ones:

 

Roonserver

/run.sh: line 39: /app/RoonServer/start.sh: Permission denied

 

Mylar 3

Loads up, but all settings are gone

 

Komga

ERROR 1 --- [ main] o.s.boot.SpringApplication : Application run failed

 

Plex

Allows me to select user, but then displays "no content available"

 

 

Any ideas?

 

tower-diagnostics-20220405-2322.zip

  • Community Expert

Nothing in the syslog, maybe permission issues with those dockers.

  • Author
  • Community Expert

If so, any idea how i can fix such permission issues? Or otherwise “safe” these containers.

  • Author
  • Community Expert

It's probably indeed what went wrong. I had ran "new permissions" on my appdata folder, which was probably a mistake.

 

Any idea how I can restore the respective docker permissions for each container? Will this give me my settings back?

  • Author
  • Community Expert

Please have a look at below. Example for permissions of my Plex folder:

 

ls -lah

total 20K
drwxrwxrwx 12 nobody users  332 Apr  6 11:55 ./
drwxrwxrwx 19 nobody users 4.0K Apr  5 23:17 ../
-rw-rw-rw-  1 nobody users 8.1K Feb 23  2019 .DS_Store
-rw-rw-rw-  1 nobody users 4.0K Feb 23  2019 ._.DS_Store
drwxrwxrwx  3 nobody users   33 Feb 23  2019 Library/
drwxrwxrwx  4 nobody users   39 Jun 13  2020 Transcode/
drwxr-xr-x  2 root   root     6 Apr  6 11:55 custom-cont-init.d/
drwxrwxrwx  2 nobody users    6 Feb 28 17:47 custom-cont-init.d.MVJ_wA1F/
drwxrwxrwx  2 nobody users    6 Jun 21  2021 custom-cont-init.d.Vau-uCpS/
drwxrwxrwx  2 nobody users    6 Apr  5 22:59 custom-cont-init.d.gB_ACZHC/
drwxr-xr-x  2 root   root     6 Apr  6 11:55 custom-services.d/
drwxrwxrwx  2 nobody users    6 Feb 28 17:47 custom-services.d.MVJ_wA1F/
drwxrwxrwx  2 nobody users    6 Jun 21  2021 custom-services.d.Vau-uCpS/
drwxrwxrwx  2 nobody users    6 Apr  5 22:59 custom-services.d.gB_ACZHC/
 

Any idea what to change and how to address my issue more broadly?

  • Community Expert

Each docker container will have its own unique requirements around permissions so there is no easy fix.   The only way that is guaranteed to work is to wipe the existing data for the containers and then start them up as though they were freshly installed so they can rebuild their appdata content

  • Author
  • Community Expert

Thanks, that's what I was worried about. Would there be any way to keep the settings and database files?

  • Community Expert
10 minutes ago, steve1977 said:

Would there be any way to keep the settings and database files

Settings are easy as they are stored on the Unraid flash drive.  If you delete the existing docker.img file so that Unraid creates a new empty one on restarting docker you can then use Apps->Previous Apps and tick of the containers to be reinstalled and they will be put back with their settings intact.

 

the above unfortunately does nothing for any databases the containers created in their appdata folders.

  • Author
  • Community Expert

Thanks. So, manually deleting the docker.img would solve part of it. I could try to spot the config.txt or .db files. And then later overwrite them and set the right permissions manually for such files?

  • Author
  • Community Expert

Seems I need to learn how to use chown... Can you jumpstart my efforts how to change permission for below? Seems I need to "remove 2 ws" and change userid/users to root/root.

 

-rw-r--r--  1 root     root  360K Apr  6 16:15 database.sqlite
-rw-rw-rw-  1 userid users 777M Apr  5 16:00 database.sqlite3
 

  • Community Expert

Previous Apps will let you reinstall your containers exactly as you had installed them before, but your problem is appdata permissions. You can start fresh with appdata by simply deleting the broken appdata for each and when the containers are reinstalled it will create new appdata with the correct permissions.

  • Community Expert
5 hours ago, steve1977 said:

Seems I need to learn how to use chown... Can you jumpstart my efforts how to change permission for below? Seems I need to "remove 2 ws" and change userid/users to root/root.

 

-rw-r--r--  1 root     root  360K Apr  6 16:15 database.sqlite
-rw-rw-rw-  1 userid users 777M Apr  5 16:00 database.sqlite3
 

How do you know what owner and permissions are correct? I guess you could install a new separate instance of each container and see how those are done.

 

https://www.cbtnuggets.com/blog/technology/system-admin/when-to-use-chmod-vs-chown

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.