steve1977 Posted February 7, 2022 Author Share Posted February 7, 2022 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/ Quote Link to comment
trurl Posted February 7, 2022 Share Posted February 7, 2022 And what do you get with this? ls -lah / Quote Link to comment
steve1977 Posted February 7, 2022 Author Share Posted February 7, 2022 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/ Quote Link to comment
trurl Posted February 7, 2022 Share Posted February 7, 2022 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 Quote Link to comment
JonathanM Posted February 7, 2022 Share Posted February 7, 2022 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. Quote Link to comment
JorgeB Posted February 7, 2022 Share Posted February 7, 2022 32 minutes ago, JonathanM said: drwxr-xr-x Same for me. Quote Link to comment
steve1977 Posted February 12, 2022 Author Share Posted February 12, 2022 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? Quote Link to comment
steve1977 Posted February 27, 2022 Author Share Posted February 27, 2022 Any more ideas to help troubleshoot my issues. Happy to provide more info about my setup. Thanks! Quote Link to comment
steve1977 Posted April 5, 2022 Author Share Posted April 5, 2022 (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 Screenshot 2: Folder called "Yet" on this pool device Screenshot 3: User shares with "Yet" not showing up Screenshot 4: Manually added a user share called "Yet", settings below Screenshot 5: Yet user share exists, but no files can be seen (although the device pool test has files in folder yet) tower-diagnostics-20220405-1653.zip Edited April 5, 2022 by steve1977 Forgot to attach file Quote Link to comment
JorgeB Posted April 5, 2022 Share Posted April 5, 2022 Edit share.cfg on the flash drive, change shareCacheEnabled="no" to "yes" and reboot Quote Link to comment
steve1977 Posted April 5, 2022 Author Share Posted April 5, 2022 (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 April 5, 2022 by steve1977 Quote Link to comment
JorgeB Posted April 5, 2022 Share Posted April 5, 2022 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. Quote Link to comment
steve1977 Posted April 5, 2022 Author Share Posted April 5, 2022 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. Quote Link to comment
steve1977 Posted April 5, 2022 Author Share Posted April 5, 2022 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 Quote Link to comment
JorgeB Posted April 5, 2022 Share Posted April 5, 2022 Nothing in the syslog, maybe permission issues with those dockers. Quote Link to comment
steve1977 Posted April 5, 2022 Author Share Posted April 5, 2022 If so, any idea how i can fix such permission issues? Or otherwise “safe” these containers. Quote Link to comment
steve1977 Posted April 5, 2022 Author Share Posted April 5, 2022 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? Quote Link to comment
steve1977 Posted April 6, 2022 Author Share Posted April 6, 2022 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? Quote Link to comment
itimpi Posted April 6, 2022 Share Posted April 6, 2022 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 Quote Link to comment
steve1977 Posted April 6, 2022 Author Share Posted April 6, 2022 Thanks, that's what I was worried about. Would there be any way to keep the settings and database files? Quote Link to comment
itimpi Posted April 6, 2022 Share Posted April 6, 2022 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. Quote Link to comment
steve1977 Posted April 6, 2022 Author Share Posted April 6, 2022 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? Quote Link to comment
steve1977 Posted April 6, 2022 Author Share Posted April 6, 2022 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 Quote Link to comment
trurl Posted April 6, 2022 Share Posted April 6, 2022 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. Quote Link to comment
trurl Posted April 6, 2022 Share Posted April 6, 2022 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 Quote Link to comment
Recommended Posts
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.