Docker PMS + NAS = Problems

Server Version#: latest docker container >1.32.2
Operating System = Ubuntu Server
Deployment = Docker via Compose

My goal is to get Plex Media Server to be able to install on Linux via Docker Compose to help me when I need to reinstall Plex (doesn’t happen often but tired of the manual steps with using OpenMediaVault for Plex).

After the docker-compose file is ran and logging into plexms, Plex doesn’t appear to recognize the mounted drives as I don’t receive the user prompt to map the drives.

When I mounted the drives, I know that they are mounted and available as I am able to move throughout the different directories and see the different movies stored on the drives.

Can anyone spot where I went wrong or what additional information I need to provide to help diagnose the issue?

Docker Compose File

version: '3.0'

services:
  portainer:
    container_name: portainer
    image: portainer/portainer-ce
    restart: always
    ports:
      - "9000:9000/tcp"
    environment:
      - TZ=America/Chicago
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /opt/portainer:/data
  plex:
    image: plexinc/pms-docker
    restart: unless-stopped
    container_name: plexms
    ports:
      - "32400:32400/tcp"
    environment:
      - PUID=1000
      - PGID=1000
      - PLEX_CLAIM=claim-qxMuukMVqzs3BG_HyVzH
      - HOSTNAME=”PlexServer”
      - TZ=America/Chicago
    volumes:
      - /opt/plex/config:/config
      - /opt/plex/transcode:/transcode
      - ./mnt/NAS:/mnt/NAS
      - ./mnt/NASDrive:/mnt/NASDrive

Docker Logs for Plex Container

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 40-plex-first-run: executing... 
Attempting to obtain server token from claim token
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Plex Media Server first run setup complete
[cont-init.d] 40-plex-first-run: exited 0.
[cont-init.d] 45-plex-hw-transcode-and-connected-tuner: executing... 
[cont-init.d] 45-plex-hw-transcode-and-connected-tuner: exited 0.
[cont-init.d] 50-plex-update: executing... 
[cont-init.d] 50-plex-update: exited 0.
[cont-init.d] done.
[services.d] starting services
Starting Plex Media Server.
[services.d] done.
Critical: libusb_init failed

Docker Inspect Output

