Fatal error - Directory is not empty

Hi guys,

Getting this error in the log file:

Fatal error: Directory is not empty: /media/Gdrive If you want to mount it anyway use: --allow-non-empty option

OS: Ubuntu Server 18.04
Rclone version: 1.46

Description=Mount and cache Google drive to /media/Gdrive
After=syslog.target local-fs.target network.target

ExecStart=/usr/bin/rclone mount Gcrypt: /media/Gdrive \
   --config /home/me/.config/rclone/rclone.conf \
   --allow-other \
   --cache-chunk-size=10M \
   --cache-info-age=48h \
   --cache-workers=5 \
   --cache-tmp-upload-path /opt/gcache \
   --cache-tmp-wait-time 30m \
   --buffer-size 0M \
   --log-file /opt/gcache.log \
   --rc \
   --log-level INFO \
ExecStop=/bin/fusermount -uz /media/Gdrive


Not able to figure out what I’m doing wrong :frowning:

Check your mount location as it should be empty, but there is a file and/or directories in there.

ls /media/Gdrive

and you should see what’s there.

Thanks for replying!
The Gdrive folder sure does contain two empty folders: Tv and Movies. The question is: why does these two folders survive the execstop part that is supposed to unmount the Gdrive? Am I missing a command in the service? I have to manually stop the mount, delete the folders and remount to make it work now.

Folders can’t survive a mount. I expect something made those folders when the mount was unmounted.

That means that something wrote that when it was not mounted.

Guessing Sonarr or Radarr if your folder are “TV” and “Movies”

Im running Sonarr and Radarr in docker. I’ve got all my media in /gmedia/tv and /gmedia/movies. Sonarr is pointed towards /gmedia/tv/ and Radarr /gmedia/movies. This might be why the folders are made. Will try to point Radarr and Sonarr directly to /gmedia instead, and then choose the sub folders manually in the setup.

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