Appdata on all my disks


Recommended Posts

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/

Link to comment
  • Replies 124
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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/

Link to comment
  • 2 weeks later...
  • 1 month later...
Posted (edited)

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
Link to comment
Posted (edited)

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
Link to comment
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.

Link to comment

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

Link to comment

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?

Link to comment

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?

Link to comment

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

Link to comment
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.

Link to comment

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
 

Link to comment

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.

Link to comment
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

Link to comment

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.