[
    {
        "Id": "441a7b0f6742ed8e317089fa6d1e045ca75aa53b703fe8ad4454a30cb892ea32",
        "Created": "2023-05-24T01:23:55.049871847Z",
        "Path": "/init",
        "Args": [],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 413269,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2023-05-24T01:23:57.175279134Z",
            "FinishedAt": "0001-01-01T00:00:00Z",
            "Health": {
                "Status": "healthy",
                "FailingStreak": 0,
                "Log": [
                    {
                        "Start": "2023-05-24T01:44:17.654187438Z",
                        "End": "2023-05-24T01:44:17.802038238Z",
                        "ExitCode": 0,
                        "Output": ""
                    },
                    {
                        "Start": "2023-05-24T01:44:22.872438951Z",
                        "End": "2023-05-24T01:44:23.045685875Z",
                        "ExitCode": 0,
                        "Output": ""
                    },
                    {
                        "Start": "2023-05-24T01:44:28.123108767Z",
                        "End": "2023-05-24T01:44:28.308336513Z",
                        "ExitCode": 0,
                        "Output": ""
                    },
                    {
                        "Start": "2023-05-24T01:44:33.382857438Z",
                        "End": "2023-05-24T01:44:33.54588612Z",
                        "ExitCode": 0,
                        "Output": ""
                    },
                    {
                        "Start": "2023-05-24T01:44:38.633979467Z",
                        "End": "2023-05-24T01:44:38.824435701Z",
                        "ExitCode": 0,
                        "Output": ""
                    }
                ]
            }
        },
        "Image": "sha256:bac02dc145a66fbf2ac8dedfa8b3c34d3941d5f62e4a5835457637004119cc7d",
        "ResolvConfPath": "/var/lib/docker/containers/441a7b0f6742ed8e317089fa6d1e045ca75aa53b703fe8ad4454a30cb892ea32/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/441a7b0f6742ed8e317089fa6d1e045ca75aa53b703fe8ad4454a30cb892ea32/hostname",
        "HostsPath": "/var/lib/docker/containers/441a7b0f6742ed8e317089fa6d1e045ca75aa53b703fe8ad4454a30cb892ea32/hosts",
        "LogPath": "/var/lib/docker/containers/441a7b0f6742ed8e317089fa6d1e045ca75aa53b703fe8ad4454a30cb892ea32/441a7b0f6742ed8e317089fa6d1e045ca75aa53b703fe8ad4454a30cb892ea32-json.log",
        "Name": "/plexms",
        "RestartCount": 0,
        "Driver": "overlay2",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "docker-default",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": [
                "/opt/plex/config:/config:rw",
                "/opt/plex/transcode:/transcode:rw",
                "/opt/mnt/NAS:/mnt/NAS:rw",
                "/opt/mnt/NASDrive:/mnt/NASDrive:rw"
            ],
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {}
            },
            "NetworkMode": "opt_default",
            "PortBindings": {
                "32400/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "32400"
                    }
                ]
            },
            "RestartPolicy": {
                "Name": "unless-stopped",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "ConsoleSize": [
                0,
                0
            ],
            "CapAdd": null,
            "CapDrop": null,
            "CgroupnsMode": "private",
            "Dns": null,
            "DnsOptions": null,
            "DnsSearch": null,
            "ExtraHosts": [],
            "GroupAdd": null,
            "IpcMode": "private",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": false,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": null,
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "runc",
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "NanoCpus": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": null,
            "BlkioDeviceReadBps": null,
            "BlkioDeviceWriteBps": null,
            "BlkioDeviceReadIOps": null,
            "BlkioDeviceWriteIOps": null,
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": null,
            "DeviceCgroupRules": null,
            "DeviceRequests": null,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": null,
            "OomKillDisable": null,
            "PidsLimit": null,
            "Ulimits": null,
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0,
            "MaskedPaths": [
                "/proc/asound",
                "/proc/acpi",
                "/proc/kcore",
                "/proc/keys",
                "/proc/latency_stats",
                "/proc/timer_list",
                "/proc/timer_stats",
                "/proc/sched_debug",
                "/proc/scsi",
                "/sys/firmware"
            ],
            "ReadonlyPaths": [
                "/proc/bus",
                "/proc/fs",
                "/proc/irq",
                "/proc/sys",
                "/proc/sysrq-trigger"
            ]
        },
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/cedfcb0916f6cb7164d0080edb1546bc03b65d30d2dce3811bea09f512704836-init/diff:/var/lib/docker/overlay2/e32c5e7dd3a599b91e65cbad73a4d8f56bcdc88b1e39bd81cc7c17beb2d9f24f/diff:/var/lib/docker/overlay2/dce0c9aec151dfe809bbb3ceb39809ba0bad9e68c803ab7cf467dae4173ceb66/diff:/var/lib/docker/overlay2/f172756b44e398ac3d78214c58ca1d785a5d02b1ed5551716d5affe6cb0cdd89/diff:/var/lib/docker/overlay2/2afa7347e06a92f9c38047aa215ff1263fb7822d3e89aab1b28ac1aabb337636/diff",
                "MergedDir": "/var/lib/docker/overlay2/cedfcb0916f6cb7164d0080edb1546bc03b65d30d2dce3811bea09f512704836/merged",
                "UpperDir": "/var/lib/docker/overlay2/cedfcb0916f6cb7164d0080edb1546bc03b65d30d2dce3811bea09f512704836/diff",
                "WorkDir": "/var/lib/docker/overlay2/cedfcb0916f6cb7164d0080edb1546bc03b65d30d2dce3811bea09f512704836/work"
            },
            "Name": "overlay2"
        },
        "Mounts": [
            {
                "Type": "bind",
                "Source": "/opt/plex/config",
                "Destination": "/config",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/opt/plex/transcode",
                "Destination": "/transcode",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/opt/mnt/NAS",
                "Destination": "/mnt/NAS",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/opt/mnt/NASDrive",
                "Destination": "/mnt/NASDrive",
                "Mode": "rw",
                "RW": true,
                "Propagation": "rprivate"
            }
        ],
        "Config": {
            "Hostname": "441a7b0f6742",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": true,
            "AttachStderr": true,
            "ExposedPorts": {
                "1900/udp": {},
                "32400/tcp": {},
                "32410/udp": {},
                "32412/udp": {},
                "32413/udp": {},
                "32414/udp": {},
                "32469/tcp": {},
                "8324/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PGID=1000",
                "PLEX_CLAIM=claim-qxMuukSWqzsy3G_HyVzH",
                "HOSTNAME=”PlexServer”",
                "TZ=\"America/Chicago”",
                "PUID=1000",
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "TERM=xterm",
                "LANG=C.UTF-8",
                "LC_ALL=C.UTF-8",
                "CHANGE_CONFIG_DIR_OWNERSHIP=true",
                "HOME=/config"
            ],
            "Cmd": null,
            "Healthcheck": {
                "Test": [
                    "CMD-SHELL",
                    "/healthcheck.sh || exit 1"
                ],
                "Interval": 5000000000,
                "Timeout": 2000000000,
                "Retries": 20
            },
            "Image": "plexinc/pms-docker",
            "Volumes": {
                "/config": {},
                "/transcode": {}
            },
            "WorkingDir": "",
            "Entrypoint": [
                "/init"
            ],
            "OnBuild": null,
            "Labels": {
                "com.docker.compose.config-hash": "7a852c34d5c72cc8101361bf800c070197ca0522f4b90ed441c65515eaa9d75e",
                "com.docker.compose.container-number": "1",
                "com.docker.compose.depends_on": "",
                "com.docker.compose.image": "sha256:bac02dc145a66fbf2ac8dedfa8b3c34d3941d5f62e4a5835457637004119cc7d",
                "com.docker.compose.oneoff": "False",
                "com.docker.compose.project": "opt",
                "com.docker.compose.project.config_files": "/opt/docker-compose.yaml",
                "com.docker.compose.project.working_dir": "/opt",
                "com.docker.compose.service": "plex",
                "com.docker.compose.version": "2.18.1",
                "org.opencontainers.image.ref.name": "ubuntu",
                "org.opencontainers.image.version": "20.04"
            }
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "8c5d15186819df456b6fba19aed5a482ac5c5026891c3c37af6a4231b5be7f33",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": {
                "1900/udp": null,
                "32400/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "32400"
                    },
                    {
                        "HostIp": "::",
                        "HostPort": "32400"
                    }
                ],
                "32410/udp": null,
                "32412/udp": null,
                "32413/udp": null,
                "32414/udp": null,
                "32469/tcp": null,
                "8324/tcp": null
            },
            "SandboxKey": "/var/run/docker/netns/8c5d15186819",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "",
            "Gateway": "",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "",
            "IPPrefixLen": 0,
            "IPv6Gateway": "",
            "MacAddress": "",
            "Networks": {
                "opt_default": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": [
                        "plexms",
                        "plex",
                        "441a7b0f6742"
                    ],
                    "NetworkID": "282f0c03565c752a0c76ffc6150511fba6935fb434e7d09d92257a4ef1317031",
                    "EndpointID": "266937821b2617459c878c3cad6485bb113771c22777ae118fa66026cfc5fc5f",
                    "Gateway": "172.18.0.1",
                    "IPAddress": "172.18.0.2",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "02:42:ac:12:00:02",
                    "DriverOpts": null
                }
            }
        }
    }
]

I made some adjustments to the docker-compose file that have gotten me one step closer to a fully functional Plex Media Server.

I am now prompted to identify the different folders with the movies and tv shows, BUT Plex doesn’t see anything in the folder… This is weird because when I completed mounting both the local and external drive, I’m able to see the different folders and their contents per

image

Any ideas what adjustments I need to make?

version: '2.1'

services:
  portainer:
    container_name: portainer
    image: portainer/portainer-ce
    restart: always
    ports:
      - "9000:9000/tcp"
    environment:
      - TZ=America/Chicago
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /opt/portainer:/data
  plex:
    image: lscr.io/linuxserver/plex:latest
    container_name: plexms
    network_mode: host
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/Chicago
      - VERSION=docker
      - PLEX_CLAIM=claim-qxMuukMVqzs3BG_HyVzH      
    volumes:
      - /opt/plex/config:/config
      - /opt/plex/transcode:/transcode
      - ./mnt/NAS/TVShows:/mnt/TVShows
      - ./mnt/NAS/TVShows:/mnt/Movies
      - ./mnt/NASDrive/TV:/mnt/TV
    restart: unless-stopped

Typo? TV shows won’t match if in a Movie section.

What about Plex’s ports?

If would help if you’d show your fstab file.
Let’s assume your NAS and media files (TV, movie, etc.) are at 192.168.1.100/media and you mount point is /mnt
fstab should start with “//192.168.1.100/media /mnt/media cifs(etc.)”

Then your compose file should just read:
volumes:
(…)
- /mnt/media:/media

