# Copy or Sync from FTP Server results in source directory not found

**URL:** <https://forum.rclone.org/t/copy-or-sync-from-ftp-server-results-in-source-directory-not-found/20636>\
**Category:** Suspected Bug\
**Created:** [November 22, 2020, 10:23pm UTC](https://forum.rclone.org/t/copy-or-sync-from-ftp-server-results-in-source-directory-not-found/20636 "2020-11-22T22:23:21Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [November 23, 2020, 2:52pm UTC](https://forum.rclone.org/t/copy-or-sync-from-ftp-server-results-in-source-directory-not-found/20636/4 "2020-11-23T14:52:52Z")

</div>

> [@jkexbx](#):
>
> 2020/11/23 05:20:49 DEBUG : FTP Tx: "PASV"  
> 2020/11/23 05:20:49 DEBUG : FTP Rx: "502 Command not found"  
> 2020/11/23 05:20:49 DEBUG : FTP Tx: "PASV"  
> 2020/11/23 05:20:49 DEBUG : FTP Rx: "550 Unable to enter Passive Mode"  
> 2020/11/23 05:20:49 ERROR : Hdd1: error reading source directory: directory not found

It looks like the FTP server does not support passive mode which is the ultimate cause of the problem

That makes it very non-standards compliant!

Unfortunately the FTP library rclone uses doesn't support active mode as active mode very rarely works through NAT gateways.

> <https://github.com/jlaffaye/ftp/issues/127>
>
> hi!
> It is passive mode default when connecting server,but the firewall on s…erver is Activated。when i execute function List(),the error occurs like this:
> 550 Permission denied.
> Passive mode refused.
> 
> 
> so,how can i change the client to active mode?

---

_[View the full topic](https://forum.rclone.org/t/copy-or-sync-from-ftp-server-results-in-source-directory-not-found/20636)._
