[Guide] Auto-Mounting Filesystems in Linux

I haven’t experienced your issue, so I don’t have a quick answer for you, but I do have a couple suggestions. First, disable the automatic library scan in Plex, and configure Sonarr, Radarr and Lidarr to use Plex Connect to notify Plex when new media is added. To enable Plex Connect, follow these steps in Sonarr, Radarr and Lidarr:

  1. Go to Settings > Connect, and click the add button.
  2. Select Plex Media Server from the available options.
  3. Enter a name for your server at the top
  4. Enter the IP or hostname for your Plex server in the hostname field. Leave all other settings at their defaults.
  5. Click the Authenticate with Plex.tv button and log in to your Plex account.
  6. Click the Test button
  7. If the test was successful, save the connection.

After you’ve enabled the connections, go into your Plex server settings, and disable the options to Scan my library automatically and Run a partial scan when changes are detected. You can leave the periodic scan enabled, and set it to run daily.

Run your system like this for a few days and see if the issue comes up again. If it does, then I’d recommend enabling debug logging for autofs temporarily so the logs can hopefully be used to pinpoint the issue. To enable logging, open the file /etc/autofs.conf in your text editor, scroll down until you see # logging = none, and change it to logging = debug. Save the file, then restart the autofs daemon sudo systemctl restart autofs. Once debug logging is enabled, everything autofs does will be logged in /var/log/syslog, hopefully including whatever is causing the issue. If it comes to this point, please note that the syslog file isn’t used exclusively by autofs, so the relevant information may be scattered among log lines from other programs. I wouldn’t recommend posting the log file anywhere without filtering it first to display only the automount logs.