You’re having mount points on both sides, that’s not going to work.
Question: is there a reason why you have plex running under host network not bridge? Other containers on the same server might have issues finding it.
also - I hope that claim code is bogus :wink:

Thank you @Mittelstuermer & @ChuckPa for your responses…

To be honest, some of this has been trial and error. What you see on this is the latest trial…

Question: is there a reason why you have plex running under host network not bridge?
I was just using the docker-compose file from this article Docker

Before that article, I had been specifying ports

fstab file

I had a line in the file for both of the drives, but something was wrong with it as when it reboot Ubuntu, it booted into emergency mode.

# Mounting the raid1 partition at startup
 /dev/md127 /mnt/NAS defaults,auto,rw,nofail,uid=1000,gid=1000 0 1
# Mounting the NAS drive at startup
192.168.1.76:/volume1/video /mnt/NASDrive nfs rsize=8192,wsize=8192,timeo=14,intr

If you’re going to use NFS, How about opening it up so it will actually perform?

192.168.1.76:/volume1/video /mnt/NASDrive nfs defaults,auto,rsize=131072,wsize=131072,timeo=14,intr

Here’s how i do mine (fully automatic)

192.168.0.20:/vol/bin /glock/bin nfs defaults,rw,auto,async,x-systemd.after=network-online.target,nofail,bg 0 0

Some of these are because the host (Ubuntu) can actually boot faster than the network adapter can initialize. The options keep the mounts from failing.

By being automatic, client & server auto negotiate the buffer sizes.

Observe

[chuck@lizum ~.2002]$ mount | grep media
192.168.0.20:/vol/media on /glock/media type nfs4 (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.0.13,local_lock=none,addr=192.168.0.20)

Thanks @ChuckPa - really appreciate the time you spent sharing.

While the server doesn’t boot into recovery/emergency mode any more, it doesn’t automatically mount the drives after reboot of the server. Below are the lines in the fstab file:

# Mounting the raid1 partition at startup - Movies 
/dev/md127/ /mnt/media ext4 default,rw,auto,async,x-systemd.after=network-online.target,nofail,bg 0 0
# Mounting the NAS drive at startup
192.168.1.76:/volume1/video/TV /mnt/media/TV2 nfs default,rw,auto,async,x-systemd.after=network-online.target,nofail,bg 0 0

I am able to mount one of the two drives manually with the following:

sudo mount /dev/md127 /mnt/NAS

Below are the logs when I grep “md127” /var/log/syslog

