-
-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zurg Mount is messing up Docker Desktop in M1 Max MBP running MacOS #124
Comments
I believe I have encountered something similar in the past. What helped was mounting one folder above the actual Zurg mount instead. So in your case realdebrid instead of realdebrid/torrents |
It somehow recovered which is strange. And I added movie from Radarr and RDTClient, but RDTClient created a folder with extension which is preventing Radarr from finding the correct folder. |
@JurajNyiri I'm doing whatever you're recommending, isn't it? Or am I missing something. Because this is the command I used: /sbin/mount_webdav http://[::]:8080 /Users/fastesthorse/home-media-server/data/realdebrid
# redacted
# ...
directories:
torrents:
group: 1
filters:
- regex: /.*/ |
${DATA_ROOT_DIR}/data/realdebrid/torrents:/data/realdebrid/torrents I see this in your docker mount. If torrents is the exact space where zurg puts in files it needs to be one way above. Basically if you have a remote directory, I found for docker you need to mount one level up. Also of note, I was experiencing instability issues after the WebDAV native mount so since then I have migrated back to native zurg lib outside of docker (zurg in docker had other issues - running OOM) and a rclone http mount. |
… now that I think about it, i encountered issues with that as well. So finally I migrated my media stack to rpi4 and run 2 instances of zurg (one without repair). One for Plex on m1 (both without docker, it was causing too many issues) and one on rpi with the whole stack (all in docker). That has been rock stable, so much that I almost forgot to mention this before as I was writing previous comment :) |
Oh nice. I'll probably run zurg without docker too. So you have it setup and working on Plex on M1 too? The rock solid stable one is the one running on RPi? Sorry, I'm not understanding the 2 setup thing. Would be great if I could take a look at your folder strucutre (the way I created in the post above), your compose file, your RDTClient web ui settings etc. If I could make it work, I'd probably write a guide so other folks don't have to pull hair to get this thing working, lol. |
Setup 1 on m1: Zurg native binary Setup 2: rpi4 It’s pretty complex but hopefully this helps. If I were you I would take it in small steps first. First get Plex and zurg working via native. Then find Linux device (not Mac) to run the media stack. Only then start playing with the import scripts (fun stuff to look out for there are weird characters in paths / file names which break rsync copy - make sure to either properly escape them in script or with the rename function in sonarr and radarr. |
@JurajNyiri That sounds really interesting but I don't think I could do all that without some guide/ help/ examples. So, any chance you could write a guide for your setup here in this thread or at some github pages blog please? And I tried native zurg and rclone, but the supporting containers (radarr, rdtclient) like to hang when remote volume is mounted to them. Sometimes they recover (the hang recovers after 3-5 minutes) but symlinks aren't working, so I'm probably doing something else wrong too. Can you see what I'm doing wrong here?
So there's myriad of problems here that I can't figure out which is incredibly frustrating. My compose looks like this now: services:
radarr:
container_name: radarr
image: ghcr.io/hotio/radarr:latest
restart: unless-stopped
logging:
driver: json-file
ports:
- 7878:7878
environment:
- PUID=1000
- PGID=1000
- UMASK=002
- TZ=${TIMEZONE}
volumes:
- ${CFG_ROOT_DIR}/docker/appdata/radarr:/config
- ${DATA_ROOT_DIR}/data:/data
- ${DATA_ROOT_DIR}/data/symlinks:/downloads
zurg:
image: ghcr.io/debridmediamanager/zurg-testing:v0.9.3-final
container_name: zurg
restart: unless-stopped
healthcheck:
test: curl -f localhost:9999/dav/version.txt || exit 1
ports:
- 9999:9999
volumes:
- ${CFG_ROOT_DIR}/docker/appdata/zurg/config.yml:/app/config.yml
- ${CFG_ROOT_DIR}/docker/appdata/zurg/logs:/app/logs
- ${CFG_ROOT_DIR}/docker/appdata/zurg/data:/app/data
rdtclient:
image: rogerfar/rdtclient
container_name: rdtclient
restart: unless-stopped
ports:
- 6500:6500
environment:
- PUID=1000
- PGID=1000
- TZ=${TIMEZONE}
volumes:
- ${CFG_ROOT_DIR}/docker/appdata/rdtclient:/data/db
- ${DATA_ROOT_DIR}/data:/data
- ${DATA_ROOT_DIR}/data/realdebrid:/data/realdebrid
- ${DATA_ROOT_DIR}/data/symlinks:/data/downloads
logging:
driver: json-file
options:
max-size: 10m The settings in my RDTClient look like this: I tried changing the path to |
In my experience, you will always have some kind of issues with docker on mac, it doesn't play well with remote mounts, I suspect due to Linux VM overhead. I tried all the ways. I found that you simply need to run the whole thing on linux, or the part with docker on linux. As for the guide, check this page https://savvyguides.wiki/sailarrsguide/ (not written, or contributed to, by me). |
@JurajNyiri Actually I was following that guide too. 😀 After reading your answer, I've decided to just put Linux on this Mac Mini to make this work. https://askubuntu.com/q/1529376/1967188 I've put all the details in the question. |
@unfixa1 Thank you for the response but I'm working on 2018 Intel Mac Mini, so I'm not working with ARM arch. |
Expected Behavior
Zurg and Rclone working without any issues.
Actual Behavior
Whenever I mount the zurg webdav in M1 Max MBP running macOS, Docker Desktop freezes and containers accessing the zurg mount refuse to start up, ultimately crashing Docker Desktop.
Detailed Steps
First take a look at my folder structure:
My compose looks like this:
First I start zurg:
docker compose up -d zurg
I run rclone natively to expose webdav to host os
./rclone serve webdav zurg: --addr 0.0.0.0:8080 --dir-cache-time 20s --vfs-cache-mode full --vfs-cache-max-size 20G --cache-dir=“/Users/fastesthorse/home-media-server/data/zurg-tmp”
Mount webdav exposed by rclone
/sbin/mount_webdav http://[::]:8080 /Users/fastesthorse/home-media-server/data/realdebrid
I then run the remaining containers:
docker compose up -d
At this point
rdtclient
,zurg
andradarr
apps will refuse to load in the browser. The docker desktop will hang.Whenever I quit (
^ C
) step 2 and unmount step 3 above, the computer comes back to normal andrdtclient
andradarr
load normally.My guess is that
rdtclient
andradarr
run into issues when they're trying to access remote volume mount?Operating System
macOS Sonoma
14.6.1
. Rclone version:v1.68.1
. Zurg version:v0.9.3-final
.Environment Setup
I'm using rclone binary, but all others are running on Docker. The compose file is above.
Logs
RDTClient:
zurg:
After it stopped hanging, I got this:
Radarr:
rclone (redacted):
Rclone Configuration
Zurg Configuration
The text was updated successfully, but these errors were encountered: