wassereimer Posted May 24, 2023 Share Posted May 24, 2023 Hi, i get the following error: Error response from daemon: container 9dd69bd732f0f6e4bfd7787f5ef5cc18941253a19c2aee423faa5bcc2d8d480b: driver "zfs" failed to remove root filesystem: exit status 1: "/usr/sbin/zfs fs destroy -r ssd/System/53bcad0d4b8bd8f9ecdfbdab5a3e843f664a98591a6f57b5836007dd8eceb0d7" => cannot open 'ssd/System/53bcad0d4b8bd8f9ecdfbdab5a3e843f664a98591a6f57b5836007dd8eceb0d7': dataset does not exist Im on Unraid Version 6.12.0-rc6 and use the zfs filesystem. Best regards Quote Link to comment
JorgeB Posted May 24, 2023 Share Posted May 24, 2023 Please post the diagnostics. Quote Link to comment
wassereimer Posted May 24, 2023 Author Share Posted May 24, 2023 Sorry, here they are! homeserver-diagnostics-20230524-1812.zip Quote Link to comment
JorgeB Posted May 24, 2023 Share Posted May 24, 2023 Not seeing that in the logs, where did you see those errors? Also are you have issues stopping the array due to the pool being in use? Quote Link to comment
wassereimer Posted May 24, 2023 Author Share Posted May 24, 2023 In the unraid UI i just get Execution error Server error When i use docker compose i get the error. Quote Link to comment
wassereimer Posted May 24, 2023 Author Share Posted May 24, 2023 And if i want to do docker-compose up, i now get failed to register layer: exit status 2: "/usr/sbin/zfs fs snapshot ssd/System/b22b6c868df6ce04c55ffda2784887209f9129d6bad85a33dcb6523094c8fa82@749664689" => cannot open 'ssd/System/b22b6c868df6ce04c55ffda2784887209f9129d6bad85a33dcb6523094c8fa82': dataset does not exist usage: snapshot [-r] [-o property=value] ... <filesystem|volume>@<snap> ... For the property list, run: zfs set|get For the delegated permission list, run: zfs allow|unallow Quote Link to comment
wassereimer Posted May 24, 2023 Author Share Posted May 24, 2023 Nothing works at the moment with docker. Is there a way to fix this? Or to completely reset docker? (except the volumes if possible - but i have backups if really needed) Quote Link to comment
wassereimer Posted May 24, 2023 Author Share Posted May 24, 2023 I dont have any docker images or containers but still have one in unraid Quote Link to comment
wassereimer Posted May 24, 2023 Author Share Posted May 24, 2023 And while trying to reboot the last time it wasn't a clean reboot. Unraid generated diagnostics. There Unraid had multiple entrys with May 24 17:40:16 HomeServer emhttpd: Unmounting disks... May 24 17:40:16 HomeServer emhttpd: shcmd (1275): /usr/sbin/zpool export ssd May 24 17:40:16 HomeServer root: cannot unmount '/var/lib/docker/zfs/graph/53bcad0d4b8bd8f9ecdfbdab5a3e843f664a98591a6f57b5836007dd8eceb0d7-init': unmount failed Quote Link to comment
JorgeB Posted May 24, 2023 Share Posted May 24, 2023 34 minutes ago, wassereimer said: When i use docker compose i get the error. Cannot help with docker compose, does the GUI still work to create or use containers? Quote Link to comment
JorgeB Posted May 24, 2023 Share Posted May 24, 2023 Just now, wassereimer said: There Unraid had multiple entrys with Post those diags. Quote Link to comment
wassereimer Posted May 24, 2023 Author Share Posted May 24, 2023 4 minutes ago, JorgeB said: Cannot help with docker compose, does the GUI still work to create or use containers? Yes 6 minutes ago, JorgeB said: Post those diags. homeserver-diagnostics-20230524-1739.zip Quote Link to comment
wassereimer Posted May 24, 2023 Author Share Posted May 24, 2023 40 minutes ago, wassereimer said: Nothing works at the moment with docker. Is there a way to fix this? Or to completely reset docker? (except the volumes if possible - but i have backups if really needed) Is there a way for this? I need the docker containers up and running. Quote Link to comment
Solution JorgeB Posted May 24, 2023 Solution Share Posted May 24, 2023 Like mentioned cannot help with docker composer issues, but you can always try nuking the docker folder and recreating, also may be a good idea to try a docker image instead of folder. Quote Link to comment
wassereimer Posted May 24, 2023 Author Share Posted May 24, 2023 What do you mean with "may be a good idea to try a docker image instead of folder"? And nuking the docker folder means really deleting the complete docker directory? After that it will be newly installed? Quote Link to comment
JorgeB Posted May 24, 2023 Share Posted May 24, 2023 2 minutes ago, wassereimer said: After that it will be newly installed? You can recreate using the same settings and keeping the data if you use the existing appdata folder (this for containers installed with CA): https://forums.unraid.net/topic/57181-docker-faq/?do=findComment&comment=564309 Quote Link to comment
wassereimer Posted May 24, 2023 Author Share Posted May 24, 2023 Thank you. That helped to remove the old content. Then i will now install everything with CA. Hopefully everything is available. It's just so complicated instead of docker compose.... I hope there will be no more errors. Quote Link to comment
JorgeB Posted May 24, 2023 Share Posted May 24, 2023 If there are more errors unmounting the cache because of docker please save and post those diags as well, to compare with the previous ones. Quote Link to comment
wassereimer Posted May 24, 2023 Author Share Posted May 24, 2023 Is it normal that the CAs ignore the "Default appdata storage location" i have set to "/mnt/user/System/appdata/"? When i want to install one everything is set to "/mnt/user/appdata/[+ca+subfolder]". Quote Link to comment
itimpi Posted May 24, 2023 Share Posted May 24, 2023 Is there a reason for trying to put appdata under the System share rather than letting it be a share in its own right. I think the default settings for most templates are defined by the template authors rather than CA, so going non-standard means those defaults will often not work for you. Quote Link to comment
Squid Posted May 24, 2023 Share Posted May 24, 2023 The docker system automatically maps anything that has a container path of /config to whatever the default appdata path is. Your mosquitto template doesn't have a /config, but rather has /mosquitto/config and /mosquitto/data so the system leaves it all alone and uses whatever the template has in there by default since it has no idea that it is actually a config path. This is all done by the template system. CA only modifies paths that the maintainers use if they directly reference a disk or pool. EG if a path in the template says /mnt/download_pool/downloads, but you don't have a pool named "download_pool", then CA will adjust the path to reference a pool which you do have (or a direct disk reference if you don't have any pools) Quote Link to comment
wassereimer Posted May 25, 2023 Author Share Posted May 25, 2023 7 hours ago, itimpi said: Is there a reason for trying to put appdata under the System share rather than letting it be a share in its own right. I think the default settings for most templates are defined by the template authors rather than CA, so going non-standard means those defaults will often not work for you. It was just for my inner Monk. It was all lowercase and didn't fit in my structure as I like it. 😅 And since there is an option, I used it. 🙂 But yes, I had to change a lot of paths, but that was ok for me. I was just confused that the default will not be used. 6 hours ago, Squid said: The docker system automatically maps anything that has a container path of /config to whatever the default appdata path is. Your mosquitto template doesn't have a /config, but rather has /mosquitto/config and /mosquitto/data so the system leaves it all alone and uses whatever the template has in there by default since it has no idea that it is actually a config path. This is all done by the template system. CA only modifies paths that the maintainers use if they directly reference a disk or pool. EG if a path in the template says /mnt/download_pool/downloads, but you don't have a pool named "download_pool", then CA will adjust the path to reference a pool which you do have (or a direct disk reference if you don't have any pools) Thank you for the explanation! In as little as two or three cases, my path was used. But I wasn't able to tell why. Now I know the "why". 🙂 Also, thank you again for helping me out to fix my docker. I'm still not a fan of how the docker containers are added and controlled in the UI, but this works better at the moment. An official and basic docker compose support, without the need of the CAs, would be great and a good compromise I think. Quote Link to comment
ZooMass Posted September 7, 2023 Share Posted September 7, 2023 (edited) I am also experiencing this issue on Unraid 6.12.4 with Docker image data in an individual share on a ZFS disk. Cannot remove a container through CLI or Force Update through GUI, so the container is stuck. $ zfs version zfs-2.1.12-1 zfs-kmod-2.1.12-1 $ docker rm -f my-app Error response from daemon: container 3ed55f07dde27c39b475b232e8a06f248c19fc09f6464fbaf0276b8c81cab4ff: driver "zfs" failed to remove root filesystem: exit status 1: "/usr/sbin/zfs fs destroy -r cache/docker/503e6d29ad94faaa061257e4ab1c13c30cac283b17ad29d4edc2c5f283428888" => cannot open 'cache/docker/503e6d29ad94faaa061257e4ab1c13c30cac283b17ad29d4edc2c5f283428888': dataset does not exist $ zfs list | grep 503e6d29ad94faaa061257e4ab1c13c30cac283b17ad29d4edc2c5f283428888 cache/docker/503e6d29ad94faaa061257e4ab1c13c30cac283b17ad29d4edc2c5f283428888-init 136K 863G 91.4M legacy $ zfs unmount cache/docker/503e6d29ad94faaa061257e4ab1c13c30cac283b17ad29d4edc2c5f283428888 cannot open 'cache/docker/503e6d29ad94faaa061257e4ab1c13c30cac283b17ad29d4edc2c5f283428888': dataset does not exist $ zfs destroy cache/docker/503e6d29ad94faaa061257e4ab1c13c30cac283b17ad29d4edc2c5f283428888 cannot open 'cache/docker/503e6d29ad94faaa061257e4ab1c13c30cac283b17ad29d4edc2c5f283428888': dataset does not exist Some relevant GitHub issue discussions: 2015-09-07 moby/moby not exactly the same error but relevant, and I had the same one previously (nuked all Docker image data to solve) 2017-02-13 moby/moby 2019-10-24 moby/moby 2020-06-02 moby/moby 2021-12-13 moby/moby references above issue Based on the 2017-02-13 issue, I tried stopping Docker service and `rm /var/lib/docker` and restarting service, no change. The 2019-10-24 issue says that ZFS 2.2 may introduce a fix. The 2020-06-02 issue and Unraid user BVD recommend creating a zvol virtual disk with a non-ZFS filesystem inside. May have minor performance impact (another filesystem abstraction layer) and also limits the size of the docker.img (I changed to directory image data in the first place because I wanted no limit besides bare metal disk space). Hope that Unraid promptly upgrades to ZFS 2.2 when it is released. Attached diagnostics. tower-diagnostics-20230906-2033.zip Edited September 7, 2023 by ZooMass Added links to relevant issues 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.