May 25 00:16:23 johnsnow systemd-udevd[586]: md127: Process '/usr/bin/unshare -m /usr/bin/snap auto-import --mount=/dev/md127' failed with exit code 1.
May 25 00:16:23 johnsnow systemd[1]: Found device /dev/md127.
May 25 00:16:23 johnsnow kernel: [    2.770264] md/raid1:md127: active with 2 out of 2 mirrors
May 25 00:16:23 johnsnow kernel: [    2.784014] md127: detected capacity change from 0 to 5860270976
May 25 00:17:32 johnsnow systemd[1]: dev-md127-TVShows.device: Job dev-md127-TVShows.device/start timed out.
May 25 00:17:32 johnsnow systemd[1]: Timed out waiting for device /dev/md127/TVShows.
May 25 00:17:32 johnsnow systemd[1]: dev-md127-TVShows.device: Job dev-md127-TVShows.device/start failed with result 'timeout'.
May 25 00:41:35 johnsnow kernel: [ 1542.859778] EXT4-fs (md127): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
May 25 01:30:10 johnsnow systemd-udevd[620]: md127: Process '/usr/bin/unshare -m /usr/bin/snap auto-import --mount=/dev/md127' failed with exit code 1.
May 25 01:30:10 johnsnow systemd[1]: Found device /dev/md127.
May 25 01:30:10 johnsnow kernel: [    2.752079] md/raid1:md127: active with 2 out of 2 mirrors
May 25 01:30:10 johnsnow kernel: [    2.776292] md127: detected capacity change from 0 to 5860270976
May 25 01:41:27 johnsnow systemd-udevd[578]: md127: Process '/usr/bin/unshare -m /usr/bin/snap auto-import --mount=/dev/md127' failed with exit code 1.
May 25 01:41:27 johnsnow systemd[1]: Found device /dev/md127.
May 25 01:41:27 johnsnow kernel: [    2.734333] md/raid1:md127: active with 2 out of 2 mirrors
May 25 01:41:27 johnsnow kernel: [    2.748843] md127: detected capacity change from 0 to 5860270976
May 25 01:45:12 johnsnow systemd-udevd[619]: md127: Process '/usr/bin/unshare -m /usr/bin/snap auto-import --mount=/dev/md127' failed with exit code 1.
May 25 01:45:12 johnsnow systemd[1]: Found device /dev/md127.
May 25 01:45:12 johnsnow kernel: [    2.731335] md/raid1:md127: active with 2 out of 2 mirrors
May 25 01:45:12 johnsnow kernel: [    2.747378] md127: detected capacity change from 0 to 5860270976
May 25 01:50:51 johnsnow systemd-udevd[609]: md127: Process '/usr/bin/unshare -m /usr/bin/snap auto-import --mount=/dev/md127' failed with exit code 1.
May 25 01:50:51 johnsnow systemd[1]: Found device /dev/md127.
May 25 01:50:51 johnsnow kernel: [    2.705668] md/raid1:md127: active with 2 out of 2 mirrors
May 25 01:50:51 johnsnow kernel: [    2.716558] md127: detected capacity change from 0 to 5860270976
May 25 02:06:42 johnsnow systemd-udevd[577]: md127: Process '/usr/bin/unshare -m /usr/bin/snap auto-import --mount=/dev/md127' failed with exit code 1.
May 25 02:06:42 johnsnow kernel: [    2.762985] md/raid1:md127: active with 2 out of 2 mirrors
May 25 02:06:42 johnsnow kernel: [    2.772780] md127: detected capacity change from 0 to 5860270976
May 25 02:11:29 johnsnow systemd-udevd[616]: md127: Process '/usr/bin/unshare -m /usr/bin/snap auto-import --mount=/dev/md127' failed with exit code 1.
May 25 02:11:29 johnsnow kernel: [    2.777033] md/raid1:md127: active with 2 out of 2 mirrors
May 25 02:11:29 johnsnow kernel: [    2.797003] md127: detected capacity change from 0 to 5860270976
May 25 02:12:39 johnsnow systemd[1]: dev-md127-Movies2.device: Job dev-md127-Movies2.device/start timed out.
May 25 02:12:39 johnsnow systemd[1]: Timed out waiting for device /dev/md127/Movies2.
May 25 02:12:39 johnsnow systemd[1]: dev-md127-Movies2.device: Job dev-md127-Movies2.device/start failed with result 'timeout'.
May 25 02:14:17 johnsnow kernel: [  197.052210] EXT4-fs (md127): recovery complete
May 25 02:14:17 johnsnow kernel: [  197.084191] EXT4-fs (md127): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
May 25 02:23:42 johnsnow systemd-udevd[581]: md127: Process '/usr/bin/unshare -m /usr/bin/snap auto-import --mount=/dev/md127' failed with exit code 1.
May 25 02:23:42 johnsnow kernel: [    2.622671] md/raid1:md127: active with 2 out of 2 mirrors
May 25 02:23:42 johnsnow kernel: [    2.648253] md127: detected capacity change from 0 to 5860270976
May 25 02:24:52 johnsnow systemd[1]: dev-md127-Movies2.device: Job dev-md127-Movies2.device/start timed out.
May 25 02:24:52 johnsnow systemd[1]: Timed out waiting for device /dev/md127/Movies2.
May 25 02:24:52 johnsnow systemd[1]: dev-md127-Movies2.device: Job dev-md127-Movies2.device/start failed with result 'timeout'.
May 25 02:28:35 johnsnow systemd-udevd[595]: md127: Process '/usr/bin/unshare -m /usr/bin/snap auto-import --mount=/dev/md127' failed with exit code 1.
May 25 02:28:35 johnsnow systemd[1]: Found device /dev/md127.
May 25 02:28:35 johnsnow mount[926]: mount: /mnt/media: special device /dev/md127/ does not exist (a path prefix is not a directory).
May 25 02:28:35 johnsnow kernel: [    2.689227] md/raid1:md127: active with 2 out of 2 mirrors
May 25 02:28:35 johnsnow kernel: [    2.707877] md127: detected capacity change from 0 to 5860270976
May 25 03:25:28 johnsnow kernel: [ 3442.743245] EXT4-fs (md127): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
May 25 09:05:57 johnsnow kernel: [23874.107590] md/raid1:md127: sdb: rescheduling sector 2218378472
May 25 09:06:01 johnsnow kernel: [23877.576509] md/raid1:md127: read error corrected (8 sectors at 2218640688 on sdb)
May 25 09:06:01 johnsnow kernel: [23877.627493] md/raid1:md127: redirecting sector 2218378472 to other mirror: sdb
May 25 09:06:05 johnsnow kernel: [23881.789918] md/raid1:md127: sdb: rescheduling sector 2218381288
May 25 09:06:08 johnsnow kernel: [23885.260462] md/raid1:md127: read error corrected (8 sectors at 2218643544 on sdb)
May 25 09:06:08 johnsnow kernel: [23885.274607] md/raid1:md127: redirecting sector 2218381288 to other mirror: sdb
May 25 09:06:13 johnsnow kernel: [23889.882930] md/raid1:md127: sdb: rescheduling sector 2218384104
May 25 09:06:16 johnsnow kernel: [23893.373476] md/raid1:md127: read error corrected (8 sectors at 2218646400 on sdb)
May 25 09:06:16 johnsnow kernel: [23893.385621] md/raid1:md127: redirecting sector 2218384104 to other mirror: sdb
May 25 09:06:21 johnsnow kernel: [23898.194994] md/raid1:md127: sdb: rescheduling sector 2218389736
May 25 09:06:25 johnsnow kernel: [23901.844012] md/raid1:md127: read error corrected (8 sectors at 2218652112 on sdb)
May 25 09:06:25 johnsnow kernel: [23901.862580] md/raid1:md127: redirecting sector 2218389736 to other mirror: sdb
May 25 09:06:30 johnsnow kernel: [23906.721517] md/raid1:md127: sdb: rescheduling sector 2218395888
May 25 09:06:33 johnsnow kernel: [23910.209665] md/raid1:md127: read error corrected (8 sectors at 2218658168 on sdb)
May 25 09:06:33 johnsnow kernel: [23910.221078] md/raid1:md127: redirecting sector 2218395888 to other mirror: sdb
May 25 20:20:40 johnsnow systemd-udevd[592]: md127: Process '/usr/bin/unshare -m /usr/bin/snap auto-import --mount=/dev/md127' failed with exit code 1.
May 25 20:20:40 johnsnow systemd[1]: Found device /dev/md127.
May 25 20:20:40 johnsnow mount[921]: mount: /mnt/media: special device /dev/md127/ does not exist (a path prefix is not a directory).
May 25 20:20:40 johnsnow kernel: [    2.697347] md/raid1:md127: active with 2 out of 2 mirrors
May 25 20:20:40 johnsnow kernel: [    2.709828] md127: detected capacity change from 0 to 5860270976

