# Fatal error - Directory is not empty

**URL:** <https://forum.rclone.org/t/fatal-error-directory-is-not-empty/9238>\
**Category:** Help and Support\
**Created:** [March 20, 2019, 10:21pm UTC](https://forum.rclone.org/t/fatal-error-directory-is-not-empty/9238 "2019-03-20T22:21:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fjesnes](https://forum.rclone.org/user_avatar/forum.rclone.org/fjesnes/32/2546_2.png) [@Fjesnes](https://forum.rclone.org/u/Fjesnes)\
**Post date:** [March 20, 2019, 10:21pm UTC](https://forum.rclone.org/t/fatal-error-directory-is-not-empty/9238/1 "2019-03-20T22:21:03Z")

</div>

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  
Rclone.service:

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

[Service]
Type=simple
User=root
ExecStart=/usr/bin/rclone mount Gcrypt: /media/Gdrive \
   --config /home/me/.config/rclone/rclone.conf \
   --allow-other \
   --dir-cache-time=48h\
   --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 \
   --cache-db-purge
ExecStop=/bin/fusermount -uz /media/Gdrive
Restart=always

[Install]
WantedBy=multi-user.target

```

Not able to figure out what I'm doing wrong ☹

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [March 20, 2019, 11:38pm UTC](https://forum.rclone.org/t/fatal-error-directory-is-not-empty/9238/2 "2019-03-20T23:38:57Z")

</div>

> [@Fjesnes](#):
>
> /media/Gdrive

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

```auto
ls /media/Gdrive

```

and you should see what's there.

---

<div class="post-metadata">

**Author:** ![Fjesnes](https://forum.rclone.org/user_avatar/forum.rclone.org/fjesnes/32/2546_2.png) [@Fjesnes](https://forum.rclone.org/u/Fjesnes)\
**Post date:** [March 21, 2019, 6:06am UTC](https://forum.rclone.org/t/fatal-error-directory-is-not-empty/9238/3 "2019-03-21T06:06:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [March 21, 2019, 8:17am UTC](https://forum.rclone.org/t/fatal-error-directory-is-not-empty/9238/4 "2019-03-21T08:17:56Z")

</div>

> [@Fjesnes](#):
>
> 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

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

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [March 21, 2019, 11:31am UTC](https://forum.rclone.org/t/fatal-error-directory-is-not-empty/9238/5 "2019-03-21T11:31:28Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![Fjesnes](https://forum.rclone.org/user_avatar/forum.rclone.org/fjesnes/32/2546_2.png) [@Fjesnes](https://forum.rclone.org/u/Fjesnes)\
**Post date:** [March 22, 2019, 1:17pm UTC](https://forum.rclone.org/t/fatal-error-directory-is-not-empty/9238/6 "2019-03-22T13:17:07Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [June 20, 2019, 1:17pm UTC](https://forum.rclone.org/t/fatal-error-directory-is-not-empty/9238/7 "2019-06-20T13:17:11Z")

</div>

Closed on June 20, 2019, 1:17pm UTC

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