With the ability to mount the drive manually, but not automatically - I’m not sure where I am going wrong.

Any help would be appreciated… I’ll save the second problem after this one is resolved :slight_smile:

defaults

OOPS. typo when you wrote the file. you forgot to check it before reboot.

Observe:

nfs defaults,sec=sys,rw,auto,async,x-systemd.after=network-online.target,nofail,bg

You should probably stop screwing with the container and use the native host.
K.I.S.S principle.

Get fancy LATER
There’s no functionality improvement; only more crap to go wrong.

My rule: Use Docker because there is no native host package (aka… There is a need) and not because I can. (Docker is last resort - not first choice)

PS: Which host is /dev/md127 existing on? Looks like QNAP numbering.

My volumes are sequential

[chuck@glockner ~.1998]$ ls -la /dev/md*
brw-rw---- 1 root disk 9, 0 May 22 20:01 /dev/md0
brw-rw---- 1 root disk 9, 1 May 22 20:01 /dev/md1
brw-rw---- 1 root disk 9, 2 May 22 20:01 /dev/md2
brw-rw---- 1 root disk 9, 3 May 22 20:01 /dev/md3

/dev/md:
total 0
drwxr-xr-x  2 root root  120 May 22 20:01 ./
drwxr-xr-x 22 root root 5780 May 22 20:01 ../
lrwxrwxrwx  1 root root    6 May 22 20:01 0 -> ../md0
lrwxrwxrwx  1 root root    6 May 22 20:01 1 -> ../md1
lrwxrwxrwx  1 root root    6 May 22 20:01 2 -> ../md2
lrwxrwxrwx  1 root root    6 May 22 20:01 3 -> ../md3
[chuck@glockner ~.1999]$ 

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.